Skip to content

Standardize Panel Return Types#72

Merged
lowhung merged 1 commit into
mainfrom
issue-44-panel-return-types
Feb 8, 2026
Merged

Standardize Panel Return Types#72
lowhung merged 1 commit into
mainfrom
issue-44-panel-return-types

Conversation

@lowhung

@lowhung lowhung commented Feb 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add unified PanelResult struct and PanelAction enum to replace inconsistent panel return types
  • Update all 5 panel functions (draw_details_panel, draw_filter_panel, draw_legend, draw_group_legend, draw_group_panel) to return PanelResult
  • Update call sites in app.rs to handle the new unified type

Closes #44

Test plan

  • cargo test - 89 tests pass
  • cargo clippy --all-targets --all-features -- -D warnings - clean
  • cargo fmt - clean

Replace inconsistent panel function return types (DetailsPanelResult,
bool, unit) with a unified PanelResult struct and PanelAction enum,
making the panel API consistent and extensible.

Closes #44
@lowhung lowhung merged commit a2da813 into main Feb 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize Panel Return Types

1 participant