Commit 0645e5a
address Copilot review findings on PR #141
- ARIA tab semantics: move role="tab" onto the label button so nested
interactive elements (dot, close) are siblings of the tabbable element,
not nested inside it. Wrapper is now role="presentation".
- Per-tab status dot: add aria-label that reflects current state and
reconnect action; aria-disabled when inert.
- Toolbar buttons (clear, layout-drawer/dock/popout, close, +): add
explicit aria-label; mark icon SVGs aria-hidden so screen readers
don't try to announce path data.
- Capabilities fetch failures and websocket errors now also write a
red [console] line into the xterm buffer, so a failing session
isn't a silent black void — matches the existing 'err' frame path.
- Dock resize: switch from mouse events to Pointer Events with
setPointerCapture/releasePointerCapture, plus blur and
visibilitychange cleanups. Prevents stuck drag state when the mouse
releases outside the window.
- Fix CSS selector for .xterm height: actual DOM is
.console-xterm-pad > #console-xterm > .console-session-host > .xterm
— old selector skipped the #console-xterm wrapper, so the rule was
inert and the terminal didn't always fill its container.
- Popout templ doc comment was stale (mentioned overriding the close
button); CSS now hides the entire header in popout mode, comment
updated to match.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 94ce533 commit 0645e5a
4 files changed
Lines changed: 93 additions & 33 deletions
File tree
- gearbox
- internal/framework/templates
- components
- pages
- static
- css/components
- js/console
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| 86 | + | |
83 | 87 | | |
84 | | - | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| 95 | + | |
91 | 96 | | |
92 | | - | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
109 | | - | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
252 | 258 | | |
253 | 259 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
240 | 249 | | |
241 | 250 | | |
242 | 251 | | |
| |||
255 | 264 | | |
256 | 265 | | |
257 | 266 | | |
| 267 | + | |
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
| |||
264 | 274 | | |
265 | 275 | | |
266 | 276 | | |
| 277 | + | |
267 | 278 | | |
268 | 279 | | |
269 | 280 | | |
| |||
304 | 315 | | |
305 | 316 | | |
306 | 317 | | |
| 318 | + | |
307 | 319 | | |
308 | 320 | | |
309 | 321 | | |
| |||
399 | 411 | | |
400 | 412 | | |
401 | 413 | | |
| 414 | + | |
402 | 415 | | |
403 | 416 | | |
404 | 417 | | |
405 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
406 | 435 | | |
| 436 | + | |
407 | 437 | | |
408 | 438 | | |
409 | 439 | | |
410 | 440 | | |
| 441 | + | |
411 | 442 | | |
412 | 443 | | |
413 | | - | |
414 | | - | |
| 444 | + | |
| 445 | + | |
415 | 446 | | |
416 | 447 | | |
417 | 448 | | |
418 | 449 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
427 | 458 | | |
428 | 459 | | |
429 | 460 | | |
| |||
665 | 696 | | |
666 | 697 | | |
667 | 698 | | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
668 | 704 | | |
669 | 705 | | |
670 | | - | |
671 | | - | |
| 706 | + | |
672 | 707 | | |
673 | 708 | | |
674 | 709 | | |
| |||
678 | 713 | | |
679 | 714 | | |
680 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
681 | 723 | | |
682 | 724 | | |
683 | | - | |
684 | | - | |
685 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
686 | 728 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
692 | 732 | | |
693 | 733 | | |
694 | 734 | | |
| |||
700 | 740 | | |
701 | 741 | | |
702 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
703 | 748 | | |
704 | 749 | | |
705 | 750 | | |
| |||
0 commit comments