Skip to content

Browser: Turn Up Axis on a placement row asks that placement whether it can move (#8786) - #8788

Merged
bherbruck merged 1 commit into
tangency-labs:mainfrom
chrishamm:turn-up-axis-placement
Oct 29, 2026
Merged

bherbruck merged 1 commit into
tangency-labs:mainfrom
chrishamm:turn-up-axis-placement

Conversation

@chrishamm

Copy link
Copy Markdown
Contributor

Change

On a placement row, Turn Up Axis and its two turns were greyed out or live depending on the component's first placement, because a placement's menu starts from its component's menu. Move/Copy was already set again for the placement right-clicked. Turn Up Axis and both turns now take the same answer: the placement can turn when it isn't grounded or held by a rigid group.

Closes #8786

Changes a default: no

Validation

On Linux: the new test turn_up_axis_follows_the_placement_right_clicked in occurrence_ui_tests.rs grounds each of two placements in turn and checks Turn Up Axis and both turns on each. It fails without the fix, on the free second placement. With it, the ui-egui occurrence, menu and context-menu tests (198) and the stand_up_offer tests pass, as do fmt and clippy with -D warnings. The full cargo xtask ci has not run on this branch.

Screenshots of the behavior (when observable)

None. The difference is a menu row greyed out or not, and the test covers both placements both ways.

Integration status

Based on 036d423. #8770 moves Turn Up Axis into a Placement flyout and rewrites the loop in occurrence_items this changes, so whichever lands second needs a small rebase.

…it can move (tangency-labs#8786)

A placement row's menu starts from its component's menu, which takes
Turn Up Axis's enabled state from the component's first placement.
Move/Copy was already set again for the placement right-clicked; Turn Up
Axis and its two turns now are too, so a free second placement can turn
while the first is grounded, and a grounded one can't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the area:ui desktop/web front end, dialogs, viewport label Oct 29, 2026
@bherbruck bherbruck added ready to merge reviewed, every ask addressed; merge once CI is green approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) and removed approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) labels Oct 29, 2026
@bherbruck
bherbruck enabled auto-merge October 29, 2026 11:19
@bherbruck bherbruck added approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) and removed approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) labels Oct 29, 2026
@bherbruck
bherbruck added this pull request to the merge queue Oct 29, 2026
Merged via the queue into tangency-labs:main with commit 93d0298 Oct 29, 2026
87 of 114 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) area:ui desktop/web front end, dialogs, viewport ready to merge reviewed, every ask addressed; merge once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turn Up Axis on a placement row is greyed out or live by the component's first placement

2 participants