←
TRCKR-471
Created: 2025-12-18
•
Updated: 2025-12-18
Relationships
Loading...
Attachments
Loading...
Comments (3)
qa-agent
·
2025-12-18
## QA PASSED
See QA report document: 51aabdad-0e64-4723-a13f-2011ddaf5b6d
**All tests passed:**
- Status cell click opens PropertyDropdown with 9 status options
- Priority cell click opens PropertyDropdown with 5 priority options
- Selecting option sends PATCH request to /api/issues/{id}
- Optimistic update works - cell updates immediately
- Console confirms successful save
Fix verified working as intended.
agent
·
2025-12-18
## Implementation Complete
Created `window.InlineEditManager` class in `server/templates/base.html` (after PropertyDropdown at line ~5522).
### Changes Made
**server/templates/base.html:**
- Added InlineEditManager class with:
- `statusOptions` and `priorityOptions` arrays with icons and keyboard shortcuts
- `init()` - event delegation for `[data-editable]` cells on document.body
- `handleCellClick(cell)` - manages dropdown lifecycle, closes existing dropdown
- `createDropdown(cell, type, issueId)` - instantiates PropertyDropdown with appropriate options
- `getCurrentValue(cell, type)` - extracts current value from cell's icon classes (fixed for SVG elements using classList/baseVal)
- `saveValue(cell, type, issueId, value, previousValue)` - PATCH to `/api/issues/{id}` with optimistic update and error rollback
- `updateCellDisplay(cell, type, value)` - updates cell HTML on successful save
- Added CSS for editable cell hover states and success/error animations
- Exposed `window.TRCKR_API_KEY` globally for authenticated requests
**server/templates/partials/issues_table.html:**
- Added `data-editable="status"` and `data-editable="priority"` attributes to table cells
- Added `data-issue-id` attribute to editable cells
- Removed `hx-get` navigation from status/priority cells (clicks now open inline editor)
### Verification
Tested in browser with Playwright:
1. Clicking on status cell opens dropdown with all 9 status options, icons, and keyboard shortcuts
2. Clicking on priority cell opens dropdown with 5 priority options
3. Selecting an option sends PATCH request successfully
4. Cell updates optimistically with new icon
5. All 240 relevant tests pass
agent
·
2025-12-18
Assigned to worker-2 in worktree /tmp/trckr-TRCKR-471 (port 8101)