GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — fix(web): stop the sidebar project menu from highlighting the first project on open by ishaanko · Pull Request #7916 · pingdotgg/t3code Conversation
|
| Before | After |
|---|---|
![]() |
![]() |
Made with Claude Fable 5 in Claude Code.
Note
Low Risk
Single localized focus-handling change in sidebar UI with no auth, data, or API impact.
Overview
Fixes a misleading highlight when opening the sidebar project filter with the mouse: the first project row looked selected even though the cursor was not over it.
Base UI focuses the first tabbable control when the menu opens; in this list that is the per-row settings gear, and focus bubbling into the MenuRadioItem triggered row highlight. The gear’s new onFocus handler detects focus entering from outside the popup (relatedTarget not inside [role="menu"]), stops propagation, and moves focus to the menu container with preventScroll. Tab from a keyboard-highlighted row still reaches the gear; mouse click and existing onPointerDown behavior are unchanged.
Reviewed by Cursor Bugbot for commit 58cd938. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Adds an onFocus handler to the project settings Button in Sidebar.tsx. When focus enters the menu from outside (e.g., on menu open), the handler stops propagation and programmatically focuses the menu container with preventScroll=true, so the first row's gear icon does not receive initial focus. Click handling and tab navigation from a highlighted row are unchanged.
Macroscope summarized 58cd938.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One finding: the fix removes the only keyboard path to per-project settings from this menu. See the inline comment.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Skipped Macroscope did not run approvability analysis for this PR. Macroscope could not determine whether this PR modifies its approvability configuration, so the PR was not approved automatically. A PR that may change the rules that govern approval is never approved automatically. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e03213a to
58cd938
Compare
|
Note 🤖 GPT-5.6 Sol responding on behalf of Theo We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together. Merged PR #5931 replaced the old project If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Sidebar project menu highlights the first project on open without hover
There was an error while loading. Please reload this page.