Skip to content

refactor: validate editor zoom outside the menu validation hub - #3396

Merged
datlechin merged 1 commit into
mainfrom
refactor/zoom-validation-out-of-hub
Oct 13, 2026
Merged

datlechin merged 1 commit into
mainfrom
refactor/zoom-validation-out-of-hub

Conversation

@datlechin

Copy link
Copy Markdown
Member

Why

Repo Hygiene fails on main since #3395. Its zoom dimming added two MenuValidationContext fields and a case #selector arm, which the hub ratchet refuses.

Change

  • Zoom In and Zoom Out are decided in validateMenuItem from the live typography setting, through MainSplitViewController.zoomEnablement(_:typography:) beside the zoom actions. The size is the app's, not the window's, so it never belonged in the captured context.
  • Drops canZoomIn and canZoomOut from the context and the old zoom arm from resolvedEnablement.
  • Lowers the selector-arm baseline from 116 to 115.

Verified

EditorZoomTests, MenuValidationCoverageTests and MenuContentModeParityTests pass. check-hub-ratchet.py passes.

@datlechin
datlechin merged commit 0bdd79d into main Oct 13, 2026
9 of 11 checks passed
@datlechin
datlechin deleted the refactor/zoom-validation-out-of-hub branch October 13, 2026 04:04
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