?
TRCKR-297
enhancement web ui
Created: 2025-12-12 Updated: 2025-12-16
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-12
Implemented removable label badges with X button in issue edit modal. ## Changes Made 1. **Frontend template** (`server/templates/modals/issue_detail.html`): - Replaced simple comma-separated input (line 88-89) with dynamic label section - Empty state: Shows just '+ Add' button (lines 98-100) - With labels: Shows list of label badges with remove buttons + '+ Add' button (lines 90-97) - Labels display as blue badges (#58a6ff) matching the repos pattern - Form appears on '+ Add' click with Add/Cancel buttons (lines 102-106) 2. **JavaScript functions** (`server/templates/modals/issue_detail.html`): - Added `toggleLabelInput()` (line 719) - Shows/hides label input form and focuses input - Added `addLabel()` (line 735) - Adds a label to the list with duplicate checking - Added `removeLabel()` (line 778) - Removes a label from the list ## Testing - Deployed to production at trckr.roboalch.com - Health check passed after deployment - Pattern matches the repos implementation for consistency ## Behavior - Labels are displayed as badge-style chips - Each badge has an X button to remove it - Clicking '+ Add' shows input field - Labels are added/removed individually - Changes trigger the Save button (checkForChanges) - UI updates immediately without page reload - Duplicate labels are prevented with toast notification