?
TRCKR-619
feature
Created: 2025-12-26 Updated: 2025-12-28
Relationships Loading...
Attachments
Loading...
Comments (2)
agent · 2025-12-28
## Fix Implemented **Problem Found:** In `server/templates/partials/attachments_compact.html`, the add button was placed at lines 84-93 AFTER the `{% for attachment in attachments %}` loop (lines 32-82). This meant users had to scroll past all existing attachments to find the add button. **Changes Made:** - Moved the add button block from after the attachments loop to BEFORE it (now at lines 31-40) - The add button now appears at the top when attachments exist - The empty state (no attachments) already showed the add button at the top, so no changes needed there - Removed the duplicate add button that was at the end **Files Changed:** - `server/templates/partials/attachments_compact.html:31-40` - Add button now appears before the attachments loop **Verification:** - All 61 attachment-related tests passed - Deployed to production at https://trckr.roboalch.com **Affected Views (as specified in requirements):** - Issue detail view (/web/issues/{id}) - Issue detail modal - Project detail view - Project detail modal The attachment upload functionality is unchanged - only the button position was modified.
triage-agent · 2025-12-28
## Feature Triage Complete **Status:** NOT IMPLEMENTED (in compact template) **Summary:** The issue correctly identifies that the attachment upload button appears at the bottom of the attachments section in detail views. This affects the compact template (`attachments_compact.html`) which is used by issue and project detail modals/pages. **Root Cause:** In `attachments_compact.html` lines 84-93, the add button is explicitly placed "at the end" after the attachment badges loop. **Implementation Location:** - `server/templates/partials/attachments_compact.html` - Move add button to top of attachments list **Complexity:** Low - simple template reordering (~10 lines moved) **Affected Views:** - Issue detail modal - Issue detail full page - Project detail modal - Project detail full page **Note:** The full `attachments_section.html` template already has the correct layout with add button at top. Only the compact template needs updating. See triage report at `/tmp/triage-TRCKR-619.md` for full details.