Skip to content

Filter feeds #23

@FreedomWriter

Description

@FreedomWriter

Integrate Post Filtering for Feed Using Safe-skies-api Filtering Endpoint

Description

Update the SAFEskies client application so that moderators can filter posts in the moderation feed using the new filtering endpoint exposed by safe-skies-api. The filtering functionality should leverage the full set of parameters available from Bluesky’s app.bsky.feed.searchPosts API. The UI should adhere to the existing design patterns.

Acceptance Criteria

  • Filter UI:
    • A filtering interface (similar to the one we see for logs) is added to the feeds.
  • API Integration:
    • When the moderator enters filtering criteria, the client sends a request to the safe-skies-api /api/feed/searchPosts endpoint with all the supported filtering parameters.
  • Result Display:
    • The feed updates dynamically with the filtered posts returned by the API.
    • A “No results found” message is displayed if there are no matching posts.
  • Error Handling:
    • The UI displays an appropriate error message if the filtering request fails.

Tasks

  • Update the feed page to include a filtering UI component consistent with the log filtering style.
  • Integrate the filter component to call the safe-skies-api filtering endpoint with all supported parameters.
  • Map the filtering input fields to the corresponding parameters required by Bluesky’s API.
  • Dynamically update the feed list with the filtered posts.
  • Implement error messaging and “No results found” notifications.
  • Write tests to verify that the filtering UI calls the endpoint with correct payload and that the feed displays the returned posts correctly.

Metadata

Metadata

Assignees

Labels

blockedCannot be completed yetenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions