Skip to content

Merge ROI + Masks sidebar tabs; reorder to View/Process/Measure/ROI-Mask/Export#39

Merged
jacobson30-bot merged 1 commit into
mainfrom
ui/merge-roi-mask-tabs
Jun 15, 2026
Merged

Merge ROI + Masks sidebar tabs; reorder to View/Process/Measure/ROI-Mask/Export#39
jacobson30-bot merged 1 commit into
mainfrom
ui/merge-roi-mask-tabs

Conversation

@jacobson30-bot

Copy link
Copy Markdown
Contributor

What

QoL cleanup of the image-viewer sidebar. The 6 tabs (View, Process, ROI, Masks, Measure, Export) truncated their labels, and ROI/Masks were mostly empty forms.

  • Merge ROI + Masks into one ROI/Mask tab, each as a collapsible section (reusing _collapsible_section, the same widget as View's "Spectroscopy overlay"). "Regions of interest" expanded by default; "Masks" collapsed.
  • Reorder to View · Process · Measure · ROI/Mask · Export so labels fit.
  • Old "masks" tab key aliased to the merged tab; _show_sidebar_tab("masks") selects it and expands the Masks section (future-proofs mask-driven navigation).
  • Shortcuts renumbered to match the new order: Ctrl+1 View, Ctrl+2 Process, Ctrl+3 Measure, Ctrl+4 ROI/Mask, Ctrl+5 Export.

Why it's low risk

Nothing programmatically opened the Masks tab; no test asserted sidebar order/labels. The merge reuses existing panels/helpers — only wiring and order change.

Tests

New test_sidebar_merges_roi_mask_and_orders_tabs; viewer/shortcut GUI suites green (test_gui_processing_panel, test_viewer_shortcuts, test_viewer_window_menu, region/levels/lifecycle), ruff clean.

🤖 Generated with Claude Code

The image viewer had 6 sidebar tabs (View, Process, ROI, Masks, Measure,
Export); the labels truncated ("Proc...", "Ma...", "Mea...") and the ROI/Masks
tabs were mostly empty forms. Combine them and reorder so labels fit.

- ROI and Masks now share a single "ROI/Mask" tab, each as a collapsible
  section (reusing _collapsible_section, the same widget as the View tab's
  "Spectroscopy overlay"). "Regions of interest" is expanded by default; "Masks"
  starts collapsed. See the _sidebar_tab + panel wiring in
  probeflow/gui/dialogs/image_viewer_build_mixin.py.
- Tab order is now View, Process, Measure, ROI/Mask, Export.
- The old "masks" tab key is aliased to the merged tab's index (no extra rail
  entry); _show_sidebar_tab("masks") selects the tab and expands the Masks
  section via self._mask_section_btn (image_viewer_chrome_mixin.py), so any
  future mask-driven navigation still reveals the controls.
- Keyboard shortcuts renumbered to match the new on-screen order: Ctrl+1 View,
  Ctrl+2 Process, Ctrl+3 Measure, Ctrl+4 ROI/Mask, Ctrl+5 Export
  (probeflow/gui/viewer/shortcuts.py); the command->tab lambdas are unchanged.

Test: test_sidebar_merges_roi_mask_and_orders_tabs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jacobson30-bot jacobson30-bot merged commit c3f0787 into main Jun 15, 2026
3 checks passed
@jacobson30-bot jacobson30-bot deleted the ui/merge-roi-mask-tabs branch June 15, 2026 06:33
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.

1 participant