Skip to content

fix: keep workspace search filter button on one line - #26580

Merged
OrcaWin merged 1 commit into
stablyai:mainfrom
genni613:dev
Oct 8, 2026
Merged

OrcaWin merged 1 commit into
stablyai:mainfrom
genni613:dev

Conversation

@genni613

@genni613 genni613 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Let the search input grow and shrink within the search box instead of requesting the full row width.
  • Keep the filter button's outer container from shrinking.
  • Use the existing compact Button inside 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:

Before: the Chinese filter label wraps onto two lines

After:

After: the filter label and count fit on one line

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

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.
  • The commit hook's Oxlint, React Doctor, and formatting checks passed.
  • 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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4dce2d1-f064-4d36-9ed9-b7dabea3b999
📥 Commits

Reviewing files that changed from the base of the PR and between 89ba968 and 29bab0c.

📒 Files selected for processing (2)
  • src/renderer/src/components/cmd-j/PaletteFilterMenu.tsx
  • src/renderer/src/components/worktree-jump-palette-surface.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The filter trigger now uses the shared Button component with active and inactive variants. The search input uses flexible sizing classes, and the filter-menu container uses shrink-0.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 29bab

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: keeping the workspace search filter button on one line.
Description check ✅ Passed The description is complete and relevant. It includes the user impact, implementation details, rationale, linked issue, before-and-after visual proof, testing results, AI disclosure, review notes, and…
Linked Issues check ✅ Passed Issue #26583 requires the Chinese filter label and count to remain on one line in workspace search. The changed search input uses min-w-0 flex-1, and the filter container uses shrink-0. The filter…
Out of Scope Changes check ✅ Passed The changes are limited to the workspace search filter trigger and its surrounding layout in PaletteFilterMenu.tsx and worktree-jump-palette-surface.tsx. The shared Button provides the requested…
  • Fix all pre-merge checks with AI
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@OrcaWin

OrcaWin commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

thanks

@OrcaWin
OrcaWin merged commit 81fd59d into stablyai:main Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Chinese filter label wraps onto two lines in workspace search

2 participants