Skip to content

Feature: Filter events by category and date range

Summary

Filtering events via query params: ?category=&from=&to=.

User story

As a user, I want to filter events by category and date range so I can find relevant events quickly.

Scope

  • Backend: extend list endpoint to accept filters.
  • Frontend: UI controls for category, from, to.

Tasks

  • Backend query handling + index (exists).
  • Add unit/integration tests for filters.
  • Frontend filter UI (select + date inputs).
  • Frontend tests for filtered rendering.

Acceptance criteria

  • GET /events?category=music returns only music.
  • GET /events?from=YYYY-MM-DD&to=YYYY-MM-DD returns events within range.
  • Frontend reflects filters; empty state handled gracefully.

Test notes

  • Invalid dates → ignore or 400 (decide & document).
  • Combine filters (category + range).

Dependencies

  • Depends on: “Create, update, delete, and list events”.