Skip to content

Lower filter chip contrast to indicate read-only status - #21751

Merged
AmethystLiang merged 4 commits into
mainfrom
lower-filter-contrast
Sep 22, 2026
Merged

AmethystLiang merged 4 commits into
mainfrom
lower-filter-contrast

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​151 $\color{#cf222e}{\Huge{\mathbf{−}}}$​23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​128

Problem

Filter chips in the command palette were styled as high-contrast interactive pills, suggesting users could dismiss them. In reality, the scope is read-only metadata seeded from the sidebar—not a choice made in the palette. This misaligned visual affordance with actual behavior.

Solution

Restyle chips as minimal text-based metadata:

  • Add "Scoped to" label prefix for clarity
  • Replace pill buttons with text display separated by dots (·)
  • Hide dismiss icon by default; show only on hover
  • Remove borders, background colors, and simplify spacing

ELI5

Filter chips now look like information labels instead of buttons, because that's what they are. The UI still lets you clear all filters, but individual chips no longer pretend to be optional selections you made.

What Changed

PaletteFilterChips.tsx: Converted high-contrast pill-style buttons to minimal text-based display with hover-revealed dismiss affordance.

Why

Lower contrast and metadata labeling better communicate that filters are read-only scope information, not user-initiated selections. This frames the UI's actual purpose.

Linked Issue

Fixes #

Visual Proof

N/A: UI refinement visible only when running the app; no automated screenshot capability in this context.

Testing

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

Visual-only change; no new test coverage needed.

AI Disclosure

N/A

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md

Notes

No cross-platform, SSH, mobile, or backward-compatibility impact. Purely a visual refinement.

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)

The scope is seeded from the sidebar, not chosen in the command palette, so the chips should read as metadata rather than action pills offering to undo an action the user never took.

- Redesign chips with reduced visual weight: no border, no background color
- Add "Scoped to" prefix and muted text color to clarify metadata role
- Separate chips with subtle dots instead of relying on spacing
- Hide dismiss icon (X) until hover/focus to further de-emphasize the action
@coderabbitai

coderabbitai Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 6befaa4c-c20d-4f77-a56f-9500478325e4

📥 Commits

Reviewing files that changed from the base of the PR and between 66da752 and 8607536.

📒 Files selected for processing (1)
  • src/renderer/src/components/cmd-j/PaletteFilterChips.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/components/cmd-j/PaletteFilterChips.tsx

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


📝 Walkthrough

Walkthrough

The active-filter row now displays a filter icon and keeps the “Scoped to” label screen-reader-only. Chips use compact text styling with dot separators, horizontal scrolling, reserved dismiss-icon space, truncation, and accent hover and focus backgrounds. English, Spanish, French, Japanese, Korean, and Simplified Chinese locale files add filter-related strings. French also adds “See more”.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 86075

This change restyles command-palette filter metadata and adds translations without an identified correctness, data, security, or availability risk.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem, solution, user impact, and scope. However, the required linked issue is missing, and the visual proof requirement is not satisfied for this UI change. Testing sta… Add the issue number after Fixes #. Attach before-and-after screenshots or a video for the UI change. Record manual testing and state which automated checks were run or explain why they were not run.
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 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: reducing filter-chip contrast to communicate read-only status.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, solution, user impact, and scope. However, the required linked issue is missing, and the visual proof requirement is not satisfied for this UI change. Testing status is also incomplete because the manual-testing checkbox is unchecked and no verification results are provided.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The new localization key worktreeJumpPalette.filter.scopedTo is not in en.json, so the PR's verify:localization-catalog CI step fails (reproduced locally, exit 1). One-line fix below.

Reviewed changes

  • Read-only chip restyle — PaletteFilterChips.tsx chips go from bordered pills to muted text with a "Scoped to" prefix and · separators, matching the read-only scope intent.
  • Hover-revealed dismiss — the X is opacity-0 and only appears on hover/focus, with its layout space reserved so the row does not shift.
  • Contrast inheritance — the container now carries text-[11px] text-muted-foreground (the documented 11px meta pattern), and "Clear all" drops its duplicate text classes.

Automated review by Pullfrog.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

- Add ListFilter icon anchor for better discoverability
- Improve filter chip button styling with better hover/focus states
- Move label to screen reader only for cleaner interface

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 8b2ce46a-b40b-4067-91b5-7ca81cd2e52b

📥 Commits

Reviewing files that changed from the base of the PR and between bfa174d and 1de1065.

📒 Files selected for processing (1)
  • src/renderer/src/components/cmd-j/PaletteFilterChips.tsx

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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The localization key this PR introduces is still missing from en.json, so the static analysis job fails at Verify localization catalog. One-line fix inline.

Reviewed changes

  • Filter indicator icon — added a ListFilter anchor with an sr-only "Scoped to" label, replacing the previously visible label text.
  • Chip restyle — chip buttons now set text-foreground at rest with hover:bg-accent / focus-visible:bg-accent, and use px-1.
  • Separators — chips are wrapped in keyed fragments with a · separator rendered only between entries.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Refine filter chip styling with adjusted height, padding, and colors to de-emphasize read-only state. Add "scoped to" label and complete internationalization coverage across all locales.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Both previously flagged blockers are fixed in 66da752: the chip is back to muted-at-rest contrast, and the missing localization key now resolves. verify:localization-catalog exits 0 and check:code-quality:changed reports 0 findings.

Reviewed changes

  • Chip contrast restored — chip button returns to text-muted-foreground at rest with hover:text-foreground, so the read-only metadata framing now matches the PR title.
  • Chip metrics adjusted — h-5/px-1 back to h-6/px-1.5; the truncate span gains min-w-0.
  • Localization completed — worktreeJumpPalette.filter.scopedTo added to en.json and translated in es/fr/ja/ko/zh; the full filter block added to es/ja/ko/zh and seeMore to fr.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@AmethystLiang
AmethystLiang merged commit 9d4039b into main Sep 22, 2026
6 of 22 checks passed
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.

1 participant