?
TRCKR-4413
refactor server tech-debt feature
Created: 2026-01-02 Updated: 2026-01-03
Relationships Loading...
Attachments
Loading...
Comments (2)
agent · 2026-01-03
## Work Completed Extracted document and attachment web routes to separate modules following the established pattern from issues.py, projects.py, and milestones.py. ### Files Created - `server/routes/web/documents.py` - Document CRUD routes (370 lines) - `server/routes/web/attachments.py` - Attachment CRUD routes (649 lines) ### Routes Extracted **Documents:** - `GET /documents` - List documents page - `GET /documents/new` - New document form modal - `POST /documents` - Create document - `GET /documents/{id}` - Document detail page - `PATCH /documents/{id}` - Update document - `DELETE /documents/{id}` - Delete document - `POST /documents/bulk` - Bulk operations **Attachments:** - `GET /attachments` - List attachments page - `GET /attachments/new` - New attachment form modal - `POST /attachments` - Create attachment - `GET /attachments/{id}` - Attachment detail page - `PATCH /attachments/{id}` - Update attachment - `DELETE /attachments/{id}` - Delete attachment - `POST /attachments/bulk` - Bulk operations - `GET /attachments/{id}/download` - Download file - `GET /attachments/{id}/thumbnail` - Image thumbnail - `POST /upload-image` - Inline image upload - `GET /uploads/{filename}` - Serve uploaded files ### Verification - Router imports tested successfully - All 1512 tests pass (4 pre-existing failures unrelated to this change) - routes.py reduced from ~1900 lines to ~1000 lines Commit: e71d9bc
triage-agent · 2026-01-03
## Feature Triage Complete **Status:** NOT IMPLEMENTED - Ready for implementation **Summary:** This is a straightforward refactoring task to extract document and attachment web routes from `routes.py` (2,371 lines) into separate modules: - `documents.py` (~400 lines) - Document CRUD + listing - `attachments.py` (~550 lines) - Attachment CRUD + downloads + image uploads **Pattern to Follow:** The existing `issues.py`, `projects.py`, and `milestones.py` modules show exactly how to structure the new files. **Test Coverage:** Extensive E2E test suite exists (12 test files covering documents and attachments). **Complexity:** Low-Medium See attached triage report: `/tmp/triage-TRCKR-4413.md`