AletheiaFact / AletheiaFact/aletheia
Enhancement: support Claim and ClaimReview toggle with filters on repository page
- Vorherrschende Sprache
- TypeScript
- Sterne
- 55
- Forks
- 20
- Ø Merge
- 2 T. 6 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
### Background Information
Currently, the repository page only lists `Claim` items. This limits visibility of the fact-checking work itself, since the reviews (`ClaimReview`) produced by fact-checkers aren't shown anywhere on the page. Adding `ClaimReview` as a new item type will give more visibility to the checks performed on the platform, not just the claims being tracked.
### Steps to Reproduce
1. Go to the repository page.
2. Note that only `Claim` items are listed.
3. There is no way to view `ClaimReview` items, nor any filters for either list.
### How
- **Backend**: the `ClaimReview` list endpoint already exists. Confirm whether it currently accepts filter params (personality, topic, claim type, date range, review rating) and extend it if any are missing.
- **Frontend**:
- Add a toggle on the repository page to switch between the `Claim` list and the `ClaimReview` list.
- Add filters to the `Claim` list: personality, topic, claim type, date range.
- Add filters to the `ClaimReview` list: personality, topic, claim type, date range, and review rating/classification.
### Expected Behavior
- Users can toggle between viewing `Claim` items and `ClaimReview` items on the repository page.
- Each list has its own set of filters, as described above, and filtering returns accurate results per item type.
- Switching the toggle doesn't break or mix up filter state between the two lists.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start at the repository page and inspect the existing Claim list alongside the ClaimReview list endpoint, checking which filter parameters the endpoint accepts. Trace how filter state is represented for each list; done means a toggle exposes both item types, each has the specified filters, results are accurate, and switching lists keeps their filter state separate.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- nodejs, react, typescript
- Bereich
- full-stack
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100