Repository navigation
643 Standardize Add menu entries and offer only objects the simulator supports - #2563
Merged
Merged
Conversation
martastn
marked this pull request as ready for review
November 28, 2026 10:39
grzanka
reviewed
Dec 3, 2026
grzanka
left a comment
Contributor
There was a problem hiding this comment.
Nice cleanup. The Object menu now matches the sidebar for each simulator, and removing Boolean Zone from Geant4 fixes a real problem. One regression and two small points are inline.
…e for filter group labels, test Add menu entries
grzanka
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1030, closes #643.
What was left in these issues
Most of #1030 was already done by the UI rework (#2063, #2165): figures are calledBox / Cylinder / Sphere (no "Mesh"), "Material Zone" became Boolean Zone, "Detect Geometry" became Detector, "Simulation Output" became Output. #1031 is closed. The last item of #643, "Remove material number from label", referred to the old outliner (
Zone [947] ▲ WATER, LIQUID [276]); the current tree shows only object names, so nothing is left to do there.What was still inconsistent:
Custom filter,Particle filter,New filter(Geant4)Custom Filter,Particle Filter,Filter, the same Title Case asBoolean Zone,CTCube,Beam Modulator.New filterwas the only entry that did not name an object typeChanges
CommandButtonProps.ts: renamed the three filter labels.Zonesis empty for Geant4 andSpecial Componentsis empty outside SHIELD-HIT12A, which matches whatEditorSidebaralready renders.EditorMenu.tsx: the Object menu uses every non-empty group instead of a hard-coded exclusion list.The sidebar is unchanged apart from the labels. It already picked groups per simulator, and its buttons are upper-cased by the theme, so only Geant4 visibly changes (
NEW FILTERbecomesFILTER).Screenshots
Object menu, SHIELD-HIT12A (left: master, right: this PR)

Object menu, Geant4. Boolean Zone is gone, Filter is added

Geant4 Filters section

Testing
tsc --noEmit, eslint and prettier on the changed files. Unit tests pass.f26ccab4and does not touch any file changed by other open PRs.