Repository navigation
test: pin font magnification in the Cloud outline attention test - #15213
Conversation
outlineAttentionTransitions measures the 100% leading slot, but Cloud rows read the global font magnification from UserDefaults.standard when they render. With a leftover 80% in the app-host defaults the dot and content offsets came out exactly 1 to 3 points off. Pin 100% for the test the way attentionPlacement already pins its own percent. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
|
Dogfood build of cmux DEV pr-15213-c15231cc.app The link opens this exact commit in the cmux dev menu bar app. The build starts on each push and the page waits until it is ready; a newer push replaces it. It signs in against production, so Cloud or backend changes still need a tagged build with a development backend. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe attention-layout tests now set font magnification for rendering and restore the prior preference afterward. The outline-transition test renders at 100% magnification. ChangesSidebar attention layout
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~4 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The outline test now renders with the intended 100% magnification and restores the prior setting. No remaining merge-blocking risk is established. 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Merge receipt for |
ba94a13 CI: let Iroh release gate reuse unchanged TUI artifact 71a921c fix(web): stop orphaned Cloud VM alert pages (manaflow-ai#15138) 9971c2c Keep newer iOS connections alive when a recovery is superseded (manaflow-ai#15141) c307ab0 cmux-tui: only connect to derived local sockets served by this user (manaflow-ai#15144) 1220252 codex-teams: keep the watcher's socket password out of its arguments (manaflow-ai#15140) b3a73f0 chatmux-relay: keep cmux-tui sockets and journal cursors private to this user (manaflow-ai#15156) b0d5083 ci: dispatch UI tests from a default-branch workflow; PR CI keeps no write token (manaflow-ai#15226) 1255448 test: fix three app-host tests that keep main red (manaflow-ai#15204) 0fc4975 test: pin the fixture PATH inside the zsh watcher sleep test (manaflow-ai#15237) 758aaeb fix(ios): clear read notifications on foreground return (manaflow-ai#14725) 4c15bb3 cmux-browser: stop requiring GPL for web/package.json (manaflow-ai#15231) 97fe6b4 test: keep the Cloud notification harness workspace unselected (manaflow-ai#15215) 61083e3 test: keep workspace cwd inheritance tests off the shared standard defaults (manaflow-ai#15227) eae4994 Pin password badge actions to their source runtime (manaflow-ai#14921) fd96369 Check the owner of the Claude shim directory in the app, workspace commands and nushell (manaflow-ai#15185) 0ebf8d7 Fix main-thread freeze during SSH paste detection (manaflow-ai#15113) a98c560 test: pin font magnification in the Cloud outline attention test (manaflow-ai#15213)
Summary
CloudSidebarAttentionLayoutTests/outlineAttentionTransitions(width:)checks geometry against the 100% leading slot, but it never set the font magnification. Cloud rows readGlobalFontMagnificationfromUserDefaults.standardwhen they render, so the test depended on whatever the app-host process had stored. In main run 36373808820 the measured offsets (dot center off by about 1.02, content shift off by about 2.05 and 3.05) match an 80% magnification to the pixel.The suite's other test,
attentionPlacement, already saves, sets and restores the percent. This moves that into awithMagnificationhelper and runsoutlineAttentionTransitionsat 100%. Tolerances are unchanged.Testing
Changelog
none
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Pins font magnification in the Cloud outline attention test so its geometry assertions no longer depend on leftover app-host defaults.
Cloud rows read
GlobalFontMagnificationfromUserDefaults.standardwhen they render; a leftover 80% made the measured dot and content offsets come out exactly 1–3 points off. Extracts the save/set/restore logicattentionPlacementalready used into a sharedwithMagnificationhelper and runs the test at 100%. Tolerances are unchanged.Written for commit c15231c. Summary will update on new commits.
Summary by CodeRabbit