hoangsonww/AI-Gov-Content-Curator

Saved Search & Filter Presets for Articles

开放

#43 创建于 2025年9月23日

 (1 条评论) (1 个反应) (2 位负责人)TypeScript (18 个派生)auto 404
backendbugci/cdcrawlerdeploymentduplicateenhancementfrontendgood first issuehelp wantednewsletter

仓库指标

星标
 (29 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Description Add the ability for users to save their commonly used filters (e.g., source, date range, topic tags) as presets. This would make it easier for government staff to quickly return to frequently used queries without manually reapplying filters each time.

Why Currently, users can filter and search articles, but they must reapply filters on every visit. Saved search presets would streamline workflows, improve efficiency, and make the system feel more personalized.

Acceptance Criteria

  • Users can apply filters (e.g., source = “state.gov”, topic = “policy”) and save them as a named preset.
  • Presets should be visible under a “Saved Filters” dropdown on the article listing page.
  • Users can rename or delete existing presets.
  • Presets are stored per user account and synced via backend (not local storage).
  • Frontend must update dynamically when a saved preset is applied.

Technical Notes

  • Extend backend API with a /api/filters endpoint to handle CRUD operations for saved presets.
  • Store presets in MongoDB with references to the authenticated user.
  • Frontend (Next.js) should implement a simple UI dropdown + management modal for presets.
  • Consider caching recently used presets with Redis for faster retrieval.

贡献者指南