-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
blockedCannot be completed yetCannot be completed yetenhancementNew feature or requestNew feature or request
Description
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/searchPostsendpoint with all the supported filtering parameters.
- When the moderator enters filtering criteria, the client sends a request to the safe-skies-api
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
blockedCannot be completed yetCannot be completed yetenhancementNew feature or requestNew feature or request