Commit 1b10d08
fix(web): port #10158 to V2 — Usage shortcuts sort the same whatever the binding order
Main's keybindings settings rank the Usage page commands by the page's own
order but left usage.open unranked. An unranked command fell back to an
alphabetical compare, so the comparator was inconsistent and the list
order depended on the input order. With V2's extra default bindings
(threadPanel.toggle, composer.sendAlternate, ...) the settings list put
Open between Tokens and Limits, and main's own test failed on this branch.
usage.open now ranks first, and the test checks both input orders.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 8119814 commit 1b10d08
2 files changed
Lines changed: 18 additions & 7 deletions
File tree
- apps/web/src/components/settings
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
0 commit comments