@alis-build/design-system 0.76.0 → 0.78.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
@@ -454,6 +454,7 @@
454
454
  /* Type styles: one class per job (rules/type.md). */
455
455
  .text-welcome-title { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -0.03em; }
456
456
  .text-page-title { font-family: var(--font-sans); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
457
+ .text-prompt { font-family: var(--font-sans); font-size: 30px; line-height: 38px; font-weight: 500; letter-spacing: -0.02em; }
457
458
  .text-section-title { font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; }
458
459
  .text-object-title { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0; }
459
460
  .text-reading { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: 0; }
@@ -476,6 +477,7 @@
476
477
  @media (max-width: 599px) {
477
478
  .text-welcome-title { font-size: 32px; line-height: 40px; }
478
479
  .text-page-title { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: 0; }
480
+ .text-prompt { font-size: 24px; line-height: 32px; }
479
481
  }
480
482
 
481
483
  /* Product base. A marketing page overrides it with <body class="ax-page">. */
@@ -1315,6 +1317,36 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1315
1317
  .app-voice__round.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
1316
1318
  .app-voice__end{min-height:56px;padding:0 var(--space-32)}
1317
1319
  @media (max-width:599px){.app-voice{padding:var(--space-12) var(--space-16) var(--space-24)}}
1320
+ /* An interview: talking is the whole job. Progress on top, the question high in a 640 column, then the handover and a floating dock over the voice field at the foot */
1321
+ .app-voice--interview{gap:0;padding-bottom:var(--space-24)}
1322
+ .app-voice--interview>.app-voice__top,.app-voice--interview>.app-voice__body,.app-voice__handover,.app-voice__dock{position:relative;z-index:1}
1323
+ .app-voice--interview>.app-voice__top,.app-voice--interview>.app-voice__body{width:100%;max-width:640px;margin-inline:auto}
1324
+ .app-voice__top>.app-progress{flex:1}
1325
+ .app-voice--interview>.app-voice__body{justify-content:flex-start;align-items:stretch;gap:var(--space-16);padding-top:calc(var(--space-48) + var(--space-24));text-align:start}
1326
+ .app-voice__question{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-12);background:var(--background)}
1327
+ .app-voice__question>.text-prompt{margin:0;color:var(--on-surface);overflow-wrap:anywhere;white-space:pre-wrap;text-wrap:pretty}
1328
+ .app-voice__again{padding-inline:0}
1329
+ .app-voice__materials{display:flex;flex-wrap:wrap;gap:var(--space-8)}
1330
+ .app-voice__handover{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);width:100%;margin:var(--space-16) auto var(--space-24);padding-block:var(--space-8);background:var(--background);text-align:center}
1331
+ .app-voice__status{display:flex;flex-direction:column;align-items:center;gap:var(--space-4)}
1332
+ .app-voice__status>*{margin:0}
1333
+ .app-voice__handover>.app-voice__capture{margin-top:var(--space-4)}
1334
+ .app-voice__hold{min-height:56px;margin-top:var(--space-8);touch-action:none}
1335
+ /* The dock: the settled-dock pill (surface-container-high, elevation-2, no edge) holding labelled actions, a 24px glyph a weight up over a 12px label so they read at arm's length */
1336
+ .app-voice__dock{align-self:center;display:flex;align-items:center;gap:var(--space-8);width:max-content;max-width:100%;padding:var(--space-8);border-radius:var(--radius-pill);background:var(--surface-container-high);box-shadow:var(--elevation-2)}
1337
+ .app-voice__action{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);flex:none;width:80px;min-height:56px;padding:var(--space-4);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
1338
+ .app-voice__action .app-icon{font-size:24px;font-variation-settings:"FILL" 0,"wght" 500,"GRAD" 0,"opsz" 24}
1339
+ .app-voice__action.app-btn--error{width:88px;color:var(--error)}
1340
+ .app-voice__dock>.app-voice__end{padding:0 var(--space-24)}
1341
+ /* The voice field: a second voice light, dots the product draws into an svg, behind everything at the foot. It fades upward, so the handover and the dock stand on it */
1342
+ .app-voice__field{position:absolute;z-index:0;left:50%;bottom:calc(var(--space-16) * -1);width:calc(100% + var(--space-32) * 2);max-width:900px;height:258px;max-height:45%;transform:translateX(-50%);color:var(--ai-you);opacity:.75;pointer-events:none;-webkit-mask-image:linear-gradient(to top,var(--on-surface) 0,var(--on-surface) 34%,transparent 100%);mask-image:linear-gradient(to top,var(--on-surface) 0,var(--on-surface) 34%,transparent 100%);transition:color var(--spring-slow-effects),opacity var(--spring-slow-effects)}
1343
+ .app-voice__field>svg{display:block;width:100%;height:100%;fill:currentColor}
1344
+ .is-alis .app-voice__field{color:var(--ai-alis)}
1345
+ .is-muted:not(.is-alis) .app-voice__field{opacity:.4}
1346
+ @media (max-height:760px){.app-voice--interview>.app-voice__body{padding-top:var(--space-32)}.app-voice__handover{margin:var(--space-8) auto var(--space-16)}}
1347
+ @media (max-width:599px){.app-voice--interview>.app-voice__body{padding-top:var(--space-32);gap:var(--space-12)}.app-voice__handover{margin-bottom:var(--space-16)}.app-voice__dock{gap:var(--space-4);padding:var(--space-4)}.app-voice__action{width:68px}.app-voice__field{bottom:calc(var(--space-12) * -1);width:calc(100% + var(--space-16) * 2);height:230px}}
1348
+ @media (max-width:599px) and (max-height:760px){.app-voice--interview>.app-voice__body{padding-top:var(--space-16)}}
1349
+ @media (max-width:360px){.app-voice__action{width:64px}}
1318
1350
 
1319
1351
  /* ── Thread and turns · you in a bubble, Alis as prose, anyone else in a bubble under a who-line ── */
1320
1352
  .app-thread{display:flex;flex-direction:column;gap:var(--space-32);width:100%;max-width:var(--measure-prose);margin-inline:auto}
@@ -1410,6 +1442,9 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1410
1442
  .app-thread__event{display:flex;align-items:center;justify-content:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant);text-align:center}
1411
1443
  .app-thread__event .app-icon{font-size:16px}
1412
1444
  .app-thread__typing{margin:0;color:var(--on-surface-variant)}
1445
+ /* New messages: the settled-dock pill, held at the thread's foot above the composer */
1446
+ .app-thread__latest{position:sticky;z-index:1;bottom:var(--space-16);align-self:center;display:inline-flex;align-items:center;gap:var(--space-8);min-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}
1447
+ .app-thread__latest .app-icon{font-size:20px}
1413
1448
  .app-thread__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
1414
1449
  .app-turn__bubble.prose{white-space:normal;--prose-gap:12px;--prose-item-gap:4px;--prose-h1-size:16px;--prose-h1-line:24px;--prose-h1-tracking:0;--prose-h1-weight:600;--prose-h1-above:16px;--prose-h1-below:4px;--prose-h2-size:16px;--prose-h2-line:24px;--prose-h2-weight:600;--prose-h2-above:16px;--prose-h3-above:12px;--prose-code-size:14px}
1415
1450
  .app-turn__request{display:flex;align-items:center;gap:var(--space-8);margin-bottom:var(--space-4);white-space:normal}
package/classes.json CHANGED
@@ -408,6 +408,7 @@
408
408
  "app-target--none",
409
409
  "app-thread",
410
410
  "app-thread__event",
411
+ "app-thread__latest",
411
412
  "app-thread__status",
412
413
  "app-thread__typing",
413
414
  "app-tile",
@@ -455,20 +456,30 @@
455
456
  "app-turn__who",
456
457
  "app-turn__worked",
457
458
  "app-voice",
459
+ "app-voice--interview",
458
460
  "app-voice-note",
459
461
  "app-voice-note__more",
460
462
  "app-voice-note__player",
461
463
  "app-voice-note__time",
462
464
  "app-voice-note__transcript",
463
465
  "app-voice-note__wave",
466
+ "app-voice__action",
467
+ "app-voice__again",
464
468
  "app-voice__body",
465
469
  "app-voice__caption",
466
470
  "app-voice__capture",
467
471
  "app-voice__controls",
472
+ "app-voice__dock",
468
473
  "app-voice__end",
474
+ "app-voice__field",
475
+ "app-voice__handover",
476
+ "app-voice__hold",
477
+ "app-voice__materials",
469
478
  "app-voice__orb",
479
+ "app-voice__question",
470
480
  "app-voice__round",
471
481
  "app-voice__said",
482
+ "app-voice__status",
472
483
  "app-voice__title",
473
484
  "app-voice__top",
474
485
  "app-wide-only",
@@ -537,6 +548,7 @@
537
548
  "text-on-surface",
538
549
  "text-on-surface-variant",
539
550
  "text-page-title",
551
+ "text-prompt",
540
552
  "text-reading",
541
553
  "text-section-title",
542
554
  "text-selected",
@@ -30,7 +30,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
30
30
 
31
31
  | State | Trailing button (filled) | Beside it (plain) | Editor |
32
32
  |---|---|---|---|
33
- | Empty, live offered | `graphic_eq` **Talk** | `mic` "Dictate" (not on a phone) or "Record a voice note" | Placeholder |
33
+ | Empty, live offered | `voice_selection` **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
36
  | Something to send (text, a staged file or a quote) | `arrow_upward` "Send" | none: the voice controls leave | Live |
@@ -154,7 +154,7 @@ Select text on a screen with a dock and **Ask Alis** appears by the selection (`
154
154
  <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>
155
155
  <span class="app-composer__spacer"></span>
156
156
  <button type="button" class="app-icon-btn app-state app-target app-wide-only" aria-label="Dictate" title="Dictate"><span class="app-icon" aria-hidden="true">mic</span></button>
157
- <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>
157
+ <button type="button" class="app-composer__go app-state"><span class="app-icon" aria-hidden="true">voice_selection</span><span class="app-composer__go-label">Talk</span></button>
158
158
  </div>
159
159
  </div>
160
160
  <p class="app-composer__line text-meta">What you put here stays in your organisation.</p>
@@ -328,7 +328,7 @@ Select text on a screen with a dock and **Ask Alis** appears by the selection (`
328
328
  <div class="app-composer__row">
329
329
  <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>
330
330
  <span class="app-composer__spacer"></span>
331
- <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
+ <button type="button" class="app-composer__go app-state"><span class="app-icon" aria-hidden="true">voice_selection</span><span class="app-composer__go-label">Talk</span></button>
332
332
  </div>
333
333
  <button type="button" class="app-composer__trace app-state" inert>
334
334
  <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>
@@ -227,6 +227,9 @@ Northwind 120 —</pre></li>
227
227
  <p class="app-turn__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Didn't send<button type="button" class="app-turn__line-action">Try again</button></p>
228
228
  <p class="app-turn__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Alis couldn't finish this reply.<button type="button" class="app-turn__line-action">Try again</button></p>
229
229
  <p class="app-turn__line text-meta">Stopped</p>
230
+
231
+ <!-- New messages: something arrived below while the person had scrolled up -->
232
+ <button type="button" class="app-thread__latest app-state app-target"><span class="app-icon" aria-hidden="true">arrow_downward</span>New messages</button>
230
233
  ```
231
234
 
232
235
  ## Behaviour you must supply
@@ -243,8 +246,9 @@ Northwind 120 —</pre></li>
243
246
  - **As the reply streams**, wrap each run of text as it arrives in `<span class="app-turn__chunk">`, so it fades in where it lands. A renderer that redraws the whole reply on every run leaves it out, or the reply would fade in again each time.
244
247
  - **On a phone**, a long press on a turn opens its actions as a menu.
245
248
  - Keep the thread pinned to the bottom while Alis writes, unless the person has scrolled up. Keep it there too when the space it has shrinks (the keyboard opening on a phone, the composer growing), if its end was in view: the latest question is what the person is answering.
249
+ - **New messages** (`.app-thread__latest`): when a turn arrives below while the person has scrolled up, so the thread doesn't follow it, show one button at the foot of the thread, centred above the composer: `arrow_downward` and "New messages". Pressing it scrolls to the latest turn, and the button leaves; it leaves too once they scroll down to it themselves. It never shows only because they scrolled up: reading back is theirs to do.
246
250
  - **People**: insert the day line before the first turn of each day; move *Seen* to the newest of your bubbles anyone has read; show the typing line while they type and drop it when their turn arrives; keep a request's state line in step with the request; write typing (once, as it starts) and each request change into the thread's status region.
247
251
 
248
252
  ## Classes
249
253
 
250
- `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`, `.is-arriving`; `.app-turn__about`, `.app-turn__who`, `.app-turn__audience`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`, `.app-turn__chunk`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on the reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while Alis thinks.
254
+ `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`, `.app-thread__latest`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`, `.is-arriving`; `.app-turn__about`, `.app-turn__who`, `.app-turn__audience`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`, `.app-turn__chunk`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on the reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while Alis thinks.
@@ -1,10 +1,10 @@
1
1
  # AppVoiceView
2
2
 
3
- A live call given room: the content area on a desktop (the focus view), the whole screen on a phone. The same call as the composer's call bar, with the voice light large.
3
+ A live call given room: the content area on a desktop (the focus view), the whole screen on a phone. The same call as the composer's call bar, with the voice light large. It has two layouts: **an Alis call**, where talking is one way to work with Alis, and **an interview**, where talking is the whole job (§ An interview).
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - **Desktop**: a call starts in [AppComposer](AppComposer.md); its `open_in_full` "Focus view" opens this view in the content area, and the navigation stays. A product may open a call here by default when talking is the whole job (an interview participant on a laptop).
7
+ - **Desktop**: a call starts in [AppComposer](AppComposer.md); its `open_in_full` "Focus view" opens this view in the content area, and the navigation stays. A product opens a call here by default when talking is the whole job: an interview, in its own layout (§ An interview).
8
8
  - **Phone**: the call is full-screen. The chevron folds it back into the composer, and the call carries on.
9
9
  - **Top**: back (`close_fullscreen` "Back to the conversation" on a desktop, `keyboard_arrow_down` "Fold into the composer" on a phone), the conversation's name in label type, captions (`closed_caption`, a toggle).
10
10
  - **Body**: the orb (the voice light, large: cool while you speak, Alis's brand red as a tint while Alis does), the status word in section-title (Connecting, Listening, Thinking, Speaking, Muted), and the caption: the last three lines said, settled words in `on-surface`, the rest in `on-surface-variant`.
@@ -12,6 +12,42 @@ A live call given room: the content area on a desktop (the focus view), the whol
12
12
  - **Controls**: mute and Type instead as 56px round buttons, and End as the filled button, 56 high. End is cyan, never red.
13
13
  - On the ground (`background`), no card, no shadow.
14
14
 
15
+ ## An interview
16
+
17
+ When talking is the whole job (someone answering an interview), the view leads with the question and hands the turn back and forth in words. Add `.app-voice--interview`. Web, iOS and Android draw this one screen; in an app it is our own screen, under the phone's status bar and nothing else.
18
+
19
+ - **Top**: [AppProgress](AppProgress.md) in the `__top` row, in place of back, title and captions: the interview's title, how far through it is in a word ("Halfway"), and the track. No captions: the answer is written down once it ends, so there are no words to show while someone talks.
20
+ - **The question** (`.app-voice__question`), high in a 640px column, left-aligned:
21
+ - the interviewer's mark: [AlisMark](AlisMark.md) at 20 high, or the client's icon on a branded interview ([branding.md](../rules/branding.md)), named for the interviewer;
22
+ - the question in `text-prompt` ([type.md](../rules/type.md)), a heading;
23
+ - **Hear the question again**, a text button (`.app-voice__again`): hidden while Alis speaks, disabled while nothing is recorded;
24
+ - shared material as [AppAttachment](AppAttachment.md) tiles in `.app-voice__materials`: a thing opens what it names, so each tile is the button.
25
+ - **The handover** (`.app-voice__handover`), centred above the dock on `background`, so the field stops behind it. The status word in `text-section-title` and its hint in `text-supporting` `on-surface-variant` (`.app-voice__status`, the live region). Under it, one of: **Unmute**; **Hold to talk** (`.app-voice__hold`, outlined, 56 high, `voice_selection`), only when the room is too noisy for turns to pass by themselves; or the capture line (`.app-voice__capture`, with a 16px `mic_off` beside the time while the microphone is muted).
26
+
27
+ | State | Word | Hint |
28
+ | --- | --- | --- |
29
+ | Getting ready | Getting ready | Allow microphone access if asked. Alis begins with a question. |
30
+ | Preparing | Preparing the question | Alis will read the question aloud. |
31
+ | Listening | Your turn | Take your time. Speak when you're ready. |
32
+ | Alis speaking (`is-alis`) | Alis is asking | You can interrupt if you need to. |
33
+ | Thinking | Considering your answer | Alis is preparing a follow-up. |
34
+ | Muted (`is-muted`) | Muted | Unmute when you're ready to answer. |
35
+ | Paused (`is-muted`) | Paused | Take a break. Resume when you're ready. |
36
+ | Reconnecting | Reconnecting | If you were mid-answer, say it again once you're back. |
37
+ | A noisy room | Your turn | It's noisy where you are. Use Hold to talk, move closer or use a headset, or type instead. |
38
+
39
+ "Alis" is the interviewer's name; on a branded interview, the client's. A failure takes the hint's line, in [errors.md](../rules/errors.md)'s words, and says the way on ("The connection dropped. Tap Resume, or type instead."). While held, Hold to talk reads "Listening… let go when you're done".
40
+ - **The dock** (`.app-voice__dock`): one floating pill on `surface-container-high` with `elevation-2` and no edge, the settled dock's pill. Its actions (`.app-voice__action`) are a 24px glyph a weight up over a 12px label, 56 high, so they read at arm's length. In this order, with Finish always last:
41
+
42
+ | When | The dock |
43
+ | --- | --- |
44
+ | Talking | Pause (`pause`; Resume, `play_arrow`, while paused) · Type instead (`keyboard`) · Show (`present_to_all`, a menu: Share your screen, Upload a file), or Upload (`upload`) where a screen can't be shared · Finish |
45
+ | Sharing a screen | Pause · Stop recording (`stop_circle`, `error` ink, never filled) · More (`more_vert`, "More recording actions", a menu: Take screenshot, Mute microphone or Unmute, then Discard recording last) · Finish |
46
+
47
+ - **Pause, not Mute.** In an interview, Pause stops both sides, and Resume goes on. Mute is only in More while a screen is recorded, because the recording carries the sound; a muted microphone always shows Unmute (under the status, or in More while sharing). An Alis call keeps Mute.
48
+ - **Finish ends the interview**, in End's place and look: filled, `primary`, `call_end`, the word "Finish" and the accessible name "Finish interview". It always asks first, in an [AppDialog](AppDialog.md): "Finish the interview?", "Your answers go to {who invited them}. You can come back to this link to add more.", then Cancel and Finish interview. Finishing keeps the dialog: [AppProgress](AppProgress.md) with its steps (Answers saved, Sending your files, Handing everything to {who}). In an app, the ask is the phone's own alert with the same words.
49
+ - **The voice field** (`.app-voice__field`): the interview's voice light, dots drawn into an svg behind everything at the foot. Fifteen rows, the dots about 36px apart; the speaker's sound flows in from the right and off to the left over about two seconds, a louder sound lighting higher, brighter rows; the edges fade out. Cool (`ai-you`) while you speak, Alis red (`ai-alis`) under `is-alis`, a client's `primary` on a branded interview; resting at .75, and at .4 under `is-muted`. The orb stays for an Alis call.
50
+
15
51
  ## Markup
16
52
 
17
53
  ```html
@@ -41,12 +77,205 @@ A live call given room: the content area on a desktop (the focus view), the whol
41
77
  </section>
42
78
  ```
43
79
 
80
+ ```html
81
+ <!-- An interview, your turn -->
82
+ <section class="app-voice app-voice--interview" aria-label="Talking with Alis">
83
+ <div class="app-voice__top">
84
+ <div class="app-progress">
85
+ <div class="app-progress__head">
86
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
87
+ <span class="app-progress__value text-meta">Halfway</span>
88
+ </div>
89
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
90
+ </div>
91
+ </div>
92
+ <div class="app-voice__body">
93
+ <div class="app-voice__question">
94
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
95
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
96
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
97
+ <div class="app-voice__materials">
98
+ <button type="button" class="app-attachment app-state">
99
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">description</span></span>
100
+ <span class="app-attachment__text"><span class="text-label">Pricing page, May</span><span class="text-meta">Shared material</span></span>
101
+ </button>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ <div class="app-voice__handover">
106
+ <div class="app-voice__status" role="status" aria-atomic="true">
107
+ <p class="text-section-title">Your turn</p>
108
+ <p class="text-supporting text-on-surface-variant">Take your time. Speak when you're ready.</p>
109
+ </div>
110
+ </div>
111
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
112
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
113
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
114
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
115
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
116
+ </div>
117
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
118
+ </section>
119
+ ```
120
+
121
+ ```html
122
+ <!-- An interview, Alis is asking (is-alis): Hear the question again hides -->
123
+ <section class="app-voice app-voice--interview is-alis" aria-label="Talking with Alis">
124
+ <div class="app-voice__top">
125
+ <div class="app-progress">
126
+ <div class="app-progress__head">
127
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
128
+ <span class="app-progress__value text-meta">Halfway</span>
129
+ </div>
130
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
131
+ </div>
132
+ </div>
133
+ <div class="app-voice__body">
134
+ <div class="app-voice__question">
135
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
136
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
137
+ </div>
138
+ </div>
139
+ <div class="app-voice__handover">
140
+ <div class="app-voice__status" role="status" aria-atomic="true">
141
+ <p class="text-section-title">Alis is asking</p>
142
+ <p class="text-supporting text-on-surface-variant">You can interrupt if you need to.</p>
143
+ </div>
144
+ </div>
145
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
146
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
147
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
148
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
149
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
150
+ </div>
151
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
152
+ </section>
153
+ ```
154
+
155
+ ```html
156
+ <!-- An interview, paused (is-muted): Resume leads the dock -->
157
+ <section class="app-voice app-voice--interview is-muted" aria-label="Talking with Alis">
158
+ <div class="app-voice__top">
159
+ <div class="app-progress">
160
+ <div class="app-progress__head">
161
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
162
+ <span class="app-progress__value text-meta">Halfway</span>
163
+ </div>
164
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
165
+ </div>
166
+ </div>
167
+ <div class="app-voice__body">
168
+ <div class="app-voice__question">
169
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
170
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
171
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
172
+ </div>
173
+ </div>
174
+ <div class="app-voice__handover">
175
+ <div class="app-voice__status" role="status" aria-atomic="true">
176
+ <p class="text-section-title">Paused</p>
177
+ <p class="text-supporting text-on-surface-variant">Take a break. Resume when you're ready.</p>
178
+ </div>
179
+ </div>
180
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
181
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">play_arrow</span>Resume</button>
182
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
183
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
184
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
185
+ </div>
186
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
187
+ </section>
188
+ ```
189
+
190
+ ```html
191
+ <!-- An interview, a noisy room: Hold to talk under the status -->
192
+ <section class="app-voice app-voice--interview" aria-label="Talking with Alis">
193
+ <div class="app-voice__top">
194
+ <div class="app-progress">
195
+ <div class="app-progress__head">
196
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
197
+ <span class="app-progress__value text-meta">Halfway</span>
198
+ </div>
199
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
200
+ </div>
201
+ </div>
202
+ <div class="app-voice__body">
203
+ <div class="app-voice__question">
204
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
205
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
206
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
207
+ </div>
208
+ </div>
209
+ <div class="app-voice__handover">
210
+ <div class="app-voice__status" role="status" aria-atomic="true">
211
+ <p class="text-section-title">Your turn</p>
212
+ <p class="text-supporting text-on-surface-variant">It's noisy where you are. Use Hold to talk, move closer or use a headset, or type instead.</p>
213
+ </div>
214
+ <button type="button" class="app-btn app-btn--outlined app-state app-target app-voice__hold" aria-pressed="false"><span class="app-icon" aria-hidden="true">voice_selection</span>Hold to talk</button>
215
+ </div>
216
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
217
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
218
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
219
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
220
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
221
+ </div>
222
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
223
+ </section>
224
+ ```
225
+
226
+ ```html
227
+ <!-- An interview, sharing a screen: Stop recording and More take the middle of the dock -->
228
+ <section class="app-voice app-voice--interview" aria-label="Talking with Alis">
229
+ <div class="app-voice__top">
230
+ <div class="app-progress">
231
+ <div class="app-progress__head">
232
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
233
+ <span class="app-progress__value text-meta">Halfway</span>
234
+ </div>
235
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
236
+ </div>
237
+ </div>
238
+ <div class="app-voice__body">
239
+ <div class="app-voice__question">
240
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
241
+ <h2 class="text-prompt">Show me where you'd look for the renewal price.</h2>
242
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
243
+ </div>
244
+ </div>
245
+ <div class="app-voice__handover">
246
+ <div class="app-voice__status" role="status" aria-atomic="true">
247
+ <p class="text-section-title">Your turn</p>
248
+ <p class="text-supporting text-on-surface-variant">Take your time. Speak when you're ready.</p>
249
+ </div>
250
+ <div class="app-voice__capture" role="group" aria-label="Screen recording">
251
+ <button type="button" class="app-capture-thumb app-state" aria-label="Show what Alis sees" title="Show what Alis sees" aria-haspopup="dialog" aria-expanded="false"><video muted playsinline autoplay aria-hidden="true"></video></button>
252
+ <span class="app-composer__rec text-label">Recording</span>
253
+ <span class="app-composer__timer text-label" role="timer">03:18</span>
254
+ </div>
255
+ </div>
256
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
257
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
258
+ <button type="button" class="app-voice__action app-btn--error app-state"><span class="app-icon" aria-hidden="true">stop_circle</span>Stop recording</button>
259
+ <button type="button" class="app-voice__action app-state" aria-label="More recording actions" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">more_vert</span>More</button>
260
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
261
+ </div>
262
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
263
+ </section>
264
+ ```
265
+
44
266
  ## Behaviour you must supply
45
267
 
46
268
  - The same call state as the composer's: toggle `is-alis` and `is-muted`, update the status word (a live region) and the caption. Mute is a toggle: `is-selected`, `aria-pressed` and `mic_off` while muted.
47
269
  - Back and Type instead return to the composer with the call still running and focus in the editor; End ends the call and returns too.
48
270
  - Give it the height it fills (the content area, or the viewport on a phone); it lays out inside that.
271
+ - **Keep the screen awake while a call runs**, and let it sleep again once paused, finished or left: the Screen Wake Lock on the web, the platform's idle timer in an app.
272
+ - **In an interview:**
273
+ - Draw the voice field into its svg from the live sound: fifteen rows of dots across the width, about 36px apart; a level history of about two seconds that moves from right to left; louder sound lighting higher rows, bigger and brighter, and the edges fading. Draw at most 30 frames a second, stop while the page is hidden or the field is off screen and clear the history when it comes back, and hold it still under `prefers-reduced-motion`. Remove it while finishing.
274
+ - Swap the word, the hint and the dock as the state moves (the tables above). `is-muted` covers both paused and muted; Resume is never drawn as pressed.
275
+ - Hear the question again replays the question's audio; hide it while Alis speaks.
276
+ - Hold to talk sends sound only while held: pointer capture, and Space or Enter held down for the keyboard; `aria-pressed` and the "Listening… let go when you're done" label while held.
277
+ - Finish opens the dialog (§ An interview); Cancel and Escape go back to the interview while going back is still possible.
49
278
 
50
279
  ## Classes
51
280
 
52
- `.app-voice`, `.is-alis`, `.is-muted`, `.app-voice__top`, `.app-voice__title`, `.app-voice__body`, `.app-voice__orb`, `.app-voice__caption`, `.app-voice__said`, `.app-voice__capture` (holding `.app-capture-thumb`, `.app-composer__rec` and `.app-composer__timer`), `.app-voice__controls`, `.app-voice__round`, `.is-selected`, `.app-voice__end`, with `.app-state` on its buttons.
281
+ `.app-voice`, `.is-alis`, `.is-muted`, `.app-voice__top`, `.app-voice__title`, `.app-voice__body`, `.app-voice__orb`, `.app-voice__caption`, `.app-voice__said`, `.app-voice__capture` (holding `.app-capture-thumb`, `.app-composer__rec` and `.app-composer__timer`), `.app-voice__controls`, `.app-voice__round`, `.is-selected`, `.app-voice__end`, with `.app-state` on its buttons. An interview adds `.app-voice--interview`, `.app-voice__question`, `.app-voice__again`, `.app-voice__materials`, `.app-voice__handover`, `.app-voice__status`, `.app-voice__hold`, `.app-voice__dock`, `.app-voice__action` (with `.app-btn--error` for Stop recording) and `.app-voice__field`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.76.0",
3
+ "version": "0.78.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/errors.md CHANGED
@@ -34,6 +34,10 @@ What went wrong?
34
34
  │ what to change (AppComposer)
35
35
  ├─ A conversation attachment didn't upload → its tile keeps retry/remove
36
36
  │ (AppAttachment)
37
+ ├─ They turned down the microphone, the
38
+ │ camera or another device permission → the line where it was needed says
39
+ │ what's off and both ways on
40
+ │ (§ A device permission)
37
41
  └─ A submitted message didn't send, or Alis
38
42
  couldn't finish a reply → the turn keeps its recovery action
39
43
  (AppTurn)
@@ -126,6 +130,32 @@ neutral tile.
126
130
  the thing's own state: its chip says Failed, and the alert waits in its pane
127
131
  with the next step ([quick-start.md](quick-start.md) § 5).
128
132
 
133
+ ## A device permission
134
+
135
+ The microphone, the camera, notifications, photos: the browser or the phone asks,
136
+ in its own dialog, and we write only what comes before and after it.
137
+
138
+ - **Ask when the person chooses what needs it**, never on opening: the
139
+ microphone when they press Start talking, the camera when they choose to take a
140
+ photo. One permission at a time; never a second prompt straight after the
141
+ first.
142
+ - **Say the prompt is coming, in one line beside the button that brings it**:
143
+ "Your browser will ask to use your microphone." In an app, "This app will ask
144
+ to use your microphone." No screen of its own before the prompt: the line is
145
+ enough, and the prompt follows the press.
146
+ - **After a no, say what's off and both ways on**, in the line where it was
147
+ needed, in ink with the hint's role rather than an alert: nothing they did
148
+ failed. Keep the way that doesn't need it: "The microphone is turned off for
149
+ AlisX. Allow it in Settings, or type instead." In an app, add **Open
150
+ Settings**, which opens the app's own page in the phone's settings. A browser
151
+ can't open its settings, so there the sentence says where: "Allow it in the
152
+ browser's settings, or type instead."
153
+ - **Never ask into a prompt the system will no longer show.** Once a no is
154
+ final, the press that needs the permission shows the line again; it doesn't
155
+ ask again and silently get nothing.
156
+ - **When they come back with it allowed**, carry on from where they pressed,
157
+ with no second press.
158
+
129
159
  ## What they may not do
130
160
 
131
161
  The whole of it, from roles to asking for more, is [access.md](access.md). In
@@ -167,3 +197,5 @@ short:
167
197
  was entered still there?
168
198
  3. Is any text on screen something the machine wrote?
169
199
  4. Is there a `catch` that only logs?
200
+ 5. Turn down every device permission your screen asks for. Does the line say
201
+ what's off, with the way that doesn't need it and, in an app, Open Settings?
package/rules/icons.md CHANGED
@@ -20,6 +20,10 @@ library, and nothing else hand-drawn. Self-host the subset you use.
20
20
  not `email`).
21
21
  - **Send is `arrow_upward`**, in the composer's filled circle: it points into the
22
22
  conversation. Never the paper plane (`send`), which sits lopsided in a circle.
23
+ - **Talk is `voice_selection`**, a mouth with sound coming out: on the composer's
24
+ Talk, a dock's Talk and Hold to talk, wherever the person starts speaking aloud.
25
+ Never `graphic_eq`, which is an audio file and reads as a level meter, and never
26
+ `record_voice_over`, which is an interview, the thing.
23
27
 
24
28
  ## The capability marks
25
29
 
package/rules/type.md CHANGED
@@ -29,7 +29,7 @@ What is this text doing?
29
29
 
30
30
  Default when unsure: **body**.
31
31
 
32
- Four more styles, each with one place:
32
+ Six more styles, each with one place:
33
33
 
34
34
  - **`text-page-title` on a phone** is 22/28 at 500, no tracking (below 600px):
35
35
  Material 3's Title Large Emphasized, the title of its 64 small app bar
@@ -53,6 +53,11 @@ Four more styles, each with one place:
53
53
  - **`text-reading`**, 20/28 at 400: the reading that leads a Glass view, one or
54
54
  two sentences built from the state, its notable part at 600 ([glass.md](glass.md)).
55
55
  Nowhere else.
56
+ - **`text-prompt`**, 30/38 at 500, −0.02em (24/32 below 600px): the question
57
+ someone is answering, read at arm's length. A live interview's question
58
+ ([AppVoiceView](../components/AppVoiceView.md) § An interview) and a typed
59
+ interview's latest question. One per screen, and never a title: the screen's
60
+ name stays `text-page-title` or the progress above it.
56
61
 
57
62
  ## Body, supporting or meta
58
63
 
@@ -162,11 +167,11 @@ marks the selected and commits, 800 greets.** This is M3 Expressive's model: a
162
167
  quiet baseline, with emphasis spent where it means something.
163
168
 
164
169
  - **800**: welcome-title only, the one hero moment of an entry screen.
165
- - **700**: page-title (500 on a phone, § Three more styles), metric-value, the selected state (`.text-selected`), the
170
+ - **700**: page-title (500 on a phone, § The seven jobs), metric-value, the selected state (`.text-selected`), the
166
171
  filled button, and eyebrow.
167
172
  - **600**: section-title, a text or outlined button's label, emphasis in reading text
168
173
  (`.text-emphasis`), and `strong` and the headings in rendered prose.
169
- - **500**: object-title, label, tabs, segments, nav rows.
174
+ - **500**: object-title, label, prompt, tabs, segments, nav rows.
170
175
  - **400**: body, supporting and meta.
171
176
 
172
177
  **Never override a role's weight.** A weight utility beside a role wins and
@@ -177,7 +182,7 @@ breaks it. Choose the role, and emphasise only reading text, at 600.
177
182
  **None outside the headings and the eyebrow**, because alisx.com sets Nunito Sans
178
183
  at 0.
179
184
 
180
- - welcome-title and page-title −0.03em, section-title −0.02em.
185
+ - welcome-title and page-title −0.03em, section-title and prompt −0.02em.
181
186
  - eyebrow 0.12em, because it is uppercase.
182
187
  - Everything else, labels, buttons and tabs included: 0. Set a component
183
188
  library's own tracking to 0 once, in its theme; never restate it on a
package/tokens.json CHANGED
@@ -1410,6 +1410,18 @@
1410
1410
  },
1411
1411
  "usage": "Names the whole screen. One per screen, in the title bar."
1412
1412
  },
1413
+ {
1414
+ "name": "text-prompt",
1415
+ "fontSize": "30px",
1416
+ "lineHeight": "38px",
1417
+ "fontWeight": 500,
1418
+ "letterSpacing": "-0.02em",
1419
+ "phone": {
1420
+ "fontSize": "24px",
1421
+ "lineHeight": "32px"
1422
+ },
1423
+ "usage": "The question being answered, read at arm's length: a live interview's question, and a typed interview's latest question. One per screen."
1424
+ },
1413
1425
  {
1414
1426
  "name": "text-section-title",
1415
1427
  "fontSize": "18px",