Repository navigation
fix: keep workspace search filter button on one line - #26580
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe filter trigger now uses the shared Priority: ⬇️ Low Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The changes are localized layout adjustments, with no concrete regression established in the reviewed changes; mergeability risk is minimal. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
|
thanks |
ELI5
The filter button in workspace search can squeeze its Chinese label onto two lines, making it look crowded inside the search box. This keeps the label and selected-filter count on one line while letting the search field use the remaining space.
What Changed
Buttoninside the popover trigger. It supplies single-line text, consistent spacing, and keyboard focus styling.Why
The input and filter button were competing for horizontal space. Reserving the button's natural width fixes that layout constraint without widening the dialog or choosing a fixed width that depends on the language or filter count. The filter selection and menu behavior stay the same.
Linked Issue
Fixes #26583
Visual Proof
Before:
After:
Testing
Completed on macOS arm64:
ORCA_BACKGROUND_LAUNCH=1 pnpm run typecheck: passed for the Node, CLI, and renderer projects.node config/scripts/check-changed-code-quality.mjs upstream/main: passed, including the changed-lines design-system check.ORCA_BACKGROUND_LAUNCH=1 ORCA_ELECTRON_VITE_TARGET=renderer node config/scripts/run-electron-vite-build.mjs: passed, including the renderer boot-graph check.git diff --check upstream/main...HEAD: passed.No unit tests were added because this changes layout constraints, with no changes to filter state or selection logic. The before-and-after screenshots demonstrate the visual regression.
Manually verified on macOS with the Chinese label and two selected host filters, as shown above. Linux, Windows, and SSH/paired-host runtime checks remain untested. Full lint, unit-test, and desktop-build suites have not been run locally; CI results are still pending.
AI Disclosure
OpenAI Codex (GPT-6 family) assisted with implementation, static review, and this description.
Review
Static review found no actionable issues. This reuses the existing button and preserves the popover event handlers and reference. It adds no platform-specific code and changes no local, SSH, paired-host, agent, integration, or git-provider behavior. It adds no network requests or permission changes and no extra work in the search path. The supplied screenshots show the label fitting on one line; other platforms and visual cases remain untested.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)