Task · BAP-0006

Filter and sort search results

Description

The search index emits one filter, project, so the sidebar the default UI would render is a single facet. Status, type and priority are parsed for every record and never reach the index. Results are relevance-ranked with no way to ask what changed most recently, which is the question a tracker search is usually asked.

Acceptance Criteria

Final Summary

Emitted status, kind, type and priority as Pagefind filters alongside project, all as attribute captures rather than inline values because an inline value may only be the last item in a capture list. Added an opt-in recency sort; it stays opt-in because Pagefind sorting replaces relevance ranking rather than breaking ties within it, and the default UI takes its sort at construction so the control rebuilds the widget and replays the current term. Build check 10 asserts against what Pagefind reports and the filter indexes it wrote, not against the markup meant to produce them: 5 filters and 1 sort.

View the source file on GitHub