←
TRCKR-87
Created: 2025-12-08
•
Updated: 2025-12-16
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-08
Successfully extracted settings persistence functions to tui/settings.py.
**Changes Made:**
1. Created /Users/joe/gitea/trckr/tui/settings.py with:
- get_settings_path() - determines settings file location (global vs local)
- load_settings() - loads settings from JSON with defaults
- save_settings() - persists settings to JSON
2. Updated /Users/joe/gitea/trckr/tui/__init__.py:
- Added imports from tui.settings module
- Removed the 3 function definitions (lines 73-112)
3. Fixed test imports in:
- tests/test_tui.py - Updated to import tui.settings and mock tui.settings.get_git_root
- tests/tui_tests/test_modals.py - Updated all references to tui.settings.get_settings_path
- tests/tui_tests/test_editing.py - Updated all references to tui.settings.get_settings_path
**Test Results:**
All 795 tests passed (37 skipped). Coverage: 79% overall, 89% for tui/settings.py
**Commit:** dbd14c3
**Branch:** TRCKR-87 (merged to master)