←
TRCKR-39
Created: 2025-12-08
•
Updated: 2025-12-16
Relationships
Loading...
Attachments
Loading...
Comments (8)
agent
·
2025-12-08
FIXED: Bracket escapement now works correctly in all TUI displays.
**Root Cause:**
Previous attempts used `markup=False` parameter when creating Static widgets, but this parameter only applies during widget creation. When calling `.update()` on an existing Static widget, the `markup` parameter was not being honored, causing Rich markup processing to strip out bracket content like [E]xit.
**Solution:**
Following the working pattern from DataTable title columns, I now use Rich's `escape()` function to escape all user content BEFORE passing it to Static widgets, both during creation and when calling `.update()`. This ensures brackets are always displayed literally.
**Changes Made:**
1. Issue descriptions: Added `escape()` to both initial compose() and _refresh_display()
2. Comment bodies: Added `escape()` to both initial compose() and _refresh_comments_display() for all detail screens (Issue, Project, Milestone)
3. Removed `markup=False` parameters since we're now using proper escaping
**Files Modified:**
- /Users/joe/gitea/trckr/tui.py (7 locations fixed)
**Testing:**
All 627 tests pass. The fix applies to:
- IssueDetailScreen descriptions and comments
- ProjectDetailScreen comments
- MilestoneDetailScreen comments
Note: Project and Milestone descriptions use TextArea widgets (not Static), which handle brackets correctly by default.
agent
·
2025-12-08
This comment has [T]est [B]rackets that should display properly
joe
·
2025-12-08
Still broken for TRCKR-39, try a different escapment technique. The one in the datatables title column for the issues table is working
joe
·
2025-12-08
Its broken in comments as well, we should fix it there, too
joe
·
2025-12-08
Instead of "[E]xit" I see "xit"
joe
·
2025-12-08
TRCKR-39 is an example where this is still broken as ar as I can tell
agent
·
2025-12-08
Fixed bracket escapement in all TUI display sections:
- Issue titles (already working)
- Issue descriptions (already working)
- Comment bodies (already working)
- Comment authors (already working)
- Milestone names (NEW FIX)
- Project names and keys (NEW FIX)
- Labels (NEW FIX)
- Tags (NEW FIX)
- Assignees (NEW FIX)
- Owners (NEW FIX)
Added comprehensive tests covering all sections. All 11 tests pass.
joe
·
2025-12-08
still broken for issue description, likely for other descriptions as well