@filipgutica/design-system 1.0.45 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,9 @@
7
7
  <style>
8
8
  /*
9
9
  * Component catalogue. Plain HTML and CSS on tokens.css; no framework or build step.
10
- * components.md specifies each component; copy markup and styles from here.
10
+ * components.md specifies each component; copy markup and styles from here. The conversation
11
+ * components' rules live in conversation.css, and the badge's and alert's in feedback.css; this page
12
+ * links both after this stylesheet.
11
13
  *
12
14
  * Pinned states: the first specimen in each row is live. The others pin one state so it
13
15
  * renders without a pointer or keyboard: .is-hover, .is-active (pressed), and .is-focus
@@ -71,11 +73,14 @@
71
73
  The tint mixes currentColor, so it reads on a light panel and on a dark plate.
72
74
  The recipe centres its content, so an icon-only action's SVG sits on the box centre. Use an SVG icon,
73
75
  never a text glyph such as ×: a font draws a glyph's ink off its box centre.
74
- :where keeps the base below each component's own size and layout. */
76
+ :where keeps the base below each component's own size and layout. conversation.css ships the same recipe. */
75
77
  :where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
76
78
  .quiet-action.is-hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); }
77
79
  @media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); } }
78
80
  .quiet-action:is(:active, .is-active):where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
81
+ /* conversation.css ships the quiet action's hover rule and loads after this page's rules, so the pressed pin on a specimen takes
82
+ one more class to stay above it while the pointer is over the specimen, as a real press stays above hover. */
83
+ .state .quiet-action.is-active:where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
79
84
  .quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
80
85
 
81
86
  /* Fields: input, textarea, select */
@@ -177,7 +182,8 @@
177
182
  :where(.overflow) > .quiet-action { color: var(--color-muted); }
178
183
  /* The More icon is three round dots: zero-length strokes with the icon's round caps. */
179
184
  .overflow > .quiet-action .icon { stroke-width: 3; }
180
- :where(.overflow > .quiet-action[aria-expanded="true"]) { background: color-mix(in srgb, currentColor 6%, transparent); }
185
+ /* One class, so it outranks the quiet action's zero-specificity base in conversation.css, which loads after this page's rules. */
186
+ :where(.overflow) > .quiet-action:where([aria-expanded="true"]) { background: color-mix(in srgb, currentColor 6%, transparent); }
181
187
  .menu-list { position: absolute; z-index: 3; top: 100%; right: 0; display: grid; min-width: 180px; margin-top: var(--space-1); padding: var(--space-1); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface-raised); box-shadow: var(--shadow-dialog); }
182
188
  .menu-list.is-static { position: static; margin-top: 0; }
183
189
  .menu-list.is-above { top: auto; bottom: 100%; margin: 0 0 var(--space-1); }
@@ -360,22 +366,7 @@
360
366
  .tabpanel { padding-top: var(--space-3); font-size: var(--text-sm); color: var(--color-muted); }
361
367
  .tabs-heading { margin-bottom: var(--space-1); color: var(--color-text); font-size: var(--text-md); font-weight: var(--weight-medium); letter-spacing: 0; }
362
368
 
363
- /* Badge */
364
- .badge { display: inline-flex; align-items: center; gap: var(--space-1); width: fit-content; padding: 0.125rem 0.375rem; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--color-surface-muted); color: var(--color-muted); font: var(--weight-medium) var(--text-xs) / 1.25 var(--font-ui); white-space: nowrap; }
365
- .badge:is(.success, .warning, .danger, .info) { background: color-mix(in srgb, var(--tone) 22%, var(--color-surface-raised)); color: light-dark(color-mix(in srgb, var(--tone) 75%, var(--color-status-ink)), color-mix(in srgb, var(--tone) 85%, var(--color-status-ink))); }
366
- .badge:is(.success, .warning, .danger, .info)::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
367
- .badge.success { --tone: var(--color-success); }
368
- .badge.warning { --tone: var(--color-warning); }
369
- .badge.danger { --tone: var(--color-error); }
370
- .badge.info { --tone: var(--color-info); }
371
-
372
- /* Alert */
373
- .alert { display: flex; align-items: flex-start; gap: var(--space-3); max-width: var(--measure); padding: var(--space-3) var(--space-4); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface); color: var(--color-text); font-size: var(--text-sm); }
374
- .alert .icon { margin-top: 0.125rem; color: var(--color-muted); }
375
- .alert.success { background: var(--color-success-surface); } .alert.success .icon { color: var(--color-success); }
376
- .alert.warning { background: var(--color-warning-surface); } .alert.warning .icon { color: var(--color-warning); }
377
- .alert.danger { background: var(--color-error-surface); } .alert.danger .icon { color: var(--color-error); }
378
- .alert.info { background: var(--color-info-surface); } .alert.info .icon { color: var(--color-info); }
369
+ /* Badge and alert: feedback.css draws them, and this page links it after this stylesheet. */
379
370
 
380
371
  /* Surface and card */
381
372
  .surface, .card { min-width: 0; border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface-raised); box-shadow: var(--shadow-surface); }
@@ -602,7 +593,7 @@
602
593
  .skip:focus { top: var(--space-4); }
603
594
  .skip.is-focus { position: static; outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
604
595
  /* List selection */
605
- .rows { display: grid; width: min(100%, 360px); }
596
+ .rows[role="listbox"] { width: min(100%, 360px); }
606
597
  .rows [role="option"] { position: relative; display: flex; align-items: center; min-height: var(--row); padding: 0 var(--space-3); border-radius: var(--radius-inline); font-size: var(--text-sm); }
607
598
  /* Dividers are straight lines inset by the row padding, so they never follow a rounded corner.
608
599
  A filled row (hovered or selected) hides the divider above it and the one below it. */
@@ -617,71 +608,26 @@
617
608
  @media (forced-colors: active) { .rows [role="option"][aria-selected="true"] { border-inline-start: 2px solid Highlight; } }
618
609
 
619
610
  /* ---------- Conversation ---------- */
620
- /* Message rows: flat, with no bubble. A group is one author's consecutive messages: the first row shows the
621
- avatar, name, and time; continuation rows show their time in the avatar column on hover or focus within. */
622
- .stream { display: grid; margin: 0; padding: 0; list-style: none; }
623
- .day { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0 var(--space-1); color: var(--color-muted); font-size: var(--text-xs); font-weight: var(--weight-medium); }
624
- .day::before, .day::after { content: ""; flex: 1; border-top: 1px solid var(--color-border-subtle); }
625
- .msg { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: var(--space-3); padding: 0.375rem var(--space-2); border-radius: var(--radius-inline); transition: background-color var(--duration-fast) var(--ease-out); }
626
- .msg.cont { padding-top: 0.125rem; }
627
- .msg + .msg:not(.cont) { margin-top: var(--space-2); }
611
+ /* conversation.css draws the conversation components, and this page links it after this stylesheet. The rules
612
+ here pin the specimens' states and frame them. Each pin outranks the rule it pins by specificity, and the
613
+ hover pin on a message row ties with the selected fill, which conversation.css sets later, so the fill stays. */
628
614
  .msg.is-hover { background: color-mix(in srgb, var(--color-row-hover) 55%, transparent); }
629
- @media (hover: hover) { .msg:hover { background: color-mix(in srgb, var(--color-row-hover) 55%, transparent); } }
630
- /* The open thread's message: the selected fill, kept under hover. */
631
- .msg[aria-current="true"] { background: var(--color-nav-current); }
632
- .avatar { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-inline); background: var(--color-surface-muted); color: var(--color-muted); font: var(--weight-semibold) var(--text-xs) / 1 var(--font-mono); }
633
- .gutter { align-self: start; padding-top: 0.25rem; color: var(--color-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; text-align: end; opacity: 0; }
634
- .msg.cont:is(:focus-within, .is-hover, .is-focus) .gutter { opacity: 1; }
635
- @media (hover: hover) { .msg.cont:hover .gutter { opacity: 1; } }
636
- .msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); line-height: 1.3; }
637
- .author { font-weight: var(--weight-semibold); }
638
- .author.agent { font-family: var(--font-mono); font-size: var(--text-sm); }
639
- .msg-head time { color: var(--color-muted); font-size: var(--text-xs); }
640
- .tag { color: var(--color-nav-current-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
641
- .msg-body { max-width: var(--measure); }
642
- .msg-body > * + * { margin-top: var(--space-1); }
643
- /* Mention: an inline tint around @name. It is static text, not a link. */
644
- .mention { padding: 0 0.1875rem; border-radius: var(--radius-mark); background: var(--color-nav-current); color: var(--color-nav-current-text); font-weight: var(--weight-medium); }
645
-
646
- /* Hover toolbar: a floating strip at the row's top right. Its buttons sit 4px inside its outer edge, so their
647
- corners are the strip's 12px minus 4px. It shows on hover or focus within, and never on a touch screen. */
648
- .msg-tools { position: absolute; top: -0.875rem; right: var(--space-2); z-index: 2; display: flex; gap: 0.125rem; padding: calc(var(--space-1) - 1px); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface-raised); box-shadow: var(--shadow-dialog); opacity: 0; pointer-events: none; }
649
- .msg:is(:focus-within, .is-hover, .is-focus) > .msg-tools { opacity: 1; pointer-events: auto; }
615
+ .msg.cont:is(.is-hover, .is-focus) .gutter { opacity: 1; }
616
+ .msg:is(.is-hover, .is-focus) > .msg-tools { opacity: 1; pointer-events: auto; }
650
617
  .msg-tools.is-static { position: static; width: max-content; opacity: 1; }
651
- @media (hover: hover) { .msg:hover > .msg-tools { opacity: 1; pointer-events: auto; } }
652
- /* Comes after .overflow > .quiet-action at the same specificity, so the More trigger takes the strip's size too. */
653
- .msg-tools .quiet-action { width: 1.5rem; height: 1.5rem; padding: 0; border-radius: var(--radius-inline); }
654
- /* :where keeps the muted rest below the quiet action's hover colour. */
655
- :where(.msg-tools) .quiet-action { color: var(--color-muted); }
656
- /* Inset: the strip is tight, so an outer ring would cross its edge. */
657
- .msg-tools .quiet-action:is(:focus-visible, .is-focus) { outline-offset: calc(var(--focus-width) * -1); }
658
-
659
- /* Tool-call disclosure: one quiet summary line; the detail opens in a box on the surface colour. */
660
- .tool > summary { display: inline-flex; align-items: baseline; gap: var(--space-2); margin-inline-start: calc(var(--space-1) * -1); padding: 0.125rem var(--space-1); border-radius: var(--radius-inline); color: var(--color-muted); font-size: var(--text-sm); list-style: none; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
661
- .tool > summary::-webkit-details-marker { display: none; }
662
- .tool > summary::before { content: ""; flex: none; align-self: flex-start; width: 0.3125rem; height: 0.3125rem; margin-top: 0.5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--duration-fast) var(--ease-out); }
663
- .tool[open] > summary::before { transform: rotate(45deg); }
664
- .tool > summary.is-hover { background: var(--color-row-hover); color: var(--color-text); }
665
- @media (hover: hover) { .tool > summary:hover { background: var(--color-row-hover); color: var(--color-text); } }
666
- .tool > summary b { color: var(--color-text); font-weight: var(--weight-medium); }
667
- .tool-body { margin-top: var(--space-1); padding: var(--space-2) var(--space-3); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface); font-size: var(--text-sm); }
668
- .tool-body ul { display: grid; gap: 0.125rem; margin: 0; padding-inline-start: var(--space-4); }
669
-
670
- /* Composer: one field with an inline round send button 6px inside its outer edge, clear of the box's 12px
671
- corner. The box takes the field look and focus; the textarea inside it draws nothing. */
672
- .composer { display: grid; gap: var(--space-1); width: 100%; }
673
- .composer-box { display: flex; align-items: flex-end; gap: var(--space-2); padding: 0.3125rem; padding-inline-start: var(--space-3); border: 1px solid var(--color-field-edge); border-radius: var(--radius-panel); background: var(--color-field-bg); box-shadow: var(--shadow-field); }
674
- /* The padding centres one line in --control-sm; each further line adds a line, up to 10rem. */
675
- .composer-box textarea { flex: 1 1 0; min-width: 0; min-height: var(--control-sm); max-height: 10rem; padding: calc((var(--control-sm) - 1lh) / 2) 0; border: 0; outline: 0; resize: none; field-sizing: content; background: transparent; color: var(--color-text); font: var(--text-md) / 1.45 var(--font-ui); overflow-wrap: anywhere; }
676
- .composer-box textarea::placeholder { color: var(--color-muted); opacity: 1; }
677
- .composer-box:is(:has(textarea:focus-visible), .is-focus) { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
678
- .composer-box:has(textarea[aria-invalid="true"]) { border-color: var(--color-error); }
679
- .composer-box:has(textarea[aria-invalid="true"]):is(:has(textarea:focus-visible), .is-focus) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
680
- .composer-box:has(textarea:disabled) { background: var(--color-well); box-shadow: none; }
681
- .composer-box textarea:disabled { opacity: 0.58; cursor: not-allowed; }
682
- .composer-hint { color: var(--color-muted); font-size: var(--text-xs); }
683
-
684
- /* Thread panel: a side pane whose start edge is a resize handle. The catalogue frames it beside a channel column. */
618
+ .msg-tools .quiet-action.is-focus { outline-offset: calc(var(--focus-width) * -1); }
619
+ :is(.tool, .answered) > summary.is-hover { background: var(--color-row-hover); color: var(--color-text); }
620
+ .answered > summary.is-focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
621
+ .rows > li.is-hover { background: var(--color-row-hover); }
622
+ .rows > li.is-focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
623
+ /* The app bar's frame: a phone-width screen top. conversation.css hides the bar above tablet width, so the frame shows it. */
624
+ .appbar-demo { width: min(100%, 24rem); overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-panel); background: var(--color-bg); }
625
+ .appbar-demo .appbar { display: flex; border-bottom: 0; }
626
+ .composer-box.is-focus { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
627
+ .composer-box.is-focus:has(textarea[aria-invalid="true"]) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
628
+ .pane-resize.is-hover { background: color-mix(in srgb, var(--color-accent) 40%, transparent); }
629
+ .pane-resize.is-focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
630
+ /* The thread panel's frame: a channel column beside the pane, as an application lays them out. */
685
631
  .thread-demo { --pane: 26rem; display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, var(--pane)); width: 100%; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-panel); background: var(--color-bg); }
686
632
  /* A frame too narrow for a 16rem channel beside a 20rem pane stacks them, as the tablet layout does. */
687
633
  .state:has(> .thread-demo) { container-type: inline-size; }
@@ -691,25 +637,11 @@
691
637
  .thread-demo .pane-resize { display: none; }
692
638
  }
693
639
  .thread-demo > .stream { align-content: start; padding: var(--space-5) var(--space-3); }
694
- .thread-pane { position: relative; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--color-border-subtle); }
695
- /* A touch screen never shows the hover toolbar, at any width: a tap opens the thread, whose header holds More. */
696
- @media (hover: none) { .msg-tools { display: none; } }
697
- .pane-resize { position: absolute; inset: 0 auto 0 -0.1875rem; z-index: 3; width: 0.375rem; cursor: col-resize; }
698
- .pane-resize.is-hover, .pane-resize:focus-visible { background: color-mix(in srgb, var(--color-accent) 40%, transparent); }
699
- @media (hover: hover) { .pane-resize:hover { background: color-mix(in srgb, var(--color-accent) 40%, transparent); } }
700
- /* Inset: the frame clips the handle's ends. */
701
- .pane-resize:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
702
- .pane-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--control-touch); padding: 0 var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--color-border-subtle); }
703
- .pane-head h4 { display: flex; align-items: baseline; gap: var(--space-2); font-size: var(--text-md); letter-spacing: 0; }
704
- .pane-head h4 span { color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--weight-regular); }
705
- .pane-body { flex: 1; padding: var(--space-5) var(--space-2) var(--space-3); }
706
- .reply-count { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0 var(--space-2); color: var(--color-muted); font-size: var(--text-xs); }
707
- .reply-count::after { content: ""; flex: 1; border-top: 1px solid var(--color-border-subtle); }
708
- .thread-pane > .composer { padding: 0 var(--space-3) var(--space-3); }
709
- .msg-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
710
640
  /* Catalogue specimens: a stream leaves room above its first row for the toolbar, and a handle sits on a pane edge. */
711
641
  .state > .stream { width: min(100%, 36rem); padding-top: var(--space-4); }
642
+ .state > ul.rows { width: min(100%, 36rem); }
712
643
  .state > .composer { width: 22rem; max-width: 100%; }
644
+ .state > .pane-head { width: 24rem; max-width: 100%; }
713
645
  .state > .tool { max-width: 30rem; }
714
646
  .chip-stage { display: grid; justify-items: center; gap: var(--space-3); width: min(100%, 36rem); }
715
647
  .handle-specimen { position: relative; width: 6rem; height: 4rem; border-left: 1px solid var(--color-border-subtle); }
@@ -907,7 +839,7 @@
907
839
 
908
840
  @media (forced-colors: active) {
909
841
  /* The inset accent line drops, so a focused field draws the system ring just inside its edge. */
910
- :is(.input, .select, .textarea):is(:focus-visible, .is-focus), .search:is(:has(input:focus-visible), .is-focus), .number-field:is(:has(input:focus-visible), .is-focus), .composer-box:is(:has(textarea:focus-visible), .is-focus) { outline: var(--focus-width) solid Highlight; outline-offset: -1px; }
842
+ :is(.input, .select, .textarea):is(:focus-visible, .is-focus), .search:is(:has(input:focus-visible), .is-focus), .number-field:is(:has(input:focus-visible), .is-focus), .composer-box.is-focus { outline: var(--focus-width) solid Highlight; outline-offset: -1px; }
911
843
  /* The lifted fill drops, so the selected tab takes a system border; the padding absorbs it. */
912
844
  .tab[aria-selected="true"] { border: 2px solid Highlight; padding-inline: calc(var(--tab-pad) - 2px); }
913
845
  .tab[aria-selected="true"]::before { content: none; }
@@ -936,12 +868,6 @@
936
868
  /* A rail's current section has no pip, so it takes the current page's system border. */
937
869
  :is(.rail, .rail-specimen) a[aria-current="location"] { border-inline-start: 2px solid Highlight; padding-inline-start: calc(var(--space-3) - 2px); }
938
870
  .key { border-color: CanvasText; }
939
- /* The open thread's message loses its fill, so it takes the list selection's system border; the padding absorbs it. */
940
- .msg[aria-current="true"] { border-inline-start: 2px solid Highlight; padding-inline-start: calc(var(--space-2) - 2px); }
941
- /* The tone dot is a fill, so it opts out of adjustment and takes the label's system colour. */
942
- .badge:is(.success, .warning, .danger, .info)::before { forced-color-adjust: none; background: CanvasText; }
943
- /* An SVG keeps the colour it sets, so the status icon takes the system text colour. */
944
- .alert .icon, .alert:is(.success, .warning, .danger, .info) .icon { color: CanvasText; }
945
871
  .coverage td { color: CanvasText; }
946
872
  /* Value marks: only the mark opts out of adjustment and redraws in the system highlight. */
947
873
  .progress > span, .score .pips i.on { forced-color-adjust: none; border-color: Highlight; background: Highlight; }
@@ -999,7 +925,8 @@
999
925
  .note { max-width: var(--measure); color: var(--color-muted); font-size: var(--text-sm); }
1000
926
  .row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-2) var(--space-6); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border-subtle); }
1001
927
  .row:last-child { border-bottom: 0; }
1002
- .row h4 { padding-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: 0; }
928
+ /* A row's label. :where keeps the rule's specificity, so it stays out of the thread panel's header, which conversation.css draws. */
929
+ .row h4:not(:where(.pane-head h4)) { padding-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: 0; }
1003
930
  .states { display: flex; flex-wrap: wrap; align-items: start; gap: var(--space-4) var(--space-6); min-width: 0; }
1004
931
  /* The column may shrink below a specimen's content, so a scrolling tab list scrolls instead of widening the page. */
1005
932
  .state { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); align-content: start; justify-items: start; min-width: 0; max-width: 100%; }
@@ -1105,13 +1032,8 @@
1105
1032
  .wrap-toggle { width: var(--control-touch); }
1106
1033
  .close, .copy, .full, .projects > summary, .page-head .strip a, .wrap-toggle { min-height: var(--control-touch); }
1107
1034
  .chip { min-height: var(--control-touch); }
1108
- /* Touch: the hover toolbar never shows; a tap opens the thread, whose header holds More. */
1109
- .msg-tools { display: none; }
1110
- .composer-box textarea { min-height: var(--control-touch); padding-block: calc((var(--control-touch) - 1lh) / 2); }
1111
- /* The thread pane takes the full width below the message list, and the handle hides. */
1035
+ /* The thread frame stacks the pane below the channel; conversation.css hides the toolbar and the handle. */
1112
1036
  .thread-demo { grid-template-columns: minmax(0, 1fr); }
1113
- .thread-pane { border-left: 0; border-top: 1px solid var(--color-border-subtle); }
1114
- .pane-resize { display: none; }
1115
1037
  .crumbs a, .group-toggle { min-height: var(--control-touch); }
1116
1038
  .intro > .crumbs > ol { margin-block: calc((1lh - var(--control-touch)) / 2) calc((var(--control-touch) - 1lh) / 2); }
1117
1039
  .display-title { font-size: var(--text-display-sm); }
@@ -1146,6 +1068,8 @@
1146
1068
  .cmdlist td:last-child { grid-column: 2; grid-row: 1 / span 2; }
1147
1069
  }
1148
1070
  </style>
1071
+ <link rel="stylesheet" href="feedback.css">
1072
+ <link rel="stylesheet" href="conversation.css">
1149
1073
 
1150
1074
  <svg width="0" height="0" style="position:absolute" aria-hidden="true">
1151
1075
  <symbol id="i-search" viewBox="0 0 16 16"><circle cx="7" cy="7" r="4.5"/><path d="M10.5 10.5 14 14"/></symbol>
@@ -1223,15 +1147,15 @@
1223
1147
  </div>
1224
1148
  <div class="navlist" role="group" aria-labelledby="rail-data-display">
1225
1149
  <span class="group-label" id="rail-data-display">Data display</span>
1226
- <a href="#description-list" data-terms="description list data display the details of one record as term and value pairs. dl key value details properties">Description list</a><a href="#stat-tile" data-terms="stat tile data display a headline count with its label and context. kpi metric number summary dashboard">Stat tile</a>
1150
+ <a href="#description-list" data-terms="description list data display the details of one record as term and value pairs. dl key value details properties">Description list</a><a href="#stat-tile" data-terms="stat tile data display a headline count with its label and context. kpi metric number summary dashboard">Stat tile</a><a href="#list-row" data-terms="list row data display one line per item in a list to scan, such as todos or work items. todo work item rows ellipsis">List row</a>
1227
1151
  </div>
1228
1152
  <div class="navlist" role="group" aria-labelledby="rail-navigation">
1229
1153
  <span class="group-label" id="rail-navigation">Navigation</span>
1230
- <a href="#navigation-list" data-terms="navigation list navigation rows of links with current page and current location. nav menu sidebar rail toc contents strip">Navigation list</a><a href="#section-rail" data-terms="section rail navigation a sticky list of sections that moves into a drawer on phones. sidebar on this page toc contents scroll spy">Section rail</a><a href="#find-field" data-terms="find field navigation filter a navigation list as you type. search filter shortcut slash">Find field</a><a href="#breadcrumbs" data-terms="breadcrumbs navigation the path from the site to this page. crumbs hierarchy back path">Breadcrumbs</a><a href="#pager" data-terms="pager navigation previous and next pages in a sequence. pagination prev next sequence">Pager</a><a href="#tabs" data-terms="tabs navigation switch panels about one object, without leaving the page. tablist panels">Tabs</a><a href="#skip-link" data-terms="skip link navigation jump past the header to the content. skip to content a11y bypass">Skip link</a><a href="#keyboard-key" data-terms="keyboard key navigation show a key or shortcut in text. kbd shortcut hotkey">Keyboard key</a>
1154
+ <a href="#navigation-list" data-terms="navigation list navigation rows of links with current page and current location. nav menu sidebar rail toc contents strip">Navigation list</a><a href="#section-rail" data-terms="section rail navigation a sticky list of sections that moves into a drawer on phones. sidebar on this page toc contents scroll spy">Section rail</a><a href="#find-field" data-terms="find field navigation filter a navigation list as you type. search filter shortcut slash">Find field</a><a href="#breadcrumbs" data-terms="breadcrumbs navigation the path from the site to this page. crumbs hierarchy back path">Breadcrumbs</a><a href="#pager" data-terms="pager navigation previous and next pages in a sequence. pagination prev next sequence">Pager</a><a href="#tabs" data-terms="tabs navigation switch panels about one object, without leaving the page. tablist panels">Tabs</a><a href="#skip-link" data-terms="skip link navigation jump past the header to the content. skip to content a11y bypass">Skip link</a><a href="#keyboard-key" data-terms="keyboard key navigation show a key or shortcut in text. kbd shortcut hotkey">Keyboard key</a><a href="#app-bar" data-terms="app bar navigation the view’s name and the menu at tablet width, in place of the sidebar. phone header top bar menu hamburger">App bar</a>
1231
1155
  </div>
1232
1156
  <div class="navlist" role="group" aria-labelledby="rail-conversation">
1233
1157
  <span class="group-label" id="rail-conversation">Conversation</span>
1234
- <a href="#message-row" data-terms="message row conversation one message: avatar, author, time, and body, with no bubble. chat post comment reply">Message row</a><a href="#message-group" data-terms="message group conversation consecutive messages by one author under one avatar. chat continuation day divider">Message group</a><a href="#hover-toolbar" data-terms="hover toolbar conversation quick actions on a message, shown on hover or focus. message actions reply">Hover toolbar</a><a href="#thread-panel" data-terms="thread panel conversation a resizable side pane with a message and its replies. thread replies side pane split resize">Thread panel</a><a href="#composer" data-terms="composer conversation one growing field with an inline send button. message input chat box send reply">Composer</a><a href="#tool-call-disclosure" data-terms="tool-call disclosure conversation a collapsed one-line summary of tool output or a handoff note. details collapse expand log handoff">Tool-call disclosure</a><a href="#mention" data-terms="mention conversation an inline @name in a message. at name user">Mention</a>
1158
+ <a href="#message-row" data-terms="message row conversation one message: avatar, author, time, and body, with no bubble. chat post comment reply">Message row</a><a href="#message-group" data-terms="message group conversation consecutive messages by one author under one avatar. chat continuation day divider">Message group</a><a href="#message-body" data-terms="message body conversation a message’s markdown, drawn as text: lists, code, quotes, links, and tables. markdown code block table task list">Message body</a><a href="#answer-actions" data-terms="answer actions conversation yes, no, and reply under a question that waits for the reader. needs you quick reply answered">Answer actions</a><a href="#hover-toolbar" data-terms="hover toolbar conversation quick actions on a message, shown on hover or focus. message actions reply">Hover toolbar</a><a href="#thread-panel" data-terms="thread panel conversation a resizable side pane with a message and its replies. thread replies side pane split resize">Thread panel</a><a href="#composer" data-terms="composer conversation one growing field with an inline send button. message input chat box send reply">Composer</a><a href="#tool-call-disclosure" data-terms="tool-call disclosure conversation a collapsed one-line summary of tool output or a handoff note. details collapse expand log handoff">Tool-call disclosure</a><a href="#mention" data-terms="mention conversation an inline @name in a message. at name user">Mention</a>
1235
1159
  </div>
1236
1160
  <div class="navlist" role="group" aria-labelledby="rail-code">
1237
1161
  <span class="group-label" id="rail-code">Code and examples</span>
@@ -1267,9 +1191,9 @@
1267
1191
  <div><h3><a href="#group-inputs">Inputs</a></h3><ul><li><a href="#text-input-and-textarea">Text input and textarea</a><span>Type a short value or a longer note.</span></li><li><a href="#select">Select</a><span>Choose from a longer list.</span></li><li><a href="#combobox">Combobox</a><span>Choose one value from a long list by typing to filter it.</span></li><li><a href="#number-field">Number field</a><span>Enter an exact amount, with steps and a unit.</span></li><li><a href="#field-wrapper">Field wrapper</a><span>Label, description, and error text around a field.</span></li><li><a href="#slider">Slider</a><span>Set a value in a range.</span></li></ul></div>
1268
1192
  <div><h3><a href="#group-feedback">Feedback and status</a></h3><ul><li><a href="#progress">Progress</a><span>Show how far a task has got.</span></li><li><a href="#score">Score</a><span>Show a value out of a maximum.</span></li><li><a href="#badge">Badge</a><span>A short status label.</span></li><li><a href="#alert">Alert</a><span>A real caveat or status message in the page.</span></li></ul></div>
1269
1193
  <div><h3><a href="#group-containers">Containers and overlays</a></h3><ul><li><a href="#surface-and-card">Surface and card</a><span>Panels and cards for parallel, comparable content.</span></li><li><a href="#figure">Figure</a><span>An image or diagram with a caption.</span></li><li><a href="#dialog">Dialog</a><span>A modal task that needs an answer before the page continues.</span></li><li><a href="#drawer">Drawer</a><span>Navigation in a panel from the leading edge, such as phone navigation.</span></li><li><a href="#slideout">Slideout</a><span>A modal panel from an edge for filters and secondary detail.</span></li></ul></div>
1270
- <div><h3><a href="#group-data-display">Data display</a></h3><ul><li><a href="#description-list">Description list</a><span>The details of one record as term and value pairs.</span></li><li><a href="#stat-tile">Stat tile</a><span>A headline count with its label and context.</span></li></ul></div>
1271
- <div><h3><a href="#group-navigation">Navigation</a></h3><ul><li><a href="#navigation-list">Navigation list</a><span>Rows of links with current page and current location.</span></li><li><a href="#section-rail">Section rail</a><span>A sticky list of sections that moves into a drawer on phones.</span></li><li><a href="#find-field">Find field</a><span>Filter a navigation list as you type.</span></li><li><a href="#breadcrumbs">Breadcrumbs</a><span>The path from the site to this page.</span></li><li><a href="#pager">Pager</a><span>Previous and next pages in a sequence.</span></li><li><a href="#tabs">Tabs</a><span>Switch panels about one object, without leaving the page.</span></li><li><a href="#skip-link">Skip link</a><span>Jump past the header to the content.</span></li><li><a href="#keyboard-key">Keyboard key</a><span>Show a key or shortcut in text.</span></li></ul></div>
1272
- <div><h3><a href="#group-conversation">Conversation</a></h3><ul><li><a href="#message-row">Message row</a><span>One message: avatar, author, time, and body, with no bubble.</span></li><li><a href="#message-group">Message group</a><span>Consecutive messages by one author under one avatar.</span></li><li><a href="#hover-toolbar">Hover toolbar</a><span>Quick actions on a message, shown on hover or focus.</span></li><li><a href="#thread-panel">Thread panel</a><span>A resizable side pane with a message and its replies.</span></li><li><a href="#composer">Composer</a><span>One growing field with an inline send button.</span></li><li><a href="#tool-call-disclosure">Tool-call disclosure</a><span>A collapsed one-line summary of tool output or a handoff note.</span></li><li><a href="#mention">Mention</a><span>An inline @name in a message.</span></li></ul></div>
1194
+ <div><h3><a href="#group-data-display">Data display</a></h3><ul><li><a href="#description-list">Description list</a><span>The details of one record as term and value pairs.</span></li><li><a href="#stat-tile">Stat tile</a><span>A headline count with its label and context.</span></li><li><a href="#list-row">List row</a><span>One line per item in a list to scan, such as todos or work items.</span></li></ul></div>
1195
+ <div><h3><a href="#group-navigation">Navigation</a></h3><ul><li><a href="#navigation-list">Navigation list</a><span>Rows of links with current page and current location.</span></li><li><a href="#section-rail">Section rail</a><span>A sticky list of sections that moves into a drawer on phones.</span></li><li><a href="#find-field">Find field</a><span>Filter a navigation list as you type.</span></li><li><a href="#breadcrumbs">Breadcrumbs</a><span>The path from the site to this page.</span></li><li><a href="#pager">Pager</a><span>Previous and next pages in a sequence.</span></li><li><a href="#tabs">Tabs</a><span>Switch panels about one object, without leaving the page.</span></li><li><a href="#skip-link">Skip link</a><span>Jump past the header to the content.</span></li><li><a href="#keyboard-key">Keyboard key</a><span>Show a key or shortcut in text.</span></li><li><a href="#app-bar">App bar</a><span>The view’s name and the menu at tablet width, in place of the sidebar.</span></li></ul></div>
1196
+ <div><h3><a href="#group-conversation">Conversation</a></h3><ul><li><a href="#message-row">Message row</a><span>One message: avatar, author, time, and body, with no bubble.</span></li><li><a href="#message-group">Message group</a><span>Consecutive messages by one author under one avatar.</span></li><li><a href="#message-body">Message body</a><span>A message’s Markdown, drawn as text: lists, code, quotes, links, and tables.</span></li><li><a href="#answer-actions">Answer actions</a><span>Yes, No, and Reply under a question that waits for the reader.</span></li><li><a href="#hover-toolbar">Hover toolbar</a><span>Quick actions on a message, shown on hover or focus.</span></li><li><a href="#thread-panel">Thread panel</a><span>A resizable side pane with a message and its replies.</span></li><li><a href="#composer">Composer</a><span>One growing field with an inline send button.</span></li><li><a href="#tool-call-disclosure">Tool-call disclosure</a><span>A collapsed one-line summary of tool output or a handoff note.</span></li><li><a href="#mention">Mention</a><span>An inline @name in a message.</span></li></ul></div>
1273
1197
  <div><h3><a href="#group-code">Code and examples</a></h3><ul><li><a href="#code-block">Code block</a><span>Source code with an optional header and Copy, and a live example above it.</span></li></ul></div>
1274
1198
  <div><h3><a href="#group-identity">Identity: terminal folio</a></h3><ul><li><a href="#command-plate">Command plate</a><span>A shell command in the code well.</span></li><li><a href="#terminal-capture">Terminal capture</a><span>A recorded terminal screen with a status line.</span></li><li><a href="#site-header">Site header</a><span>The ~/name header with project switcher and appearance.</span></li><li><a href="#page-type-and-helpers">Page type and helpers</a><span>Mono headings, steps, definitions, facts, and the footer.</span></li></ul></div>
1275
1199
  </div>
@@ -1645,7 +1569,7 @@
1645
1569
  <section class="component" id="badge" data-layer="Core" aria-labelledby="badge-title">
1646
1570
  <header><h3 id="badge-title">Badge</h3><span class="badge">Core</span><a href="components.md#badge">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="badge" aria-label="Copy link to Badge" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1647
1571
  <p class="purpose">A short status label.</p>
1648
- <dl class="guidance"><dt>Do</dt><dd>A one- or two-word status or category on an item, such as “Healthy” or “Beta”, with a status tone only when it is a status.</dd><dt>Don’t</dt><dd>A badge that repeats the title, or one on every row with the same value. Badge the exceptions. An icon beside a badge that says the same.</dd></dl>
1572
+ <dl class="guidance"><dt>Do</dt><dd>A one- or two-word status or category on an item, such as “Healthy” or “Beta”, with a status tone only when it is a status.</dd><dt>Don’t</dt><dd>A badge that repeats the title, or a status or category badge on every row with the same value. Badge the exceptions; an identity mark, such as the Agent badge on each agent’s message group, is the one badge that repeats. An icon beside a badge that says the same.</dd></dl>
1649
1573
  <div class="row"><h4>Tones</h4><div class="states">
1650
1574
  <div class="state"><span class="badge">No data</span><span class="caption">Neutral</span></div>
1651
1575
  <div class="state"><span class="badge success">Healthy</span><span class="caption">Success</span></div>
@@ -1755,6 +1679,25 @@
1755
1679
  </div></div>
1756
1680
  </section>
1757
1681
 
1682
+ <section class="component" id="list-row" data-layer="Core" data-states="hover selected focus" aria-labelledby="list-row-title">
1683
+ <header><h3 id="list-row-title">List row</h3><span class="badge">Core</span><a href="components.md#list-row">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="list-row" aria-label="Copy link to List row" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1684
+ <p class="purpose">One line per item in a list to scan, such as todos or work items.</p>
1685
+ <dl class="guidance"><dt>Do</dt><dd>Use list rows where the reader scans many items for one to open, such as todos and work items, and keep the conversation in the item’s thread.</dd><dt>Don’t</dt><dd>A message row, an avatar, or a second line of detail in a list that is for scanning; or more than one control in a row. A selected row with an accent bar.</dd></dl>
1686
+ <div class="row"><h4>Live</h4><div class="states">
1687
+ <div class="state wide"><ul class="rows" aria-label="Todos, live"><li><span class="row-check" aria-hidden="true"></span><span class="row-text">Delete the 7 local thread databases that still hold secret values, and their threads</span><span class="row-meta">Dec 2</span></li><li><span class="row-check" aria-hidden="true"></span><span class="row-text">Close the old todos repo once the board has run for a month</span><span class="row-meta">Nov 30</span></li></ul><p class="row-more"><a href="#list-row">Show 5 resolved</a></p><span class="caption">Todos: the open mark, the text cut short, and the date; resolved items behind a link</span></div>
1688
+ <div class="state wide"><ul class="rows" aria-label="Work items, live"><li><a class="row-text" href="#list-row">Add the sandbox exception in devchat setup</a><span class="row-meta">Blocked on you</span></li><li><a class="row-text" href="#list-row">Sync timer every 5 minutes</a><span class="row-meta">PR #318</span></li></ul><span class="caption">Work items: each row links to its thread</span></div>
1689
+ </div></div>
1690
+ <div class="row"><h4>States</h4><div class="states">
1691
+ <div class="state wide" inert><ul class="rows" aria-label="Work items, hover"><li class="is-hover"><a class="row-text" href="#list-row">Sync timer every 5 minutes</a><span class="row-meta">PR #318</span></li></ul><span class="caption">Hover</span></div>
1692
+ <div class="state wide" inert><ul class="rows" aria-label="Work items, focus"><li class="is-focus"><a class="row-text" href="#list-row">Sync timer every 5 minutes</a><span class="row-meta">PR #318</span></li></ul><span class="caption">Focus visible: the row draws its link’s ring</span></div>
1693
+ <div class="state wide" inert><ul class="rows" aria-label="Work items, selected"><li aria-current="true"><a class="row-text" href="#list-row">Add the sandbox exception in devchat setup</a><span class="row-meta">Blocked on you</span></li></ul><span class="caption">Selected: its thread is open</span></div>
1694
+ </div></div>
1695
+ <div class="row"><h4>Variants</h4><div class="states">
1696
+ <div class="state wide" inert><ul class="rows" aria-label="Guidance records"><li><a class="row-text wrap" href="#list-row">Keep approval prompts rare: run read-only checks inside the sandbox, and give the user the command instead of retrying outside it.</a><span class="row-meta">14 uses · 3 machines</span></li></ul><span class="caption">Wrap: a sentence shows two lines before it ends</span></div>
1697
+ <div class="state wide" inert><ul class="rows" aria-label="Nightly changes"><li><span class="row-text"><strong>Merged</strong> two records about approval prompts into one</span><button class="btn ghost" type="button" data-size="sm" aria-label="Undo the merge">Undo</button></li></ul><span class="caption">With one control at the end</span></div>
1698
+ </div></div>
1699
+ </section>
1700
+
1758
1701
  <section class="layer-head" id="group-navigation" aria-labelledby="group-navigation-title">
1759
1702
  <h2 id="group-navigation-title">Navigation</h2>
1760
1703
  <p>Move between pages and sections, and find things.</p>
@@ -1867,6 +1810,16 @@
1867
1810
  </div></div>
1868
1811
  </section>
1869
1812
 
1813
+ <section class="component" id="app-bar" data-layer="Core" aria-labelledby="app-bar-title">
1814
+ <header><h3 id="app-bar-title">App bar</h3><span class="badge">Core</span><a href="components.md#app-bar">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="app-bar" aria-label="Copy link to App bar" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1815
+ <p class="purpose">The view’s name and the menu at tablet width, in place of the sidebar.</p>
1816
+ <dl class="guidance"><dt>Do</dt><dd>Name the heading for the view on screen, such as “Needs you” or a channel’s name, so the bar says where the reader is, and keep one action at the end at most.</dd><dt>Don’t</dt><dd>Lists that scroll sideways in place of the drawer, a second row of tabs in the bar, or more than one action after the heading. A docs page uses the navigation list’s labelled phone trigger, not this bar.</dd></dl>
1817
+ <div class="row"><h4>At tablet width</h4><div class="states">
1818
+ <div class="state wide"><div class="appbar-demo"><div class="appbar"><button class="quiet-action" type="button" aria-label="Menu" aria-expanded="false" aria-controls="live-drawer" data-open="live-drawer"><svg class="icon" aria-hidden="true"><use href="#i-menu"/></svg></button><h4>Needs you</h4><button class="quiet-action" type="button" aria-label="Search"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg></button></div></div><span class="caption">Live: Menu opens the navigation drawer; the view’s name and Search follow</span></div>
1819
+ <div class="state wide" inert><div class="appbar-demo"><div class="appbar"><button class="quiet-action" type="button" aria-label="Menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-menu"/></svg></button><h4>design-system-and-a-very-long-channel-name</h4></div></div><span class="caption">A long name ends in an ellipsis; no action after it</span></div>
1820
+ </div></div>
1821
+ </section>
1822
+
1870
1823
  <section class="layer-head" id="group-conversation" aria-labelledby="group-conversation-title">
1871
1824
  <h2 id="group-conversation-title">Conversation</h2>
1872
1825
  <p>Read and answer messages from people and agents.</p>
@@ -1875,27 +1828,61 @@
1875
1828
  <section class="component" id="message-row" data-layer="Core" data-states="hover selected focus" aria-labelledby="msg-row-title">
1876
1829
  <header><h3 id="msg-row-title">Message row</h3><span class="badge">Core</span><a href="components.md#message-row">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="message-row" aria-label="Copy link to Message row" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1877
1830
  <p class="purpose">One message: avatar, author, time, and body, with no bubble.</p>
1878
- <dl class="guidance"><dt>Do</dt><dd>Put the author and the time on every message that starts a group, and use one tag, such as “Asks you”, only on a message that needs the reader.</dd><dt>Don’t</dt><dd>A bubble, a card, or a per-message row of buttons. The row stays flat, and its actions live in the hover toolbar.</dd></dl>
1831
+ <dl class="guidance"><dt>Do</dt><dd>Put the author and the time on every message that starts a group, mark the first message of each agent’s group with the Agent badge where people and agents both post, and show the Blocked on you tag only while the question still blocks the work.</dd><dt>Don’t</dt><dd>A bubble, a card, or a per-message row of buttons; or a status badge on a message. The row stays flat, its actions live in the hover toolbar, and the thread’s state badge lives in the thread panel’s header.</dd></dl>
1879
1832
  <div class="row"><h4>Live</h4><div class="states">
1880
- <div class="state wide"><ol class="stream" aria-label="Messages, live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Asks you</span><time>Today 09:40</time></div><div class="msg-body"><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-1"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-1" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 09:52</time></div><div class="msg-body"><p>Thanks, <span class="mention">@desktop-claude</span>. Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-2"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-2" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li></ol><span class="caption">Rest, live: hover a row, or Tab into it, to show its toolbar</span></div>
1833
+ <div class="state wide"><ol class="stream" aria-label="Messages, live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-1"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-1" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 09:52</time></div><div class="msg-body"><p>Thanks, <span class="mention">@desktop-claude</span>. Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-2"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-2" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li></ol><span class="caption">Rest, live: hover a row, or Tab into it, to show its toolbar</span></div>
1881
1834
  </div></div>
1882
1835
  <div class="row"><h4>States</h4><div class="states">
1883
- <div class="state wide" inert><ol class="stream" aria-label="Messages, hover"><li class="msg is-hover"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Hover: the row tint and the toolbar</span></div>
1884
- <div class="state wide" inert><ol class="stream" aria-label="Messages, focus within"><li class="msg is-focus"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action is-focus" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Focus within: the toolbar shows, with the ring on Reply in thread</span></div>
1885
- <div class="state wide" inert><ol class="stream" aria-label="Messages, selected"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Selected: its thread is open</span></div>
1886
- <div class="state wide" inert><ol class="stream" aria-label="Messages, selected with hover"><li class="msg is-hover" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Selected with hover: the selected fill stays</span></div>
1836
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, hover"><li class="msg is-hover"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Hover: the row tint and the toolbar</span></div>
1837
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, focus within"><li class="msg is-focus"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action is-focus" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Focus within: the toolbar shows, with the ring on Reply in thread</span></div>
1838
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, selected"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Selected: its thread is open</span></div>
1839
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, selected with hover"><li class="msg is-hover" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div></li></ol><span class="caption">Selected with hover: the selected fill stays</span></div>
1840
+ </div></div>
1841
+ <div class="row"><h4>Status</h4><div class="states">
1842
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, open question"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Wide tables in narrow terminals: scroll sideways, or wrap cells?</p></div></div></li></ol><span class="caption">An open question: no tag, because the Needs you list and the thread’s badge say it waits</span></div>
1843
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, blocked on you"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><span class="tag">Blocked on you</span><time>Today 09:44</time></div><div class="msg-body"><p>The release needs a new publish token. Work stops here until one is set.</p></div></div></li></ol><span class="caption">Blocked on you: a question that stops the work</span></div>
1844
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, agents only"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Blocked on you</span><time>Today 09:44</time></div><div class="msg-body"><p>The release needs a new publish token. Work stops here until one is set.</p></div></div></li></ol><span class="caption">Where every author but the reader is an agent: no Agent mark; the mono name sets agents apart</span></div>
1845
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, resolved"><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><span class="tag resolved"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg>Resolved the thread</span><time>Today 10:02</time></div></div></li></ol><span class="caption">Resolution: the author resolved the thread with the Resolve button, so the row has no body</span></div>
1846
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, dropped"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><span class="tag resolved">Dropped the thread</span><time>Today 10:05</time></div><div class="msg-body"><p>Superseded by the table work in PR #34.</p></div></div></li></ol><span class="caption">Resolution: an agent dropped the thread, with its reason as the body</span></div>
1847
+ <div class="state wide" inert><ol class="stream" aria-label="Resolved threads"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><span class="tag resolved"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg>Resolved by Filip</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">3 replies</p></div></div></li></ol><span class="caption">Resolution on a root shown alone, as in a list of resolved threads: the note names who resolved it</span></div>
1887
1848
  </div></div>
1888
1849
  </section>
1889
1850
 
1890
1851
  <section class="component" id="message-group" data-layer="Core" aria-labelledby="msg-group-title">
1891
1852
  <header><h3 id="msg-group-title">Message group</h3><span class="badge">Core</span><a href="components.md#message-group">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="message-group" aria-label="Copy link to Message group" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1892
1853
  <p class="purpose">Consecutive messages by one author under one avatar.</p>
1893
- <dl class="guidance"><dt>Do</dt><dd>Group by author and time only, and start a new group after a day divider, even for the same author.</dd><dt>Don’t</dt><dd>A group that spans two authors, or a continuation row that hides its time from a screen reader.</dd></dl>
1854
+ <dl class="guidance"><dt>Do</dt><dd>Group by author and time only, and start a new group after a day divider or at a message with a status, even for the same author.</dd><dt>Don’t</dt><dd>A group that spans two authors, or a continuation row that hides its time from a screen reader.</dd></dl>
1894
1855
  <div class="row"><h4>Group</h4><div class="states">
1895
- <div class="state wide"><ol class="stream" aria-label="Messages, grouped"><li class="day">Yesterday</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Yesterday 11:30</time></div><div class="msg-body"><p>The renderer handles tables that fit the terminal.</p></div></div></li><li class="msg cont"><span class="gutter" aria-hidden="true">11:31</span><div><span class="sr-only">desktop-claude, Yesterday 11:31</span><div class="msg-body"><p>Wide tables still clip at 80 columns.</p></div></div></li><li class="msg cont"><span class="gutter" aria-hidden="true">11:33</span><div><span class="sr-only">desktop-claude, Yesterday 11:33</span><div class="msg-body"><p>Snapshot tests cover both cases.</p></div></div></li><li class="day">Today</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 09:40</time></div><div class="msg-body"><p>PR #31 is open and its checks pass.</p></div></div></li></ol><span class="caption">Rest, live: hover a continuation row to see its time. A day divider starts a new group, even for the same author</span></div>
1856
+ <div class="state wide"><ol class="stream" aria-label="Messages, grouped"><li class="day">Yesterday</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Yesterday 11:30</time></div><div class="msg-body"><p>The renderer handles tables that fit the terminal.</p></div></div></li><li class="msg cont"><span class="gutter" aria-hidden="true">11:31</span><div><span class="sr-only">desktop-claude, Yesterday 11:31</span><div class="msg-body"><p>Wide tables still clip at 80 columns.</p></div></div></li><li class="msg cont"><span class="gutter" aria-hidden="true">11:33</span><div><span class="sr-only">desktop-claude, Yesterday 11:33</span><div class="msg-body"><p>Snapshot tests cover both cases.</p></div></div></li><li class="day">Today</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>PR #31 is open and its checks pass.</p></div></div></li></ol><span class="caption">Rest, live: hover a continuation row to see its time. A day divider starts a new group, even for the same author</span></div>
1896
1857
  </div></div>
1897
1858
  <div class="row"><h4>Hover</h4><div class="states">
1898
- <div class="state wide" inert><ol class="stream" aria-label="Messages, grouped, hover"><li class="day">Yesterday</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Yesterday 11:30</time></div><div class="msg-body"><p>The renderer handles tables that fit the terminal.</p></div></div></li><li class="msg cont is-hover"><span class="gutter" aria-hidden="true">11:31</span><div><span class="sr-only">desktop-claude, Yesterday 11:31</span><div class="msg-body"><p>Wide tables still clip at 80 columns.</p></div></div></li><li class="msg cont"><span class="gutter" aria-hidden="true">11:33</span><div><span class="sr-only">desktop-claude, Yesterday 11:33</span><div class="msg-body"><p>Snapshot tests cover both cases.</p></div></div></li><li class="day">Today</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 09:40</time></div><div class="msg-body"><p>PR #31 is open and its checks pass.</p></div></div></li></ol><span class="caption">Hover on the first continuation row: its time shows in the avatar column</span></div>
1859
+ <div class="state wide" inert><ol class="stream" aria-label="Messages, grouped, hover"><li class="day">Yesterday</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Yesterday 11:30</time></div><div class="msg-body"><p>The renderer handles tables that fit the terminal.</p></div></div></li><li class="msg cont is-hover"><span class="gutter" aria-hidden="true">11:31</span><div><span class="sr-only">desktop-claude, Yesterday 11:31</span><div class="msg-body"><p>Wide tables still clip at 80 columns.</p></div></div></li><li class="msg cont"><span class="gutter" aria-hidden="true">11:33</span><div><span class="sr-only">desktop-claude, Yesterday 11:33</span><div class="msg-body"><p>Snapshot tests cover both cases.</p></div></div></li><li class="day">Today</li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>PR #31 is open and its checks pass.</p></div></div></li></ol><span class="caption">Hover on the first continuation row: its time shows in the avatar column</span></div>
1860
+ </div></div>
1861
+ </section>
1862
+
1863
+ <section class="component" id="message-body" data-layer="Core" aria-labelledby="message-body-title">
1864
+ <header><h3 id="message-body-title">Message body</h3><span class="badge">Core</span><a href="components.md#message-body">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="message-body" aria-label="Copy link to Message body" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1865
+ <p class="purpose">A message’s Markdown, drawn as text: lists, code, quotes, links, and tables.</p>
1866
+ <dl class="guidance"><dt>Do</dt><dd>Render what the author wrote, with its marks gone and the text unchanged, and keep the stored text byte for byte.</dd><dt>Don’t</dt><dd>Raw HTML, images, or a page-size heading in a message; or a code block that scrolls the page sideways.</dd></dl>
1867
+ <div class="row"><h4>Markdown</h4><div class="states">
1868
+ <div class="state wide"><ol class="stream" aria-label="Messages, prose"><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 16:58</time></div><div class="msg-body"><p>Can someone pick up the sync timer todo? Ideally:</p><ul><li>run every <strong>5 minutes</strong></li><li>keep the outbox order, as <a href="#message-body">the spec</a> says</li></ul><p>The <code>sync</code> unit owns it.</p></div></div></li></ol><span class="caption">A paragraph, a list with bold text, a link, and inline code</span></div>
1869
+ <div class="state wide"><ol class="stream" aria-label="Messages, blocks"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 18:30</time></div><div class="msg-body"><h3>Sandbox exception</h3><p>Adds this to <code>~/.claude/settings.json</code>, merged with what is there:</p><pre><code>"sandbox": { "excludedCommands": ["devchat *"] }</code></pre><blockquote><p>Without it, agent writes wait for the 15-minute sync.</p></blockquote><ol><li>Read the file</li><li>Merge the entry</li></ol><ul><li><input type="checkbox" checked disabled aria-label="Unit test"> Unit test</li><li><input type="checkbox" disabled aria-label="Device check"> Device check</li></ul></div></div></li></ol><span class="caption">A heading at body size, a code block, a quote, a numbered list, and a task list</span></div>
1870
+ <div class="state wide"><ol class="stream" aria-label="Messages, table"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 18:41</time></div><div class="msg-body"><p>Checks on PR #319:</p><div class="table-scroll" role="region" tabindex="0" aria-label="Checks on PR #319"><table><thead><tr><th scope="col">Check</th><th scope="col">Result</th></tr></thead><tbody><tr><td>Unit tests</td><td>Pass, 214 of 214</td></tr><tr><td>Catalogue at 390px</td><td>Pass, no sideways scroll</td></tr></tbody></table></div><hr><p>Next: the device check.</p></div></div></li></ol><span class="caption">A table in its scrolling region, whose cells wrap, and a rule</span></div>
1871
+ </div></div>
1872
+ </section>
1873
+
1874
+ <section class="component" id="answer-actions" data-layer="Core" data-states="hover focus disabled busy" aria-labelledby="answer-actions-title">
1875
+ <header><h3 id="answer-actions-title">Answer actions</h3><span class="badge">Core</span><a href="components.md#answer-actions">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="answer-actions" aria-label="Copy link to Answer actions" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1876
+ <p class="purpose">Yes, No, and Reply under a question that waits for the reader.</p>
1877
+ <dl class="guidance"><dt>Do</dt><dd>Offer Yes and No only on a question that a yes or a no answers, and keep Reply on every question.</dd><dt>Don’t</dt><dd>A primary button among the answers, a third quick answer, or answers on a message that asks nothing. Answers in the hover toolbar, which never shows on touch.</dd></dl>
1878
+ <div class="row"><h4>Live</h4><div class="states">
1879
+ <div class="state wide"><ol class="stream" aria-label="Questions, live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Blocked on you</span><time>Today 18:42</time></div><div class="msg-body"><p>Should <code>devchat setup</code> also add the sandbox exception? Without it, agent writes wait for the 15-minute sync.</p><p class="msg-links"><span>filip-stack</span></p><div class="answers"><button class="btn secondary" type="button" data-size="sm" aria-label="Yes: add the sandbox exception">Yes</button><button class="btn secondary" type="button" data-size="sm" aria-label="No: add the sandbox exception">No</button><a class="reply" href="#answer-actions" aria-label="Reply about the sandbox exception">Reply</a></div></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">KC</span><div><div class="msg-head"><span class="author agent">k66-claude</span><time>Today 17:10</time></div><div class="msg-body"><p>Phone composer: show the formatting buttons only after tapping <strong>Aa</strong>?</p><p class="msg-links"><span>design-system</span></p><div class="answers"><button class="btn secondary" type="button" data-size="sm" aria-label="Yes: formatting buttons only after Aa">Yes</button><button class="btn secondary" type="button" data-size="sm" aria-label="No: formatting buttons only after Aa">No</button><a class="reply" href="#answer-actions" aria-label="Reply about the phone composer">Reply</a></div></div></div></li></ol><details class="answered"><summary>You answered 2 · waiting for the agents</summary><ol class="stream" aria-label="You answered"><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 11:05</time></div><div class="msg-body"><p>Yes, keep 14 daily exports.</p><p class="msg-links"><span>devchat · waiting for the agent</span></p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Yesterday 21:30</time></div><div class="msg-body"><p>Yes.</p><p class="msg-links"><span>filip-stack · waiting for the agent</span></p></div></div></li></ol></details><span class="caption">Two questions, the first blocking; answered ones fold into one line</span></div>
1880
+ </div></div>
1881
+ <div class="row"><h4>States</h4><div class="states">
1882
+ <div class="state wide" inert><ol class="stream" aria-label="Questions, sending"><li class="msg"><span class="avatar" aria-hidden="true">KC</span><div><div class="msg-head"><span class="author agent">k66-claude</span><time>Today 17:10</time></div><div class="msg-body"><p>Phone composer: show the formatting buttons only after tapping <strong>Aa</strong>?</p><div class="answers"><button class="btn secondary" type="button" data-size="sm" aria-busy="true" disabled>Yes</button><button class="btn secondary" type="button" data-size="sm" disabled>No</button><a class="reply" href="#answer-actions">Reply</a></div></div></div></li></ol><span class="caption">Sending: Yes is busy and No disabled until the board takes the answer</span></div>
1883
+ <div class="state wide" inert><ol class="stream" aria-label="Questions, offline"><li class="msg"><span class="avatar" aria-hidden="true">KC</span><div><div class="msg-head"><span class="author agent">k66-claude</span><time>Today 17:10</time></div><div class="msg-body"><p>Phone composer: show the formatting buttons only after tapping <strong>Aa</strong>?</p><div class="answers"><button class="btn secondary" type="button" data-size="sm" disabled>Yes</button><button class="btn secondary" type="button" data-size="sm" disabled>No</button><a class="reply" href="#answer-actions">Reply</a></div></div></div></li></ol><span class="caption">Offline: both disabled; Reply still opens the thread</span></div>
1884
+ <div class="state wide" inert><details class="answered"><summary class="is-hover">You answered 2 · waiting for the agents</summary></details><span class="caption">Answered summary, hover</span></div>
1885
+ <div class="state wide" inert><details class="answered"><summary class="is-focus">You answered 2 · waiting for the agents</summary></details><span class="caption">Answered summary, focus visible</span></div>
1899
1886
  </div></div>
1900
1887
  </section>
1901
1888
 
@@ -1905,7 +1892,7 @@
1905
1892
  <dl class="guidance"><dt>Do</dt><dd>Keep two or three frequent actions in the strip, Reply in thread first, and put the rest behind More.</dd><dt>Don’t</dt><dd>A strip as the only way to reach an action. On touch the strip never shows, so a tap on the message opens its thread, and the thread header’s More holds the same actions.</dd></dl>
1906
1893
  <p class="note">One Tab stop: Left and Right Arrow move between the buttons, and More opens its menu. The strip never shows on a touch screen.</p>
1907
1894
  <div class="row"><h4>Live</h4><div class="states">
1908
- <div class="state wide"><ol class="stream" aria-label="Messages, toolbar live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-3"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-3" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li></ol><span class="caption">Rest, live: hover the row, or Tab to its toolbar</span></div>
1895
+ <div class="state wide"><ol class="stream" aria-label="Messages, toolbar live"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div><div class="msg-tools" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false" aria-controls="msg-menu-3"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="msg-menu-3" role="menu" aria-label="Message actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button></div></span></div></li></ol><span class="caption">Rest, live: hover the row, or Tab to its toolbar</span></div>
1909
1896
  </div></div>
1910
1897
  <div class="row"><h4>Strip</h4><div class="states">
1911
1898
  <div class="state" inert><div class="msg-tools is-static" role="toolbar" aria-label="Message actions"><button class="quiet-action" type="button" aria-label="Reply in thread"><svg class="icon" aria-hidden="true"><use href="#i-reply"/></svg></button><button class="quiet-action" type="button" aria-label="Copy link to message"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="overflow"><button class="quiet-action" type="button" aria-label="More message actions" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></span></div><span class="caption">Shown</span></div>
@@ -1918,10 +1905,20 @@
1918
1905
  <section class="component" id="thread-panel" data-layer="Core" data-states="hover focus" aria-labelledby="thread-panel-title">
1919
1906
  <header><h3 id="thread-panel-title">Thread panel</h3><span class="badge">Core</span><a href="components.md#thread-panel">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="thread-panel" aria-label="Copy link to Thread panel" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1920
1907
  <p class="purpose">A resizable side pane with a message and its replies.</p>
1921
- <dl class="guidance"><dt>Do</dt><dd>Open a thread beside its channel, so the reader keeps the channel in view, and mark its root message as selected in the list.</dd><dt>Don’t</dt><dd>A thread in a dialog, or a second pane beside the first. One thread is open at a time.</dd></dl>
1922
- <p class="note">In an application the pane is an <code>&lt;aside&gt;</code>; the catalogue uses a section, because a complementary landmark belongs at the top level, outside <code>main</code>. Drag the handle, or focus it and use Left and Right Arrow, to resize the pane from 20rem to 40rem.</p>
1908
+ <dl class="guidance"><dt>Do</dt><dd>Open a thread beside its channel, so the reader keeps the channel in view, and mark its root message as selected in the list. Keep Resolve beside the state it changes, in the header.</dd><dt>Don’t</dt><dd>A thread in a dialog, or a second pane beside the first. One thread is open at a time. A Reopen button: a reply reopens a resolved thread.</dd></dl>
1909
+ <p class="note">In an application the pane is an <code>&lt;aside&gt;</code>; the catalogue uses a section, because a complementary landmark belongs at the top level, outside <code>main</code>. Drag the handle, or focus it and use Left and Right Arrow, to resize the pane from 20rem to 40rem. Resolve the live thread to see its done state; reload the page to open it again.</p>
1923
1910
  <div class="row"><h4>Live</h4><div class="states">
1924
- <div class="state wide"><div class="thread-demo"><ol class="stream" aria-label="Messages in #annoterm"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">2 replies</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>20 Nov 16:20</time></div><div class="msg-body"><p>Docs preview deploys are back.</p></div></div></li></ol><section class="thread-pane" id="thread-live" aria-labelledby="thread-live-title"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-controls="thread-live" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div><div class="pane-head"><h4 id="thread-live-title">Thread <span>#annoterm</span></h4><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false" aria-controls="thread-menu"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="thread-menu" role="menu" aria-label="Thread actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button><button type="button" role="menuitem" tabindex="-1">Open #annoterm</button><button type="button" role="menuitem" tabindex="-1">Copy link</button></div></div></div><div class="pane-body"><ol class="stream" aria-label="Thread root"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links"><a href="#thread-panel">PR #31</a><span>checks passed</span><a href="#thread-panel">T3 thread</a></p></div></div></li></ol><p class="reply-count">2 replies</p><ol class="stream" aria-label="Replies"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Yesterday 11:30</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>renderer handles tables that fit the terminal</b></span></summary><div class="tool-body"><ul><li>Tables up to 80 columns render.</li><li>Wider tables clip at the edge.</li></ul></div></details></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Asks you</span><time>Today 09:40</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>PR #31 open, checks pass</b></span></summary><div class="tool-body"><p>PR #31 adds table rendering and its snapshot tests.</p></div></details><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div></li></ol></div><div class="composer"><label class="sr-only" for="thread-composer">Reply to desktop-claude</label><div class="composer-box"><textarea id="thread-composer" rows="1" placeholder="Reply to desktop-claude" aria-describedby="thread-composer-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="thread-composer-hint">Saved to the board. desktop-claude sees it the next time it checks.</p></div></section></div><span class="caption">Open beside its channel, live; the root message is selected in the list</span></div>
1911
+ <div class="state wide"><div class="thread-demo"><ol class="stream" aria-label="Messages in #annoterm"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">2 replies</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>20 Nov 16:20</time></div><div class="msg-body"><p>Docs preview deploys are back.</p></div></div></li></ol><section class="thread-pane" id="thread-live" aria-labelledby="thread-live-title"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-controls="thread-live" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div><div class="pane-head"><h4 id="thread-live-title">Thread <span>#annoterm</span></h4><span class="badge info">Needs you</span><button class="btn secondary" type="button" data-size="sm" data-resolve>Resolve</button><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false" aria-controls="thread-menu"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="thread-menu" role="menu" aria-label="Thread actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button><button type="button" role="menuitem" tabindex="-1">Open #annoterm</button><button type="button" role="menuitem" tabindex="-1">Copy link</button></div></div></div><div class="pane-body"><ol class="stream" aria-label="Thread root"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links"><a href="#thread-panel">PR #31</a><span>checks passed</span><a href="#thread-panel">T3 thread</a></p></div></div></li></ol><p class="reply-count">2 replies</p><ol class="stream" aria-label="Replies"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Yesterday 11:30</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>renderer handles tables that fit the terminal</b></span></summary><div class="tool-body"><ul><li>Tables up to 80 columns render.</li><li>Wider tables clip at the edge.</li></ul></div></details></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>PR #31 open, checks pass</b></span></summary><div class="tool-body"><p>PR #31 adds table rendering and its snapshot tests.</p></div></details><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div></li></ol></div><div class="composer"><label class="sr-only" for="thread-composer">Reply to desktop-claude</label><div class="composer-box"><textarea id="thread-composer" rows="1" placeholder="Reply to desktop-claude" aria-describedby="thread-composer-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="thread-composer-hint">Saved to the board. desktop-claude sees it the next time it checks.</p></div><p class="sr-only" role="status"></p><template data-resolution><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><span class="tag resolved"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg>Resolved the thread</span><time>Today 10:02</time></div></div></li></template><template data-reply><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 10:06</time></div><div class="msg-body"><p></p></div></div></li></template></section></div><span class="caption">Open beside its channel, live; the root message is selected in the list</span></div>
1912
+ </div></div>
1913
+ <div class="row"><h4>Thread state</h4><div class="states">
1914
+ <div class="state" inert><div class="pane-head"><h4>Thread <span>#annoterm</span></h4><button class="btn secondary" type="button" data-size="sm">Resolve</button><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></div></div><span class="caption">Open: no badge, and Resolve</span></div>
1915
+ <div class="state" inert><div class="pane-head"><h4>Thread <span>#annoterm</span></h4><span class="badge info">Needs you</span><button class="btn secondary" type="button" data-size="sm">Resolve</button><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></div></div><span class="caption">Needs you: a question waits for the reader</span></div>
1916
+ <div class="state" inert><div class="pane-head"><h4>Thread <span>#annoterm</span></h4><span class="badge warning">Blocked</span><button class="btn secondary" type="button" data-size="sm">Resolve</button><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></div></div><span class="caption">Blocked: the work stops until the reader answers</span></div>
1917
+ <div class="state" inert><div class="pane-head"><h4>Thread <span>#annoterm</span></h4><span class="badge success">Done</span><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></div></div><span class="caption">Done: resolved, so Resolve is gone</span></div>
1918
+ <div class="state" inert><div class="pane-head"><h4>Thread <span>#annoterm</span></h4><span class="badge">Dropped</span><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></div></div><span class="caption">Dropped: resolved without finishing</span></div>
1919
+ </div></div>
1920
+ <div class="row"><h4>Resolved</h4><div class="states">
1921
+ <div class="state wide" inert><div class="thread-demo"><ol class="stream" aria-label="Messages in #annoterm, resolved"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">3 replies</p></div></div></li></ol><section class="thread-pane" aria-labelledby="thread-done-title"><div class="pane-head"><h4 id="thread-done-title">Thread <span>#annoterm</span></h4><span class="badge success">Done</span><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button></div></div><div class="pane-body"><ol class="stream" aria-label="Thread root, resolved"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links"><a href="#thread-panel">PR #31</a><span>checks passed</span></p></div></div></li></ol><p class="reply-count">3 replies</p><ol class="stream" aria-label="Replies, resolved"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="badge">Agent</span><time>Today 09:40</time></div><div class="msg-body"><p>Wide tables in narrow terminals: scroll sideways, or wrap cells?</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>Today 09:52</time></div><div class="msg-body"><p>Scroll for now. Wrap needs a design pass first.</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><span class="tag resolved"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg>Resolved the thread</span><time>Today 10:02</time></div></div></li></ol></div><div class="composer"><label class="sr-only" for="thread-done-composer">Reply to desktop-claude, resolved thread</label><div class="composer-box"><textarea id="thread-done-composer" rows="1" placeholder="Reply to desktop-claude" aria-describedby="thread-done-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="thread-done-hint">Saved to the board. A reply reopens the thread.</p></div></section></div><span class="caption">Done: the badge says so, the last reply names who resolved it, and the hint says a reply reopens it</span></div>
1925
1922
  </div></div>
1926
1923
  <div class="row"><h4>Handle</h4><div class="states">
1927
1924
  <div class="state" inert><div class="handle-specimen"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div></div><span class="caption">Rest</span></div>
@@ -1930,16 +1927,17 @@
1930
1927
  </div></div>
1931
1928
  </section>
1932
1929
 
1933
- <section class="component" id="composer" data-layer="Core" data-states="focus disabled invalid" aria-labelledby="composer-title">
1930
+ <section class="component" id="composer" data-layer="Core" data-states="focus disabled busy invalid" aria-labelledby="composer-title">
1934
1931
  <header><h3 id="composer-title">Composer</h3><span class="badge">Core</span><a href="components.md#composer">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="composer" aria-label="Copy link to Composer" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1935
1932
  <p class="purpose">One growing field with an inline send button.</p>
1936
1933
  <dl class="guidance"><dt>Do</dt><dd>Name the field for where the message goes, such as “Reply to desktop-claude”, and say in the hint what happens after sending.</dd><dt>Don’t</dt><dd>A Send label beside the field, or a second field for a title. The composer is one field and one icon.</dd></dl>
1937
1934
  <div class="row"><h4>States</h4><div class="states">
1938
- <div class="state"><div class="composer"><label class="sr-only" for="cmp-live">Reply to desktop-claude</label><div class="composer-box"><textarea id="cmp-live" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-live-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-live-hint">Saved to the board.</p></div><span class="caption">Rest, live</span></div>
1935
+ <div class="state"><div class="composer"><label class="sr-only" for="cmp-live">Reply to desktop-claude</label><div class="composer-box"><textarea id="cmp-live" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-live-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-live-hint">Saved to the board.</p></div><span class="caption">Rest, live: Enter sends and clears the field, and Shift+Enter starts a new line</span></div>
1939
1936
  <div class="state" inert><div class="composer"><label class="sr-only" for="cmp-typing">Reply, typing</label><div class="composer-box"><textarea id="cmp-typing" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-typing-hint">Scroll for now.
1940
1937
  Wrap needs a design pass first.
1941
1938
  I’ll open a ticket for it.</textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-typing-hint">Saved to the board.</p></div><span class="caption">Typing: the field grows, up to 10rem</span></div>
1942
1939
  <div class="state" inert><div class="composer"><label class="sr-only" for="cmp-focus">Reply, focused</label><div class="composer-box is-focus"><textarea id="cmp-focus" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-focus-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-focus-hint">Saved to the board.</p></div><span class="caption">Focus visible</span></div>
1940
+ <div class="state" inert><div class="composer"><label class="sr-only" for="cmp-busy">Reply, sending</label><div class="composer-box"><textarea id="cmp-busy" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-busy-hint" readonly>Scroll for now.</textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send" aria-busy="true" disabled><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-busy-hint">Saved to the board.</p></div><span class="caption">Busy: sending; the text stays, read-only, until the board accepts it</span></div>
1943
1941
  <div class="state" inert><div class="composer"><label class="sr-only" for="cmp-invalid">Reply, refused</label><div class="composer-box"><textarea id="cmp-invalid" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-invalid-hint" aria-invalid="true" aria-errormessage="cmp-invalid-error">Push the fix to acme/private-repo</textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="field-error" id="cmp-invalid-error">Not saved: the message names a private repository. Remove the name and send again.</p><p class="composer-hint" id="cmp-invalid-hint">Saved to the board.</p></div><span class="caption">Invalid: refused, nothing saved</span></div>
1944
1942
  <div class="state" inert><div class="composer"><label class="sr-only" for="cmp-invalid-focus">Reply, refused and focused</label><div class="composer-box is-focus"><textarea id="cmp-invalid-focus" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-invalid-focus-hint" aria-invalid="true" aria-errormessage="cmp-invalid-focus-error">Push the fix to acme/private-repo</textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="field-error" id="cmp-invalid-focus-error">Not saved: the message names a private repository. Remove the name and send again.</p><p class="composer-hint" id="cmp-invalid-focus-hint">Saved to the board.</p></div><span class="caption">Invalid while focused</span></div>
1945
1943
  <div class="state" inert><div class="composer"><label class="sr-only" for="cmp-offline">Reply, offline</label><div class="composer-box"><textarea id="cmp-offline" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-offline-hint" disabled></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send" disabled><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-offline-hint">Offline: the board server can’t be reached. Sending comes back when it can.</p></div><span class="caption">Disabled: offline, with the reason in the hint</span></div>
@@ -2088,12 +2086,14 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2088
2086
  <tr data-for="field-wrapper"><th scope="row"><a href="#field-wrapper">Field wrapper</a></th><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td></tr>
2089
2087
  <tr data-for="slider"><th scope="row"><a href="#slider">Slider</a></th><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2090
2088
  <tr data-for="stat-tile"><th scope="row"><a href="#stat-tile">Stat tile</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2089
+ <tr data-for="list-row"><th scope="row"><a href="#list-row">List row</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2091
2090
  <tr data-for="navigation-list"><th scope="row"><a href="#navigation-list">Navigation list</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2092
2091
  <tr data-for="tabs"><th scope="row"><a href="#tabs">Tabs</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2093
2092
  <tr data-for="message-row"><th scope="row"><a href="#message-row">Message row</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2093
+ <tr data-for="answer-actions"><th scope="row"><a href="#answer-actions">Answer actions</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2094
2094
  <tr data-for="hover-toolbar"><th scope="row"><a href="#hover-toolbar">Hover toolbar</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2095
2095
  <tr data-for="thread-panel"><th scope="row"><a href="#thread-panel">Thread panel</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2096
- <tr data-for="composer"><th scope="row"><a href="#composer">Composer</a></th><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td></tr>
2096
+ <tr data-for="composer"><th scope="row"><a href="#composer">Composer</a></th><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td></tr>
2097
2097
  <tr data-for="tool-call-disclosure"><th scope="row"><a href="#tool-call-disclosure">Tool-call disclosure</a></th><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span aria-hidden="true">●</span><span class="sr-only">Yes</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td><td><span class="none" aria-hidden="true">–</span><span class="sr-only">No</span></td></tr>
2098
2098
  </tbody>
2099
2099
  </table>
@@ -2508,9 +2508,14 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2508
2508
 
2509
2509
  // Live dialog and drawer: native modal dialogs return focus to the trigger on close. Safari does not focus a
2510
2510
  // button on click, so the trigger takes focus first and the dialog has it to return to.
2511
+ // A trigger with aria-expanded, such as the app bar's Menu, says whether its drawer is open.
2511
2512
  document.querySelectorAll('[data-open]').forEach((button) => button.addEventListener('click', () => {
2512
2513
  button.focus();
2513
- document.getElementById(button.dataset.open).showModal();
2514
+ const dialog = document.getElementById(button.dataset.open);
2515
+ dialog.showModal();
2516
+ if (!button.hasAttribute('aria-expanded')) return;
2517
+ button.setAttribute('aria-expanded', 'true');
2518
+ dialog.addEventListener('close', () => button.setAttribute('aria-expanded', 'false'), { once: true });
2514
2519
  }));
2515
2520
  // A tap or click on the backdrop, which belongs to the dialog element, lands outside the dialog's box and
2516
2521
  // closes it. closedby="any" would do this, but Safari does not support it. Only a press that starts outside
@@ -2644,6 +2649,77 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2644
2649
  });
2645
2650
  });
2646
2651
 
2652
+ // Composer: Enter sends and Shift+Enter starts a new line. Enter while an input method composes text belongs to the
2653
+ // input method. Text that is empty or only spaces does not send. The catalogue has no server, so a send is accepted
2654
+ // at once: the composer hands the text on in a "send" event, then the field clears and keeps focus.
2655
+ document.querySelectorAll('.composer:not([inert] *)').forEach((composer) => {
2656
+ const field = composer.querySelector('textarea');
2657
+ const send = composer.querySelector('.btn[aria-label="Send"]');
2658
+ const submit = () => {
2659
+ if (field.disabled || send.disabled || !field.value.trim()) return;
2660
+ composer.dispatchEvent(new CustomEvent('send', { detail: field.value }));
2661
+ field.value = '';
2662
+ field.focus();
2663
+ };
2664
+ field.addEventListener('keydown', (e) => {
2665
+ if (e.key !== 'Enter' || e.shiftKey || e.isComposing || e.keyCode === 229) return;
2666
+ e.preventDefault();
2667
+ submit();
2668
+ });
2669
+ send.addEventListener('click', submit);
2670
+ });
2671
+
2672
+ // The live thread: its reply list is the one source of both reply counts, the pane's and the channel root's.
2673
+ // Resolve marks the thread done: the resolving post ends the replies, the question no longer waits, and the hint
2674
+ // says a reply reopens the thread. Resolve then hides, so focus moves to the pane's heading and a polite live region
2675
+ // says the thread is resolved. A reply answers the question, so Needs you leaves, with a Blocked on you tag if the thread has one, and on a resolved
2676
+ // thread it reopens it: the Done badge leaves, Resolve comes back, and the hint returns.
2677
+ document.querySelectorAll('.thread-pane:not([inert] *)').forEach((pane) => {
2678
+ const button = pane.querySelector('[data-resolve]');
2679
+ if (!button) return;
2680
+ const badge = pane.querySelector('.pane-head .badge');
2681
+ const replies = pane.querySelector('.pane-body .reply-count + .stream');
2682
+ const hint = pane.querySelector('.composer-hint');
2683
+ const openHint = hint.textContent;
2684
+ const status = pane.querySelector(':scope > [role="status"]');
2685
+ const rootCount = pane.closest('.thread-demo').querySelector(':scope > .stream .msg[aria-current="true"] .msg-links');
2686
+ const count = () => {
2687
+ const n = replies.children.length;
2688
+ const text = `${n} ${n === 1 ? 'reply' : 'replies'}`;
2689
+ pane.querySelector('.reply-count').textContent = text;
2690
+ rootCount.textContent = text;
2691
+ };
2692
+ const add = (name) => replies.append(pane.querySelector(`template[data-${name}]`).content.cloneNode(true));
2693
+ const answer = () => pane.querySelectorAll('.pane-body .tag:not(.resolved)').forEach((tag) => tag.remove());
2694
+ button.addEventListener('click', () => {
2695
+ badge.className = 'badge success';
2696
+ badge.textContent = 'Done';
2697
+ badge.hidden = false;
2698
+ answer();
2699
+ add('resolution');
2700
+ count();
2701
+ hint.textContent = 'Saved to the board. A reply reopens the thread.';
2702
+ const heading = pane.querySelector('.pane-head h4');
2703
+ heading.tabIndex = -1;
2704
+ heading.focus();
2705
+ button.hidden = true;
2706
+ status.textContent = 'Thread resolved';
2707
+ });
2708
+ pane.querySelector('.composer').addEventListener('send', (e) => {
2709
+ add('reply');
2710
+ // Plain text: each line break in the reply becomes a <br>, so a multiline reply keeps its lines.
2711
+ const body = replies.lastElementChild.querySelector('.msg-body p');
2712
+ body.replaceChildren(...e.detail.split('\n').flatMap((line, i) => (i ? [document.createElement('br'), line] : [line])));
2713
+ answer();
2714
+ count();
2715
+ badge.hidden = true;
2716
+ if (!button.hidden) return;
2717
+ button.hidden = false;
2718
+ hint.textContent = openHint;
2719
+ status.textContent = 'Thread reopened';
2720
+ });
2721
+ });
2722
+
2647
2723
  // Thread panel: drag the handle, or focus it and use Left and Right Arrow, to set the pane from 20rem to 40rem,
2648
2724
  // and never so wide that the channel beside it drops below 16rem. The separator reports the width the pane takes.
2649
2725
  document.querySelectorAll('.pane-resize[role="separator"]:not([inert] *)').forEach((handle) => {