Skip to content

[feat] METEOR overlay cryofeature: clarify the current posture in "recalculate position" message box#3379

Merged
pieleric merged 1 commit intodelmic:masterfrom
pieleric:feat-meteor-overlay-cryofeature-clarify-the-current-posture-in-recalculate-position-message-box
Mar 6, 2026
Merged

[feat] METEOR overlay cryofeature: clarify the current posture in "recalculate position" message box#3379
pieleric merged 1 commit intodelmic:masterfrom
pieleric:feat-meteor-overlay-cryofeature-clarify-the-current-posture-in-recalculate-position-message-box

Conversation

@pieleric
Copy link
Copy Markdown
Member

In the FIBSEM tab, there are two view: SEM and FIB. If one moves the
feature in the FIB view, she/he could beleive that this changes the
MILLING posture, while moving the feature in SEM view would adjust the
SEM posture. However, that's not the case, it's unrelated to the view,
and only linked to the current posture (based on the current stage position).

So adjust the dialog to highlight which posture is modified, if not
updating all the posture.

…calculate position" message box

In the FIBSEM tab, there are two view: SEM and FIB. If one moves the
feature in the FIB view, she/he could beleive that this changes the
MILLING posture, while moving the feature in SEM view would adjust the
SEM posture. However, that's not the case, it's unrelated to the view,
and only linked to the current posture (based on the current stage position).

So adjust the dialog to highlight which posture is modified, if not
updating all the posture.
Copilot AI review requested due to automatic review settings February 23, 2026 13:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the clarity of the dialog shown when moving cryo features in the FIBSEM tab. The dialog now explicitly indicates which posture (SEM IMAGING, MILLING, FIB IMAGING, etc.) is being modified, addressing user confusion about whether the change affects the view-specific posture or the current posture based on stage position.

Changes:

  • Import POSITION_NAMES dictionary to map posture constants to human-readable names
  • Update dialog message to specify which posture is being modified
  • Customize button labels to show "All" vs "Only [posture name]" options

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 23, 2026

📝 Walkthrough

Walkthrough

This change modifies the user confirmation dialog in the cryo feature overlay's position update workflow. It imports POSITION_NAMES to derive the current posture name and updates the dialog message and button labels to explicitly present two options: updating the feature position for all other postures versus only the current posture. The underlying logic for processing user confirmation and updating positions remains unchanged.

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: clarifying the current posture in the recalculate position message box for the METEOR overlay cryofeature component.
Description check ✅ Passed The description directly relates to the changeset by explaining the user confusion about postures in different views and how the PR clarifies which posture is being modified in the dialog.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/odemis/gui/comp/overlay/cryo_feature.py`:
- Around line 254-258: The call to box.SetYesNoLabels(...) may fail; check its
boolean return and handle the False case by updating the dialog text to a
generic yes/no question that matches the default "Yes"/"No" labels.
Specifically, after creating the wx.MessageDialog as box and calling
box.SetYesNoLabels("All", f"Only {current_posture_name}"), test the return value
and if it is False call box.SetMessage(...) (or otherwise set the dialog text)
to a fallback like "Apply this feature position only to the current posture
(Yes) or to all postures (No)?" so the prompt makes sense when the custom labels
couldn’t be applied.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b6dea6a and 191981f.

📒 Files selected for processing (1)
  • src/odemis/gui/comp/overlay/cryo_feature.py

Comment thread src/odemis/gui/comp/overlay/cryo_feature.py
Comment thread src/odemis/gui/comp/overlay/cryo_feature.py
@pieleric pieleric merged commit 52ffecc into delmic:master Mar 6, 2026
9 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.

4 participants