←
TRCKR-598
Created: 2025-12-20
•
Updated: 2025-12-22
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-22
## Changes Made
### 1. Made Priority Header Sortable
- Modified `server/templates/partials/issues_table.html` to add hx-get sorting endpoint to the priority header icon
- Added a separate filter icon next to the sort icon (following the title column pattern)
- Header now shows sort indicator (caret up/down) when sorted by priority
### 2. Fixed Priority Sorting in Backend
- Updated `server/routes/web.py` to:
- Include 'urgent' in priority order map (was missing, only had 'critical')
- Inverted reverse flag so descending means 'highest priority first' (matches user expectation)
### 3. Added E2E Tests
Created `tests/e2e/test_list_sort_priority.py` with 5 tests:
- `test_sort_by_priority_descending_high_to_low` - Verify urgent > high > medium > low order
- `test_sort_by_priority_ascending_low_to_high` - Verify low > medium > high > urgent order
- `test_sort_toggle_between_asc_and_desc` - Verify clicking header toggles direction
- `test_sort_indicator_shows_on_priority_header` - Verify caret icon appears
- `test_sort_preserves_priority_cell_icon` - Verify priority icons remain correct after sort
### Test Results
- All 5 new E2E tests pass
- 1397 existing tests pass (2 unrelated pre-existing failures)