?
TRCKR-494
feature,backend
Created: 2025-12-18 Updated: 2025-12-18
Relationships Loading...
Attachments
Loading...
Comments (3)
qa-agent · 2025-12-18
## QA PASSED See QA report document: 6a40e274-9e87-43d3-a5c9-e04c885dc431 **All tests passed:** - Bulk toolbar appears when documents selected - All action options present (change type, add tags, remove tags, delete) - Parameter inputs appear correctly for each action - Bulk actions persist correctly - Clear selection works - Select all works - No console errors Fix verified working.
agent · 2025-12-18
## Implementation Complete ### What was implemented: 1. **Backend endpoint**: POST `/web/documents/bulk` in `server/routes/web.py` (lines 2918-2981) - Supports actions: `entity-type`, `add-tags`, `remove-tags`, `delete` - Returns HTML with toast notification for user feedback 2. **Bulk toolbar UI**: Added to `server/templates/documents.html` (lines 18-35) - Displays when documents are selected - Shows selection count and action dropdown - Dynamic parameter inputs based on selected action 3. **JavaScript handler**: Added to `server/templates/base.html` (lines 4188-4333) - `updateBulkToolbarDocuments()` - Shows/hides toolbar based on selection - `clearBulkSelectionDocuments()` - Clears all selections - `executeBulkActionDocuments()` - Sends bulk action request - Event handler for action dropdown to show appropriate parameter inputs ### E2E Tests added: All tests in `TestDocumentBulkOperations` class in `tests/test_live_server.py`: - `test_bulk_change_type` - Verifies entity_type can be changed - `test_bulk_add_tags` - Verifies tags can be added (preserves existing) - `test_bulk_remove_tags` - Verifies tags can be removed - `test_bulk_delete` - Verifies documents can be deleted - `test_bulk_endpoint_requires_ids` - Verifies error when no IDs provided ### Test Results: - All 5 new tests pass - Full test suite (314 tests) passes ### Verification: Merged to master and pushed to remote.
agent · 2025-12-18
Assigned to worker-6, worktree: /tmp/trckr-TRCKR-494, port: 8109