@alis-build/design-system 0.12.0 → 0.13.1

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/alisx.css CHANGED
@@ -217,7 +217,7 @@ button, input, textarea, select { font: inherit; }
217
217
  /* ── Type-style completions the token classes can't carry ── */
218
218
  .text-eyebrow{text-transform:uppercase}
219
219
  .text-metric-value{font-variant-numeric:tabular-nums}
220
- @media (max-width:599px){.text-welcome-title{font-size:32px;line-height:40px}}
220
+ @media (max-width:599px){.text-welcome-title{font-size:32px;line-height:40px}.text-page-title{font-size:18px;line-height:24px;letter-spacing:-0.02em}}
221
221
 
222
222
  /* ── Face and weight, beside a role class: the role keeps the size ── */
223
223
  .text-mono{font-family:var(--font-mono)}
@@ -413,8 +413,12 @@ a.app-row,a.app-card{text-decoration:none}
413
413
  .app-titlebar--detail .app-titlebar__name{flex:1 1 100%}
414
414
  /* The first verb's label meets the pane edge, as the close glyph does */
415
415
  .app-titlebar--detail .app-titlebar__actions{flex-basis:100%;margin-left:calc(var(--space-24) * -1)}
416
- /* Compact window: the verbs take their own row under the name; a row's meta gives way to its title */
417
- @media (max-width:599px){.app-titlebar__row{flex-wrap:wrap;row-gap:var(--space-8)}.app-titlebar__actions{order:4;flex-basis:100%;margin-left:calc(var(--space-24) * -1)}.app-titlebar--detail .app-titlebar__actions{margin-left:calc(var(--space-24) * -1)}.app-row:not(.app-row--nav):not(.app-row--agent-chat) .app-row__meta{display:none}}
416
+ /* One markup for both windows: a part that exists only on a phone, or only above one */
417
+ @media (min-width:600px){.app-compact-only{display:none!important}}
418
+ @media (max-width:599px){.app-wide-only{display:none!important}}
419
+ /* Compact window: one 56 bar. Menu or back, the name, the lead as its glyph alone, then ⋯ holding every other verb.
420
+ Its 48 targets sit 4 in and its glyphs 16 in; a name with nothing before it starts on the content's 24 edge. A row's meta gives way to its title */
421
+ @media (max-width:599px){.app-titlebar:not(.app-titlebar--detail){gap:0;padding:env(safe-area-inset-top,0px) var(--space-8) 0}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__row{flex-wrap:nowrap;gap:0;min-height:56px}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__name{flex:1;gap:var(--space-4)}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__leading{margin-left:0}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__name:not(:has(.app-titlebar__leading)) .app-titlebar__title{padding-left:var(--space-16)}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__actions{flex-wrap:nowrap;gap:0;margin-left:0}.app-titlebar__lead{width:40px;min-width:0;height:40px;padding:0;gap:0;border-color:transparent;background:transparent;color:var(--on-surface)}.app-titlebar__lead .app-icon{margin:0;font-size:24px}.app-titlebar:not(.app-titlebar--detail) .app-tabs{margin:0 calc(var(--space-8) * -1);padding:0 var(--space-8)}.app-titlebar__lead .app-titlebar__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.app-titlebar .app-icon-btn{color:var(--on-surface)}.app-row:not(.app-row--nav):not(.app-row--agent-chat) .app-row__meta{display:none}}
418
422
  /* The filter row sits in .app-shell__content, which already pads the sides */
419
423
  .app-filterrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
420
424
  /* Search leads the row; the controls follow it; the count closes the row and answers them */
@@ -478,12 +482,13 @@ a.app-row,a.app-card{text-decoration:none}
478
482
  /* breakpoint-medium (840): the detail pane slides over the content */
479
483
  @media (max-width:839px){.app-shell--detail{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell__detail{position:fixed;top:0;right:0;bottom:0;width:min(var(--detail-width),100%);background:var(--surface);box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent);border-left:0;z-index:2}}
480
484
  /* breakpoint-compact (600): the navigation pane collapses to a column of icons */
481
- @media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:72px minmax(0,1fr)}.app-shell .app-brand__wordmark,.app-shell .app-nav-heading,.app-shell .app-account__text,.app-shell .app-account>.app-icon,.app-shell .app-row--nav .app-row__trailing{display:none}.app-shell .app-brand__mark{display:block}.app-shell .app-row--nav{gap:0;padding:0;justify-content:center}.app-shell .app-row--nav .app-row__text{flex:none;width:0;min-width:0;overflow:hidden}.app-shell__nav .app-row--agent-chat,.app-shell__nav .app-nav-secondary{display:none}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}.app-shell .app-brand{padding:0;justify-content:center}.app-shell .app-account{justify-content:center;padding:var(--space-4);border-color:transparent}}
485
+ /* Compact window: the navigation pane becomes a drawer, the same pane at the same width, opened by the title bar's
486
+ menu button (app-shell--nav-open) over a scrim, as a detail pane slides over a narrow window */
487
+ @media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:minmax(0,1fr)}.app-shell__nav{display:none;position:fixed;top:0;bottom:0;left:0;z-index:3;width:var(--nav-width);max-width:calc(100% - 56px);padding-top:calc(var(--space-16) + env(safe-area-inset-top,0px));overflow-y:auto;background:var(--surface);border-right:0;box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent)}.app-shell--nav-open .app-shell__nav{display:flex}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}}
482
488
 
483
489
  /* ── Navigation pane · brand, account card ── */
484
490
  .app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
485
491
  .app-brand__wordmark{display:block;width:auto}
486
- .app-brand__mark{display:none;width:auto}
487
492
  .app-account{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;margin-top:var(--space-8);padding:var(--space-8);border:1px solid var(--outline-variant);border-radius:var(--radius-lg);background:transparent;color:var(--on-surface);text-align:left;font:inherit}
488
493
  .app-account__avatar{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover}
489
494
  span.app-account__avatar{display:flex;align-items:center;justify-content:center;background:var(--surface-container-highest);color:var(--on-surface)}
@@ -823,6 +828,8 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
823
828
  .app-keys__said{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
824
829
  /* On a grey field the cap lifts to white; the search field's key shows only while it is empty and unfocused */
825
830
  .app-search .app-key{background:var(--surface)}
831
+ /* On a touch screen there is no keyboard to press them: the search field's cap and a menu row's keys leave */
832
+ @media (pointer:coarse){.app-search>.app-keys,.app-menu__hint>.app-keys{display:none}}
826
833
  .app-search:focus-within>.app-keys,.app-search:has(>.app-search__input:not(:placeholder-shown))>.app-keys{display:none}
827
834
  /* Single-key shortcuts off (set on the root): letter caps leave tooltips and menus, and dim in the sheet */
828
835
  [data-single-keys="off"] .app-keys--single{display:none}
@@ -191,7 +191,7 @@ A band at the top of the composer's surface, above the editor, divided from it b
191
191
 
192
192
  - **Open and close** the band with the ask. Alis's ask takes focus (its first option, or its filled action); a person's docks without moving it and is announced through a polite live region. Return focus to the editor when it closes.
193
193
  - **The lead**: `.app-composer__go--plain` on the composer's button while the editor is empty; when it has text, drop it (Send fills) and swap the ask's `app-btn--filled` for `app-btn--outlined`.
194
- - **Keyboard**, on the band only (never a window listener): the number keys pick an option while focus is in the band, not in the editor; Enter on a focused option answers it; Escape moves focus to the editor without answering. Enter in the editor sends your words: Alis's answer, or a reply to a person.
194
+ - **Keyboard** ([shortcuts.md](../rules/shortcuts.md) § The same everywhere): while focus is in no field (the editor included), the number keys pick an option, A answers with the affirmative and X refuses (opening the reason field where there is one). On an ask that is hard to undo (deleting, reaching production), A moves focus to the affirmative and Enter confirms. They are single keys: the switch turns them off. Enter on a focused option answers it; Escape moves focus to the editor without answering. Enter in the editor sends your words: Alis's answer, or a reply to a person.
195
195
  - **Several questions**: answering moves to the next; previous and next page without answering; Skip answers "let Alis decide".
196
196
  - **After**: write the record into the thread (your bubble for a choice or words, `.app-turn__record` for an approval) and the head moves on from *Waiting for you*.
197
197
  - **A person's request**: show the ask to everyone who can decide; keep it docked while they type replies; Decline swaps the actions for the reason field and Back, moving focus as § Who asks says; when someone else decides, show it on the line, move any started reason into the editor, then close; on a failure, keep the band and its actions with the line in `error`; write the outcome to the request's state line, not a record turn.
@@ -8,6 +8,7 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
8
8
  - **Not a label.** Never inside a button, never in brackets, never on a line of its own under a composer or a picker.
9
9
  - **One spelling.** ⌘ ⇧ ⌥ ⌃ on a Mac, Ctrl Shift Alt elsewhere; Enter, Esc, Tab, Space and Delete as words everywhere; arrows as arrows. Never a plus sign.
10
10
  - **A capital takes Shift**: ⇧ U. A letter cap is always the capital.
11
+ - **A symbol is its own cap**: `+`, `?`, `/` as the character they type. A lone `+` cap is the plus key, never a separator.
11
12
  - **A sequence** puts `then` between its keys: G then H.
12
13
 
13
14
  ## Anatomy
@@ -28,7 +29,7 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
28
29
  <!-- The same shortcut on Windows and Linux -->
29
30
  <kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Ctrl</kbd><kbd class="app-key">K</kbd></kbd>
30
31
 
31
- <!-- A single letter: --single, so it can leave when single-key shortcuts are off -->
32
+ <!-- A single key (a letter, a digit, +, ?, /): --single, so it can leave when single-key shortcuts are off -->
32
33
  <kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">R</kbd></kbd>
33
34
 
34
35
  <!-- A capital, and a sequence -->
@@ -44,7 +45,7 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
44
45
  ## Behaviour you must supply
45
46
 
46
47
  - **The platform**, detected once for the product (a Mac, or anything else), and every set written for it. A guide for another app writes that app's platform instead.
47
- - **`app-keys--single`** on a set that is one letter with no modifier, so the product can hide it while single-key shortcuts are off (`data-single-keys="off"` on the root).
48
+ - **`app-keys--single`** on a set that is one character key with no modifier (a letter, a digit, `+`, `?`, `/`), so the product can hide it while single-key shortcuts are off (`data-single-keys="off"` on the root).
48
49
  - **`aria-keyshortcuts`** on the control a set describes, in the platform's terms (`Meta+K` on a Mac, `Control+K` elsewhere; `R`; `Shift+U`).
49
50
 
50
51
  ## Classes
@@ -93,7 +93,7 @@ What you chose from `/` or `@` becomes **one token in the sentence** (`.app-toke
93
93
  - **Triggers**: `/` at the start of the message only, `@` at the start or after a space; filter as you type; close when a space follows no match.
94
94
  - **Tokens**: insert them as non-editable atoms followed by a space; carry them through whatever the editor serializes to (a token must survive the round trip, never becoming plain text or a placeholder), and render them as links in the sent message.
95
95
  - **Checked items**: set `aria-checked`, `is-selected` and the trailing `check` together.
96
- - **A shortcut**: the same keys the sheet lists, written for the platform, and `aria-keyshortcuts` on the row ([shortcuts.md](../rules/shortcuts.md)). The account menu ends its first group with **Keyboard shortcuts**, `?` as its hint, which opens the [AppShortcutSheet](AppShortcutSheet.md).
96
+ - **A shortcut**: the same keys the sheet lists, written for the platform, and `aria-keyshortcuts` on the row ([shortcuts.md](../rules/shortcuts.md)). The account menu holds **Keyboard shortcuts**, `?` as its hint, which opens the [AppShortcutSheet](AppShortcutSheet.md) ([AppShell](AppShell.md) § The account menu). On a coarse pointer a row's keys leave by themselves.
97
97
 
98
98
  ## Classes
99
99
 
@@ -10,13 +10,17 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
10
10
  - **Navigation pane** (`nav-width`, 256px), three regions:
11
11
  - **Top**, fixed: the brand (`.app-brand`), the AlisX wordmark linking Home. It is the way home from every rail.
12
12
  - **Middle**: app-wide destinations first (Home, Skill Store), then one group per product under an `.app-nav-heading` naming it ("Ideate", "Build"), its destinations as 36px nav [AppListRow](AppListRow.md)s sitting flush (no gap between rows). A heading names a product in `on-surface-variant`, and sets its own type: 12/16 at 500, sentence case, no tracking. Never an eyebrow. Whatever a screen adds after the groups (the agent chat list, under its own heading) follows them.
13
- - **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu; switching account happens there, and its **Keyboard shortcuts** row opens the [AppShortcutSheet](AppShortcutSheet.md).
14
- - **A row's "new"** is a small [AppIconButton](AppIconButton.md) (`add`) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create.
13
+ - **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu (§ The account menu).
14
+ - **A row's "new"** is a small [AppIconButton](AppIconButton.md) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create: `add`, or `edit_square` where the destination is a conversation ("New chat"), as on its title bar's lead ([buttons.md](../rules/buttons.md) § The form).
15
15
  - **No action in the pane.** A screen's "new" is the outlined lead in its title bar ([AppTitleBar](AppTitleBar.md)); the navigation pane holds destinations, and a row's own "new" icon button.
16
16
  - **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot and replaces the middle with that object's destinations. Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
17
17
  - The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
18
18
  - **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
19
- - **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. The [AppShortcutSheet](AppShortcutSheet.md) opens in its place: the content narrows for it, or it covers an open detail pane until it closes. Below 840px it slides over the content at `elevation-3`; below 600px the navigation collapses to a 72px column (the mark alone, destination icons, the account's avatar; headings, secondary rows and agent chats hide) and the detail pane covers the full width, over a scrim. The CSS does all of this.
19
+ - **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. **It has a URL** (a query parameter, as search keeps `?q=`), so a refresh, a shared link and back all find it. The [AppShortcutSheet](AppShortcutSheet.md) opens in its place: the content narrows for it, or it covers an open detail pane until it closes. Below 840px it slides over the content at `elevation-3`, over a scrim.
20
+ - **On a phone** (below 600px) the shell is one column: the content, under a one-row title bar ([AppTitleBar](AppTitleBar.md) § On a phone).
21
+ - **The navigation pane becomes a drawer**: the same pane at the same width, brand, groups, agent chats and foot unchanged, hidden until the title bar's menu button opens it (`app-shell--nav-open`). It slides over the content at `elevation-3` over a scrim, like a detail pane. Never a column of icons: it hid the agent chats, the place you go back to most, and left the content too little room.
22
+ - **The detail pane covers the full width**, and its bar leads with back (`arrow_back`) instead of close: on a phone it reads as a step deeper, and the phone's own back gesture closes it.
23
+ - The CSS lays all of this out; you open and close the drawer.
20
24
  - No pane is a white card. Panes are separated by an `outline-variant` divider, not by fill.
21
25
 
22
26
  ## Markup
@@ -26,7 +30,6 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
26
30
  <nav class="app-shell__nav" aria-label="Main">
27
31
  <a class="app-brand" href="/" aria-label="AlisX home">
28
32
  <img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
29
- <img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
30
33
  </a>
31
34
 
32
35
  <!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
@@ -79,14 +82,26 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
79
82
 
80
83
  Group headings are the product's short name, "Ideate" and "Build"; the full names (*Alis Ideate*, *Alis Build*) are for copy.
81
84
 
85
+ ## The account menu
86
+
87
+ An [AppMenu](AppMenu.md), opened from the account card, in three groups:
88
+
89
+ 1. **The accounts**: one checked row per account you can work in (`menuitemradio`), the product names in its supporting line. Choosing one switches.
90
+ 2. **About you here**: **Usage** where the product measures it (`data_usage`, the share used in its supporting line, "68% of this month's credits", in `error` at the limit), opening the product's usage panel; then **Keyboard shortcuts**, `?` as its hint, opening the [AppShortcutSheet](AppShortcutSheet.md), left out on a touch screen.
91
+ 3. **Profile**, then **Sign out**.
92
+
93
+ Usage lives here, never in a title bar: it measures the account, not the screen ([AppTitleBar](AppTitleBar.md)).
94
+
82
95
  ## Behaviour you must supply
83
96
 
84
97
  - Add `app-shell--detail` and the `<aside>` only while something is selected; remove both when the detail pane closes, and return focus to the row that opened it.
85
98
  - When the rail runs long, scroll only the region after the product groups (the agent chat list); the brand, the groups and the foot stay put.
86
- - The account card opens a menu (toggle `aria-expanded`) holding the account list, then profile and sign out.
99
+ - **The drawer** (below 600px): the title bar's menu button (`aria-expanded`, `aria-controls` on the nav) adds `app-shell--nav-open`. While it's open, make `.app-shell__main` `inert` and move focus to the first row. It closes on a route change, on Escape and on a press outside it, and focus returns to the menu button. Remove the class at 600px and up.
100
+ - **The detail pane's history**: opening it pushes a history entry with its parameter; choosing another row while it's open replaces that entry, so back doesn't step through every row you looked at; close goes back. At every width.
101
+ - The account card opens the account menu (toggle `aria-expanded`).
87
102
  - No photo: the person's initial in `<span class="app-account__avatar text-label" aria-hidden="true">R</span>`.
88
- - Below 600px the brand link keeps its `aria-label`, since both images are decorative.
103
+ - The brand link keeps its `aria-label`, since the wordmark is decorative.
89
104
 
90
105
  ## Classes
91
106
 
92
- `.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-brand`, `.app-brand__wordmark`, `.app-brand__mark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
107
+ `.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-shell--nav-open`; `.app-brand`, `.app-brand__wordmark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
@@ -4,7 +4,7 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - **One sheet for the product.** It opens from `?` on any screen and from a **Keyboard shortcuts** row in the account menu (with `?` as its hint). No screen builds its own list of keys or its own dialog for them.
7
+ - **One sheet for the product.** It opens from `?` on any screen and from a **Keyboard shortcuts** row in the account menu (with `?` as its hint), a row a touch screen leaves out. No screen builds its own list of keys or its own dialog for them.
8
8
  - **Beside the work, never over it.** It takes the [AppShell](AppShell.md)'s detail pane: on a screen with no detail pane the content narrows for it; on a screen with one open, the sheet covers that pane until it closes and the pane returns. Below 840px it slides over the content like any detail pane. It has no scrim and takes no focus trap: every key it lists works while it is open.
9
9
  - **This screen first.** A group named for what is open ("On this conversation", "On this list"), then **Everywhere**. A key that does nothing here is left out, not dimmed.
10
10
  - **Not a settings page.** Its one control is the single-key switch.
@@ -53,8 +53,8 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
53
53
  <section class="app-shortcuts__group" aria-labelledby="ks-all">
54
54
  <h3 class="app-shortcuts__heading text-eyebrow" id="ks-all">Everywhere</h3>
55
55
  <dl>
56
- <div class="app-shortcuts__row"><dt class="text-body">Search this screen</dt><dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">/</kbd></kbd><span class="app-keys__said">Slash</span></dd></div>
57
- <div class="app-shortcuts__row"><dt class="text-body">Show these keys</dt><dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">?</kbd></kbd><span class="app-keys__said">Question mark</span></dd></div>
56
+ <div class="app-shortcuts__row"><dt class="text-body">Search this screen</dt><dd><kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">/</kbd></kbd><span class="app-keys__said">Slash</span></dd></div>
57
+ <div class="app-shortcuts__row"><dt class="text-body">Show these keys</dt><dd><kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">?</kbd></kbd><span class="app-keys__said">Question mark</span></dd></div>
58
58
  <div class="app-shortcuts__row"><dt class="text-body">Close or step back</dt><dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Esc</kbd></kbd><span class="app-keys__said">Escape</span></dd></div>
59
59
  </dl>
60
60
  </section>
@@ -76,7 +76,7 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
76
76
 
77
77
  - **One list of shortcuts** for the product, each with its keys, what it does, and where it works. The sheet, the tooltips and the menu hints all read it, so a key is never shown that doesn't work, and no key works that isn't shown.
78
78
  - **`?` toggles the sheet** and Esc closes it, except while focus is in a field. Closing returns focus to whatever had it before.
79
- - **The switch** is kept per person (not per device) and applied at once: set `data-single-keys="off"` on the root, stop handling single-letter keys, and show the note.
79
+ - **The switch** is kept per person (not per device) and applied at once: set `data-single-keys="off"` on the root, stop handling every single key (`?` and `/` included; the account menu still opens the sheet), and show the note.
80
80
  - **The groups follow the screen**: when what is open changes, rebuild the first group.
81
81
 
82
82
  ## Classes
@@ -7,7 +7,8 @@ The top of every product screen: the name and the verbs; route tabs under the na
7
7
  See [page.md](../rules/page.md).
8
8
 
9
9
  - **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title.
10
- - **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add. Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
10
+ - **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add, and by `edit_square` when it starts a new conversation ("New chat"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
11
+ - **Never status.** The bar names the screen and holds its verbs: no meter, no usage ring, no saving state, no count. A thing's state is a chip on the detail bar's row or in the content; an account's usage is a row in the account menu ([AppShell](AppShell.md) § The account menu).
11
12
  - **The verbs follow the route**: each tab shows the verbs that act on what it shows, and none when there is nothing to act on.
12
13
  - **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
13
14
  - **Tabs are routes**, and scroll sideways when they don't fit: each opens another view of this screen (Overview, Interviews, Artifacts). A tab that narrows one list is a filter: put it in the filter row as an [AppSegmented](AppSegmented.md).
@@ -15,7 +16,16 @@ See [page.md](../rules/page.md).
15
16
  - **The filter row** is the first thing in `.app-shell__content` (which pads it), one row that narrows the list: search first, then the filters, then the count at the far end ("12 interviews", "3 of 12" while something narrows). Below 600px, search takes the whole first line.
16
17
  - **When the list is empty**, keep the name and the verb; hide search and the filter row.
17
18
 
18
- **Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. The pane pads it; add nothing.
19
+ **On a phone** (below 600px) the bar is one row, 56 tall, and holds four things and nothing else:
20
+
21
+ 1. **Leading**: the menu button (`menu`), which opens the navigation drawer ([AppShell](AppShell.md)); back (`arrow_back`) on a detail route. Nothing on a screen with no navigation (joining an interview, signing in).
22
+ 2. **The name**, page-title at its compact step (18/24 at 700, a step above the section-titles under it), truncating.
23
+ 3. **The lead as its glyph alone**, its label the accessible name. A lead whose glyph wouldn't read on its own ("Generate key", "Install block") leaves the bar and leads ⋯ instead; a lead with no glyph above 600 can carry one for the phone (`edit` for "Edit session", `app-compact-only` on the glyph).
24
+ 4. **⋯** (`more_vert`), an [AppMenu](AppMenu.md) holding every other verb in the order they had, anything destructive last behind a divider. Left out when there are none. Rename lives here: never a double tap on the name.
25
+
26
+ The tabs scroll under it; the filter row is unchanged. The bar has no hairline at rest; add one (an `outline-variant` inset shadow) while content scrolls under it. Mark the parts that exist on only one side `app-compact-only` or `app-wide-only`, so one markup serves both.
27
+
28
+ **Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. On a phone the pane covers the window and its close becomes back (`arrow_back`). The pane pads it; add nothing.
19
29
 
20
30
  ## Markup
21
31
 
@@ -28,7 +38,7 @@ See [page.md](../rules/page.md).
28
38
  <h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1>
29
39
  </div>
30
40
  <div class="app-titlebar__actions">
31
- <button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button>
41
+ <button type="button" class="app-btn app-state app-target app-btn--outlined app-titlebar__lead"><span class="app-icon" aria-hidden="true">add</span><span class="app-titlebar__label">New environment</span></button>
32
42
  </div>
33
43
  </div>
34
44
  <!-- Optional route tabs -->
@@ -38,14 +48,35 @@ See [page.md](../rules/page.md).
38
48
  </nav>
39
49
  </header>
40
50
 
51
+ <!-- On a phone: the menu button leads; the lead keeps its markup and shows its glyph alone; ⋯ holds the other verbs -->
52
+ <header class="app-titlebar">
53
+ <div class="app-titlebar__row">
54
+ <div class="app-titlebar__name">
55
+ <span class="app-titlebar__leading app-compact-only">
56
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Menu" aria-expanded="false" aria-controls="nav"><span class="app-icon" aria-hidden="true">menu</span></button>
57
+ </span>
58
+ <h1 class="app-titlebar__title text-page-title" title="Customer onboarding research">Customer onboarding research</h1>
59
+ </div>
60
+ <div class="app-titlebar__actions">
61
+ <button type="button" class="app-btn app-state app-target app-wide-only">Set project goal</button>
62
+ <button type="button" class="app-btn app-state app-target app-btn--outlined app-titlebar__lead"><span class="app-icon" aria-hidden="true">add</span><span class="app-titlebar__label">Add contribution</span></button>
63
+ <button type="button" class="app-icon-btn app-state app-target app-compact-only" aria-label="More actions" aria-haspopup="menu" aria-expanded="false" aria-controls="m-bar"><span class="app-icon" aria-hidden="true">more_vert</span></button>
64
+ </div>
65
+ </div>
66
+ </header>
67
+ <!-- m-bar: Set project goal, Rename, Share, a divider, Delete project -->
68
+
41
69
  <!-- Detail bar: h2 in section-title, no search, no tabs -->
42
70
  <header class="app-titlebar app-titlebar--detail">
43
71
  <div class="app-titlebar__row">
44
72
  <div class="app-titlebar__name">
45
73
  <span class="app-titlebar__leading">
46
- <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Close details" title="Close details">
74
+ <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small app-wide-only" aria-label="Close details" title="Close details">
47
75
  <span class="app-icon" aria-hidden="true">close</span>
48
76
  </button>
77
+ <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small app-compact-only" aria-label="Back to environments">
78
+ <span class="app-icon" aria-hidden="true">arrow_back</span>
79
+ </button>
49
80
  </span>
50
81
  <h2 class="app-titlebar__title text-section-title" title="staging">staging</h2>
51
82
  </div>
@@ -62,7 +93,7 @@ See [page.md](../rules/page.md).
62
93
  <span class="app-icon" aria-hidden="true">search</span>
63
94
  <input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments" aria-keyshortcuts="/">
64
95
  <!-- The screen's key: the CSS shows it only while the field is empty and unfocused -->
65
- <kbd class="app-keys" aria-hidden="true"><kbd class="app-key">/</kbd></kbd>
96
+ <kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">/</kbd></kbd>
66
97
  <!-- Only while the input has a value: -->
67
98
  <button type="button" class="app-search__clear app-state app-target" aria-label="Clear search">
68
99
  <span class="app-icon" aria-hidden="true">close</span>
@@ -79,6 +110,7 @@ See [page.md](../rules/page.md).
79
110
  ## Behaviour you must supply
80
111
 
81
112
  - Set `title` on the heading to the full name (the hover text for a truncated name).
113
+ - **On a phone**: build ⋯ from the verbs the wide bar shows (the `app-wide-only` ones), in the same order, leading with the lead when it leaves the bar. Give the menu button `aria-expanded` and `aria-controls` pointing at the navigation pane. A tooltip never shows on touch: the lead's label is its accessible name.
82
114
  - **Search**: filter as the user types a list you already hold; where the search goes to a server, run it on Enter and say so in the placeholder. Show the clear button only while the input has a value; clear empties the input, re-filters and returns focus to the input. Keep the query in the URL (`?q=`), so back, refresh and a shared link keep it.
83
115
  - **`/`** puts focus in the screen's search field from anywhere on the screen, except while focus is in another field ([shortcuts.md](../rules/shortcuts.md)). A section's or a pane's own search has no `/` and no cap: one field per screen answers to it.
84
116
  - **The count** answers the row: the total at rest, "2 of 5" while a query or a filter narrows.
@@ -87,4 +119,4 @@ See [page.md](../rules/page.md).
87
119
 
88
120
  ## Classes
89
121
 
90
- `.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-titlebar__actions`; `.app-tabs`, `.app-tab`, `.is-selected`; `.app-filterrow`, `.app-filterrow__search`, `.app-filterrow__controls`, `.app-filterrow__summary`; `.app-search`, `.app-search__input`, `.app-search__clear`.
122
+ `.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-titlebar__actions`, `.app-titlebar__lead`, `.app-titlebar__label`; `.app-compact-only`, `.app-wide-only`; `.app-tabs`, `.app-tab`, `.is-selected`; `.app-filterrow`, `.app-filterrow__search`, `.app-filterrow__controls`, `.app-filterrow__summary`; `.app-search`, `.app-search__input`, `.app-search__clear`.
@@ -56,7 +56,6 @@ The screen most product work becomes. Build it, then fill in the behaviour from
56
56
  <nav class="app-shell__nav" aria-label="Main">
57
57
  <a class="app-brand" href="/" aria-label="AlisX home">
58
58
  <img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
59
- <img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
60
59
  </a>
61
60
  <!-- Home, Skill Store, then Ideate's group -->
62
61
  <p class="app-nav-heading">Build</p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
package/rules/buttons.md CHANGED
@@ -91,6 +91,12 @@ similar controls people scan repeatedly, and the glyph is conventional.
91
91
  its glyph is `add`. "Add a follow-up round" works inside a thing and keeps none,
92
92
  and so does a field's own action ("Add" beside an input, taking what you
93
93
  typed): it is that field's affirmative.
94
+ - **`edit_square` on a new conversation.** `add` brings something into what you
95
+ are looking at: a project into the list, a file into the message. A new chat
96
+ brings nothing in; it leaves this conversation for a blank one, so "New chat"
97
+ and "New conversation" lead with `edit_square`, as does a rail row's "new" for
98
+ them ([AppShell](../components/AppShell.md)). On a conversation, that keeps the
99
+ composer's `add` the only + on screen.
94
100
  - **No other icon on a lead**, filled or outlined, and none on a dialog action:
95
101
  "Create project" finishes what New started.
96
102
  - One icon, leading. The only trailing icon is a chevron meaning "opens a menu".
package/rules/page.md CHANGED
@@ -39,9 +39,11 @@ filter**, and a filter belongs in the filter row as a segmented control
39
39
  - **Its controls are small icon buttons and default-size buttons.** The row
40
40
  is `control-height` tall, so a larger control pushes the tabs down; every
41
41
  control keeps its hit area ([buttons.md](buttons.md)). Icon buttons stay
42
- `on-surface-variant`, and a status chip in the bar is small. A control drawn to
43
- a fixed small size (Ideate's usage ring) keeps it, and its target still projects
44
- to `touch-target`.
42
+ `on-surface-variant` beside labelled verbs; on a phone, where the glyphs are the
43
+ verbs, they take `on-surface`. A detail bar's state chip is small.
44
+ - **Never status**: no meter, usage ring, saving state or count in the bar. An
45
+ account's usage is a row in the account menu
46
+ ([AppShell](../components/AppShell.md)).
45
47
  - **The bar's lead is outlined, never filled**: the action that brings a thing
46
48
  into the screen ("New environment"). Its other verbs are text buttons or icon
47
49
  buttons. The bar is chrome; the screen's one filled button belongs in the
@@ -69,6 +71,16 @@ truncates and the bar stays two rows. Where the pane's content is a centred colu
69
71
  persistent chrome does ([spacing.md](spacing.md) § Measure). A notice about that thing sits at
70
72
  the top of the pane.
71
73
 
74
+ **A detail pane has a URL**: a query parameter, as search keeps `?q=`. Opening it
75
+ pushes a history entry, choosing another row replaces that entry, and closing goes
76
+ back, at every width; on a phone, where the pane covers the window, its close
77
+ becomes back (`arrow_back`) and the phone's back gesture closes it
78
+ ([AppShell](../components/AppShell.md)).
79
+
80
+ **On a phone** the title bar is one row: menu or back, the name, the lead as its
81
+ glyph, ⋯ for every other verb ([AppTitleBar](../components/AppTitleBar.md) § On a
82
+ phone). Nothing else earns a place in it.
83
+
72
84
  ## The filter row
73
85
 
74
86
  `.app-filterrow`. The first thing in the content, directly above what it scopes,
@@ -29,7 +29,7 @@ AppShell
29
29
  | You need | Use |
30
30
  |---|---|
31
31
  | The frame and the navigation rail | `AppShell` |
32
- | The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`, led by `add` when it is New or Add; other verbs are text or icon buttons; no icon on a single verb |
32
+ | The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`, led by `add` when it is New or Add (`edit_square` for a new conversation); other verbs are text or icon buttons; no icon on a single verb; never status. On a phone, one row: menu, name, the lead's glyph, ⋯ |
33
33
  | To search or narrow one list | `AppFilterRow`: `search` first, then `AppSegmented` or filter `AppChip`s, the count last ("2 of 5" while narrowed) |
34
34
  | The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
35
35
  | To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
@@ -26,6 +26,9 @@ side, never a plus sign and never brackets.
26
26
  is always the capital.
27
27
  - **A sequence says "then"**: G then H. Two caps with nothing between them are
28
28
  pressed together.
29
+ - **A symbol is its own cap**: `+`, `?` and `/` are the keys themselves, written as
30
+ the character they type, even where a layout needs Shift for it. A lone `+` cap
31
+ is the plus key, never a separator.
29
32
  - **Keys for another app** (a setup guide: "In PowerShell, press Ctrl V") use that
30
33
  guide's platform, not the one detected.
31
34
 
@@ -40,6 +43,11 @@ Only where someone is already looking at the control it works. Nowhere else.
40
43
  3. **The screen's search field** ([AppTitleBar](../components/AppTitleBar.md)): a
41
44
  `/` cap at its end, while it is empty and unfocused. A field has no tooltip.
42
45
 
46
+ **On a touch screen, none of them.** Tooltips don't open, the search field's cap
47
+ and a menu row's keys leave (the CSS does it on a coarse pointer), and the account
48
+ menu leaves out **Keyboard shortcuts**. Keys in prose stay: a setup guide still
49
+ says what to press on the computer it is about.
50
+
43
51
  Never inside a button's label, never in brackets after it ("Submit (Ctrl+Enter)"),
44
52
  and no hint lines: not under a composer ("Press Enter to send"), not under a
45
53
  picker ("↑↓ to navigate"). Enter sends and Shift Enter breaks the line in every
@@ -59,26 +67,39 @@ nothing here is left out, not dimmed.
59
67
  | Keys | Does |
60
68
  | --- | --- |
61
69
  | ? | Opens or closes the sheet |
62
- | Esc | Closes what is open (a menu, a dialog, the sheet), or leaves the field you are in |
70
+ | Esc | Closes what is open (a menu, a dialog, the sheet). In a field it does the field's own job first (clears a search's query, closes a `/` or `@` band, cancels a rename), and otherwise leaves the field |
63
71
  | / | Puts you in the screen's search field |
64
72
  | ⌘ K | Reserved for finding anything across the product ([known-gaps.md](known-gaps.md)); bind nothing to it |
65
73
 
66
74
  A screen never rebinds these, and never takes a key the browser or the operating
67
75
  system owns (⌘ W, ⌘ T, ⌘ L, ⌘ R, ⌘ F, ⌘ P, ⌘ Q, Ctrl Tab).
68
76
 
77
+ These single keys mean the same wherever they work, and nothing else anywhere.
78
+ A screen binds the ones it has a use for:
79
+
80
+ | Keys | Does | Where |
81
+ | --- | --- | --- |
82
+ | J / K | Next / previous item; Enter opens it. With a detail open, steps to the next or previous item | Every list, and a list beside its detail |
83
+ | + | The screen's New: its title bar's lead when that is New or Add, or a new conversation. Matched on the character typed, so any layout and the numpad work | Every screen whose lead is a New or an Add |
84
+ | A / X | The affirmative / the refusal of an ask waiting on you, whoever asks ([AppAsk](../components/AppAsk.md)). X opens the reason field where there is one. **On an ask that is hard to undo** (deleting, reaching production), A moves focus to the affirmative and Enter confirms: one stray key never does it | Any screen showing an ask that waits on you |
85
+ | 1–9 | Picks option n of the ask, or of numbered options, waiting on you | Wherever options are numbered |
86
+ | U / ⇧ U | The people on this thing (participants, sharing, access) / hand it over, only where handing over exists | Anything with people on it |
87
+
69
88
  ## Single keys
70
89
 
71
- A screen may bind single letters for the verbs a person repeats (A approves, R
72
- resolves). Three conditions:
90
+ A single key is any key that types a character on its own: a letter, a digit,
91
+ `+`, `?`, `/`. A screen may bind single keys for the verbs a person repeats (A
92
+ approves, R resolves). Three conditions:
73
93
 
74
94
  - **Never while typing.** A single key does nothing while focus is in a field, an
75
95
  editor or anything that takes text.
76
96
  - **They can be turned off.** The sheet's foot holds an
77
97
  [AppSwitch](../components/AppSwitch.md), **Single-key shortcuts**, kept per
78
- person. Off, every single-letter shortcut stops working and its caps leave
79
- tooltips and menus; the sheet keeps them, dimmed, under a note saying they are
80
- off. Speech input types letters, and a stray one must not approve anything.
81
- - **The same letter, the same act.** R resolves wherever there is something to
98
+ person. Off, every single key stops working, `?` and `/` included, and its caps
99
+ leave tooltips, menus and the search field; the sheet keeps them, dimmed, under
100
+ a note saying they are off, and still opens from the account menu. Speech input
101
+ types any character, and a stray one must not approve anything.
102
+ - **The same key, the same act.** R resolves wherever there is something to
82
103
  resolve; it never means Reply on another screen.
83
104
 
84
105
  ## Accessible names
package/rules/type.md CHANGED
@@ -31,6 +31,10 @@ Default when unsure: **body**.
31
31
 
32
32
  Three more styles, each with one place:
33
33
 
34
+ - **`text-page-title` on a phone** is 18/24 at 700 (below 600px): the size of a
35
+ section-title, a weight above it, so a long name has room in a one-row bar
36
+ ([AppTitleBar](../components/AppTitleBar.md) § On a phone) and still reads as the
37
+ screen's name over the sections under it. The CSS steps it; there is no second class.
34
38
  - **`text-welcome-title`**, 40/48 at 800 (32/40 below 600px): the heading of an
35
39
  entry screen that addresses the user ([page.md](page.md)). Never a table, form,
36
40
  dialog or card.
package/tokens.json CHANGED
@@ -576,7 +576,7 @@
576
576
  "lineHeight": "36px",
577
577
  "fontWeight": 700,
578
578
  "letterSpacing": "-0.03em",
579
- "usage": "Names the whole screen. One per screen, in the title bar."
579
+ "usage": "Names the whole screen. One per screen, in the title bar. 18/24 below 600px, still at 700."
580
580
  },
581
581
  {
582
582
  "name": "text-section-title",