@alis-build/design-system 0.47.0 → 0.48.0

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
@@ -1014,6 +1014,45 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
1014
1014
  @media (prefers-reduced-motion:no-preference){.app-composer__light,.app-voice__orb{animation:app-breathe 3.2s var(--ease-standard) infinite alternate}}
1015
1015
  @keyframes app-breathe{from{transform:scale(.96)}to{transform:scale(1.04)}}
1016
1016
 
1017
+ /* ── Dock · a composer docked at the foot of a screen as the way in to Alis. Sticky, the last child of the content that
1018
+ scrolls: its own height keeps the last line clear, so a page never adds space for it, and at the end it sits under
1019
+ the last line. While you read down it settles into Ask Alis at its own foot ── */
1020
+ .app-dock{--app-trace-width:120px;position:sticky;z-index:1;bottom:0;flex:none;margin-top:auto;padding:var(--space-32) 0 calc(var(--space-16) + env(safe-area-inset-bottom,0px));pointer-events:none}
1021
+ .app-shell__content:has(>.app-dock){padding-bottom:0}
1022
+ .app-dock::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent,var(--background) var(--space-32));transform-origin:bottom;transition:transform var(--dur-panel) var(--motion-effects)}
1023
+ @media (max-width:599px){.app-dock{padding:var(--space-24) 0 calc(var(--space-12) + env(safe-area-inset-bottom,0px))}}
1024
+ /* Above the keyboard the composer needs no safe-area inset */
1025
+ @media (max-width:599px) and (pointer:coarse){.app-dock:focus-within{padding-bottom:var(--space-12)}}
1026
+ .app-dock .app-composer__box,.app-dock .app-composer__line{pointer-events:auto}
1027
+ /* The box is clipped onto Ask Alis, so its edge closes over what it holds; nothing reflows and the textarea is the same
1028
+ node. The shadow is a drop-shadow on .app-composer__lift, which wraps the box alone, so it follows the clip. */
1029
+ .app-composer__lift{position:relative;z-index:1;filter:drop-shadow(0 1px 2px var(--shadow-key)) drop-shadow(0 4px 12px var(--shadow-ambient));transition:filter var(--dur-effects) var(--motion-effects)}
1030
+ .app-composer.is-locked .app-composer__lift{filter:none}
1031
+ .app-dock .app-composer__box{box-shadow:none;clip-path:inset(0 round var(--radius-xl));transition:clip-path var(--dur-panel) var(--motion-effects),background-color var(--dur-effects) var(--motion-effects)}
1032
+ .app-dock .app-composer__box>:not(.app-composer__trace){transition:opacity var(--dur-effects) var(--motion-effects) calc(var(--dur-tint) * .85),transform var(--dur-effects) var(--motion-effects) calc(var(--dur-tint) * .85)}
1033
+ @media (max-width:599px){.app-dock .app-composer__row>*{transition:opacity var(--dur-effects) var(--motion-effects) calc(var(--dur-tint) * .85),transform var(--dur-spatial) var(--motion-spatial)}}
1034
+ .app-composer__trace{position:absolute;z-index:1;left:50%;bottom:0;display:none;align-items:center;justify-content:center;gap:var(--space-8);width:var(--app-trace-width);height:40px;padding:0 var(--space-16) 0 var(--space-12);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;cursor:pointer;opacity:0;pointer-events:none;transform:translateX(-50%);transition:opacity var(--dur-tint) var(--motion-effects)}
1035
+ .app-dock .app-composer__trace{display:inline-flex}
1036
+ .app-composer__trace>svg,.app-selection-ask>svg{flex:none;width:12px;height:20px}
1037
+ /* Settled: the box closes onto its foot, the editor and the row fade and drop 6px, Ask Alis fades in near the end */
1038
+ .app-dock .app-composer.is-settled .app-composer__box{clip-path:inset(calc(100% - 40px) calc(50% - var(--app-trace-width) / 2) 0 round 20px)}
1039
+ .app-dock .app-composer.is-settled .app-composer__box>:not(.app-composer__trace){opacity:0;transform:translateY(6px);transition:opacity var(--dur-tint) var(--motion-effects),transform var(--dur-panel) var(--motion-effects)}
1040
+ @media (max-width:599px){.app-dock .app-composer.is-settled .app-composer__row>*{opacity:0;transition:opacity var(--dur-tint) var(--motion-effects)}.app-dock .app-composer.is-settled .app-composer__box>.app-composer__editor{transform:none}}
1041
+ .app-dock .app-composer.is-settled .app-composer__trace{opacity:1;pointer-events:auto;transition:opacity var(--dur-effects) var(--motion-effects) calc(var(--dur-panel) * .45)}
1042
+ .app-dock:has(.app-composer.is-settled)::before{transform:scaleY(.62)}
1043
+ /* A snackbar on a screen with a dock rises above the composer at rest */
1044
+ :root:has(.app-dock) .app-snackbar{bottom:calc(128px + env(safe-area-inset-bottom,0px))}
1045
+ @media (max-width:599px){:root:has(.app-dock) .app-snackbar{bottom:calc(96px + env(safe-area-inset-bottom,0px))}}
1046
+ /* A quote from the page, in the tray: what you selected and asked about, with the system's quote rule */
1047
+ .app-composer__quote{position:relative;display:flex;align-items:flex-start;gap:var(--space-8);max-width:100%;padding:var(--space-8) var(--space-8) var(--space-8) var(--space-24);border-radius:var(--radius-lg);background:var(--surface-container-low);color:var(--on-surface-variant);font-size:14px;line-height:20px}
1048
+ .app-composer__quote::before{content:"";position:absolute;inset-block:var(--space-8);inset-inline-start:var(--space-8);width:4px;border-radius:2px;background:var(--outline)}
1049
+ .app-composer__tray>.app-composer__quote{width:100%}
1050
+ .app-composer__quote-text{flex:1;min-width:0;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
1051
+ .app-composer__quote .app-icon-btn.app-state{flex:none;width:24px;height:24px}
1052
+ .app-composer__quote .app-icon-btn .app-icon{font-size:16px}
1053
+ /* Ask Alis over a selection on the page: the same pill as the settled dock, floating at elevation-2 */
1054
+ .app-selection-ask{position:fixed;z-index:3;display:inline-flex;align-items:center;gap:var(--space-8);height:40px;padding:0 var(--space-16) 0 var(--space-12);border:0;border-radius:var(--radius-pill);background:var(--surface-container-high);color:var(--on-surface);box-shadow:var(--elevation-2);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;cursor:pointer}
1055
+
1017
1056
  /* ── Attachment · a file, recording or queued message in the composer's tray, and in the sent message ── */
1018
1057
  .app-attachment{position:relative;display:flex;align-items:center;gap:var(--space-12);width:232px;max-width:100%;height:56px;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface-container-low)}
1019
1058
  .app-attachment__glyph{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:var(--radius-sm);background:var(--surface);color:var(--on-surface-variant)}
package/classes.json CHANGED
@@ -124,15 +124,19 @@
124
124
  "app-composer__go-label",
125
125
  "app-composer__input",
126
126
  "app-composer__interim",
127
+ "app-composer__lift",
127
128
  "app-composer__light",
128
129
  "app-composer__line",
129
130
  "app-composer__line-action",
130
131
  "app-composer__meter",
132
+ "app-composer__quote",
133
+ "app-composer__quote-text",
131
134
  "app-composer__rec",
132
135
  "app-composer__row",
133
136
  "app-composer__spacer",
134
137
  "app-composer__status",
135
138
  "app-composer__timer",
139
+ "app-composer__trace",
136
140
  "app-composer__tray",
137
141
  "app-count",
138
142
  "app-dialog",
@@ -143,6 +147,7 @@
143
147
  "app-disclosure__body",
144
148
  "app-disclosure__summary",
145
149
  "app-disclosure__text",
150
+ "app-dock",
146
151
  "app-empty",
147
152
  "app-empty-field",
148
153
  "app-empty-line",
@@ -261,6 +266,7 @@
261
266
  "app-search__input",
262
267
  "app-seg",
263
268
  "app-seg__item",
269
+ "app-selection-ask",
264
270
  "app-shell",
265
271
  "app-shell--detail",
266
272
  "app-shell--file",
@@ -414,6 +420,7 @@
414
420
  "is-played",
415
421
  "is-scrolled",
416
422
  "is-selected",
423
+ "is-settled",
417
424
  "mono",
418
425
  "mono-sm",
419
426
  "mono-xs",
@@ -453,6 +460,7 @@
453
460
  "--alis-red",
454
461
  "--amber-100",
455
462
  "--amber-700",
463
+ "--app-trace-width",
456
464
  "--background",
457
465
  "--band-bottom",
458
466
  "--band-fg",
@@ -4,7 +4,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - **Every conversation**: Ideate, an interview, an agent session, a specialist thread. One composer per conversation, at the thread's measure (`measure-prose`, 710px), docked to the bottom of the thread or centred on an empty home.
7
+ - **Every conversation**: Ideate, an interview, an agent session, a specialist thread. One composer per conversation, at the thread's measure (`measure-prose`, 710px), docked to the bottom of the thread or centred on an empty home. On a list, a report, an artifact or a document it docks at the foot as the way in to Alis, and settles into Ask Alis while you read (§ Docked as a way in).
8
8
  - **Not a form.** Something you fill in and submit once (feedback, a ticket, a contribution, a new session's brief) is an [AppTextField](AppTextField.md) with a labelled filled button ([page.md](../rules/page.md) § Forms). Its voice is the field's dictation, whose ✓ keeps the text, or a recording staged as a tile; neither submits: the composer's trailing button sends, so inside a form, stopping a recording would send the form.
9
9
  - The surface is `surface-container-high` (white in light, a step lighter than a card in dark) at `elevation-2` with `radius-xl` (28): concentric with the 40px trailing button set 8 in. It floats; locked, it drops to the ground and the shadow goes.
10
10
 
@@ -33,7 +33,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
33
33
  | Empty, live offered | `graphic_eq` **Talk** | `mic` "Dictate" (not on a phone) or "Record a voice note" | Placeholder |
34
34
  | Empty, mic only | `mic` **Dictate** or **Record** (on a phone, Dictate gives way to Send, disabled) | none | Placeholder |
35
35
  | Empty, no voice | `arrow_upward` "Send", disabled | none | Placeholder |
36
- | Something to send (text or a staged file) | `arrow_upward` "Send" | none: the voice controls leave | Live |
36
+ | Something to send (text, a staged file or a quote) | `arrow_upward` "Send" | none: the voice controls leave | Live |
37
37
  | Queued, uploading, processing, or a tile failed | "Send", disabled; the line says why | none | Live |
38
38
  | Alis is working | `stop` (filled glyph) "Stop" | none | Stays writable; the draft is kept |
39
39
  | Working, queue on, with text | `arrow_upward` "Send when Alis finishes" | `stop_circle` "Stop" | Live |
@@ -116,6 +116,30 @@ The draft and a submitted message have different owners. Use this lifecycle in e
116
116
  - **When it stops**, the bar leaves and what it captured is an [AppAttachment](AppAttachment.md) (`screen_record`) in the thread; its upload is the tile's own progress, never the bar's.
117
117
  - **Not the recording bar** (§ Voice): that one replaces the row while you make the message, and finishes in cyan because finishing commits.
118
118
 
119
+ ## Docked as a way in
120
+
121
+ **On a screen that isn't a conversation** (a list, a report, an artifact, a document), the composer docks at the foot as the way in to Alis: what you send opens a new conversation on Alis's own page. Arriving, it is the composer as written above. Reading down, it settles into **Ask Alis**, the mark and the words, at its own foot, and opens again when you want it.
122
+
123
+ **Where it goes.** One dock per screen, in the content: the list's pane on a list-detail screen, never the detail pane. Not on a conversation (it has its own composer), a form or a flow in steps (their actions hold the foot), sign-in or sign-up, a dialog, the voice view or the file pane. A screen whose list is empty keeps it.
124
+
125
+ - **It is sticky at the foot of the content** (`.app-dock`): the last child of the content that scrolls, in a column at least as tall as what you can see (AppShell's `.app-shell__content` is one), so it sits at the foot of a short page and stays there over a long one. In a split view it goes in the pane you read. Its own height is the page's clearance: at the end of the page it sits under the last line, never over it, and **a page never adds space for it.** The ground under it fades the page out above the composer (`background`, from transparent over 32px).
126
+ - **The box sits in `.app-composer__lift`**, which carries the shadow, so the clip below takes the shadow with it. A docked composer has no line except an error.
127
+ - **It settles** while you scroll down, once the content is more than half its visible height from the top, and only while it holds nothing of yours: empty, unfocused, nothing in the tray, no menu or popover open from it, no ask, no capture, no recording and no call. Only scrolls you make count, not the product's own (restoring a position, scrolling to an anchor or to what has focus). A page that doesn't scroll never settles.
128
+ - **It opens** when you scroll up 48px from the furthest point down, reach the end of the page (with nothing more to load), click or tab to Ask Alis (the cursor goes to the editor), drop a file on the page, or choose Ask Alis on a selection. Scrolling down again past the halfway mark settles it again.
129
+ - **The movement**: the box closes in from the sides and the top onto Ask Alis, so it reads as the composer put away, never as something arriving. Settling, over `dur-panel` on `motion-effects`: the editor and the row fade on `dur-tint` and drop 6px (on a phone, where they share a row, they only fade); Ask Alis fades in on `dur-effects` from 45%. Opening runs it back: Ask Alis goes, the box opens, the rest rises into place after it. Under reduced motion it changes in one step. The mark's dots hold still: dots that move are the loader, Alis working.
130
+ - **One markup.** The settle is `.is-settled` on `.app-composer`; Ask Alis is `.app-composer__trace` inside the box, there all along. The textarea is never re-rendered or moved, so a draft, a cursor or a phone's keyboard can't be lost.
131
+ - **What its controls do.** Send opens the new conversation on Alis's page with the message, the tray, and the page you were on as references. Talk opens it in a call. Add and a dropped file stage files in the tray first, as in any composer.
132
+ - **Layers.** The dock is at `z-index` 1, above the page. What opens from the composer or over the page (the Add menu, a combobox's panel, a popover) opens in a layer above it, outside the box: the box is clipped and would cut it. A snackbar rises above the composer at rest (the CSS does it).
133
+
134
+ ### Asking about what you selected
135
+
136
+ Select text on a screen with a dock and **Ask Alis** appears by the selection (`.app-selection-ask`): the same pill as the settled dock, the mark and the words, floating at `elevation-2`. Choosing it puts the selection in the tray as a quote (`.app-composer__quote`), opens the composer and puts the cursor in the editor; you say what you want done with it. It is pointing at a passage and asking a colleague: you don't describe what you mean.
137
+
138
+ - **Where it shows**: 8px above the selection's first line, centred on it, kept inside the window; on a touch screen 8px below its last line, since the phone's own menu takes the space above. It takes `.app-target`. It goes when the selection collapses, on Esc, or on scroll, and never takes focus.
139
+ - **Never offered** on text in a field, an editor, a `contenteditable`, the composer itself or a dialog, nor inside anything marked `data-no-ask` (a code block, which has its own Copy).
140
+ - **The quote** in the tray: the system's quote rule (4px `outline`) on `surface-container-low`, two lines at most, cut with an ellipsis, and a `close` icon button, "Remove quote". One quote at a time: a new one replaces it. It holds up to 2,000 characters, cut at a word with "…". A quote is something to send, like a staged file: Send takes the slot.
141
+ - **Sent**, the quote goes with the message the way a file does: in your turn it keeps its tile, without remove, above your bubble ([AppTurn](AppTurn.md)). Alis receives it as a Markdown quote, every line starting `> `, before what you wrote.
142
+
119
143
  ## Markup
120
144
 
121
145
  ```html
@@ -291,6 +315,43 @@ The draft and a submitted message have different owners. Use this lifecycle in e
291
315
 
292
316
  <!-- Locked -->
293
317
  <div class="app-composer is-locked"><!-- box with the editor only; the line says why --></div>
318
+
319
+ <!-- Docked as a way in: the last child of the content that scrolls; is-settled on .app-composer puts it away -->
320
+ <main class="app-shell__content">
321
+ <!-- the page -->
322
+ <div class="app-dock">
323
+ <div class="app-composer">
324
+ <div class="app-composer__lift">
325
+ <div class="app-composer__box">
326
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="1" aria-label="Message" placeholder="Ask Alis anything"></textarea></div>
327
+ <div class="app-composer__row">
328
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Add files and more" title="Add files and more"><span class="app-icon" aria-hidden="true">add</span></button>
329
+ <span class="app-composer__spacer"></span>
330
+ <button type="button" class="app-composer__go app-state"><span class="app-icon" aria-hidden="true">graphic_eq</span><span class="app-composer__go-label">Talk</span></button>
331
+ </div>
332
+ <button type="button" class="app-composer__trace app-state" inert>
333
+ <svg viewBox="0 0 30 50" aria-hidden="true" style="fill:var(--alis-red)"><circle cx="5" cy="25" r="3.7"/><circle cx="5" cy="35" r="3.7"/><circle cx="5" cy="45" r="3.7"/><circle cx="15" cy="5" r="3.7"/><circle cx="15" cy="15" r="3.7"/><circle cx="15" cy="25" r="3.7"/><circle cx="15" cy="35" r="3.7"/><circle cx="15" cy="45" r="3.7"/><circle cx="25" cy="5" r="3.7"/><circle cx="25" cy="15" r="3.7"/><circle cx="25" cy="25" r="3.7"/></svg>
334
+ <span>Ask Alis</span>
335
+ </button>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ </div>
340
+ </main>
341
+
342
+ <!-- Ask Alis over a selection, placed by the selection's end -->
343
+ <button type="button" class="app-selection-ask app-state app-target" aria-label="Ask Alis about the selection" style="left: 412px; top: 288px">
344
+ <svg viewBox="0 0 30 50" aria-hidden="true" style="fill:var(--alis-red)"><circle cx="5" cy="25" r="3.7"/><circle cx="5" cy="35" r="3.7"/><circle cx="5" cy="45" r="3.7"/><circle cx="15" cy="5" r="3.7"/><circle cx="15" cy="15" r="3.7"/><circle cx="15" cy="25" r="3.7"/><circle cx="15" cy="35" r="3.7"/><circle cx="15" cy="45" r="3.7"/><circle cx="25" cy="5" r="3.7"/><circle cx="25" cy="15" r="3.7"/><circle cx="25" cy="25" r="3.7"/></svg>
345
+ <span>Ask Alis</span>
346
+ </button>
347
+
348
+ <!-- The quote in the tray -->
349
+ <div class="app-composer__tray">
350
+ <div class="app-composer__quote">
351
+ <p class="app-composer__quote-text">Commission is the open question. Distribution expects clawback to pause with the premium; nobody else had considered it.</p>
352
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove quote" title="Remove quote"><span class="app-icon" aria-hidden="true">close</span></button>
353
+ </div>
354
+ </div>
294
355
  ```
295
356
 
296
357
  ## Behaviour you must supply
@@ -306,7 +367,9 @@ The draft and a submitted message have different owners. Use this lifecycle in e
306
367
  - **Drop**: show `.app-composer__drop` in the tray while a file is dragged over the composer; on drop, stage an [AppAttachment](AppAttachment.md).
307
368
  - **Delivery** follows § Delivery and retry: before submission the draft stays; after submission, the turn owns any failure and retry. A new draft never changes the audience or files of a retry.
308
369
  - Return focus to the editor after sending, after dictation and after a call.
370
+ - **Docked as a way in** (§ Docked as a way in): put `.app-dock` last in the content that scrolls, with no bottom padding of the content's own after it (AppShell's is removed for you). Settle by toggling `.is-settled` on `.app-composer` on the rules in § Docked as a way in, listening to that scroller (the window, for AppShell); flag the product's own scrolls so they don't count. Before settling, set `inert` on the box's bands and clear it from Ask Alis; opening, focus the editor first when it opens from Ask Alis, then set `inert` on Ask Alis, so focus never falls to the page. Focusing Ask Alis from the keyboard opens the composer.
371
+ - **Ask Alis on a selection**: on `selectionchange`, show `.app-selection-ask` for a selection that isn't empty, inside the content, and outside a field, an editor, a `contenteditable`, the composer, a dialog and `[data-no-ask]`. Read the selection's text and rectangle when you show it, and stop `pointerdown` on the pill from collapsing it. On press, put the text in the tray as the quote, clear the selection, open the composer and focus the editor. On send, put the quote before the message as a Markdown quote (`> ` before every line, then a blank line).
309
372
 
310
373
  ## Classes
311
374
 
312
- `.app-composer`, `.app-composer__audience`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__go-label`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__capture`, `.is-paused`, `.app-composer__capture-label`, `.app-capture-thumb`, `.is-empty`, `.app-capture-peek`, `.app-capture-peek__head`, `.app-capture-peek__title`, `.app-capture-peek__frame`, `.app-capture-peek__note`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, with `.drop-target` on the drop, `.app-state` on every button, `.app-target` on the icon buttons and the capture bar's buttons, `.app-btn--error` on Stop recording, and `.app-compact-only` on Pause's glyph.
375
+ `.app-composer`, `.app-composer__audience`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__go-label`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__capture`, `.is-paused`, `.app-composer__capture-label`, `.app-capture-thumb`, `.is-empty`, `.app-capture-peek`, `.app-capture-peek__head`, `.app-capture-peek__title`, `.app-capture-peek__frame`, `.app-capture-peek__note`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, `.app-dock`, `.app-composer__lift`, `.is-settled`, `.app-composer__trace`, `.app-composer__quote`, `.app-composer__quote-text`, `.app-selection-ask`, with `.drop-target` on the drop, `.app-state` on every button, `.app-target` on the icon buttons and the capture bar's buttons, `.app-btn--error` on Stop recording, and `.app-compact-only` on Pause's glyph.
@@ -11,7 +11,7 @@ See [page.md](../rules/page.md).
11
11
  - It takes the drafting field, one per screen. In `.app-shell__content` or the detail pane the field bleeds to the pane's edges (the CSS cancels the pane padding). Where the list pane and the detail pane are both empty, the detail pane takes the field and the list pane's empty state goes without it.
12
12
  - Keep the title bar's name and verb; hide search and the filter row.
13
13
  - A detail pane with nothing open, beside a list that has items, takes it without a button: choosing from the list is the first step, and the bar already holds New. Its headline says what opens here.
14
- - It sits in the centre of the pane, from the title bar's foot to the window's, as the pane's only content: a view switch or a drop hint goes with the list, and a docked composer floats over the pane rather than shortening it. `.app-empty` centres itself in what it is given, so give it the whole pane.
14
+ - It sits in the centre of the pane, from the title bar's foot to the window's, as the pane's only content: a view switch or a drop hint goes with the list, and a docked composer keeps its own height at the foot, so the empty state centres in the space above it. `.app-empty` centres itself in what it is given, so give it the whole pane.
15
15
  - **A pane that can't show its content** (it couldn't load, they may not open it, it isn't there) is this same block without the drafting field: a headline in ink that says what couldn't happen, one line that says what to do, one outlined action. Never red: nothing they did failed. In a detail pane or a card the headline is `text-section-title`. The words for each case are in [errors.md](../rules/errors.md).
16
16
  - **When the person's role can't do what the button did** ([access.md](../rules/access.md) § A role): the headline stays, the line says who can and who to ask ("Only Editors can create interviews. Ask Ruan Spies for Editor access."), and the action is Request access, outlined, with no glyph. Where the product can't send a request, there is no button. After they send one, the button is replaced by the request's state (`.app-access-line`): "Request sent · Waiting for Ruan Spies", or "Declined by Ruan Spies: …" with Request again. Never the drafting field: this isn't an invitation.
17
17
  - **One section that couldn't load** is an empty line with Try again beside it (`.app-empty-line__action`); the rest of the screen stays.
@@ -45,7 +45,7 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
45
45
  ## What you send
46
46
 
47
47
  - **What it was about**: when the composer's context chip went with your message, a meta line above your bubble names it, in `on-surface-variant` (`.app-turn__about`): "About pricing.html". The chip as it was when you sent, so the thread says what you pointed at. Never the page you were on: that went as references and isn't shown.
48
- - **Files and things** keep their [AppAttachment](AppAttachment.md) tile from the tray, without remove, stacked right above your bubble; the tile opens what it names. A thing shared into the conversation (a meeting, its notes, an interview, diagnostics, a skill, an issue, an agent session) is the same tile, never a card with a button in it. An image shows itself, 240 wide. A file or a thing sent alone is a turn with no bubble.
48
+ - **Files and things** keep their [AppAttachment](AppAttachment.md) tile from the tray, without remove, stacked right above your bubble; the tile opens what it names. A thing shared into the conversation (a meeting, its notes, an interview, diagnostics, a skill, an issue, an agent session) is the same tile, never a card with a button in it. An image shows itself, 240 wide. A file or a thing sent alone is a turn with no bubble. A quote of the page you asked about ([AppComposer](AppComposer.md) § Asking about what you selected) is the same: its tile, without remove, above your bubble.
49
49
  - **A voice note** is its own bubble (`.app-voice-note`): play, the waveform (played in `primary`, the rest in `outline`) and the time, then the transcript in body, three lines and Show all. The transcript is what Alis acted on, so a misheard word is in plain sight.
50
50
 
51
51
  ## People in the thread
@@ -37,7 +37,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
37
37
  | AppCard | Statement and instrument surfaces | [AppCard.md](AppCard.md) |
38
38
  | AppDisclosure | Detail few people need, folded under its title | [AppDisclosure.md](AppDisclosure.md) |
39
39
  | AppLattice | Content you read; the transcript and `.prose` | [AppLattice.md](AppLattice.md) |
40
- | AppComposer | Where you write to Alis, an agent or a person; voice and live calls | [AppComposer.md](AppComposer.md) |
40
+ | AppComposer | Where you write to Alis, an agent or a person; voice and live calls; docked at a page's foot as the way in, settling into Ask Alis | [AppComposer.md](AppComposer.md) |
41
41
  | AppCodeBlock | Code to read or copy, edged on its own ground; a command to run, on the machine ground | [AppCodeBlock.md](AppCodeBlock.md) |
42
42
  | AppAttachment | A file, a thing shared into the conversation, or a queued message, in the composer's tray and in the sent message | [AppAttachment.md](AppAttachment.md) |
43
43
  | AppVoiceView | A live call given the content area, or the screen on a phone | [AppVoiceView.md](AppVoiceView.md) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
package/rules/page.md CHANGED
@@ -240,8 +240,12 @@ leads its content with it, or leaves it out. What a failure shows, and where, is
240
240
  - **An empty state sits in the centre of its pane**, the space from the title
241
241
  bar's foot to the window's, so it is in the same place on every screen. It is
242
242
  the pane's only content: a view switch, a drop hint and anything else that
243
- works on the list go with the list, and a composer docked at the foot floats
244
- over the pane without taking its height.
243
+ works on the list go with the list. A composer docked at the foot keeps its own
244
+ height, and the empty state centres in the space above it.
245
+ - **A composer docked at the foot of a screen** is sticky, the last thing in the
246
+ content, so its own height keeps the page's last line clear, and it settles
247
+ into Ask Alis while you read down ([AppComposer](../components/AppComposer.md)
248
+ § Docked as a way in). A page never adds its own space for it.
245
249
  - **An empty state that fills its pane speaks to the user**
246
250
  ([AppEmptyState](../components/AppEmptyState.md)). Its headline says why you
247
251
  would act and never repeats the screen's name: "Hear from the people closest to
@@ -45,6 +45,7 @@ AppShell
45
45
  | More actions behind `more_vert`, the composer's Add, `/` commands and `@` mentions | `AppMenu`: floating for actions, a band on the composer for suggestions; what you choose is an `.app-token` |
46
46
  | A task the person can do in their own agent (Claude, ChatGPT, Copilot…), with a way back | `AppHandOff`, one per screen: a list at the start of a create flow, a text button before the affirmative ("Plan it with Claude"), or a ⋯ row; each opens the steps |
47
47
  | Alis or a person needs an answer, an approval or a connection | `AppAsk`, docked on the composer of whoever decides; the conversation's row shows a `warning` "Needs you" chip and the rail an `.app-count` |
48
+ | The way in to Alis on a page that isn't a conversation (a list, a report, an artifact) | `AppComposer` in `.app-dock`, sticky and last in the content that scrolls, so the page needs no space of its own for it; it settles into Ask Alis while you read, and Ask Alis over a selection quotes it in the tray |
48
49
  | A recording that runs while you keep writing (a screen, through an interview) | `AppComposer`'s capture bar, docked on top of the composer and led by a live thumbnail; Stop recording in `error` ink, unfilled beside Send |
49
50
  | Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
50
51
  | The one action that moves the user forward | `AppButton variant="filled"`, once per screen, labelled with the outcome; never in the title bar |
package/rules/surfaces.md CHANGED
@@ -86,8 +86,9 @@ Why is this above the page?
86
86
 
87
87
  **Hover never lifts.** A clickable card's hover is its state layer.
88
88
 
89
- Transparency and blur appear in exactly four places: a floating nav pill, glass
90
- on a dark panel, a dialog backdrop, and the statement over a gradient.
89
+ Transparency and blur appear in exactly five places: a floating nav pill, glass
90
+ on a dark panel, a dialog backdrop, the statement over a gradient, and the ground
91
+ that fades the page out above a docked composer.
91
92
 
92
93
  **What floats takes `surface-container-high`**: a menu, the composer, a dialog,
93
94
  the detail pane when it slides over, a dragged card. In light it is white, the
package/words.json CHANGED
@@ -523,6 +523,7 @@
523
523
  { "name": "Share", "means": "Opens Sharing." },
524
524
  { "name": "Request access", "means": "Asks whoever can grant it for a role here, with an optional note (rules/access.md). Afterwards the control reads \"Request sent\" until they decide; a refusal reads \"Declined by …\" with Request again." },
525
525
  { "name": "Request to join", "means": "Asks an account's Admins to let you in, from the account rows sign-up shows for your email's domain. Afterwards it reads \"Request sent\" until an Admin decides, as Request access does." },
526
- { "name": "Talk", "means": "Starts a live voice conversation from an empty composer (AppComposer § The trailing button): one word, never \"Talk instead\", \"Talk to Alis\" or \"Voice mode\" on the button. Dictate and Record are the mic's." }
526
+ { "name": "Talk", "means": "Starts a live voice conversation from an empty composer (AppComposer § The trailing button): one word, never \"Talk instead\", \"Talk to Alis\" or \"Voice mode\" on the button. Dictate and Record are the mic's." },
527
+ { "name": "Ask Alis", "means": "Opens the docked composer from a page that isn't a conversation: the composer put away, or a selection quoted in its tray (AppComposer § Docked as a way in). Never \"Ask AI\", \"Chat\" or \"Open Alis\"." }
527
528
  ]
528
529
  }