Commit 47c36db
design: UX updates to the settings panel in compare mode (opendatahub-io#6924)
* feat(playground): rework settings panel UX for compare mode
- Settings panel now shows config switcher (Chat 1/Chat 2 ToggleGroup) in DrawerHead when multiple configs exist, replacing the header label
- Settings trigger moved from pane header gear icon to a dedicated Settings button in the page header (left of New Chat)
- Settings drawer is now always inline (never overlays) and auto-collapses when compare mode is activated
- Compare mode pane headers show "Chat N | Model [dropdown]"; when settings panel is open the "Model" label is hidden
- Pane display labels updated from "Model N" to "Chat N"
- isDrawerExpanded state lifted to ChatbotMain so the header button can control it
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* feat(playground): highlight active config in compare pane headers
- Lift activeConfigId out of ChatbotSettingsPanel into parent (ChatbotMain/ChatbotPlayground) making it fully controlled via activePaneConfigId
- Settings panel toggle notifies parent via onActiveConfigChange callback
- Remove key-based remount of ChatbotSettingsPanel on config change
- Pane header label turns brand-blue when settings panel is open and this pane's config is active
- Thread isActiveConfig and isSettingsOpen through ComparePaneWrapper → ChatbotPane → ChatbotPaneHeader
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* revert(playground): remove auto-collapse of settings panel on compare mode
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* test(playground): update pane header and pane tests to reflect removed onSettingsClick
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* test(playground): add tests for Settings button in ChatbotHeaderActions
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* feat(playground): add confirmation modal when closing a compare pane
Shows 'Close Chat Compare?' modal with the affected chat label before
removing the pane, preventing accidental loss of configuration.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* fix(playground): accessibility and doc fixes
- Add aria-expanded to Settings button in ChatbotHeaderActions reflecting drawer open state
- Update stale JSDoc on getConfigDisplayLabel to reference 'Chat N' instead of 'Model N'
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* refactor(playground): use DashboardModalFooter in CloseChatCompareModal
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* test(cypress): update compareMode tests for new settings UX
- Replace 'Model N' labels with 'Chat N' throughout
- Remove per-pane settings button assertions (button moved to page header)
- Update closePaneByIndex to confirm the new close comparison modal
- Rewrite Settings Panel Isolation tests to use global Settings button + config switcher toggle
- Add findSettingsButton, findConfigSwitcher, findConfigTab page object methods
- Update openPaneSettings to use new header button + switcher flow
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* test(cypress): fix openPaneSettings for drawer open/close state
- Check if settings panel is already open before toggling
- Use force:true on config tab click to avoid detachment during drawer animation
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* test(cypress): fix findConfigTab to target inner button for aria-pressed check
ToggleGroupItem wraps a button; aria-pressed lives on the button, not the div.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* test(cypress): scope modal-submit-button to close-compare-modal container
Prevents closePaneByIndex from accidentally targeting a submit button in
another open dialog by scoping the lookup within the close-compare-modal.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 8329bce commit 47c36db
13 files changed
Lines changed: 298 additions & 172 deletions
File tree
- packages/gen-ai/frontend/src
- __tests__/cypress/cypress
- pages
- tests/mocked/chatbot
- app/Chatbot
- __tests__
- components
- __tests__
- store
Lines changed: 33 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | 413 | | |
419 | 414 | | |
420 | 415 | | |
| |||
425 | 420 | | |
426 | 421 | | |
427 | 422 | | |
428 | | - | |
| 423 | + | |
429 | 424 | | |
430 | | - | |
| 425 | + | |
431 | 426 | | |
432 | 427 | | |
433 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
434 | 445 | | |
435 | 446 | | |
436 | 447 | | |
| |||
451 | 462 | | |
452 | 463 | | |
453 | 464 | | |
454 | | - | |
| 465 | + | |
455 | 466 | | |
456 | 467 | | |
| 468 | + | |
457 | 469 | | |
458 | 470 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
465 | 482 | | |
466 | 483 | | |
467 | | - | |
| 484 | + | |
468 | 485 | | |
469 | | - | |
470 | 486 | | |
471 | 487 | | |
472 | 488 | | |
| |||
489 | 505 | | |
490 | 506 | | |
491 | 507 | | |
492 | | - | |
493 | | - | |
494 | 508 | | |
495 | 509 | | |
496 | 510 | | |
| |||
Lines changed: 26 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 197 | + | |
201 | 198 | | |
202 | 199 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 200 | + | |
207 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
228 | 225 | | |
229 | 226 | | |
230 | 227 | | |
231 | | - | |
| 228 | + | |
232 | 229 | | |
233 | 230 | | |
234 | | - | |
235 | | - | |
| 231 | + | |
| 232 | + | |
236 | 233 | | |
237 | | - | |
238 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
243 | | - | |
| 241 | + | |
244 | 242 | | |
245 | 243 | | |
246 | | - | |
247 | | - | |
| 244 | + | |
| 245 | + | |
248 | 246 | | |
249 | | - | |
250 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
298 | | - | |
| 297 | + | |
299 | 298 | | |
300 | 299 | | |
301 | | - | |
| 300 | + | |
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
| |||
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
313 | | - | |
| 312 | + | |
314 | 313 | | |
315 | 314 | | |
316 | | - | |
| 315 | + | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| 225 | + | |
| 226 | + | |
222 | 227 | | |
223 | 228 | | |
224 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
0 commit comments