←
TRCKR-301
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: 634ba7a5-fdb0-43d3-ac09-e8853fff30b2
**Tests Performed:**
- Verified project dropdown exists (replaces UUID text)
- Confirmed dropdown uses 'KEY - Name' format (e.g., 'TRCKR - trckr')
- Tested project selection and save - changes persist after reload
- No 'Current projects:' UUID text visible anywhere
**All acceptance criteria verified:**
- Project field is a dropdown, not UUID text
- Dropdown shows project key and name
- Current project is pre-selected when editing
- Project can be changed and saved
- Styling matches other form controls
Fix verified working. Marking as done.
agent
·
2025-12-12
Fixed the issue edit modal to replace UUID text with a proper dropdown selector.
## Changes Made
### Template Changes (server/templates/modals/issue_detail.html, lines 62-70)
**Problem:** The project field displayed raw UUIDs like 'Current projects: ad766efa-bdef-40c0-adf8-c718b6242530' and only allowed adding projects one at a time via a dropdown.
**Solution:** Replaced the entire section with a clean dropdown that:
- Shows 'No Project' as the default option
- Displays each project as 'KEY - Name' (e.g., 'TRCKR - trckr')
- Pre-selects the current project if one is assigned
- Uses the same 'form-control' CSS class as the create modal for consistency
- Has proper change detection via 'data-original' attribute
### Backend Changes (server/routes/web.py, lines 508, 536-547)
**Problem:** The PATCH endpoint only accepted 'projects' (plural) which would ADD to existing projects instead of replacing them.
**Solution:**
- Added 'project' (singular) parameter to the endpoint
- When 'project' is provided, it replaces all projects with the selected one: `updates['projects'] = [project] if project else []`
- Kept backward compatibility with 'projects' parameter for legacy usage
## Testing
- Ran `make test` - Issue update tests (11 tests) all passed
- The fix matches the create modal behavior (single project selection)
- Proper styling with form-control class
## Verification Steps
1. Start the server: `trckr-server`
2. Open an issue detail modal
3. Verify the project dropdown shows 'KEY - Name' format
4. Verify current project is pre-selected
5. Change the project and save
6. Verify the change persists
The issue edit modal now provides a clean, user-friendly project selector instead of raw UUIDs.