Extract dashboard state/model layer into dashboard_model.py #173
Reference in New Issue
Block a user
Delete Branch "issue-158-dashboard-model"
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?
Closes #158.
Summary
bot_bottle/cli/dashboard.py(2103 lines) into two modules: the newdashboard_model.pycarries the state/model layer;dashboard.pyretains the curses TUI,$EDITORintegration, tmux subprocess flows, and action handlers (approve,reject,operator_edit_routes,operator_edit_allowlist).dashboard.pyre-imports everything fromdashboard_modelso all existing callers, tests, and monkey-patch patterns are unaffected.tests/unit/test_dashboard_model.pywith 13 tests covering_approval_status,_proposed_payload_label, and_suffix_for_tool— three helpers that had no prior coverage.Changes (1 commit)
f0ca4e3refactor: extract dashboard state/model layer into dashboard_model.pyHave some quibbles with the split, but not enough to justify spending more time on reorganizing this