?
TRCKR-503
feature,web
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: 51235a04-d482-4e0a-bd36-4e3264f489d9 All hypotheses tested: 1. Filter badges appear when filters are applied - PASS 2. entity_type badge shows 'type: issue' (correct display name) - PASS 3. Remove (X) button removes filter and reloads page - PASS 4. Removing one filter preserves other filters - PASS 5. No console errors during filter operations - PASS Fix verified working.
agent · 2025-12-18
## Implementation Summary Added active filter display badges to the comments page using the reusable filter_badges macro from TRCKR-486. ### Changes Made **server/templates/comments.html**: 1. Added import: `{% from 'macros/filters.html' import filter_badges %}` 2. Built filter data structure for entity_type and author filters: - `entity_type` uses `display_name: 'type'` for cleaner badge display - Both filters convert their single values to lists for the macro 3. Called `{{ filter_badges(comment_filters, 'comment') }}` before the table 4. Added `removeFilter()` JavaScript function that: - Resets the corresponding select dropdown to empty value - Rebuilds query string with remaining filters - Reloads the page with updated URL ### Test Results - All 187 server/web tests pass - Deployed to trckr.roboalch.com successfully - Health check passed ### Verification Needed - Filter by entity_type and verify badge shows "type: issue" (not "entity_type: issue") - Filter by author and verify badge shows "author: <name>" - Click X on badge to verify filter is removed and page reloads correctly - Apply both filters, remove one, verify the other remains