diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-06 17:12:46 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-06 17:12:46 -0700 |
| commit | 4bbafdd460945eb506ddb07b9068731245708812 (patch) | |
| tree | 3a3ac9151fb9db3d57af10d781658c13b1a2cfdd /AGENTS.md | |
| parent | 21f0cb70ca8f6c1731bf0e514e2668f42ea00718 (diff) | |
Add search, filter, and sort functionality to film shelves
- Add _SORT_COLUMNS dict to routers/films.py with 8 sort options
- Extend _get_shelf_query to accept q (search) and sort parameters
- Update /films/partial endpoint to accept q/sort query params and pass
search_active to template to suppress month grouping when searching
- Add filter bar (search input + sort select) to templates/index.html
- Add data-shelf attribute to #film-feed for JS to read current shelf
- Rewrite infinite scroll JS to support debounced search (300ms),
feed reset on filter/sort change, and pass params on all fetches
Filters text search by title OR director (case-insensitive ilike).
Sort options: date watched (newest/oldest), title (A-Z/Z-A), year,
stars. Month grouping disabled when search is active.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
0 files changed, 0 insertions, 0 deletions
