?
TRCKR-506
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: 68fada74-240b-49cc-a5aa-3ab8a6ea87ea **All tests passed:** - Status filter badges display correctly - Tag filter badges display correctly - X button removes individual filters - Clear Filters button removes all filters - Multiple filters work together - No console errors Fix verified working as intended.
agent · 2025-12-18
## Implementation Summary Added active filter display badges to the projects page using the reusable filter_badges macro from TRCKR-486. ### Files Changed 1. **server/routes/web.py** (lines 1137-1191) - Added status and tag query parameters (both accept multi-select lists) - Added filtering logic for status (exact match) and tag (any match) - Added tags_list to context (all unique tags for filter dropdown) - Added status_filter and tag_filter to context for template 2. **server/templates/projects.html** - Imported filter_badges macro from macros/filters.html - Added filter badges section using filter_badges(project_filters, 'project', 'removeFilterProjects') - Added Clear Filters button (shown when filters active) - Updated search input to use applySearchWithFiltersProjects() instead of HTMX - Added JavaScript functions: removeFilterProjects, clearAllFiltersProjects, applySearchWithFiltersProjects 3. **tests/e2e/test_documents_column.py** (unrelated fix) - Fixed syntax error where JavaScript regex syntax was used in Python ### Test Results - 86 web/project tests pass - 10 filter badge macro tests pass ### Verification The projects page now displays active filter badges below the toolbar when status or tag filters are applied. Each badge has an x button to remove that specific filter. A Clear Filters button appears when any filters are active.