Agentic UI: Add a preview zoom option - #4775
Open
shaunandrews wants to merge 2 commits into
Open
Conversation
wojtekn
force-pushed
the
add-preview-zoom-option
branch
from
September 8, 2026 07:55
796d3e4 to
218289e
Compare
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
wojtekn
force-pushed
the
add-preview-zoom-option
branch
from
September 8, 2026 08:43
218289e to
38a3a98
Compare
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.
Related issues
None. Follow-up to #4573, which stopped the app's zoom from leaking into the preview; this branch is stacked on it and will be retargeted to
trunkonce that merges.How AI was used in this PR
Claude Code implemented the option, the emulation math, and the tests, following the direction from the review of #4573. Reviewed through the diff, lint, type check, unit tests, and manual testing in the macOS development app.
Proposed Changes
Screenshots
The Zoom group, shown while Fit pane is selected:
The same pane at 100% and at 150% — the page reflows narrower and renders larger, still filling the pane:
Testing Instructions
npm start, open a running site in the agentic UI.Automated verification:
npx eslint --fixon all modified filesnpm test -- apps/ui/src/components/site-preview/index.test.tsx apps/studio/src/tests/ipc-handlers.test.ts(69 tests passed, then 51 in the preview file after the Fit-pane scoping)npm run typecheckPre-merge Checklist