Extract dashboard state logic into a separate model module #158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracked from the medium-priority refactoring playbook in #154.
dashboard.pyis 2,103 lines. Mixed UI rendering and state management in one file makes the logic harder to test in isolation and slows navigation.Work
dashboard.py(data structures, state transitions, derived values) and extract it into a new module (e.g.dashboard_model.pyordashboard_state.py).dashboard.py, importing from the new model module.