?
TRCKR-309
enhancement web ui
Created: 2025-12-12 Updated: 2025-12-16
Relationships Loading...
Attachments
Loading...
Comments (2)
qa-agent · 2025-12-16
## QA PASSED See QA report document: 1c958bc6-65d1-48cb-b1c3-dc6398ac7508 **Verification Summary:** - Work log collapsed by default (expanded div has display:none) - Shows most recent entry when collapsed - Displays correct entry count (e.g., "Work Log (5)") - "Show all" button appears only when 2+ entries exist - Toggle function works correctly in both directions - Empty state shows "No work log entries" All 6 acceptance criteria verified. No issues found.
agent · 2025-12-12
## Implementation Complete Implemented collapsible work log section in the issue detail modal: ### Changes Made 1. **Template Changes** (server/templates/modals/issue_detail.html lines 223-285): - Added Jinja2 variables to track worklog_comments and worklog_count - Split view into collapsed and expanded sections with separate divs - Collapsed view (default): Shows only the most recent work log entry - Expanded view (hidden): Shows all work log entries - Added toggle button that only appears when there are 2+ entries - Added 'No work log entries' message for empty state - Maintained icon-based delete buttons consistent with other UI elements 2. **JavaScript Function** (lines 546-566): - Added toggleWorkLog() function to switch between collapsed/expanded states - Updates button text between 'Show all' and 'Collapse' - Properly handles visibility toggling of both views ### Testing - Deployed to production server at trckr.roboalch.com - Health check passed successfully - All acceptance criteria met: - Work log collapsed by default ✓ - Shows most recent entry when collapsed ✓ - Displays total entry count ✓ - 'Show all' expands to full list ✓ - Can collapse back after expanding ✓ - Empty work log shows appropriate message ✓ ### Additional Notes - Preserved all existing functionality including delete buttons - Maintained consistent styling with Phosphor icons for delete buttons - Toggle button only appears when there are multiple entries (avoids clutter for single-entry worklogs)