fix(editor): close the clip picker on an outside click - #464
Conversation
It previously only closed by picking a clip or re-clicking the trigger, matching the mousedown-outside pattern EditorTopBar's LangButton already uses. Covers it with an e2e test.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe clip picker now closes when a mouse click occurs outside its container. End-to-end fixtures and tests cover the multi-clip picker flow and outside-click dismissal. ChangesClip picker behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized UI fix closes the clip picker when users click outside it while preserving existing close and selection behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Summary
mousedown-outside listener scoped to the popover's container, matching the patternLangButtonalready uses inEditorTopBar.tsx.release/v1.10.0for 1.10.0.rc2.Related issue
No linked issue — reported directly in chat.
Type of change
Release impact
Desktop impact
Screenshots / video
UI-only popover behavior change; no visual/styling change. Verified interactively in-browser (see Testing).
Testing
npx tsc --noEmit -p .— clean, no errors.npx biome checkon both changed files — clean.tests/e2e/v4-shell.spec.ts) covering the outside-click case; full suite passes 5/5 (npx playwright test tests/e2e/v4-shell.spec.ts).🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests