fix(settings): make popup components respect UI zoom scaling#450
fix(settings): make popup components respect UI zoom scaling#450a981008 wants to merge 2 commits into
Conversation
Modal, Toast, and dropdown menus were rendered to document.body via createPortal, bypassing the CSS zoom applied to .app-shell. Now all overlay components portal to #app-overlay-root inside AppShell so they inherit the zoom transform. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
PR quality triageChanged areas: area:desktop CLI core policy: No CLI-core policy block detected. Missing-test policy: Blocked by policy until a maintainer applies Coverage baseline policy: No coverage-baseline policy block detected. CLI core files:
Coverage policy files:
Expected checks:
Test coverage signals:
Risk notes:
Hard merge gates still come from GitHub Actions, not AI review. Dosu handoff: Dosu can be used as the AI reviewer for risk explanation, missing-test prompts, and maintainer Q&A. If it does not comment automatically from the PR template, ask: @dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact. |
|
Here's my review of PR #450 across the requested dimensions: Changed-Area Risk: LOW The change is well-scoped — it introduces a centralized Missing Tests: No tests were added or updated. Specific gaps:
Recommendation: At minimum, add tests for Docs Impact: Minor Architecture documentation and design system specs reference modals/overlays. A brief note in the component guidelines about using Desktop Startup Risk: Negligible The only addition to the startup path is a static CLI Core Impact: None All changes are confined to Summary: Low-risk, well-isolated UI fix. The main gap is missing test coverage for the new utility and updated portal targets. The Feature Quality Contract sections (tests added, coverage evidence, E2E evidence) appear unfilled, which aligns with this finding. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
- Use mousedown with button check (e.button !== 0) to prevent menu closing on right-click - Add onClick stopPropagation on all context menu divs to prevent event bubbling - Apply uiZoom scaling correction to context menu positioning across Sidebar, TabBar, and WorkspacePanel Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Modal, Toast, and dropdown menus were rendered to document.body via createPortal, bypassing the CSS zoom applied to .app-shell. Now all overlay components portal to #app-overlay-root inside AppShell so they inherit the zoom transform.
Summary
Feature Quality Contract
Verification
bun run verifyfor code changes, including the coverage gate.Risk
allow-cli-core-change.allow-missing-tests.allow-coverage-baseline-change.@dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact.