Skip to content

Enhancement: support Claim and ClaimReview toggle with filters on repository page #2570

Description

@LuizFNJ

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions