@filipgutica/design-system 1.0.46 → 1.0.48

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.
package/README.md CHANGED
@@ -35,7 +35,7 @@ npm install @filipgutica/design-system
35
35
  | --- | --- |
36
36
  | `@filipgutica/design-system/tokens.css` | The tokens. Dark mode follows `prefers-color-scheme`; set `data-theme="light"` or `"dark"` on `<html>` to override it. `data-theme="light"` or `"dark"` on any element below `<html>`, or a `.dark` class on `<html>` or below it, themes that subtree: every token that changes with the mode resolves again inside it. The subtree takes its mode's text colour; on an element with both, `data-theme="light"` wins over `.dark`. A theme written by hand sets its hue pair once, on `:root`: `tokens.css` switches `--color-accent` between `--color-project` and `--color-project-dark` by mode, so the rule works after `tokens.css`, in its cascade layer or a later one. A theme that also sets neutrals or text on the hue repeats those light values on `:root [data-theme="light"]` and the dark ones on the selectors of the dark subtree block at the end of `tokens.css`, beside its `:root` and root dark rules, so they hold in a subtree too; a theme file from the token build does this already. |
37
37
  | `@filipgutica/design-system/ui-sdk.css` | Experimental: draws [ui-sdk](https://ui-sdk.dev)'s headless Button, Field, Input, Textarea, Checkbox, and Radio as the component specs do, checked against `@ui-sdk/*` 0.1.0-beta.5. Load it after `tokens.css`, without ui-sdk's `web.css`; [DESIGN.md](language/DESIGN.md#ui-sdk-experimental) gives the layer order and the supported components. |
38
- | `@filipgutica/design-system/language/conversation.css` | The conversation components (message row and group, hover toolbar, thread panel, composer, tool-call disclosure, and mention) as [components.md](language/components.md#message-row) specifies them, for any framework; the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are; the badge and alert they hold come from `feedback.css`, and the button, quiet action, overflow menu, and field error from their own components. |
38
+ | `@filipgutica/design-system/language/conversation.css` | The conversation components (message row and group, message body, answer actions, hover toolbar, thread panel, composer and its formatting field, tool-call disclosure, and mention), the list row and app bar around them, and the quiet action as [components.md](language/components.md#message-row) specifies them, for any framework; the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are; the badge and alert they hold come from `feedback.css`, and the button, quiet action, overflow menu, and field error from their own components. |
39
39
  | `@filipgutica/design-system/language/feedback.css` | The [badge](language/components.md#badge) (neutral and the success, warning, danger, and info tones) and the [alert](language/components.md#alert), for any framework; ui-sdk has no badge or alert part, and the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are. |
40
40
  | `@filipgutica/design-system/themes/*.css` | A theme's inputs (hue pair, and any fonts, base radius, or neutrals): `graphite-indigo` (the default, already in `tokens.css`); the family sites' hues `lagoon` (annoterm), `copper` (devps), `iris` (filip-stack), `lapis` (Workbench), and `fern` (wtree); or the open palettes `catppuccin` and `github`. Load one after `tokens.css`, in its cascade layer or a later one, on `:root`. |
41
41
  | `@filipgutica/design-system/themes/*.tokens.json` | Each theme's source as a W3C Design Tokens file (2025.10), for design-token tools such as Style Dictionary and Tokens Studio. |
@@ -45,8 +45,8 @@ Center the **container**, not every sentence. Align header, content, images, and
45
45
  - `ui-sdk.css`: experimental. Draws ui-sdk's headless parts as the component specs do; see [ui-sdk](#ui-sdk-experimental).
46
46
  - `components.md`: one spec for each component, with anatomy, states, Do and Don't lines, keyboard and screen-reader behavior, motion, and forced colors. Read it for any component work.
47
47
  - `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
48
- - `conversation.css`: the conversation components' styles (message row and group, hover toolbar, thread panel, composer, tool-call disclosure, and mention). `components.html` links it, so it is their one source. Load it after `tokens.css`, unlayered, as the catalogue does; the parts these components hold, such as the badge and the button, come from their own components.
49
- - `feedback.css`: the badge's and the alert's styles, with their status tones. It and `conversation.css` size and stroke the icons they hold (the alert's icon and the resolution note's check), so a page supplies only the SVG sprite, not an icon class. `components.html` links it, so it is their one source; ui-sdk has no badge or alert part. Load it after `tokens.css`, unlayered.
48
+ - `conversation.css`: the conversation components' styles (message row and group, message body, answer actions, hover toolbar, thread panel, composer and its formatting field, tool-call disclosure, and mention), the list row and app bar of the application screen around them, and the quiet action's shared recipe. `components.html` links it, so it is their one source. Load it after `tokens.css`, unlayered, as the catalogue does; the parts these components hold, such as the badge and the button, come from their own components.
49
+ - `feedback.css`: the badge's and the alert's styles, with their status tones. It and `conversation.css` size and stroke the icons they hold (the alert's icon, the resolution note's check, the app bar's icons, and the format row's icons), so a page supplies only the SVG sprite, not an icon class. `components.html` links it, so it is their one source; ui-sdk has no badge or alert part. Load it after `tokens.css`, unlayered.
50
50
  - `decisions.md`: the choices behind the components, and the options they replaced.
51
51
  - `reference.html`: an application example, and a Foundations catalogue (`#foundations`) of every token: type, color with contrast, spacing, shape, borders, elevation, focus, and motion.
52
52
  - `docs.html`: a balanced documentation shell and compact setup command, with a one-page site's "On this page" rail.
@@ -140,8 +140,8 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
140
140
  | Small state mark | Pill | `--radius-pill` | Status badges, switch tracks and knobs, slider and progress tracks, score pips, the in-page location pip, and the icon-only segmented track |
141
141
  | A place, or a row you pick | 8px | `--radius-inline` | Navigation rows, group labels, breadcrumb links, the package catalogue's site name, tabs, list rows, menu rows, and message rows |
142
142
  | Something you type in, a control whose label wraps, or a one-line control that is not an action | 8px | `--radius-field` | Inputs, textareas, search fields, toggle cards, pager links, and one-line controls that are not actions: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link |
143
- | Holds other things | 12px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, tool-call details, composers, hover toolbars, and floating layers |
144
- | A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, keyboard keys, and mentions |
143
+ | Holds other things | 12px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, a message's code blocks, example frames, tool-call details, composers, hover toolbars, and floating layers |
144
+ | A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, a task list's box, an open todo's mark, keyboard keys, mentions, and a message's inline code |
145
145
 
146
146
  - A circle holds one icon and no text. An icon-only button is a box of equal width and height at every size, with `--radius-circle`. `--radius-circle` has the pill's value, 999px, and its own role: no button takes `--radius-pill`, and no action takes `50%`. An icon with no fill at rest is a [quiet action](components.md#quiet-action), an 8px tile.
147
147
  - A pill never holds text that can wrap: a status badge is the only pill with text, and it stays on one line. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.
@@ -73,11 +73,14 @@
73
73
  The tint mixes currentColor, so it reads on a light panel and on a dark plate.
74
74
  The recipe centres its content, so an icon-only action's SVG sits on the box centre. Use an SVG icon,
75
75
  never a text glyph such as ×: a font draws a glyph's ink off its box centre.
76
- :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. */
77
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); }
78
78
  .quiet-action.is-hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); }
79
79
  @media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); } }
80
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); }
81
84
  .quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
82
85
 
83
86
  /* Fields: input, textarea, select */
@@ -179,7 +182,8 @@
179
182
  :where(.overflow) > .quiet-action { color: var(--color-muted); }
180
183
  /* The More icon is three round dots: zero-length strokes with the icon's round caps. */
181
184
  .overflow > .quiet-action .icon { stroke-width: 3; }
182
- :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); }
183
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); }
184
188
  .menu-list.is-static { position: static; margin-top: 0; }
185
189
  .menu-list.is-above { top: auto; bottom: 100%; margin: 0 0 var(--space-1); }
@@ -589,7 +593,7 @@
589
593
  .skip:focus { top: var(--space-4); }
590
594
  .skip.is-focus { position: static; outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
591
595
  /* List selection */
592
- .rows { display: grid; width: min(100%, 360px); }
596
+ .rows[role="listbox"] { width: min(100%, 360px); }
593
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); }
594
598
  /* Dividers are straight lines inset by the row padding, so they never follow a rounded corner.
595
599
  A filled row (hovered or selected) hides the divider above it and the one below it. */
@@ -612,9 +616,24 @@
612
616
  .msg:is(.is-hover, .is-focus) > .msg-tools { opacity: 1; pointer-events: auto; }
613
617
  .msg-tools.is-static { position: static; width: max-content; opacity: 1; }
614
618
  .msg-tools .quiet-action.is-focus { outline-offset: calc(var(--focus-width) * -1); }
615
- .tool > summary.is-hover { background: var(--color-row-hover); color: var(--color-text); }
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; }
616
626
  .composer-box.is-focus { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
617
627
  .composer-box.is-focus:has(textarea[aria-invalid="true"]) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
628
+ /* The formatting composer's phone frame: conversation.css shows the Aa toggle at tablet width and below, so the frame
629
+ shows it, with the touch sizes, at any width. */
630
+ .composer-phone-demo { width: min(100%, 24rem); --control-sm: var(--control-touch); }
631
+ /* The formatting specimens are CodeMirror's DOM without CodeMirror, so they copy the one base-theme rule that changes
632
+ their layout: line wrapping, which the host turns on. */
633
+ .md-field .cm-lineWrapping { white-space: break-spaces; word-break: break-word; overflow-wrap: anywhere; }
634
+ .composer-phone-demo .composer.is-active .composer-box > .format-toggle { display: inline-flex; }
635
+ .composer-phone-demo .composer:not(:has(.format-toggle[aria-expanded="true"])) .format-row { display: none; }
636
+ .composer-phone-demo .format-row > .format-hint { display: none; }
618
637
  .pane-resize.is-hover { background: color-mix(in srgb, var(--color-accent) 40%, transparent); }
619
638
  .pane-resize.is-focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
620
639
  /* The thread panel's frame: a channel column beside the pane, as an application lays them out. */
@@ -629,6 +648,7 @@
629
648
  .thread-demo > .stream { align-content: start; padding: var(--space-5) var(--space-3); }
630
649
  /* Catalogue specimens: a stream leaves room above its first row for the toolbar, and a handle sits on a pane edge. */
631
650
  .state > .stream { width: min(100%, 36rem); padding-top: var(--space-4); }
651
+ .state > ul.rows { width: min(100%, 36rem); }
632
652
  .state > .composer { width: 22rem; max-width: 100%; }
633
653
  .state > .pane-head { width: 24rem; max-width: 100%; }
634
654
  .state > .tool { max-width: 30rem; }
@@ -1083,6 +1103,10 @@
1083
1103
  <symbol id="i-light" viewBox="0 0 16 16"><circle cx="8" cy="8" r="3"/><path d="M8 1.5v1.5M8 13v1.5M1.5 8H3M13 8h1.5M3.4 3.4l1 1M11.6 11.6l1 1M3.4 12.6l1-1M11.6 4.4l1-1"/></symbol>
1084
1104
  <symbol id="i-more" viewBox="0 0 16 16"><path d="M3 8h.01M8 8h.01M13 8h.01"/></symbol>
1085
1105
  <symbol id="i-reply" viewBox="0 0 16 16"><path d="M6 11 2.5 7.5 6 4"/><path d="M13.5 12.5v-1.5a3.5 3.5 0 0 0-3.5-3.5H2.5"/></symbol>
1106
+ <symbol id="i-bold" viewBox="0 0 16 16"><path d="M4.5 2.5h4a2.75 2.75 0 0 1 0 5.5h-4zM4.5 8h4.75a2.75 2.75 0 0 1 0 5.5H4.5z"/></symbol>
1107
+ <symbol id="i-italic" viewBox="0 0 16 16"><path d="M7 2.5h5.5M3.5 13.5H9M9.75 2.5l-3.5 11"/></symbol>
1108
+ <symbol id="i-code" viewBox="0 0 16 16"><path d="M5.5 4.5 2.5 8l3 3.5M10.5 4.5l3 3.5-3 3.5"/></symbol>
1109
+ <symbol id="i-codeblock" viewBox="0 0 16 16"><rect x="2.5" y="2.5" width="11" height="11" rx="1.5"/><path d="M6.5 6l-2 2 2 2M9.5 6l2 2-2 2"/></symbol>
1086
1110
  <symbol id="i-send" viewBox="0 0 16 16"><path d="M14.5 1.5 10 14.5l-2.5-6-6-2.5z"/><path d="M14.5 1.5l-7 7"/></symbol>
1087
1111
  <symbol id="i-dark" viewBox="0 0 16 16"><path d="M13 9.5A5.5 5.5 0 0 1 6.5 3a5.5 5.5 0 1 0 6.5 6.5z"/></symbol>
1088
1112
  </svg>
@@ -1136,15 +1160,15 @@
1136
1160
  </div>
1137
1161
  <div class="navlist" role="group" aria-labelledby="rail-data-display">
1138
1162
  <span class="group-label" id="rail-data-display">Data display</span>
1139
- <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>
1163
+ <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>
1140
1164
  </div>
1141
1165
  <div class="navlist" role="group" aria-labelledby="rail-navigation">
1142
1166
  <span class="group-label" id="rail-navigation">Navigation</span>
1143
- <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>
1167
+ <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>
1144
1168
  </div>
1145
1169
  <div class="navlist" role="group" aria-labelledby="rail-conversation">
1146
1170
  <span class="group-label" id="rail-conversation">Conversation</span>
1147
- <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>
1171
+ <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, and formatting buttons while you write. message input chat box send reply markdown formatting bold codemirror">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>
1148
1172
  </div>
1149
1173
  <div class="navlist" role="group" aria-labelledby="rail-code">
1150
1174
  <span class="group-label" id="rail-code">Code and examples</span>
@@ -1180,9 +1204,9 @@
1180
1204
  <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>
1181
1205
  <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>
1182
1206
  <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>
1183
- <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>
1184
- <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>
1185
- <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>
1207
+ <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>
1208
+ <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>
1209
+ <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, and formatting buttons while you write.</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>
1186
1210
  <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>
1187
1211
  <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>
1188
1212
  </div>
@@ -1668,6 +1692,25 @@
1668
1692
  </div></div>
1669
1693
  </section>
1670
1694
 
1695
+ <section class="component" id="list-row" data-layer="Core" data-states="hover selected focus" aria-labelledby="list-row-title">
1696
+ <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>
1697
+ <p class="purpose">One line per item in a list to scan, such as todos or work items.</p>
1698
+ <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>
1699
+ <div class="row"><h4>Live</h4><div class="states">
1700
+ <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>
1701
+ <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>
1702
+ </div></div>
1703
+ <div class="row"><h4>States</h4><div class="states">
1704
+ <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>
1705
+ <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>
1706
+ <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>
1707
+ </div></div>
1708
+ <div class="row"><h4>Variants</h4><div class="states">
1709
+ <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>
1710
+ <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>
1711
+ </div></div>
1712
+ </section>
1713
+
1671
1714
  <section class="layer-head" id="group-navigation" aria-labelledby="group-navigation-title">
1672
1715
  <h2 id="group-navigation-title">Navigation</h2>
1673
1716
  <p>Move between pages and sections, and find things.</p>
@@ -1780,6 +1823,16 @@
1780
1823
  </div></div>
1781
1824
  </section>
1782
1825
 
1826
+ <section class="component" id="app-bar" data-layer="Core" aria-labelledby="app-bar-title">
1827
+ <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>
1828
+ <p class="purpose">The view’s name and the menu at tablet width, in place of the sidebar.</p>
1829
+ <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>
1830
+ <div class="row"><h4>At tablet width</h4><div class="states">
1831
+ <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>
1832
+ <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>
1833
+ </div></div>
1834
+ </section>
1835
+
1783
1836
  <section class="layer-head" id="group-conversation" aria-labelledby="group-conversation-title">
1784
1837
  <h2 id="group-conversation-title">Conversation</h2>
1785
1838
  <p>Read and answer messages from people and agents.</p>
@@ -1788,9 +1841,9 @@
1788
1841
  <section class="component" id="message-row" data-layer="Core" data-states="hover selected focus" aria-labelledby="msg-row-title">
1789
1842
  <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>
1790
1843
  <p class="purpose">One message: avatar, author, time, and body, with no bubble.</p>
1791
- <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, and show a Needs you tag only while the message still waits for the reader.</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>
1844
+ <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>
1792
1845
  <div class="row"><h4>Live</h4><div class="states">
1793
- <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><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>
1846
+ <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>
1794
1847
  </div></div>
1795
1848
  <div class="row"><h4>States</h4><div class="states">
1796
1849
  <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>
@@ -1799,8 +1852,9 @@
1799
1852
  <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>
1800
1853
  </div></div>
1801
1854
  <div class="row"><h4>Status</h4><div class="states">
1802
- <div class="state wide" inert><ol class="stream" aria-label="Messages, asks 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">Asks you</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">Needs you: a question that waits for the reader</span></div>
1803
- <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 warning">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">Needs you: a question that stops the work</span></div>
1855
+ <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>
1856
+ <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>
1857
+ <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>
1804
1858
  <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>
1805
1859
  <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>
1806
1860
  <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>
@@ -1819,6 +1873,32 @@
1819
1873
  </div></div>
1820
1874
  </section>
1821
1875
 
1876
+ <section class="component" id="message-body" data-layer="Core" aria-labelledby="message-body-title">
1877
+ <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>
1878
+ <p class="purpose">A message’s Markdown, drawn as text: lists, code, quotes, links, and tables.</p>
1879
+ <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>
1880
+ <div class="row"><h4>Markdown</h4><div class="states">
1881
+ <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>
1882
+ <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>
1883
+ <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>
1884
+ </div></div>
1885
+ </section>
1886
+
1887
+ <section class="component" id="answer-actions" data-layer="Core" data-states="hover focus disabled busy" aria-labelledby="answer-actions-title">
1888
+ <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>
1889
+ <p class="purpose">Yes, No, and Reply under a question that waits for the reader.</p>
1890
+ <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>
1891
+ <div class="row"><h4>Live</h4><div class="states">
1892
+ <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>
1893
+ </div></div>
1894
+ <div class="row"><h4>States</h4><div class="states">
1895
+ <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>
1896
+ <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>
1897
+ <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>
1898
+ <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
+ </div></div>
1900
+ </section>
1901
+
1822
1902
  <section class="component" id="hover-toolbar" data-layer="Core" data-states="hover pressed focus" aria-labelledby="msg-tools-title">
1823
1903
  <header><h3 id="msg-tools-title">Hover toolbar</h3><span class="badge">Core</span><a href="components.md#hover-toolbar">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="hover-toolbar" aria-label="Copy link to Hover toolbar" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1824
1904
  <p class="purpose">Quick actions on a message, shown on hover or focus.</p>
@@ -1841,7 +1921,7 @@
1841
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. 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>
1842
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. Resolve the live thread to see its done state; reload the page to open it again.</p>
1843
1923
  <div class="row"><h4>Live</h4><div class="states">
1844
- <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><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><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>
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><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>
1845
1925
  </div></div>
1846
1926
  <div class="row"><h4>Thread state</h4><div class="states">
1847
1927
  <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>
@@ -1862,8 +1942,8 @@
1862
1942
 
1863
1943
  <section class="component" id="composer" data-layer="Core" data-states="focus disabled busy invalid" aria-labelledby="composer-title">
1864
1944
  <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>
1865
- <p class="purpose">One growing field with an inline send button.</p>
1866
- <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>
1945
+ <p class="purpose">One growing field with an inline send button, and formatting buttons while you write.</p>
1946
+ <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, a second field for a title, or formatting buttons on an idle composer. An idle composer is one field and one icon.</dd></dl>
1867
1947
  <div class="row"><h4>States</h4><div class="states">
1868
1948
  <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>
1869
1949
  <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.
@@ -1874,6 +1954,13 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
1874
1954
  <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>
1875
1955
  <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>
1876
1956
  <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>
1957
+ <div class="state wide" inert><div class="composer"><div class="composer-box"><div class="md-field"><div class="cm-editor"><div class="cm-scroller"><div class="cm-content cm-lineWrapping" role="textbox" aria-multiline="true" contenteditable="true" spellcheck="true" autocorrect="on" autocapitalize="sentences" aria-label="Reply to desktop-claude" aria-describedby="fmt-rest-hint"><div class="cm-line"><span class="cm-placeholder" aria-hidden="true">Reply to desktop-claude</span><br></div></div></div></div></div><button class="quiet-action format-toggle" type="button" aria-label="Formatting" aria-expanded="false" aria-controls="fmt-rest-format"><span aria-hidden="true">Aa</span></button><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><div class="format-row" id="fmt-rest-format" role="group" aria-label="Formatting"><button class="quiet-action" type="button" aria-label="Bold" aria-keyshortcuts="Control+B"><svg class="icon" aria-hidden="true"><use href="#i-bold"/></svg></button><button class="quiet-action" type="button" aria-label="Italic" aria-keyshortcuts="Control+I"><svg class="icon" aria-hidden="true"><use href="#i-italic"/></svg></button><button class="quiet-action" type="button" aria-label="Code"><svg class="icon" aria-hidden="true"><use href="#i-code"/></svg></button><button class="quiet-action" type="button" aria-label="Code block"><svg class="icon" aria-hidden="true"><use href="#i-codeblock"/></svg></button><button class="quiet-action" type="button" aria-label="List"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button class="quiet-action" type="button" aria-label="Link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="format-hint">Markdown</span></div><p class="composer-hint" id="fmt-rest-hint">Saved to the board.</p></div><span class="caption">Formatting field at rest: one line, the format row hidden until the composer is active</span></div>
1958
+ <div class="state wide" inert><div class="composer is-active"><div class="composer-box"><div class="md-field"><div class="cm-editor cm-focused"><div class="cm-scroller"><div class="cm-content cm-lineWrapping" role="textbox" aria-multiline="true" contenteditable="true" spellcheck="true" autocorrect="on" autocapitalize="sentences" aria-label="Reply to desktop-claude" aria-describedby="fmt-writing-hint"><div class="cm-line">Add it, but <span class="md-strong mk">**</span><span class="md-strong">merge</span><span class="md-strong mk">**</span> with what’s <span class="md-em mk">_</span><span class="md-em">already</span><span class="md-em mk">_</span> there:</div><div class="cm-line"><span class="mk">-</span> print what changed, like <span class="mk">`</span><span class="md-code">devchat doctor</span><span class="mk">`</span></div><div class="cm-line md-fence"><span class="mk">```</span>json</div><div class="cm-line md-fence"><span class="md-code">"excludedCommands": ["devchat *"]</span></div><div class="cm-line md-fence"><span class="mk">```</span></div><div class="cm-line">See <span class="md-link mk">[</span><span class="md-link">the setup notes</span><span class="md-link mk">](</span><span class="md-link">https://devchat.local/setup</span><span class="md-link mk">)</span>.</div></div></div></div></div><button class="quiet-action format-toggle" type="button" aria-label="Formatting" aria-expanded="false" aria-controls="fmt-writing-format"><span aria-hidden="true">Aa</span></button><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><div class="format-row" id="fmt-writing-format" role="group" aria-label="Formatting"><button class="quiet-action" type="button" aria-label="Bold" aria-keyshortcuts="Control+B"><svg class="icon" aria-hidden="true"><use href="#i-bold"/></svg></button><button class="quiet-action" type="button" aria-label="Italic" aria-keyshortcuts="Control+I"><svg class="icon" aria-hidden="true"><use href="#i-italic"/></svg></button><button class="quiet-action" type="button" aria-label="Code"><svg class="icon" aria-hidden="true"><use href="#i-code"/></svg></button><button class="quiet-action" type="button" aria-label="Code block"><svg class="icon" aria-hidden="true"><use href="#i-codeblock"/></svg></button><button class="quiet-action" type="button" aria-label="List"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button class="quiet-action" type="button" aria-label="Link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="format-hint">Markdown</span></div><p class="composer-hint" id="fmt-writing-hint">Saved to the board.</p></div><span class="caption">Writing: the marks stay, muted; bold, italic, code, a fence, and a link draw as they will send, and the format row shows while the composer is active</span></div>
1959
+ <div class="state wide" inert><div class="composer is-active"><div class="composer-box"><div class="md-field"><div class="cm-editor cm-focused"><div class="cm-scroller"><div class="cm-content cm-lineWrapping" role="textbox" aria-multiline="true" contenteditable="true" spellcheck="true" autocorrect="on" autocapitalize="sentences" aria-label="Reply to desktop-claude" aria-describedby="fmt-invalid-hint" aria-invalid="true" aria-errormessage="fmt-invalid-error"><div class="cm-line">Push the fix to <span class="mk">`</span><span class="md-code">acme/private-repo</span><span class="mk">`</span></div></div></div></div></div><button class="quiet-action format-toggle" type="button" aria-label="Formatting" aria-expanded="false" aria-controls="fmt-invalid-format"><span aria-hidden="true">Aa</span></button><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><div class="format-row" id="fmt-invalid-format" role="group" aria-label="Formatting"><button class="quiet-action" type="button" aria-label="Bold" aria-keyshortcuts="Control+B"><svg class="icon" aria-hidden="true"><use href="#i-bold"/></svg></button><button class="quiet-action" type="button" aria-label="Italic" aria-keyshortcuts="Control+I"><svg class="icon" aria-hidden="true"><use href="#i-italic"/></svg></button><button class="quiet-action" type="button" aria-label="Code"><svg class="icon" aria-hidden="true"><use href="#i-code"/></svg></button><button class="quiet-action" type="button" aria-label="Code block"><svg class="icon" aria-hidden="true"><use href="#i-codeblock"/></svg></button><button class="quiet-action" type="button" aria-label="List"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button class="quiet-action" type="button" aria-label="Link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="format-hint">Markdown</span></div><p class="field-error" id="fmt-invalid-error">Not saved: the message names a private repository. Remove the name and send again.</p><p class="composer-hint" id="fmt-invalid-hint">Saved to the board.</p></div><span class="caption">Invalid while focused: refused, the text kept</span></div>
1960
+ <div class="state wide" inert><div class="composer is-active"><div class="composer-box"><div class="md-field"><div class="cm-editor cm-focused"><div class="cm-scroller"><div class="cm-content cm-lineWrapping" role="textbox" aria-multiline="true" contenteditable="true" aria-readonly="true" spellcheck="true" autocorrect="on" autocapitalize="sentences" aria-label="Reply to desktop-claude" aria-describedby="fmt-busy-hint"><div class="cm-line">Scroll for now. <span class="md-strong mk">**</span><span class="md-strong">Wrap</span><span class="md-strong mk">**</span> needs a design pass.</div></div></div></div></div><button class="quiet-action format-toggle" type="button" aria-label="Formatting" aria-expanded="false" aria-controls="fmt-busy-format" disabled><span aria-hidden="true">Aa</span></button><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><div class="format-row" id="fmt-busy-format" role="group" aria-label="Formatting"><button class="quiet-action" type="button" aria-label="Bold" aria-keyshortcuts="Control+B" disabled><svg class="icon" aria-hidden="true"><use href="#i-bold"/></svg></button><button class="quiet-action" type="button" aria-label="Italic" aria-keyshortcuts="Control+I" disabled><svg class="icon" aria-hidden="true"><use href="#i-italic"/></svg></button><button class="quiet-action" type="button" aria-label="Code" disabled><svg class="icon" aria-hidden="true"><use href="#i-code"/></svg></button><button class="quiet-action" type="button" aria-label="Code block" disabled><svg class="icon" aria-hidden="true"><use href="#i-codeblock"/></svg></button><button class="quiet-action" type="button" aria-label="List" disabled><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button class="quiet-action" type="button" aria-label="Link" disabled><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="format-hint">Markdown</span></div><p class="composer-hint" id="fmt-busy-hint">Saved to the board.</p></div><span class="caption">Busy: sending; the editor is read-only and keeps the text and focus, and the format buttons are disabled</span></div>
1961
+ <div class="state wide" inert><div class="composer"><div class="composer-box"><div class="md-field"><div class="cm-editor"><div class="cm-scroller"><div class="cm-content cm-lineWrapping" role="textbox" aria-multiline="true" contenteditable="false" spellcheck="true" autocorrect="on" autocapitalize="sentences" aria-label="Reply to desktop-claude" aria-describedby="fmt-offline-hint"><div class="cm-line"><span class="cm-placeholder" aria-hidden="true">Reply to desktop-claude</span><br></div></div></div></div></div><button class="quiet-action format-toggle" type="button" aria-label="Formatting" aria-expanded="false" aria-controls="fmt-offline-format" disabled><span aria-hidden="true">Aa</span></button><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><div class="format-row" id="fmt-offline-format" role="group" aria-label="Formatting"><button class="quiet-action" type="button" aria-label="Bold" aria-keyshortcuts="Control+B" disabled><svg class="icon" aria-hidden="true"><use href="#i-bold"/></svg></button><button class="quiet-action" type="button" aria-label="Italic" aria-keyshortcuts="Control+I" disabled><svg class="icon" aria-hidden="true"><use href="#i-italic"/></svg></button><button class="quiet-action" type="button" aria-label="Code" disabled><svg class="icon" aria-hidden="true"><use href="#i-code"/></svg></button><button class="quiet-action" type="button" aria-label="Code block" disabled><svg class="icon" aria-hidden="true"><use href="#i-codeblock"/></svg></button><button class="quiet-action" type="button" aria-label="List" disabled><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button class="quiet-action" type="button" aria-label="Link" disabled><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="format-hint">Markdown</span></div><p class="composer-hint" id="fmt-offline-hint">Offline: the board server can’t be reached. Sending comes back when it can.</p></div><span class="caption">Disabled: offline, the editor not editable</span></div>
1962
+ <div class="state wide" inert><div class="composer-phone-demo"><div class="composer is-active"><div class="composer-box"><div class="md-field"><div class="cm-editor cm-focused"><div class="cm-scroller"><div class="cm-content cm-lineWrapping" role="textbox" aria-multiline="true" contenteditable="true" spellcheck="true" autocorrect="on" autocapitalize="sentences" aria-label="Reply to desktop-claude" aria-describedby="fmt-phone-hint"><div class="cm-line">Scroll for now. <span class="md-strong mk">**</span><span class="md-strong">Wrap</span><span class="md-strong mk">**</span> needs a design pass.</div></div></div></div></div><button class="quiet-action format-toggle" type="button" aria-label="Formatting" aria-expanded="false" aria-controls="fmt-phone-format"><span aria-hidden="true">Aa</span></button><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><div class="format-row" id="fmt-phone-format" role="group" aria-label="Formatting"><button class="quiet-action" type="button" aria-label="Bold" aria-keyshortcuts="Control+B"><svg class="icon" aria-hidden="true"><use href="#i-bold"/></svg></button><button class="quiet-action" type="button" aria-label="Italic" aria-keyshortcuts="Control+I"><svg class="icon" aria-hidden="true"><use href="#i-italic"/></svg></button><button class="quiet-action" type="button" aria-label="Code"><svg class="icon" aria-hidden="true"><use href="#i-code"/></svg></button><button class="quiet-action" type="button" aria-label="Code block"><svg class="icon" aria-hidden="true"><use href="#i-codeblock"/></svg></button><button class="quiet-action" type="button" aria-label="List"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button class="quiet-action" type="button" aria-label="Link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="format-hint">Markdown</span></div><p class="composer-hint" id="fmt-phone-hint">Saved to the board.</p></div></div><span class="caption">Phone, writing: Aa sits before Send, and the format row waits for it</span></div>
1963
+ <div class="state wide" inert><div class="composer-phone-demo"><div class="composer is-active"><div class="composer-box"><div class="md-field"><div class="cm-editor"><div class="cm-scroller"><div class="cm-content cm-lineWrapping" role="textbox" aria-multiline="true" contenteditable="true" spellcheck="true" autocorrect="on" autocapitalize="sentences" aria-label="Reply to desktop-claude" aria-describedby="fmt-phone-open-hint"><div class="cm-line">Scroll for now. <span class="md-strong mk">**</span><span class="md-strong">Wrap</span><span class="md-strong mk">**</span> needs a design pass.</div></div></div></div></div><button class="quiet-action format-toggle" type="button" aria-label="Formatting" aria-expanded="true" aria-controls="fmt-phone-open-format"><span aria-hidden="true">Aa</span></button><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><div class="format-row" id="fmt-phone-open-format" role="group" aria-label="Formatting"><button class="quiet-action" type="button" aria-label="Bold" aria-keyshortcuts="Control+B"><svg class="icon" aria-hidden="true"><use href="#i-bold"/></svg></button><button class="quiet-action" type="button" aria-label="Italic" aria-keyshortcuts="Control+I"><svg class="icon" aria-hidden="true"><use href="#i-italic"/></svg></button><button class="quiet-action" type="button" aria-label="Code"><svg class="icon" aria-hidden="true"><use href="#i-code"/></svg></button><button class="quiet-action" type="button" aria-label="Code block"><svg class="icon" aria-hidden="true"><use href="#i-codeblock"/></svg></button><button class="quiet-action" type="button" aria-label="List"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button class="quiet-action" type="button" aria-label="Link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button><span class="format-hint">Markdown</span></div><p class="composer-hint" id="fmt-phone-open-hint">Saved to the board.</p></div></div><span class="caption">Phone, Aa open: the format row at touch size</span></div>
1877
1964
  </div></div>
1878
1965
  </section>
1879
1966
 
@@ -2019,9 +2106,11 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2019
2106
  <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>
2020
2107
  <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>
2021
2108
  <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>
2109
+ <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>
2022
2110
  <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>
2023
2111
  <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>
2024
2112
  <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>
2113
+ <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>
2025
2114
  <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>
2026
2115
  <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>
2027
2116
  <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>
@@ -2439,9 +2528,14 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2439
2528
 
2440
2529
  // Live dialog and drawer: native modal dialogs return focus to the trigger on close. Safari does not focus a
2441
2530
  // button on click, so the trigger takes focus first and the dialog has it to return to.
2531
+ // A trigger with aria-expanded, such as the app bar's Menu, says whether its drawer is open.
2442
2532
  document.querySelectorAll('[data-open]').forEach((button) => button.addEventListener('click', () => {
2443
2533
  button.focus();
2444
- document.getElementById(button.dataset.open).showModal();
2534
+ const dialog = document.getElementById(button.dataset.open);
2535
+ dialog.showModal();
2536
+ if (!button.hasAttribute('aria-expanded')) return;
2537
+ button.setAttribute('aria-expanded', 'true');
2538
+ dialog.addEventListener('close', () => button.setAttribute('aria-expanded', 'false'), { once: true });
2445
2539
  }));
2446
2540
  // A tap or click on the backdrop, which belongs to the dialog element, lands outside the dialog's box and
2447
2541
  // closes it. closedby="any" would do this, but Safari does not support it. Only a press that starts outside
@@ -2598,7 +2692,7 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2598
2692
  // The live thread: its reply list is the one source of both reply counts, the pane's and the channel root's.
2599
2693
  // Resolve marks the thread done: the resolving post ends the replies, the question no longer waits, and the hint
2600
2694
  // says a reply reopens the thread. Resolve then hides, so focus moves to the pane's heading and a polite live region
2601
- // says the thread is resolved. A reply answers the question, so Needs you leaves with its tag, and on a resolved
2695
+ // 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
2602
2696
  // thread it reopens it: the Done badge leaves, Resolve comes back, and the hint returns.
2603
2697
  document.querySelectorAll('.thread-pane:not([inert] *)').forEach((pane) => {
2604
2698
  const button = pane.querySelector('[data-resolve]');
@@ -24,9 +24,9 @@ The sections follow the catalogue's purpose groups, in this order. Each componen
24
24
  | Inputs | Text input and textarea, select, combobox, number field, field wrapper, slider |
25
25
  | Feedback and status | Progress, score, badge, alert |
26
26
  | Containers and overlays | Surface and card, figure, dialog, drawer, slideout |
27
- | Data display | Description list, stat tile |
28
- | Navigation | Navigation list, section rail, find field, breadcrumbs, pager, tabs, skip link, keyboard key |
29
- | Conversation | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention |
27
+ | Data display | Description list, stat tile, list row |
28
+ | Navigation | Navigation list, section rail, find field, breadcrumbs, pager, tabs, skip link, keyboard key, app bar |
29
+ | Conversation | Message row, message group, message body, answer actions, hover toolbar, thread panel, composer, tool-call disclosure, mention |
30
30
  | Code and examples | Code block |
31
31
  | Identity | Command plate, terminal capture, site header, page type and helpers |
32
32
 
@@ -406,6 +406,19 @@ Layer: Core.
406
406
  - **Motion.** A linked tile's fill changes over `--duration-fast` with `--ease-out`.
407
407
  - **Forced colors.** The fill drops, and the transparent border draws as the system edge, so each tile keeps its outline.
408
408
 
409
+ ## List row
410
+
411
+ Layer: Core.
412
+
413
+ - **Anatomy.** One item in a `<ul class="rows">` that is read by scanning, such as a todo or a work item: one line, at least `--row` tall, with `--space-1` `--space-2` padding, `--radius-inline` corners, `--text-sm`, and the parts `--space-3` apart. In order: an optional mark, the text, then the metadata. The text (`.row-text`) takes the rest of the line in `--color-text` and ends in an ellipsis; a `.wrap` text, for a sentence such as a guidance record, shows two lines before it ends. The metadata (`.row-meta`) is `--text-xs` `--color-muted` with tabular numbers, such as a date or a state ("PR #318"). An open todo leads with its mark (`.row-check`): an empty 16px box with a 1.5px `--color-border` edge and `--radius-mark` corners. A row that opens something makes its text a link; the link stretches over the whole row, so the row is one target. A row may end with one quiet action or button, such as Undo, which sits above the stretched link. A "Show resolved" link (`.row-more`) after the list, not a switch in a toolbar, shows the closed items: `--text-sm`, `--space-1` below the list, and inset `--space-2` to line up with the rows' text; the link is `--control-sm` tall, so it grows to `--control-touch` at tablet width.
414
+ - **States.** Rest; hover, which fills the row `--color-row-hover`; focus-visible on its link, which the row draws as the focus ring, inset; and selected, the row whose thread is open (`aria-current="true"`), with the `--color-nav-current` fill, kept under hover, as the [message row](#message-row) has.
415
+ - **Do.** 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.
416
+ - **Don't.** 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.
417
+ - **Keyboard and screen reader.** The `<ul>` is named for what it lists, such as "Todos". Each row's link is one Tab stop and reads as the row's text; a link's name holds the whole text, though the row shows it cut short. The mark is `aria-hidden`, because the list's name says what the rows are. A control in the row follows the link in Tab order and names its item, such as "Undo the merge".
418
+ - **Motion.** The fill changes over `--duration-fast` with `--ease-out`.
419
+ - **Forced colors.** The fills drop. The selected row takes a 2px `Highlight` border on its leading edge, and its leading padding gives up 2px for it, as the message row does. The mark's edge draws in `CanvasText`.
420
+ - **Touch.** At tablet width (`max-width: 800px`) each row is at least `--control-touch` tall.
421
+
409
422
  ## Navigation list
410
423
 
411
424
  Layer: Core. The mono font on rail rows is identity.
@@ -516,15 +529,27 @@ Layer: Core.
516
529
  - **Motion.** None: a key is static.
517
530
  - **Forced colors.** The edge is `CanvasText`.
518
531
 
532
+ ## App bar
533
+
534
+ Layer: Core.
535
+
536
+ - **Anatomy.** An application screen's one top line at tablet width (`max-width: 800px`), in place of the sidebar, which moves into a [drawer](#drawer): at least 48px tall (`3rem`), with `0.125rem` `--space-2` padding, a 1px `--color-border-subtle` rule below it, and its parts `--space-1` apart. In order: Menu, the current view's name as the screen's heading, and an optional action such as Search. The heading takes the room left, in `--text-md` semibold, and ends in an ellipsis. Menu and the action are icon-only [quiet actions](#quiet-action), `--control-touch` square, in `--color-muted`, each with a 16px SVG icon. Their focus ring is inset, because the action nearly fills the bar's height. Menu opens the navigation drawer from the leading edge; the drawer's backdrop dims the page. Wider screens hide the bar (`@media (min-width: 801px)`) and show the sidebar.
537
+ - **States.** None: the bar is static. Its quiet actions take their own states, and Menu shows whether the drawer is open through `aria-expanded`.
538
+ - **Do.** 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.
539
+ - **Don't.** 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.
540
+ - **Keyboard and screen reader.** Menu is a `<button>` named "Menu", with `aria-expanded` and `aria-controls` naming the drawer; the drawer follows the [drawer](#drawer)'s focus rules, and closing it returns focus to Menu. The heading is the screen's `<h1>`. The action has an `aria-label`, such as "Search". The bar takes no landmark of its own.
541
+ - **Motion.** None: the bar is static; the drawer slides as its section says.
542
+ - **Forced colors.** The rule draws in the system colour, and the quiet actions' transparent borders draw as system edges.
543
+
519
544
  ## Message row
520
545
 
521
546
  Layer: Core.
522
547
 
523
- - **Anatomy.** One message in a list (`<ol>`) of messages, as a flat row with no bubble or card. A grid of a 32px avatar column (`2rem`) and the body, with a `--space-3` gap, `0.375rem` `--space-2` padding, and `--radius-inline` corners. The avatar is 32px square with `--radius-inline` corners, a `--color-surface-muted` fill, and the author's initials in `--font-mono` `--text-xs` semibold `--color-muted`; it is `aria-hidden`, because the name follows it. The header line holds the author in semibold (an agent's name in `--font-mono` `--text-sm`), the Agent mark on an agent's message, an optional status, then the time in a `<time>` element, `--text-xs` `--color-muted`. The Agent mark is a neutral [badge](#badge) that reads "Agent"; the person's own messages carry no mark, so the mark sets agents apart. It goes in the header line of a group's first message; continuation rows carry no header, so the group's one mark covers them. On the selected row it takes the `--color-surface-raised` fill, because in light the selected tint nearly matches the neutral badge's. The status slot holds one status at most, in one of two tones:
524
- - **Needs you:** a `--text-xs` semibold tag in `--color-text`, led by a 6px dot `--space-1` before it in the tone of the thread's state badge, on the message that waits for the reader: "Asks you" on a question, with an `--color-info` dot, or "Blocked on you" on a question that stops the work, with an `--color-warning` dot. The status colour goes on the dot, not the words, as for every status outside a badge.
525
- - **Resolution:** a `--text-xs` note in `--color-muted`, on the post that resolves a thread: "Resolved the thread", led by a 14px check icon in `--color-success` 4px (`--space-1`) before it, or "Dropped the thread", with no icon. The row's author is who resolved it. A resolution posted from a button has no body. Where a resolved thread shows only its root, as in a list of resolved threads, the root's note names the resolver instead: "Resolved by desktop-claude" or "Dropped by desktop-claude", because the root's author is who started the thread. The body follows, at most `--measure` wide, with `--space-1` between its blocks. A new group starts `--space-2` below the row before it. The row holds a [hover toolbar](#hover-toolbar) at its top right.
548
+ - **Anatomy.** One message in a list (`<ol>`) of messages, as a flat row with no bubble or card. A grid of a 32px avatar column (`2rem`) and the body, with a `--space-3` gap, `0.375rem` `--space-2` padding, and `--radius-inline` corners. The avatar is 32px square with `--radius-inline` corners, a `--color-surface-muted` fill, and the author's initials in `--font-mono` `--text-xs` semibold `--color-muted`; it is `aria-hidden`, because the name follows it. The header line holds the author in semibold (an agent's name in `--font-mono` `--text-sm`), the Agent mark on an agent's message, an optional status, then the time in a `<time>` element, `--text-xs` `--color-muted`. The Agent mark is a neutral [badge](#badge) that reads "Agent"; the person's own messages carry no mark, so the mark sets agents apart where people and agents both post. Where every author but the reader is an agent, as on a board the reader shares only with agents, the mark is left out: the mono name already sets them apart. It goes in the header line of a group's first message; continuation rows carry no header, so the group's one mark covers them. On the selected row it takes the `--color-surface-raised` fill, because in light the selected tint nearly matches the neutral badge's. The status slot holds one status at most, in one of two tones:
549
+ - **Blocked on you:** a `--text-xs` semibold tag in `--color-text`, led by a 6px `--color-warning` dot `--space-1` before it, the tone of the thread's Blocked badge, on a question that stops the work until the reader answers. A question that does not block carries no tag: the list it sits in, such as Needs you, or the thread's Needs you badge, already says it waits. The status colour goes on the dot, not the words, as for every status outside a badge.
550
+ - **Resolution:** a `--text-xs` note in `--color-muted`, on the post that resolves a thread: "Resolved the thread", led by a 14px check icon in `--color-success` 4px (`--space-1`) before it, or "Dropped the thread", with no icon. The row's author is who resolved it. A resolution posted from a button has no body. Where a resolved thread shows only its root, as in a list of resolved threads, the root's note names the resolver instead: "Resolved by desktop-claude" or "Dropped by desktop-claude", because the root's author is who started the thread. The [body](#message-body) follows, at most `--measure` wide, with `--space-2` between its blocks. A new group starts `--space-2` below the row before it. The row holds a [hover toolbar](#hover-toolbar) at its top right.
526
551
  - **States.** Rest; hover, which tints the row `--color-row-hover` at 55% over transparent and shows its [hover toolbar](#hover-toolbar); focus within, which shows the toolbar as hover does; and selected, the message whose thread is open (`aria-current="true"`), with the `--color-nav-current` fill, kept under hover.
527
- - **Do.** 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, and show a Needs you tag only while the message still waits for the reader.
552
+ - **Do.** 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.
528
553
  - **Don't.** 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.
529
554
  - **Keyboard and screen reader.** The list is named for its channel or thread. A long name or URL in a row breaks anywhere (`overflow-wrap: anywhere` on the author and the body), so the page never scrolls sideways. Each row reads as its author, the Agent mark, the status, the time, and the body, in that order. The check icon is `aria-hidden`; the note's words carry it. The row itself takes no Tab stop: its links and its toolbar do.
530
555
  - **Motion.** The fill changes over `--duration-fast` with `--ease-out`.
@@ -534,7 +559,7 @@ Layer: Core.
534
559
 
535
560
  Layer: Core.
536
561
 
537
- - **Anatomy.** A run of [message rows](#message-row). Consecutive messages by one author within about 5 minutes form a group: the first row shows the avatar, the author, the Agent mark for an agent, and the time, and each later row is a continuation row with no avatar, name, or mark and `0.125rem` top padding; the first row's mark covers the group. A different author, a longer gap, a day divider, or a message with a status starts a new group: a status sits in the header line, which a continuation row lacks, and a resolution names who resolved the thread. A continuation row shows its time in the avatar column while it is hovered or has focus within: `--text-xs`, `--color-muted`, tabular numbers, end-aligned. That time is `aria-hidden`; a visually hidden "author, time" before the body gives a screen reader both on every row. A day divider is a list item between groups: a `--text-xs` medium `--color-muted` label, such as "Today", between two 1px `--color-border-subtle` rules, with `--space-3` above it and `--space-1` below.
562
+ - **Anatomy.** A run of [message rows](#message-row). Consecutive messages by one author within about 5 minutes form a group: the first row shows the avatar, the author, the Agent mark for an agent where the [message row](#message-row) calls for one, and the time, and each later row is a continuation row with no avatar, name, or mark and `0.125rem` top padding; the first row's mark covers the group. A different author, a longer gap, a day divider, or a message with a status starts a new group: a status sits in the header line, which a continuation row lacks, and a resolution names who resolved the thread. A continuation row shows its time in the avatar column while it is hovered or has focus within: `--text-xs`, `--color-muted`, tabular numbers, end-aligned. That time is `aria-hidden`; a visually hidden "author, time" before the body gives a screen reader both on every row. A day divider is a list item between groups: a `--text-xs` medium `--color-muted` label, such as "Today", between two 1px `--color-border-subtle` rules, with `--space-3` above it and `--space-1` below.
538
563
  - **States.** None: a group lays out message rows, which keep their own states.
539
564
  - **Do.** 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.
540
565
  - **Don't.** A group that spans two authors, or a continuation row that hides its time from a screen reader.
@@ -542,6 +567,39 @@ Layer: Core.
542
567
  - **Motion.** None: the gutter time appears at once with the row's toolbar.
543
568
  - **Forced colors.** No change: the rules and the text take the system colours.
544
569
 
570
+ ## Message body
571
+
572
+ Layer: Core.
573
+
574
+ - **Anatomy.** The text of a [message row](#message-row), at most `--measure` wide, rendered from the Markdown its author wrote. The host stores the exact text and renders it with no raw HTML and no images, and drops `javascript:` and `data:` links. Blocks sit `--space-2` apart, and `--space-1` apart inside a list item or a quote. It draws:
575
+ - **Paragraphs** in the row's text type, with **strong** text semibold.
576
+ - **Headings** at body size, `--text-md` semibold, so a `#` never reads as a page title.
577
+ - **Lists**, bulleted (discs, then circles in a nested list) and numbered (decimal), with `1.25rem` start padding and `0.125rem` between items. A **task list** item puts its checkbox, the item's first child or its first paragraph's, in the marker's place: a 14px box drawn as the [checkbox](#checkbox-and-radio) is, a 1px `--color-border` edge and `--radius-mark` corners, filled `--color-accent` with a check when checked. It is disabled but drawn at full strength, because it is a mark the reader reads, not a control.
578
+ - **Links** in `--color-link`, underlined wherever they sit.
579
+ - **Inline code** in `--font-mono` `--text-code` `--color-code-text`, on a `--color-code` fill with `0.0625rem` `0.25rem` padding and `--radius-mark` corners.
580
+ - **Code blocks** on the same fill, with `--space-2` `--space-3` padding, a transparent 1px border, `--radius-panel` corners, as the tool-call disclosure's detail box has, and `--leading-tight`. Long lines wrap rather than scroll.
581
+ - **Quotes** with `--space-3` start padding and a 2px `--color-border` rule at the start, in `--color-muted`.
582
+ - **Tables** in `--text-sm`, with `--space-1` `--space-2` cell padding and 1px `--color-border-subtle` cell edges; header cells are semibold. Cells wrap first. The host wraps each table in a `<div class="table-scroll">`, which scrolls a table still wider than the body inside itself, so the page never scrolls sideways.
583
+ - **Rules** as one 1px `--color-border-subtle` line.
584
+ - **States.** None: the body is static text. Its links take the link's own states.
585
+ - **Do.** Render what the author wrote, with its marks gone and the text unchanged, and keep the stored text byte for byte.
586
+ - **Don't.** Raw HTML, images, or a page-size heading in a message; or a code block that scrolls the page sideways.
587
+ - **Keyboard and screen reader.** The body keeps Markdown's semantics: real lists, headings, `<code>`, `<blockquote>`, and tables with `<th>` header cells. A heading's level comes from the Markdown, so a host may lower every level by the page's own depth. Links are Tab stops. A table's wrapper is a named region (`role="region"`, an `aria-label` such as "Table" or the table's caption, and `tabindex="0"`), so a keyboard can scroll a wide table. A task list's checkboxes are disabled, so they take no Tab stop; each takes its item's text as its name (`aria-label`), so it reads as that item, checked or not checked. A code block needs no Tab stop, because it never scrolls.
588
+ - **Motion.** None: the body is static.
589
+ - **Forced colors.** The code fills drop: inline code keeps its mono type, and a code block's transparent border draws as the system edge. Links, rules, and cell edges take the system colours. A task box's edge is `CanvasText`; a checked box opts out of adjustment and fills `Highlight` with a `HighlightText` check.
590
+
591
+ ## Answer actions
592
+
593
+ Layer: Core.
594
+
595
+ - **Anatomy.** The answers under a question in a list of questions that wait for the reader, such as Needs you: a row (`.answers`) of two secondary `sm` [buttons](#button), Yes and No, `--space-2` apart, then a Reply link to the question's thread, in `--text-sm`, `--space-1` further on. The row sits in the question's [message body](#message-body), `--space-2` below its text. Yes and No post that word as the reader's reply; Reply opens the thread for anything longer. Below the questions, the ones the reader has answered fold into one disclosure (`<details class="answered">`), closed by default, whose summary is a [tool-call disclosure](#tool-call-disclosure)'s summary line, such as "You answered 2 · waiting for the agents", `--space-2` below the list. Open, it shows the reader's answers as message rows, each with its channel and "waiting for the agent".
596
+ - **States.** Open; sending, while the post is written: the tapped button is busy and the other one disabled, so a second tap sends nothing; and offline: both buttons disabled, with Reply still there, because reading a thread needs no connection. The answered summary takes the tool-call disclosure's hover and focus-visible states, and at tablet width it is at least `--control-touch` tall, a touch target like the buttons above it.
597
+ - **Do.** Offer Yes and No only on a question that a yes or a no answers, and keep Reply on every question.
598
+ - **Don't.** 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.
599
+ - **Keyboard and screen reader.** Yes and No are buttons whose names say what they answer when the list holds more than one question, such as `aria-label="Yes: add the sandbox exception"`; Reply is a link with the same kind of name. Once an answer posts, the question leaves the list and the reader's answer appears in the answered disclosure; focus moves to the next question's Yes, or to the summary after the last, and a polite live region says "Answered". A refused post keeps the question, returns focus to the tapped button, and says why in an [alert](#alert).
600
+ - **Motion.** None: the answers are static, and the disclosure opens at once.
601
+ - **Forced colors.** As for the button and the tool-call disclosure: the buttons keep their system edges, and the summary's hover fill drops.
602
+
545
603
  ## Hover toolbar
546
604
 
547
605
  Layer: Core.
@@ -568,7 +626,7 @@ Layer: Core.
568
626
  | Resolved as done | Success: "Done" |
569
627
  | Resolved as dropped | Neutral: "Dropped" |
570
628
 
571
- Blocked is the stronger form of Needs you, so a thread shows one of the two, never both. The message that waits takes the same tone in its tag's dot: info on "Asks you", warning on "Blocked on you". A resolved thread has no Resolve button. Its last reply is the resolving post, a [message row](#message-row) whose author is who resolved it and whose status says how, and its composer's hint says that a reply reopens it. The body scrolls: the root message with its facts and actions, a reply-count rule (a `--text-xs` `--color-muted` label such as "3 replies", then a `--color-border-subtle` rule to the end), and the replies as [message rows](#message-row). A [composer](#composer) sits at the bottom. The pane's start edge is a resize handle: a 6px hit area (`0.375rem`) centred on the edge, with `cursor: col-resize`. The pane is 26rem wide by default, and from 20rem to 40rem as the reader resizes it, and never so wide that the channel beside it drops below 16rem; the separator reports that limit as its maximum.
629
+ Blocked is the stronger form of Needs you, so a thread shows one of the two, never both. A blocking question's message carries the Blocked on you tag, whose dot takes the Blocked badge's warning tone; a question that does not block carries no tag. A resolved thread has no Resolve button. Its last reply is the resolving post, a [message row](#message-row) whose author is who resolved it and whose status says how, and its composer's hint says that a reply reopens it. The body scrolls: the root message with its facts and actions, a reply-count rule (a `--text-xs` `--color-muted` label such as "3 replies", then a `--color-border-subtle` rule to the end), and the replies as [message rows](#message-row). A [composer](#composer) sits at the bottom. The pane's start edge is a resize handle: a 6px hit area (`0.375rem`) centred on the edge, with `cursor: col-resize`. The pane is 26rem wide by default, and from 20rem to 40rem as the reader resizes it, and never so wide that the channel beside it drops below 16rem; the separator reports that limit as its maximum.
572
630
  - **States.** Open or closed. The thread's own state (open, needs you, blocked, done, or dropped) is content, shown by the badge, not an interactive state. Resolve takes the button's own states while the post is written. The resize handle takes an `--color-accent` tint at 40% while hovered, and the tint with an inset focus ring at focus-visible.
573
631
  - **Do.** 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.
574
632
  - **Don't.** 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.
@@ -581,14 +639,14 @@ Layer: Core.
581
639
 
582
640
  Layer: Core.
583
641
 
584
- - **Anatomy.** A box that holds one auto-growing `<textarea>` and an inline send button, with a one-line hint below it. The box is a field: `--color-field-bg`, a 1px `--color-field-edge` border, `--radius-panel`, and `--shadow-field`, with 5px (`0.3125rem`) padding inside its 1px border, 6px from its outer edge, and `--space-3` at the start. The textarea has no edge, fill, or ring of its own: `field-sizing: content`, at least `--control-sm` tall and at most 10rem before it scrolls, with no resize handle, in `--text-md` with line height 1.45. The send button is an icon-only primary [button](#button) at `sm`: a 28px circle with the SVG send icon. The 6px around it keeps the circle clear of the box's 12px corner; a circle is not a nested rectangle, so the concentric rule does not apply. It stays at the bottom of the box as the text grows. The hint is `--text-xs` `--color-muted`, `--space-1` below the box, and says where the message goes, such as "Saved to the board". An error, in the [field wrapper](#field-wrapper)'s error type, sits between the box and the hint.
585
- - **States.** Rest (empty or typing), focus (the [field focus](#rules-for-every-control) on the box: `--color-accent` edge and `--shadow-field-focus`, no ring), busy (sending: the send button takes the button's busy state, and the textarea is `readonly`, keeping its text and focus without dimming, until the server accepts it, so nothing typed meanwhile is lost when the field clears), invalid (refused: `--color-error` edge, `--shadow-field-focus-invalid` while focused, the reason as inline error text, and nothing saved), and disabled (offline: the box takes the disabled field look, the send button its own, and the hint says why). The send button keeps the primary button's own look.
642
+ - **Anatomy.** A box that holds one auto-growing `<textarea>` and an inline send button, with a one-line hint below it. The box is a field: `--color-field-bg`, a 1px `--color-field-edge` border, `--radius-panel`, and `--shadow-field`, with 5px (`0.3125rem`) padding inside its 1px border, 6px from its outer edge, and `--space-3` at the start. The textarea has no edge, fill, or ring of its own: `field-sizing: content`, at least `--control-sm` tall and at most 10rem before it scrolls, with no resize handle, in `--text-md` with line height 1.45. The send button is an icon-only primary [button](#button) at `sm`: a 28px circle with the SVG send icon. The 6px around it keeps the circle clear of the box's 12px corner; a circle is not a nested rectangle, so the concentric rule does not apply. It stays at the bottom of the box as the text grows. The hint is `--text-xs` `--color-muted`, `--space-1` below the box, and says where the message goes, such as "Saved to the board". An error, in the [field wrapper](#field-wrapper)'s error type, sits between the box and the hint. The field is a `<textarea>`, or a formatting field: a plain-text Markdown editor the host supplies, such as CodeMirror 6, which keeps the stored text exactly as typed and draws it with live styling. The formatting field mounts in a `.md-field` element in the textarea's place, at the textarea's size and type: at least `--control-sm` tall, at most 10rem before it scrolls, and `--text-md` `--font-ui` with line height 1.45. Its DOM is the editor's own, `.md-field > .cm-editor > .cm-scroller > .cm-content > .cm-line`, one `.cm-line` per line of text. The host turns on line wrapping (`EditorView.lineWrapping`) and leaves out the drawn selection and cursor (`drawSelection`), so the browser draws its own. It loads the Markdown language as `markdown({ addKeymap: false, pasteURLAsLink: false })`: the Markdown keymap would take Enter to continue a list, so Enter would never send, and a pasted URL would rewrite the selection into a link, even while the field is read-only. Its highlighter maps the Markdown parser's tags to the token classes with `HighlightStyle.define` and `class`: the marks (`processingInstruction`: asterisks, underscores, backticks, list bullets, heading and quote marks, and a link's brackets) to `.mk`, `strong` to `.md-strong`, `emphasis` to `.md-em`, `monospace` to `.md-code`, and `link` and `url` to `.md-link`. A line decoration adds `.md-fence` to each line of a fenced code block. Bold text is semibold, emphasis italic, code `--font-mono` at `--text-code`, and a link `--color-link`. A mark stays in the text, `--color-muted`, upright, and regular, even inside the run it opens. A fence's lines form one well: `--color-code` with `--space-1` inline padding, inside the editor's scroller, which would clip anything outside it, and square, because each line is its own box. The placeholder (`.cm-placeholder`) is `--color-muted`. A formatting composer adds a format row `--space-1` under the box: icon-only [quiet actions](#quiet-action), `--control-sm` square and 2px apart, in `--color-muted` with 16px SVG icons, for Bold, Italic, Code, Code block, List, and Link, then a `--text-xs` "Markdown" hint at its end. The row shows only while the composer is active, which means focus anywhere in the composer or text in the field; the host sets `.is-active` on `.composer` then, so an idle composer stays one line. On a phone an Aa toggle, a quiet action showing "Aa" in `--text-sm` semibold, sits between the field and the send button while the composer is active, and the row shows only while the toggle is open. The toggle is always in the markup; the CSS shows it only at tablet width and below.
643
+ - **States.** Rest (empty or typing), focus (the [field focus](#rules-for-every-control) on the box: `--color-accent` edge and `--shadow-field-focus`, no ring), busy (sending: the send button takes the button's busy state, and the textarea is `readonly`, keeping its text and focus without dimming, until the server accepts it, so nothing typed meanwhile is lost when the field clears), invalid (refused: `--color-error` edge, `--shadow-field-focus-invalid` while focused, the reason as inline error text, and nothing saved), and disabled (offline: the box takes the disabled field look, the send button its own, and the hint says why). The send button keeps the primary button's own look. The formatting field reads the editor's own markers: focus is `.cm-focused` on `.cm-editor`; busy is the editor's read-only state, which keeps the text and focus, with the format buttons disabled; invalid is `aria-invalid="true"` on `.cm-content`; and disabled is the editor's non-editable state, `contenteditable="false"` on `.cm-content`, which dims the text to 0.58 as the disabled textarea does. The open Aa toggle keeps a 12% `currentColor` tint and `--color-text`.
586
644
  - **Do.** Name the field for where the message goes, such as "Reply to desktop-claude", and say in the hint what happens after sending.
587
- - **Don't.** A Send label beside the field, or a second field for a title. The composer is one field and one icon.
588
- - **Keyboard and screen reader.** The textarea has a visible or visually hidden `<label>`, and `aria-describedby` names the hint. Enter sends, and Shift+Enter starts a new line. Enter while an input method is composing text belongs to the input method, so it does not send. Text that is empty or only spaces does not send. Once the server accepts a message, the field clears and keeps focus. The send button has `aria-label="Send"`; while it is busy, a second Enter or click does nothing. A refused message keeps the text in the field, sets `aria-invalid="true"`, and names the error with `aria-errormessage`. Offline, the textarea and the button are `disabled`, and the hint gives the reason.
589
- - **Motion.** None: as for the input, the focus and invalid edges change at once.
590
- - **Forced colors.** As for the search field: the box's edge draws as the system field edge, and a focused composer draws a `Highlight` outline 1px inside its edge, because the inset line drops. The invalid edge relies on its error text.
591
- - **Touch.** At tablet width (`max-width: 800px`) the textarea is at least `--control-touch` tall and the send button grows to a `--control-touch` circle, as every icon-only button does.
645
+ - **Don't.** A Send label beside the field, a second field for a title, or formatting buttons on an idle composer. An idle composer is one field and one icon.
646
+ - **Keyboard and screen reader.** The textarea has a visible or visually hidden `<label>`, and `aria-describedby` names the hint. Enter sends, and Shift+Enter starts a new line. Enter while an input method is composing text belongs to the input method, so it does not send. Text that is empty or only spaces does not send. Once the server accepts a message, the field clears and keeps focus. The send button has `aria-label="Send"`; while it is busy, a second Enter or click does nothing. A refused message keeps the text in the field, sets `aria-invalid="true"`, and names the error with `aria-errormessage`. Offline, the textarea and the button are `disabled`, and the hint gives the reason. The formatting field's `.cm-content` has `role="textbox"` and `aria-multiline="true"` from the editor. A `<label for>` cannot name it, so the host sets `aria-label`, or `aria-labelledby` naming a visible label, and `aria-describedby` for the hint through the editor's content attributes, as it sets `aria-invalid` and `aria-errormessage` on a refused message. The editor turns spellcheck, autocorrect, and autocapitalize off; a message field turns them back on (`spellcheck="true"`, `autocorrect="on"`, `autocapitalize="sentences"`). Enter, Shift+Enter, input-method composition, and blank text behave as in the textarea, and Tab leaves the field, because the host binds no Tab key. Enter does not continue a list; Shift+Enter starts the next line, and the writer types the bullet. The format row is a `role="group"` named "Formatting", and each button is in Tab order with an `aria-label` naming its format. A button wraps the field's selection in its marks, or puts empty marks at the cursor, and leaves focus and the selection in the field: a pointer press does not take focus (the host cancels its `mousedown`), and a keyboard press moves focus back to the field. Ctrl+B and Ctrl+I (Cmd on macOS) apply bold and italic, and the Bold and Italic buttons give those keys in `aria-keyshortcuts`. Every formatting command, from a button or a key, does nothing while the editor is read-only (`view.state.readOnly`), because a change made while sending is lost when the field clears. A dropped file does nothing: the host's own `drop` handler (`EditorView.domEventHandlers` at a higher precedence than the editor's) cancels a drop that carries files, because CodeMirror reads a dropped file later and inserts it even after the field has turned read-only. A drop of text stays with the editor. The composer stays active while focus moves inside it: on `focusout` the host checks `relatedTarget`, so moving from the field to a format button keeps the row. The Aa toggle has `aria-label="Formatting"`, with "Aa" hidden from screen readers, `aria-expanded`, and `aria-controls` naming the row; the host closes it when the composer goes idle. Offline, the editor is not editable, and the format buttons and the toggle are `disabled`.
647
+ - **Motion.** None: as for the input, the focus and invalid edges change at once, and the format row shows and hides at once.
648
+ - **Forced colors.** As for the search field: the box's edge draws as the system field edge, and a focused composer draws a `Highlight` outline 1px inside its edge, because the inset line drops. The invalid edge relies on its error text. The open Aa toggle loses its tint, so it draws a `Highlight` border. A fence loses its well, and its backtick marks carry it.
649
+ - **Touch.** At tablet width (`max-width: 800px`) the textarea is at least `--control-touch` tall and the send button grows to a `--control-touch` circle, as every icon-only button does. The formatting field is at least `--control-touch` tall too. Formatting waits for the Aa toggle: the toggle and each format button are `--control-touch` squares, the row wraps when the composer is narrower than its six buttons, and the "Markdown" hint hides.
592
650
 
593
651
  ## Tool-call disclosure
594
652
 
@@ -1,17 +1,27 @@
1
1
  /*
2
- * The conversation components as components.md specifies them: message row, message group, hover toolbar,
3
- * thread panel, composer, tool-call disclosure, and mention. components.html links this file, so it is the
4
- * one source of these rules; copy markup from the catalogue's Conversation sections.
2
+ * The conversation components as components.md specifies them: message row, message group, message body,
3
+ * answer actions, hover toolbar, thread panel, composer (with its formatting field), tool-call disclosure, and mention; the list row and
4
+ * the app bar that an application screen around them uses; and the quiet action they hold. components.html
5
+ * links this file, so it is the one source of these rules; copy markup from the catalogue's sections.
5
6
  *
6
7
  * Load it after tokens.css. The rules are unlayered, as the catalogue's own rules are, so they outrank a
7
8
  * page's @layer base element rules and any layered component stylesheet, such as ui-sdk.css.
8
9
  *
9
10
  * The parts these components hold come from their own components, which this file does not draw: the
10
- * badge (the Agent mark and the thread's state) and the alert from feedback.css, the button (Resolve and
11
- * the send button) and the field error from ui-sdk.css or the catalogue, and the quiet action and the
12
- * overflow menu (the hover toolbar and More) from the catalogue or ui-sdk's Menu.
11
+ * badge (the Agent mark and the thread's state) and the alert from feedback.css, the button (Resolve, Yes and
12
+ * No, and the send button) and the field error from ui-sdk.css or the catalogue, the overflow menu (More) from
13
+ * the catalogue or ui-sdk's Menu, and the drawer that the app bar's Menu opens from ui-sdk's Drawer.
13
14
  */
14
15
 
16
+ /* ---------- Quiet action ---------- */
17
+ /* The shared recipe, with no specificity, so each component sets the action's size, place, and resting colour. It is the
18
+ catalogue's quiet action, which the example pages copy, plus color: inherit, because an app's base may leave a button
19
+ the browser's own text colour. */
20
+ :where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
21
+ @media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); } }
22
+ .quiet-action:active:where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
23
+ .quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
24
+
15
25
  /* ---------- Message row and message group ---------- */
16
26
  /* Message rows: flat, with no bubble. A group is one author's consecutive messages: the first row shows the
17
27
  avatar, name, and time; continuation rows show their time in the avatar column on hover or focus within. */
@@ -33,11 +43,10 @@
33
43
  .author { font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
34
44
  .author.agent { font-family: var(--font-mono); font-size: var(--text-sm); }
35
45
  .msg-head time { color: var(--color-muted); font-size: var(--text-xs); }
36
- /* The Needs you tag: a dot in the tone of the thread's state badge (info; warning when it blocks), and the label in the
37
- text colour, because a status colour goes on the mark, not the words. */
38
- .tag { --tone: var(--color-info); display: inline-flex; align-items: baseline; gap: var(--space-1); color: var(--color-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
39
- .tag.warning { --tone: var(--color-warning); }
40
- .tag:not(.resolved)::before { content: ""; flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
46
+ /* The Blocked on you tag, on a question that stops the work: a dot in the Blocked badge's warning tone, and the label in
47
+ the text colour, because a status colour goes on the mark, not the words. An open question carries no tag. */
48
+ .tag { display: inline-flex; align-items: baseline; gap: var(--space-1); color: var(--color-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
49
+ .tag:not(.resolved)::before { content: ""; flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--color-warning); }
41
50
  /* The resolution note: the post that resolves a thread, by its author. A check leads "Resolved"; "Dropped" has none. */
42
51
  .tag.resolved { color: var(--color-muted); font-weight: var(--weight-regular); }
43
52
  /* The check is a line icon from the page's SVG sprite. Its size and stroke are set here, so the note needs no page icon class. */
@@ -45,10 +54,58 @@
45
54
  /* The Agent badge keeps its own fill on the selected row, whose tint nearly matches the neutral badge in light. */
46
55
  .msg[aria-current="true"] .msg-head .badge { background: var(--color-surface-raised); }
47
56
  .msg-body { max-width: var(--measure); overflow-wrap: anywhere; }
48
- .msg-body > * + * { margin-top: var(--space-1); }
49
57
  /* Mention: an inline tint around @name. It is static text, not a link. */
50
58
  .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); }
51
59
 
60
+ /* ---------- Message body ---------- */
61
+ /* The host renders the stored Markdown to HTML, with no raw HTML and no images, and these rules draw it. Blocks sit
62
+ --space-2 apart, inside a list item or a quote --space-1. :where keeps the resets below the spacing rules. */
63
+ .msg-body :where(p, ul, ol, pre, blockquote, table, h1, h2, h3, h4, h5, h6, hr) { margin: 0; }
64
+ .msg-body > * + * { margin-top: var(--space-2); }
65
+ .msg-body :where(li, blockquote) > * + * { margin-top: var(--space-1); }
66
+ /* A heading stays at body size, so a "#" in a message never reads as a page title; :is outranks a page's heading rule. */
67
+ .msg-body :is(h1, h2, h3, h4, h5, h6) { font-size: var(--text-md); font-weight: var(--weight-semibold); line-height: inherit; letter-spacing: 0; }
68
+ .msg-body strong { font-weight: var(--weight-semibold); }
69
+ /* Underlined wherever it sits, a list item or a table cell too, so colour is not the only sign of a link. */
70
+ .msg-body a { color: var(--color-link); text-decoration: underline; text-underline-offset: 0.18em; }
71
+ .msg-body :where(ul, ol) { padding-inline-start: 1.25rem; }
72
+ /* The body sits in a list item of the stream, so its bullets are set, not left to the nested-list default. */
73
+ .msg-body :where(ul) { list-style-type: disc; }
74
+ .msg-body :where(ul ul) { list-style-type: circle; }
75
+ .msg-body :where(ol) { list-style-type: decimal; }
76
+ .msg-body li + li { margin-top: 0.125rem; }
77
+ /* A component inside the body keeps its own row spacing. */
78
+ .tool-body li + li { margin-top: 0; }
79
+ /* A task list item: its checkbox takes the marker's place, as the item's first child, or its first paragraph's in a loose list. The renderer makes it disabled, and a browser greys a disabled
80
+ native box, so it is drawn here, as the checkbox is, at full strength: it is a mark, not a control the reader can use. */
81
+ .msg-body li:has(> input[type="checkbox"]:first-child, > p:first-child > input[type="checkbox"]:first-child) { list-style: none; }
82
+ .msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child { appearance: none; display: inline-grid; place-items: center; width: 0.875rem; height: 0.875rem; margin-block: 0; margin-inline: -1.25rem var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-mark); background: var(--color-surface-raised); vertical-align: middle; }
83
+ .msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked { border-color: var(--color-accent); background: var(--color-accent); }
84
+ .msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked::before { content: ""; width: 4px; height: 7px; margin-top: -2px; border: solid var(--color-accent-text); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
85
+ .msg-body code { padding: 0.0625rem 0.25rem; border-radius: var(--radius-mark); background: var(--color-code); color: var(--color-code-text); font-family: var(--font-mono); font-size: var(--text-code); }
86
+ /* A code block wraps its lines rather than scroll, so it needs no Tab stop and a phone reader never pans inside it. */
87
+ .msg-body pre { padding: var(--space-2) var(--space-3); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-code); color: var(--color-code-text); font-size: var(--text-code); line-height: var(--leading-tight); white-space: pre-wrap; }
88
+ .msg-body pre code { padding: 0; border-radius: 0; background: none; }
89
+ .msg-body blockquote { padding-inline-start: var(--space-3); border-inline-start: 2px solid var(--color-border); color: var(--color-muted); }
90
+ .msg-body hr { border: 0; border-top: 1px solid var(--color-border-subtle); }
91
+ /* The host wraps each table in a .table-scroll region, which scrolls a table wider than the body inside itself, so the
92
+ page never scrolls sideways; the region takes a Tab stop, so a keyboard can scroll it. Cells wrap first. */
93
+ .msg-body .table-scroll { max-width: 100%; overflow-x: auto; }
94
+ .msg-body table { border-collapse: collapse; font-size: var(--text-sm); }
95
+ .msg-body :is(th, td) { padding: var(--space-1) var(--space-2); border: 1px solid var(--color-border-subtle); text-align: start; vertical-align: top; }
96
+ .msg-body th { font-weight: var(--weight-semibold); }
97
+
98
+ /* ---------- Answer actions ---------- */
99
+ /* Under a question in Needs you: Yes and No as secondary buttons, then a Reply link to the thread. */
100
+ .answers { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
101
+ .answers > .reply { display: inline-flex; align-items: center; min-height: var(--control-sm); margin-inline-start: var(--space-1); font-size: var(--text-sm); }
102
+ /* The questions the reader has answered fold into one summary line, drawn as the tool-call disclosure's summary. */
103
+ .answered { margin-top: var(--space-2); }
104
+ .answered[open] > summary { margin-bottom: var(--space-1); }
105
+ /* The link after a list that shows its closed items, such as "Show 5 resolved". */
106
+ .row-more { margin: var(--space-1) 0 0; padding-inline: var(--space-2); font-size: var(--text-sm); }
107
+ .row-more > a { display: inline-flex; align-items: center; min-height: var(--control-sm); }
108
+
52
109
  /* ---------- Hover toolbar ---------- */
53
110
  /* A floating strip at the row's top right. Its buttons sit 4px inside its outer edge, so their corners are the
54
111
  strip's 12px minus 4px. It shows on hover or focus within, and never on a touch screen. */
@@ -66,11 +123,13 @@
66
123
 
67
124
  /* ---------- Tool-call disclosure ---------- */
68
125
  /* One quiet summary line; the detail opens in a box on the surface colour. */
69
- .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); }
70
- .tool > summary::-webkit-details-marker { display: none; }
71
- .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); }
72
- .tool[open] > summary::before { transform: rotate(45deg); }
73
- @media (hover: hover) { .tool > summary:hover { background: var(--color-row-hover); color: var(--color-text); } }
126
+ :is(.tool, .answered) > 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); }
127
+ :is(.tool, .answered) > summary::-webkit-details-marker { display: none; }
128
+ :is(.tool, .answered) > 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); }
129
+ :is(.tool, .answered)[open] > summary::before { transform: rotate(45deg); }
130
+ @media (hover: hover) { :is(.tool, .answered) > summary:hover { background: var(--color-row-hover); color: var(--color-text); } }
131
+ /* The answered summary sits beside the stream's rows, not in a body, so its chevron lines up with their avatars. */
132
+ .answered > summary { margin-inline-start: var(--space-1); }
74
133
  .tool > summary b { color: var(--color-text); font-weight: var(--weight-medium); }
75
134
  .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); }
76
135
  .tool-body ul { display: grid; gap: 0.125rem; margin: 0; padding-inline-start: var(--space-4); }
@@ -83,13 +142,49 @@
83
142
  /* The padding centres one line in --control-sm; each further line adds a line, up to 10rem. */
84
143
  .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; }
85
144
  .composer-box textarea::placeholder { color: var(--color-muted); opacity: 1; }
86
- .composer-box:has(textarea:focus-visible) { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
87
- .composer-box:has(textarea[aria-invalid="true"]) { border-color: var(--color-error); }
88
- .composer-box:has(textarea[aria-invalid="true"]):has(textarea:focus-visible) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
89
- .composer-box:has(textarea:disabled) { background: var(--color-well); box-shadow: none; }
145
+ .composer-box:has(textarea:focus-visible, .md-field .cm-focused) { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
146
+ .composer-box:has(textarea[aria-invalid="true"], .md-field .cm-content[aria-invalid="true"]) { border-color: var(--color-error); }
147
+ .composer-box:has(textarea[aria-invalid="true"], .md-field .cm-content[aria-invalid="true"]):has(textarea:focus-visible, .md-field .cm-focused) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
148
+ .composer-box:has(textarea:disabled, .md-field .cm-content[contenteditable="false"]) { background: var(--color-well); box-shadow: none; }
90
149
  .composer-box textarea:disabled { opacity: 0.58; cursor: not-allowed; }
91
150
  .composer-hint { color: var(--color-muted); font-size: var(--text-xs); }
92
151
 
152
+ /* The formatting field: a plain-text Markdown editor the host supplies (CodeMirror 6, mounted in .md-field) in place of
153
+ the textarea, with the textarea's size and type. The editor keeps the stored text exactly as typed and only draws it:
154
+ the host's highlighter gives each run a token class, and the box reads the editor's own markers for its states
155
+ (.cm-focused, and aria-invalid and contenteditable on .cm-content). CodeMirror's base theme scopes its rules at two
156
+ classes and can load after this file, so each rule here that overrides one carries three classes or more. */
157
+ .composer-box .md-field { flex: 1 1 0; min-width: 0; color: var(--color-text); font: var(--text-md) / 1.45 var(--font-ui); }
158
+ /* The editor is a column, as CodeMirror's base theme makes it, so at 10rem its scroller shrinks and scrolls. */
159
+ .composer-box .md-field > .cm-editor { display: flex; flex-direction: column; max-height: 10rem; }
160
+ .composer-box .md-field > .cm-editor.cm-focused { outline: 0; }
161
+ .composer-box .md-field .cm-scroller { min-height: 0; overflow-y: auto; font: inherit; }
162
+ .composer-box .md-field .cm-content { min-height: var(--control-sm); padding: calc((var(--control-sm) - 1lh) / 2) 0; caret-color: var(--color-text); }
163
+ .composer-box .md-field .cm-content[contenteditable="false"] { opacity: 0.58; cursor: not-allowed; }
164
+ .composer-box .md-field .cm-line { padding: 0; }
165
+ .composer-box .md-field .cm-placeholder { color: var(--color-muted); }
166
+ /* Bold looks bold and code looks like code; a link takes the link colour. */
167
+ .md-field .md-strong { font-weight: var(--weight-semibold); }
168
+ .md-field .md-em { font-style: italic; }
169
+ .md-field .md-code { font-family: var(--font-mono); font-size: var(--text-code); }
170
+ .md-field .md-link { color: var(--color-link); }
171
+ /* A mark stays in the text, muted and upright, even inside the bold or italic run it opens, so it comes last. */
172
+ .md-field .mk { color: var(--color-muted); font-weight: var(--weight-regular); font-style: normal; }
173
+ /* A fenced code block is a run of lines the host marks .md-fence: one square well, since each line is its own box. The
174
+ well stays inside the scroller, which would clip it, so its text sits --space-1 in from the other lines. */
175
+ .composer-box .md-field .cm-line.md-fence { padding-inline: var(--space-1); background: var(--color-code); color: var(--color-code-text); font-family: var(--font-mono); font-size: var(--text-code); }
176
+
177
+ /* The format row: quiet formatting buttons under the box while the composer is active (focus anywhere in it, or text in
178
+ the field), so an idle composer is one line. On a phone the row waits for the Aa toggle, which sits before Send. */
179
+ .format-row { display: flex; align-items: center; gap: 0.125rem; }
180
+ .composer:not(.is-active) .format-row { display: none; }
181
+ .format-row > .quiet-action, .composer-box > .format-toggle { flex: none; width: var(--control-sm); height: var(--control-sm); padding: 0; }
182
+ :where(.format-row) > .quiet-action, :where(.composer-box) > .format-toggle { color: var(--color-muted); }
183
+ .format-row > .quiet-action > svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
184
+ .format-row > .format-hint { margin-inline-start: auto; color: var(--color-muted); font-size: var(--text-xs); }
185
+ .composer-box > .format-toggle { display: none; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
186
+ .composer-box > .format-toggle[aria-expanded="true"] { color: var(--color-text); background: color-mix(in srgb, currentColor 12%, transparent); }
187
+
93
188
  /* ---------- Thread panel ---------- */
94
189
  /* A side pane whose start edge is a resize handle. The page lays it out beside the message list. */
95
190
  .thread-pane { position: relative; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--color-border-subtle); }
@@ -108,22 +203,76 @@
108
203
  .thread-pane > .composer { padding: 0 var(--space-3) var(--space-3); }
109
204
  .msg-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
110
205
 
206
+ /* ---------- List row ---------- */
207
+ /* One-line rows for scanning a list, such as todos or work items; the thread holds the conversation. A row's link
208
+ stretches over the whole row, so the row is one target, and the row draws the link's focus ring. min-width: 0 keeps
209
+ a long one-line text from widening the list's grid track, so the text ends in its ellipsis instead. */
210
+ .rows { display: grid; margin: 0; padding: 0; list-style: none; }
211
+ .rows > li { position: relative; display: flex; align-items: center; gap: var(--space-3); min-width: 0; min-height: var(--row); padding: var(--space-1) var(--space-2); border-radius: var(--radius-inline); font-size: var(--text-sm); transition: background-color var(--duration-fast) var(--ease-out); }
212
+ @media (hover: hover) { .rows > li:hover { background: var(--color-row-hover); } }
213
+ .rows > li[aria-current="true"] { background: var(--color-nav-current); }
214
+ .row-text { flex: 1; min-width: 0; overflow: hidden; color: var(--color-text); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
215
+ .row-text.wrap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
216
+ /* Outranks the message body's link rule, for rows inside a message. */
217
+ .rows .row-text { color: var(--color-text); text-decoration: none; }
218
+ .rows > li + li { margin-top: 0; }
219
+ a.row-text::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
220
+ a.row-text:hover { text-decoration: none; }
221
+ a.row-text:focus-visible { outline: none; }
222
+ .rows > li:has(> a.row-text:focus-visible) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
223
+ /* A control in the row sits above the stretched link. */
224
+ .rows > li > :is(button, a:not(.row-text)) { position: relative; }
225
+ .row-meta { flex: none; color: var(--color-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
226
+ /* An open todo's mark: an empty 16px box. It is aria-hidden; the list's name says what the rows are. */
227
+ .row-check { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-mark); }
228
+
229
+ /* ---------- App bar ---------- */
230
+ /* An application screen's one top line at tablet width: Menu, which opens the navigation drawer, the current view's
231
+ name, and an optional action such as Search. Wider screens show the sidebar instead, so it hides there. */
232
+ .appbar { display: flex; align-items: center; gap: var(--space-1); min-height: 3rem; padding: 0.125rem var(--space-2); border-bottom: 1px solid var(--color-border-subtle); }
233
+ .appbar > :is(h1, h2, h3, h4) { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
234
+ .appbar > .quiet-action { flex: none; width: var(--control-touch); height: var(--control-touch); padding: 0; }
235
+ /* :where keeps the muted rest below the quiet action's hover colour. */
236
+ :where(.appbar) > .quiet-action { color: var(--color-muted); }
237
+ /* Inset: the 44px action nearly fills the bar, so an outer ring would cross its rule. */
238
+ .appbar > .quiet-action:focus-visible { outline-offset: calc(var(--focus-width) * -1); }
239
+ .appbar > .quiet-action > svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
240
+ @media (min-width: 801px) { .appbar { display: none; } }
241
+
111
242
  /* ---------- Forced colors ---------- */
112
243
  @media (forced-colors: active) {
113
244
  /* The inset accent line drops, so a focused composer draws the system ring just inside its edge. */
114
- .composer-box:has(textarea:focus-visible) { outline: var(--focus-width) solid Highlight; outline-offset: -1px; }
245
+ .composer-box:has(textarea:focus-visible, .md-field .cm-focused) { outline: var(--focus-width) solid Highlight; outline-offset: -1px; }
246
+ /* The open Aa toggle loses its tint, so it takes a system border; the fence's well drops and its marks carry it. */
247
+ .composer-box > .format-toggle[aria-expanded="true"] { border-color: Highlight; }
115
248
  /* The open thread's message loses its fill, so it takes the list selection's system border; the padding absorbs it. */
116
249
  .msg[aria-current="true"] { border-inline-start: 2px solid Highlight; padding-inline-start: calc(var(--space-2) - 2px); }
117
250
  /* An SVG keeps the colour it sets, and the tag's dot is a fill, so both take the system text colour; the words carry them. */
118
251
  .tag.resolved .icon { color: CanvasText; }
119
252
  .tag:not(.resolved)::before { forced-color-adjust: none; background: CanvasText; }
253
+ /* The selected list row loses its fill too, so it takes the same leading border. */
254
+ .rows > li[aria-current="true"] { border-inline-start: 2px solid Highlight; padding-inline-start: calc(var(--space-2) - 2px); }
255
+ .row-check { border-color: CanvasText; }
256
+ .msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child { border-color: CanvasText; }
257
+ .msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked { forced-color-adjust: none; border-color: Highlight; background: Highlight; }
258
+ .msg-body :is(li, li > p:first-child) > input[type="checkbox"]:first-child:checked::before { border-color: HighlightText; }
120
259
  }
121
260
 
122
261
  /* ---------- Tablet and phone ---------- */
123
262
  @media (max-width: 800px) {
124
263
  /* Touch: the hover toolbar never shows; a tap opens the thread, whose header holds More. */
125
264
  .msg-tools { display: none; }
265
+ /* A list row and the answered summary are touch targets. */
266
+ .rows > li { min-height: var(--control-touch); }
267
+ .answered > summary { min-height: var(--control-touch); align-items: center; }
268
+ .answered > summary::before { align-self: center; margin-top: 0; }
126
269
  .composer-box textarea { min-height: var(--control-touch); padding-block: calc((var(--control-touch) - 1lh) / 2); }
270
+ /* tokens.css raises --control-sm to --control-touch here, so the formatting field and the buttons grow on their own.
271
+ Formatting waits for Aa: the toggle shows once the composer is active, and the row only while it is open. */
272
+ .composer.is-active .composer-box > .format-toggle { display: inline-flex; }
273
+ .composer:not(:has(.format-toggle[aria-expanded="true"])) .format-row { display: none; }
274
+ .format-row { flex-wrap: wrap; }
275
+ .format-row > .format-hint { display: none; }
127
276
  /* The thread pane takes the full width below the message list, and the handle hides. */
128
277
  .thread-pane { border-left: 0; border-top: 1px solid var(--color-border-subtle); }
129
278
  .pane-resize { display: none; }
@@ -37,6 +37,8 @@ Each entry records a choice this language made, the options it rejected, and why
37
37
  | Navigation row corners | Core | Navigation rows, header and strip rows, list-selection rows, collapsible group labels, and tabs take the row corner (`--radius-inline`), as rows inside a floating menu do (see Floating-menu rows). The owner chose the more rectangular rows from the Gate M mockup (2026-11-09), at 6px; since radius scale B (2026-11-22) rows, actions, and fields share 8px. | 10px (`--radius-field`), the previous corners, shared with fields. | row corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; Foundations swatch: `tests/design-foundations.test.mjs` "the Foundations current-row swatch and radius list follow the navigation row radius" |
38
38
  | Floating-menu rows | Core | Rows inside a floating menu, such as the project menu, are concentric with the menu: `calc(var(--radius-panel) - var(--space-1))`, as select picker rows are. That was 12px inside a 16px menu; since radius scale B (2026-11-22) it is 8px inside a 12px menu, the row corner. The owner approved it from the DS-3b comparison. | 6px like rail rows: a 6px row inside a 16px panel looks pinched. | row corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one" |
39
39
  | One-line non-action controls | Core | A one-line control that is not an action takes the field corner (`--radius-field`, 8px since radius scale B, 2026-11-22; 10px before), as a select does: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary ("On this page"), and the skip link. The project trigger keeps the quiet-action tint. The owner chose it on 2026-11-10. Since radius scale B (2026-11-22) actions and fields both take 8px (see Shape follows role), so both tokens render the same; these controls keep the field token, so a later change to the action corner leaves them alone. | The action corner (`--radius-control`), a pill until 2026-11-22: a pill meant an action, and these controls open a menu or list, pick a value, or move focus. 16px (`--radius-panel`), like the menu and other floating layers: on a one-line control 40 to 44px tall it reads almost as a pill. | field corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; the field token rather than the action token: no test, because both render 10px |
40
+ | Quieter conversation | Core | Owner approval of the devchat mockups, revision 4, on 2026-12-01. Only a blocking question carries a tag (Blocked on you); an open question carries none, because the Needs you list and the thread's Needs you badge already say it waits. The Agent mark is left out where every author but the reader is an agent, because the mono name sets them apart. Questions in Needs you take answer actions: Yes and No as secondary buttons and a Reply link, and the answered ones fold into one disclosure line. A message body renders its Markdown, headings at body size and code blocks that wrap. Lists for scanning, such as todos and work items, are one-line list rows, not message rows. At tablet width an application screen has one app bar (Menu, the view's name, one action) and its sidebar moves into ui-sdk's drawer, whose backdrop is the scrim. `conversation.css` ships these rules and the quiet action's shared recipe, so an app that loads only the package draws the app bar's icon actions. The open todo's mark is `.row-check`, not `.check`, which is the catalogue's checkbox label. | An "Asks you" tag on every open question: in a list of questions it repeated the list's own name on each row. Sideways-scrolling lists on a phone: most items sat off screen. A separate `.scrim` class: ui-sdk's drawer backdrop draws it already. Code blocks that scroll: a scrolling region needs a Tab stop, and a phone page scrolled sideways. Message rows for todos: an avatar and a header line on every item made a list to scan read as a conversation. Ghost icon-only buttons in the app bar: an icon with no fill at rest is a quiet action. | parts, groups, and states agreement: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs`; the new parts drawn from the package stylesheets alone: `tests/catalogue/package-styles.spec.ts` |
41
+ | Formatting composer | Core | Owner approval of the devchat mockups, revision 4, on 2026-12-01, with the phone's Aa toggle. The composer may hold a formatting field: a plain-text Markdown editor the host supplies (CodeMirror 6), so the stored text is exactly what was typed and bold, italic, code, fences, and links draw live, with their marks visible and muted. The spec fixes the editor's DOM (`.md-field > .cm-editor > .cm-scroller > .cm-content > .cm-line`), the token classes the host's highlighter assigns, and the editor markers the box reads for its states, so the catalogue can show it without loading the editor. Formatting buttons show only while the composer is active, and on a phone only after Aa. The fence's well is square because each of its lines is its own box. The textarea composer stays specified for hosts without an editor. | A rich-text (WYSIWYG) editor such as Tiptap, Lexical, or Milkdown: each rewrites underscores, tildes, asterisks, and brackets, and Tiptap turned a raw `<b>` into bold in a round trip, so the stored text would not match what was typed. Formatting buttons on an idle composer: an idle composer is one line. A `role="toolbar"` format row: it asks the host for roving focus and arrow keys for six buttons. The editor's drawn selection and cursor: the browser's own follow the theme and forced colors. | the formatting field against CodeMirror's base theme loaded after the package, and the phone's Aa: `tests/catalogue/package-styles.spec.ts`; the Composer's parts and states: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs` |
40
42
  | Optical label centring | Core | A text-only navigation row and the breadcrumb centre their label on the cap height with `text-box: trim-both cap alphabetic`, inside `@supports`; a row becomes a block with `align-content: center` for it, and `--space-2` block padding keeps a wrapped label clear of its fill's edges. Browsers without `text-box` keep the flex centring of the line box. Buttons, tabs, and segmented options already centre their ink within 0.5px, so they are unchanged; Chromium does not trim a button's label in any case. | Centring the line box alone: it keeps descender room, so a label without descenders, such as "Overview", sat 1.25px above centre in the 44px header row (15.75px above the ink, 18.25px below). `text-box` on the flex row itself: Chromium trims only block containers, and the label's anonymous flex item does not inherit the trim. A fixed nudge in em: it depends on the font's metrics, which an identity can change. | label inside the fill, and centred: `tests/site/site.spec.ts` "a wrapped navigation row or crumb keeps its label inside the fill and focus ring in ${colorScheme}", "the breadcrumb centres its link's ink in ${colorScheme}" |
41
43
  | Rail current section | Core | In a section rail the current section takes the current-page look: `--color-nav-current` fill, `--shadow-nav-current`, and `--color-nav-current-text`, with no pip. It keeps `aria-current="location"`. Strips and contents lists keep the pip. In forced colors it takes the current page's 2px `Highlight` leading border. The owner chose it at Gate M, so the rail's place reads like the live site's current page. | The pip in the rail too, as in strips and contents lists: the owner preferred the rail to match the site's current-page look. | rule present on pages: `tests/design-foundations.test.mjs` "example pages copy the state rules of every component variant their markup uses"; recipe: no test yet |
42
44
  | Tab glide | Core | The selected tab's fill is a `::before` layer that glides between tabs like the segmented thumb: `glide-left` and `glide-right`, 260ms leading and 300ms trailing, with CSS `ease`. No glide on first render or under reduced motion, and no layer in forced colors. The owner chose it at Gate M. | The fill jumping from tab to tab, unlike the segmented control beside it. | glide and reduced motion: `tests/catalogue/catalogue.spec.ts` "the tab fill glides to the new tab", "the tab fill moves at once" |
@@ -50,7 +52,7 @@ Each entry records a choice this language made, the options it rejected, and why
50
52
  | Tab density | Core | A tab has the button's box: at least `--control-md` (32px) tall, 10px inline padding, no block padding, and line height 1; `data-size="sm"` tabs, for app screens, are 28px with 8px padding. Tabs grow to `--control-touch` at tablet width. The list keeps its 4px padding, which keeps the selected tab's shadow whole where the list clips. The owner asked for narrower tabs with less dead space on 2026-11-24. | The tab before: `--space-2` `--space-3` padding with line height 1.6 made a 38px tab, taller than every control beside it, and 84px wide for "Overview". 2px list padding: it clips the selected tab's `--shadow-nav-current`, which reaches 4px below the tab. | heights: `tests/catalogue/catalogue.spec.ts` "renders control sizes" (tabs at their exact control height) |
51
53
  | Code wrap toggle | Core | Every multi-line code block (one with a header, or a live example's source) has a Wrap lines toggle before Copy: an icon-only quiet action with a fixed name and `aria-pressed`. It is off by default, per block, and not saved. Astryx offers wrapping only as a caller prop (`CodeBlock` spec: "optional wrapping"); this departs from it with a reader control, as T3 Code's code blocks have. The owner asked for it on 2026-11-24. | Wrapping by default: it would reflow every code block on the five sites, and the spec has the panel scroll. A name that flips between Enable and Disable line wrap, as T3 Code's tooltip does: with `aria-pressed` it would announce the state twice. Saving the choice: one more stored setting for a per-block reading aid. A toggle on compact blocks: they hold one line. | toggle, wrapping, and copy: `tests/catalogue/catalogue.spec.ts` "Wrap lines wraps a code block, and Copy still copies its lines" |
52
54
  | Astryx as the reference system | Core | When a value or behaviour is not decided here, start from Astryx's (`meta/astryx`, MIT, read at `7032abf`), and record any departure in this file. Take the idea and the values, never the code. The identity stays this system's: its type pair, the theme hues, quiet depth, and the forced-colors rules. The owner chose this on 2026-11-22 so the system stops re-deciding settled questions; the quiet action fill, the focus ring, field focus, the radius scale, and the compact controls already follow Astryx. React apps keep ui-sdk for behaviour: `ui-sdk.css` draws it. | Astryx's React components in React apps, themed with these tokens: it reverses the board's ui-sdk choice, and the Vue library could not use them. Making the design system a wrapper of ui-sdk: `@filipgutica/ui` (Vue) and the static sites use the design system, ui-sdk is React-only here and in beta, and `ui-sdk.css` already draws ui-sdk's parts. Deciding each value from scratch: it re-decided questions Astryx has answered, and the results drifted toward it anyway. | No test: a working rule for authors |
53
- | Conversation components | Core | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention, and chip are specified here before any app builds them, so the board's React code and any later Vue component draw from one spec. They follow the board mockups (2026-11-22) and Slack, T3 Code, and ChatGPT patterns: flat rows with no bubble; one author's messages within about 5 minutes grouped under one avatar; actions in a hover toolbar that is one Tab stop (`role="toolbar"`, arrow keys between its actions) and never shown on touch; tool output collapsed to one line in a native `<details>`; a composer that is one field with an inline send button; a thread in a side pane, resizable from 20rem to 40rem by drag or arrow keys and full width at tablet width. Conversation sits after Navigation, because its parts reuse the selected row and the overflow menu. A message takes one status at most, in two tones: the Needs you tag, `--color-text` semibold led by a dot in the tone of the thread's state badge (info for "Asks you", warning for "Blocked on you"), only while a message waits for the reader, and a muted resolution note on the post that resolves a thread, whose author is the resolver, or on a resolved thread's root shown alone, which names the resolver ("Resolved by …"). An agent's message carries a neutral Agent badge, and the person's own carry none, so agents are the marked exception (added 2026-11-27 for devchat). It is an identity mark, the one badge that repeats down a list against "badge the exceptions": it goes in the header line of a group's first message, and continuation rows carry no header, so the group's one mark covers them, and the owner kept it after the visual review (2026-11-27). A thread's state (Needs you, Blocked, Done, Dropped; none while open) is one badge in the thread panel's header, beside a secondary Resolve button; a reply reopens a resolved thread, so there is no Reopen. A message with a status starts a new group, so its author shows. The thread's badge and a message's tag may both be in view, such as Needs you in the header and Asks you on the reply: the badge says the thread's state, and the tag says which message it is about, so neither repeats the other. `conversation.css` holds these components' rules, and the catalogue links it after its own stylesheet, so devchat and the catalogue draw from one file; it is unlayered like the catalogue's rules, and the catalogue's pinned states outrank its rules by specificity. The badge and the alert they hold ship the same way, in `feedback.css`, because ui-sdk 0.1.0-beta.5 has no badge or alert part for `ui-sdk.css` to draw. A mention is static text, not a link. | Bubbles or cards around messages: the board read as busy, and Slack, T3 Code, and ChatGPT use flat rows. A row of buttons on every message: it repeats the same actions down the stream. A toolbar as a `role="group"`: three Tab stops for each message in a long stream. A thread in a dialog: it hides the channel the reader is replying about. Building the components in the board app first: the app's code would become the only definition. Status badges on messages: beside the Agent badge they made two pills in a header line, and the thread's badge already carries its state. A resolution as a separate event line with no author: it hid who resolved the thread, which a message row shows already. An all-caps "AGENT" label: the language keeps the source text's case. A "You" badge on the person's messages: it marks the default, not the exception. The tag in `--color-nav-current-text`: it drew the thread's state in a second hue beside the header's badge. The tag's words in the status colour: outside badges a status colour goes on the mark, not the label. Only one of the thread badge and the message tag: the badge alone hides which message needs the reader, and the tag alone hides a blocked or done thread whose question has scrolled away. The rules in the catalogue's inline style only, copied into the app: two copies drift. A split inline style with the file linked between its halves: the site build swaps the one `</style>` and checks the one shared style. `@layer components`, as `ui-sdk.css` uses: the catalogue's unlayered rules would then outrank every conversation rule. Resolve as the primary button: the composer's send is the pane's one filled action. | rendered corners by role and the conversation keyboard paths: `tests/catalogue/catalogue.spec.ts`, with "the composer sends on Enter and keeps the field, starts a new line on Shift+Enter, and sends no blank text" and "Resolve marks the thread done, ends its replies with the resolution, and moves focus to the pane heading"; parts, groups, and states agreement: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs` |
55
+ | Conversation components | Core | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention, and chip are specified here before any app builds them, so the board's React code and any later Vue component draw from one spec. They follow the board mockups (2026-11-22) and Slack, T3 Code, and ChatGPT patterns: flat rows with no bubble; one author's messages within about 5 minutes grouped under one avatar; actions in a hover toolbar that is one Tab stop (`role="toolbar"`, arrow keys between its actions) and never shown on touch; tool output collapsed to one line in a native `<details>`; a composer that is one field with an inline send button; a thread in a side pane, resizable from 20rem to 40rem by drag or arrow keys and full width at tablet width. Conversation sits after Navigation, because its parts reuse the selected row and the overflow menu. A message takes one status at most, in two tones: the Blocked on you tag, `--color-text` semibold led by a dot in the Blocked badge's warning tone, only while a question blocks the work (an "Asks you" tag in the info tone marked every open question until the quieter conversation below), and a muted resolution note on the post that resolves a thread, whose author is the resolver, or on a resolved thread's root shown alone, which names the resolver ("Resolved by …"). An agent's message carries a neutral Agent badge, and the person's own carry none, so agents are the marked exception (added 2026-11-27 for devchat; left out where every author but the reader is an agent since the quieter conversation below). It is an identity mark, the one badge that repeats down a list against "badge the exceptions": it goes in the header line of a group's first message, and continuation rows carry no header, so the group's one mark covers them, and the owner kept it after the visual review (2026-11-27). A thread's state (Needs you, Blocked, Done, Dropped; none while open) is one badge in the thread panel's header, beside a secondary Resolve button; a reply reopens a resolved thread, so there is no Reopen. A message with a status starts a new group, so its author shows. The thread's badge and a message's tag may both be in view, such as Blocked in the header and Blocked on you on the reply: the badge says the thread's state, and the tag says which message it is about, so neither repeats the other. `conversation.css` holds these components' rules, and the catalogue links it after its own stylesheet, so devchat and the catalogue draw from one file; it is unlayered like the catalogue's rules, and the catalogue's pinned states outrank its rules by specificity. The badge and the alert they hold ship the same way, in `feedback.css`, because ui-sdk 0.1.0-beta.5 has no badge or alert part for `ui-sdk.css` to draw. A mention is static text, not a link. | Bubbles or cards around messages: the board read as busy, and Slack, T3 Code, and ChatGPT use flat rows. A row of buttons on every message: it repeats the same actions down the stream. A toolbar as a `role="group"`: three Tab stops for each message in a long stream. A thread in a dialog: it hides the channel the reader is replying about. Building the components in the board app first: the app's code would become the only definition. Status badges on messages: beside the Agent badge they made two pills in a header line, and the thread's badge already carries its state. A resolution as a separate event line with no author: it hid who resolved the thread, which a message row shows already. An all-caps "AGENT" label: the language keeps the source text's case. A "You" badge on the person's messages: it marks the default, not the exception. The tag in `--color-nav-current-text`: it drew the thread's state in a second hue beside the header's badge. The tag's words in the status colour: outside badges a status colour goes on the mark, not the label. Only one of the thread badge and the message tag: the badge alone hides which message needs the reader, and the tag alone hides a blocked or done thread whose question has scrolled away. The rules in the catalogue's inline style only, copied into the app: two copies drift. A split inline style with the file linked between its halves: the site build swaps the one `</style>` and checks the one shared style. `@layer components`, as `ui-sdk.css` uses: the catalogue's unlayered rules would then outrank every conversation rule. Resolve as the primary button: the composer's send is the pane's one filled action. | rendered corners by role and the conversation keyboard paths: `tests/catalogue/catalogue.spec.ts`, with "the composer sends on Enter and keeps the field, starts a new line on Shift+Enter, and sends no blank text" and "Resolve marks the thread done, ends its replies with the resolution, and moves focus to the pane heading"; parts, groups, and states agreement: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs` |
54
56
  | Phone header | Core | The family shell, option A, which the owner chose on 2026-11-11: the site's header matches the other family sites. At tablet width the static header has two rows, the project switcher and the appearance control, then the Pages strip. Where both do not fit, as at 320px, the appearance control wraps to its own row at the start, as UiSiteHeader does on PluginBench and Filip Stack, and the project name never truncates. The rule below the header is the family's solid `--color-text` line. Just below it, at the start, the labelled trigger ("Components: By purpose") opens the drawer from the left, the side it sits on. The drawer is titled with the rail's name and holds Find and the rail's groups. `/` opens it with Find focused. Without JavaScript nothing moves. | The Gate M single sticky row with the site name, then icon-only Find and Menu buttons, with the pages and appearance in the Menu drawer: the site had no way to the other family sites, and the Menu button sat at the right while the drawer slid in from the left. Option B, keeping that row and sliding the drawer in from the right: it kept the site apart from the other seven family sites. Truncating the project name at 320px so both controls shared row 1: the family wraps the picker instead, and the name should never truncate. | `tests/site/site.spec.ts` "the switcher and appearance share the first row, then the pages, then the trigger", "the switcher and appearance take a row each, then the pages, then the trigger", "every clipped strip link shows at least 16px", "the trigger opens the drawer from the left edge, titled with the rail and holding Find and the rail only", "the trigger label follows the current section as the page scrolls"; `tests/catalogue/catalogue.spec.ts` "the trigger opens the drawer on the current row, and a link closes it and focuses the target" |
55
57
  | Drawer instead of a long strip | Core | A horizontal strip holds 6 links or fewer; a longer list moves into the drawer at tablet width. | The catalogue's 26-link strip on phones: most links sat off screen, and the page broke its own drawer spec. | rail moves into the drawer: `tests/catalogue/catalogue.spec.ts` "resizing moves the rail between the page and the drawer, and the pages and appearance stay in the header"; six-link strip limit: no test yet |
56
58
  | Drawer and slideout | Core | Owner decision, 2026-11-25: two components for two jobs. A drawer holds navigation and opens from the leading edge; a slideout holds filters or secondary detail, opens from the trailing edge by default (the top or bottom when the page names it), is `min(75%, 384px)` wide, and may have a footer whose actions stack on phones. Both share the floating layer, backdrop, page-scroll lock, and slide, and every slideout close returns focus to its trigger. | One drawer for navigation and detail: the owner reads "drawer" as a navigation menu, so a filter panel called a drawer read as the wrong component, and the one spec could not say which edge or width a panel takes. | spec parts: `tests/component-parts.test.mjs` "every component section has every part, or says None with a reason"; edge, width, close, scroll lock, and footer: `tests/catalogue/catalogue.spec.ts` "slideout" |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filipgutica/design-system",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Filip's design language, tokens, and component catalogue for any framework",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -72,13 +72,13 @@
72
72
  },
73
73
  "homepage": "https://github.com/filipgutica/design-system#readme",
74
74
  "devDependencies": {
75
- "@axe-core/playwright": "4.14.0",
75
+ "@axe-core/playwright": "4.14.1",
76
76
  "@commitlint/cli": "21.2.4",
77
77
  "@commitlint/config-conventional": "21.2.4",
78
78
  "@playwright/test": "1.65.1",
79
79
  "@semantic-release/commit-analyzer": "13.0.1",
80
80
  "@semantic-release/git": "10.0.1",
81
- "@types/node": "24.19.2",
81
+ "@types/node": "24.19.4",
82
82
  "@types/react": "19.3.0",
83
83
  "@types/react-dom": "19.3.0",
84
84
  "@ui-sdk/core": "0.1.0-beta.5",