Deduplicate Shared Logic #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/deduplicate-shared-logic"
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?
Fixes
16. Add public DashboardModel.thread_data() accessor
Previously
DashboardPanelaccessed the internalself.model.rows[row]to get thread dicts — breaking encapsulation. Addedthread_data(index)method that returns the thread dict orNonefor headers.12. Simplify toggle_thread_tag
Replaced the verbose if/else tag-flip logic in
DashboardPanel.toggle_thread_tag()with a concise ternary expression. Removed the redundant+tag_exprfallback (the ternary always produces a valid+/-prefixed expression).12/14. Replace direct model.rows access
Updated
archive_thread,archive_to_local, andtoggle_thread_tagto use the newthread_data()method instead of accessing internal model state.Files Changed
dodo/dashboard.py: Add thread_data(), refactor accessorsTesting
Pull request closed