Commit 69130e2
committed
Combobox/Select review fixes: open-on-chevron race, snug popup, full-height hit area, dev auto-load
From the live review of the dropdown work:
- `ui/Combobox`: stop hand-controlling `open`. Ark's machine owns it via `openOnClick` (click text opens, chevron toggles, typing opens). The old focus-driven `open` raced the trigger's own toggle (the trigger focuses the input, which reopened it just as the toggle closed it), so the first chevron click flashed the list shut.
- The loading spinner is now a non-interactive overlay (`position: absolute` + `pointer-events: none`) instead of a flex child, so a click on it falls through to the input and still opens the list on the first try.
- The chevron `Trigger` stretches to full height with wider padding: the whole right side is the hit area, not just the icon.
- Tighten the popup gutter to 2px on both `ui/Select` and `ui/Combobox` so the list sits snug under the field (was Ark's 8px default).
- `AiCloudSection` on-open model load now fires in dev and prod, suppressed only in automated E2E (was prod-only, so dev needed a manual "Test connection"). Cache hits still serve everywhere.
- `CloudProviderSetup.test.ts`: focus the model input for real (`.focus()` + `focusin`) before typing; the combobox machine only processes input once focused, and a synthetic `focus` event doesn't drive it there like a user does.1 parent 4a9aa71 commit 69130e2
4 files changed
Lines changed: 31 additions & 31 deletions
File tree
- apps/desktop/src/lib
- onboarding
- settings/sections
- ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
350 | 354 | | |
351 | 355 | | |
352 | 356 | | |
| |||
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
170 | 168 | | |
171 | 169 | | |
172 | 170 | | |
| |||
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | | - | |
66 | | - | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | | - | |
81 | 77 | | |
| 78 | + | |
| 79 | + | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
85 | | - | |
86 | 83 | | |
87 | 84 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 85 | + | |
96 | 86 | | |
97 | 87 | | |
98 | 88 | | |
| |||
136 | 126 | | |
137 | 127 | | |
138 | 128 | | |
| 129 | + | |
139 | 130 | | |
140 | 131 | | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
144 | 135 | | |
145 | 136 | | |
146 | | - | |
147 | 137 | | |
148 | 138 | | |
149 | 139 | | |
| |||
171 | 161 | | |
172 | 162 | | |
173 | 163 | | |
| 164 | + | |
| 165 | + | |
174 | 166 | | |
175 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
176 | 170 | | |
177 | 171 | | |
| 172 | + | |
178 | 173 | | |
179 | 174 | | |
180 | 175 | | |
181 | 176 | | |
| 177 | + | |
182 | 178 | | |
183 | | - | |
| 179 | + | |
184 | 180 | | |
185 | 181 | | |
186 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments