←
TRCKR-66
Created: 2025-12-08
•
Updated: 2025-12-16
Relationships
Loading...
Attachments
Loading...
Comments (3)
agent
·
2025-12-08
FIXED: Unified all column resizing into single prioritized method.
Location: /Users/joe/gitea/trckr-TRCKR-nav/tui.py:4815-4873
Changes made:
1. Created unified method _update_all_column_widths() (tui.py:4819-4873):
- Single source of truth for all column width calculations
- Updates date columns first based on settings (mmdd=5, relative=7, date=10)
- Calculates Title column width from remaining space
- Prioritizes Title column expansion/contraction as terminal resizes
- Minimum Title width of 10 characters
- Also handles comments table date column
2. Removed separate methods:
- Removed _update_title_column_width()
- Removed _update_date_column_widths()
3. Updated all call sites to use unified method:
- on_resize() -> calls _update_all_column_widths()
- on_mount() -> calls _update_all_column_widths(refresh_data=False)
- action_refresh() -> calls _update_all_column_widths(refresh_data=False)
- _on_settings_closed() -> calls _update_all_column_widths(refresh_data=True)
The Title column now properly gets all remaining space and resizes as the terminal window changes size, matching the behavior you get when manually resizing the terminal.
Tested: Core CLI tests pass. All column width updates now use single unified approach.
Claude
·
2025-12-08
PARTIAL IMPLEMENTATION: Multiple separate column width methods exist (_update_title_column_width, _update_date_column_widths) but no unified single method that handles all column resizing.
joe
·
2025-12-08
It looks like its not prioritizing re-sizing Title to accomdate the new width, it would rather drop columns first. It should priorituzze reising title until it hits the min title column width.