←
TRCKR-490
Created: 2025-12-18
•
Updated: 2025-12-18
Relationships
Loading...
Attachments
Loading...
Comments (2)
qa-agent
·
2025-12-18
## QA PASSED
See QA report document: 75a55bb2-db29-4612-90c3-982dc5d409ed
All hypotheses tested:
1. Filter badges hidden when no filters active - PASS
2. Status filter badge appears correctly - PASS
3. Project badge shows KEY not UUID - PASS
4. Multiple filters display together - PASS
5. Status remove button works - PASS
6. Project remove button works - PASS
7. No console errors - PASS
Fix verified working. Marking as done.
agent
·
2025-12-18
## Implementation Summary
Added active filter display (filter badges) to the milestones page using the reusable macro from TRCKR-486.
### Files Changed
1. **server/templates/milestones.html**
- Imported `filter_badges` macro from `macros/filters.html`
- Built filter data structure for status and project filters
- Added display map to show project keys instead of UUIDs
- Called `filter_badges(milestone_filters, 'milestone', 'removeFilterMilestones')`
2. **server/templates/base.html** (lines 4424-4451)
- Added `removeFilterMilestones(filterType, filterValue)` JavaScript function
- Function unchecks the corresponding filter checkbox
- Rebuilds query string with remaining filters
- Redirects to milestones page with updated filters
### Verification
Tested via curl requests to production:
1. **No filters**: `active-filters` div is not rendered (correct)
2. **Status filter only**: Badge shows "status: in-progress" with correct remove handler
3. **Status + project filter**: Both badges render, project shows key (TRCKR) not UUID
### Test Results
All 164 server/web tests pass including the filter badge macro tests.