?
TRCKR-223
web ux enhancement
Created: 2025-12-10 Updated: 2025-12-16
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-10
Implementation complete. Added clickable column headers for sorting to all web tables. **Changes made:** 1. **Backend routes** (server/routes/web.py): - Added sort_by and sort_dir query parameters to: - list_documents() - lines 1297-1298 - list_comments() - lines 1049-1050 - list_attachments() - lines 1490-1491 - Updated sorting logic to use these parameters (was previously hardcoded) 2. **Frontend templates** - Added sortable column headers with HTMX: - **issues_table.html**: ID, Title, Status, Priority, Assignee, Updated (all sortable except Project) - **projects_table.html**: Key, Name, Status, Owner, Updated (all sortable) - **documents_table.html**: Title, Type, Updated (Tags not sortable) - **comments_table.html**: Entity, Author, Created (Comment body not sortable) - **attachments_table.html**: Type, Title, File/URL, Size, Created (Owner not sortable) **How it works:** - Clicking a column header toggles between ascending/descending sort - Visual indicators show sort direction: ▲ (ascending) ▼ (descending) - All filter parameters are preserved when sorting - Uses existing .sortable CSS class for hover effects **Testing:** - All 71 server tests pass - Verified no regressions in existing functionality - Milestones table already had this feature and was used as template **Note:** The feature follows the same pattern already implemented for milestones_table.html, ensuring consistency across all tables.