fix(web): make the active command palette row easy to see#26423
Problem
In the command palette's project picker, the active row is hard to distinguish in dark mode. The palette controls its highlight through CommandItem's active prop, which overrides the primitive's data-highlighted styles and leaves only a faint accent background.
Change
Add a 1px inset ring using the theme's focus color to the existing active state. The indicator follows the current highlight logic without changing row dimensions, keyboard behavior, or theme backgrounds. Both normal and virtualized command palette results use this component.
Scope and approval
Fixes #26402.
This qualifies as a very small, focused fix for an obvious visual bug: it makes the existing active-row indicator visible, with no new setting or workflow. The change is confined to the shared web component also used by the desktop renderer.
Verification
Reproduced the faint project highlight on the original source and checked the fix in T3 Browser against an isolated local development instance on Windows. ArrowDown/ArrowUp moved the ring to the active row and removed it from the previous row; Enter opened a draft in the selected project. Computed styles confirmed a 1px inset ring with unchanged row dimensions.
Dark theme, before:
Dark theme, after:
Light theme, before:
Light theme, after:
Passed:
vp fmt --check apps/web/src/components/ui/command.tsxvp lint apps/web/src/components/ui/command.tsxvp run --cache --parallel --concurrency-limit 4 --filter @t3tools/web typecheckvp run knip:check(both passes)git diff --check origin/main
vp run check:changed was interrupted during its initial Git enumeration of ignored files after dependency installation, before its check steps ran. The checks above were run directly instead. Format, lint, and web typecheck also passed after rebasing onto the latest upstream main.
No automated UI test was added, following AGENTS.md's guidance to use before/after captures for purely visual fixes. Native Electron and mobile were not run. The screenshots are GitHub-hosted review artifacts and are not part of the code diff.
Model and harness: GPT-6.1 Sol through the Codex harness in T3 Code.
Fixes pingdotgg/t3code#26402
Checks
Added 1 commit
- fix(web): make the active command palette row easy to seedbfacf0
Approvability
Verdict: Approved at dbfacf0
Macroscope's review found this PR approvable — Adds an inset outline to active command rows, making the current selection easier to see. The change is limited to styling and leaves command selection and execution unchanged.
You can add or adjust custom eligibility rules. Learn more.
No actionable comments were generated in the recent review.
Walkthrough
-
When
CommandItemis active, it now applies an inset ring in the ring color. The existing active background and foreground styles remain unchanged.Changes: Command item styling
Layer / File(s) Summary Add an active-state ring
apps/web/src/components/ui/command.tsxActive CommandItemrows now display an inset ring in the ring color. Existing active background and foreground styles remain unchanged.Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Bug fix · Severity of issue fixed: Low
Suggested labels:
bugfixSuggested reviewers:
rgrvlsk,juliusmarminge
Merge Risk: Minimal · up to 0450f
-
The active command palette row gets a visible ring, which makes it easier to see which item Enter will select. Row dimensions and keyboard behavior are unchanged. The risk of merging is minimal.
Pre-merge checks: 4
-
Check name Status Explanation Title check The title names the main change: it makes the active row in the command palette easier to see. It uses the conventional commit format and stays specific. The changeset adds an inset ring to the active… Description check The description follows the template. It includes Problem, Change, Scope, and Verification sections. The Problem and Change sections explain the faint dark-mode highlight and the 1px inset ring fix. S… Linked Issues check The only directly linked issue is #26402. Its coding requirement is that the highlighted row in the dark-theme command palette project picker be easy to see during arrow-key navigation. The whole-PR d…Out of Scope Changes check The whole-PR diff against the merge base contains one changed line in the shared CommandItem active-state class list. The added ring directly implements the active-row visibility requirement of #26402…Full details: Title check
-
Explanation
The title names the main change: it makes the active row in the command palette easier to see. It uses the conventional commit format and stays specific. The changeset adds an inset ring to the active CommandItem state, which matches the title.
Full details: Description check
-
Explanation
The description follows the template. It includes Problem, Change, Scope, and Verification sections. The Problem and Change sections explain the faint dark-mode highlight and the 1px inset ring fix. Scope links issue 26402 and explains why the change is a small bug fix. Verification lists manual checks, before and after screenshots for both themes, and the static checks that passed. It also states what was not checked. The model and harness line is present.
Full details: Linked Issues check
-
Explanation
The only directly linked issue is
#26402. Its coding requirement is that the highlighted row in the dark-theme command palette project picker be easy to see during arrow-key navigation. The whole-PR diff (merge base to head) changes one line in apps/web/src/components/ui/command.tsx. In CommandItem, the active state now addsring-1 ring-inset ring-ringto the existingbg-accent! text-accent-foreground!classes. The active prop drives this state in the palette, so the ring follows the highlighted row. Ring-inset keeps row dimensions unchanged, and no keyboard logic changed. The issue lists a ring as an acceptable approach. The author's before/after dark and light captures and computed-style checks support the visible result. Automated UI tests are not required by the issue. Related issues#19208and#19903are not linked to this PR and are not assessed. Incremental diff note: the diff from the previous reviewed head shows additional titlebar and backdrop changes in this file. The whole-PR diff does not include them, so they most likely came from the rebase onto upstream main. This is an inference from the diff metadata, not confirmed by history, and it does not affect this requirement.
Full details: Out of Scope Changes check
-
Explanation
The whole-PR diff against the merge base contains one changed line in the shared CommandItem active-state class list. The added ring directly implements the active-row visibility requirement of
#26402. The change does not alter other components, configuration, or workflows. The incremental diff from the previous reviewed head shows titlebar and backdrop changes in command.tsx. These are absent from the whole-PR diff, so they most likely come from the upstream rebase and are not changes introduced by this PR. This inference relies on diff metadata and is not confirmed by commit history.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 62a7108
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
79f336f5-e471-4882-ba8d-9af6d9b1b245
Commits
-
Reviewing files that changed from the base of the PR and between dbfacf0090a1d26a48301a81fa3e7799105c095c and 0450f8538735516a5d1bbb65f4cfd93e328354be.
Files selected for processing: 1
-
apps/web/src/components/ui/command.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.
Recent review info
-
Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 62a7108
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
79f336f5-e471-4882-ba8d-9af6d9b1b245
Commits
-
Reviewing files that changed from the base of the PR and between dbfacf0090a1d26a48301a81fa3e7799105c095c and 0450f8538735516a5d1bbb65f4cfd93e328354be.
Files selected for processing: 1
-
apps/web/src/components/ui/command.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.
-
I do not think this is the way is should be done. Like isn't it just better to increase contrast instead of adding border?
guess will have to wait for maintainers to look at the issue themselves (or with their agents)
Note
Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified as-is at dbfacf0090a1d26a48301a81fa3e7799105c095c on this linux boat vm. no code changes or pushes were needed.
- reproduced the faint active row on
github/main(5ef56853ef1854da50bc1909c6c0a32700f2cb13) in a separate worktree, then stopped that server before running the exact pr head. ranvp iin both checkouts and used isolated runtime state. - drove
/usr/bin/google-chromewith the repo's playwright dependency. created a real git project through the app. opened ctrl+k > "new thread in..." and checked dark and light appearances with the same project and capture dimensions. - the pr adds a visible 1px inset theme-colored ring. the active row remains 558 × 48 css pixels, matching main. arrowdown/arrowup move one ring and clear the previous row. filtering and enter open a draft in the selected project. thread search opens the existing conversation; empty results and escape still work.
- submitted a real codex
gpt-6.1-solturn from that draft through the web client and running server. both commands completed with exit 0, the response rendered in the client, and the checkpoint had no changed files. vp run check:changedpassed throughblacksmith-check: format, lint, both knip passes, and affected typechecks. the first attempt needed the public git history fetched into the worker before it could find the merge base. github ci is also green at the verified head.
runtime transcript:
| 1 | client: localhost:5733 -> server: 127.0.0.1:13773 |
| 2 | provider/model: codex / gpt-6.1-sol |
| 3 | $ pwd |
| 4 | /home/user/main/.t3/projects/palette-verification |
| 5 | exit: 0 |
| 6 | $ git status --short |
| 7 | (empty output) |
| 8 | exit: 0 |
| 9 | assistant: palette provider path verified. |
matching crops of the project picker's selected row, dark before and after:
light before and after:
inspected the captures and checked uploaded mp4 playback and seeking in t3's browser player. the comment embeds the same recording as a gif because github does not render an external mp4 as an image. git.cafe currently displays external media as links; the images render on the github mirror.
Not verified
native electron, macos/windows, ios/android, remote relay/tunnel connections, other providers, and custom themes were not exercised on this linux web verification. the desktop renderer shares this web component, but native shell behavior remains unverified. the discussion's preference for a stronger background rather than a ring remains a design decision for maintainers.
Added 1 commit
- Merge remote-tracking branch 'origin/main' into fix/26402-command-palette-highlight0450f85