Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

fix(web): order every Usage keybinding before sorting by label - #31

Merged
donnes merged 1 commit into
mainfrom
t3code/usage-keybinding-order
Sep 28, 2026
Merged

donnes merged 1 commit into
mainfrom
t3code/usage-keybinding-order

Conversation

@donnes

@donnes donnes commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

The Keybindings page sorts Usage commands by a fixed order and everything else by label, but usage.open was missing from that order. Comparing it by label against ordered Usage commands made the comparator inconsistent, so row order depended on input order: adding any unrelated keybinding command reshuffled the Usage rows and failed the ordering test.

Put usage.open first in the order so every Usage command sorts by it. This also applies upstream and can be sent there on its own.

Verification: vp test run apps/web/src/components/settings/KeybindingsSettings.logic.test.ts

Stack (review bottom-up):

  1. Usage keybinding sort order
  2. Sidebar profile switcher
  3. Icon-rail sidebar
  4. Settings → Profiles
  5. Mobile profile filter (this PR)

Done by Claude Opus 5.5 (1M context) in Claude Code, running in T3 Code.

🤖 Generated with Claude Code

The Keybindings page sorts Usage commands by a fixed order and everything else by label, but
`usage.open` was missing from that order. Comparing it by label against ordered Usage commands made
the comparator inconsistent, so the list order depended on the input order: adding any unrelated
keybinding command reshuffled the Usage rows and failed the ordering test.

Put `usage.open` first in the order so every Usage command sorts by it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS labels Sep 28, 2026
@donnes
donnes merged commit 885a510 into main Sep 28, 2026
15 checks passed
@donnes
donnes deleted the t3code/usage-keybinding-order branch September 28, 2026 20:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant