@alis-build/design-system 0.39.0 → 0.41.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
@@ -141,6 +141,7 @@
141
141
  --space-32: 32px;
142
142
  --space-48: 48px;
143
143
  --card-padding-wide: 28px;
144
+ --attachment-preview-size: 96px;
144
145
  --chat-row: 32px;
145
146
  --touch-target: 32px;
146
147
  --touch-target-coarse: 48px;
@@ -745,6 +746,20 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
745
746
  .app-empty-field>div:last-child{position:relative;z-index:1;flex:1;display:flex;flex-direction:column}
746
747
  .app-shell__detail>.app-empty-field{margin:calc(var(--space-16) * -1) calc(var(--space-24) * -1)}
747
748
 
749
+ /* ── Sign-in · signing in, signing up, onboarding: one card on the plain ground. components/AppSignIn.md ── */
750
+ .app-signin{box-sizing:border-box;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-16);padding:var(--space-48) var(--space-16);background:var(--background);color:var(--on-surface)}
751
+ .app-signin__card{width:min(440px,100%);max-width:none;gap:var(--space-24)}
752
+ .app-signin__lead{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);text-align:center}
753
+ .app-signin__lead>h1,.app-signin__lead>h2,.app-signin__lead>p{margin:0}
754
+ .app-signin__card--steps .app-signin__lead{align-items:flex-start;text-align:start}
755
+ .app-signin__logo{display:block;max-width:200px;max-height:40px;margin-bottom:var(--space-8)}
756
+ /* With nothing to fill in, the empty-state block sits at its own height so the foot stays under it */
757
+ .app-signin>.app-empty{flex:none;min-height:0;padding:0}
758
+ .app-signin__action{width:100%}
759
+ .app-signin__foot{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-4) var(--space-8);margin:0;color:var(--on-surface-variant)}
760
+ .app-signin__foot a{color:inherit;text-decoration:none}
761
+ .app-signin__foot a:hover,.app-signin__foot a:focus-visible{text-decoration:underline;text-underline-offset:2px}
762
+
748
763
  /* ── Transcript · a question and its answer, in pairs ── */
749
764
  .app-qa{display:flex;flex-direction:column;gap:var(--space-24);margin:0}
750
765
  .app-qa__pair{display:flex;flex-direction:column;gap:var(--space-8)}
@@ -918,6 +933,10 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
918
933
  /* ── Composer · where you write to Alis, an agent or a person: tray, editor, row; one line below ── */
919
934
  .app-composer{position:relative;display:flex;flex-direction:column;gap:var(--space-8);width:100%;max-width:var(--measure-prose);margin-inline:auto}
920
935
  .app-composer__box{position:relative;z-index:1;display:flex;flex-direction:column;padding:var(--space-8);border-radius:var(--radius-xl);background:var(--surface-container-high);box-shadow:var(--elevation-2);transition:background-color var(--dur-effects) var(--motion-effects),box-shadow var(--dur-effects) var(--motion-effects)}
936
+ /* Audience is a message property, kept above the draft even when its error line changes. */
937
+ .app-composer__audience{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-12);padding:var(--space-8) var(--space-12) var(--space-12);border-bottom:1px solid var(--outline-variant)}
938
+ .app-composer__audience .app-field{flex:1 1 24ch;min-width:0;max-width:100%}
939
+ .app-composer__audience>.text-meta{margin:0;padding-block:var(--space-8);color:var(--on-surface-variant);overflow-wrap:anywhere}
921
940
  .app-composer__tray{display:flex;flex-wrap:wrap;gap:var(--space-8);padding:var(--space-4) var(--space-4) 0}
922
941
  .app-composer__editor{min-height:24px;max-height:208px;overflow-y:auto;padding:var(--space-12) var(--space-12) var(--space-4);color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;font-weight:400;overflow-wrap:anywhere}
923
942
  .app-composer__input{display:block;width:100%;margin:0;padding:0;border:0;outline:0;resize:none;background:transparent;color:inherit;font:inherit}
@@ -989,18 +1008,20 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
989
1008
  @keyframes app-breathe{from{transform:scale(.96)}to{transform:scale(1.04)}}
990
1009
 
991
1010
  /* ── Attachment · a file, recording or queued message in the composer's tray, and in the sent message ── */
992
- .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);overflow:hidden}
1011
+ .app-attachment{position:relative;display:flex;align-items:center;gap:var(--space-12);width:232px;max-width:100%;min-height:56px;height:auto;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface-container-low)}
993
1012
  .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)}
994
1013
  .app-attachment__text{display:flex;flex-direction:column;flex:1;min-width:0}
995
1014
  .app-attachment__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
996
1015
  .app-attachment__text>.text-meta{color:var(--on-surface-variant)}
997
- .app-attachment .app-icon-btn{flex:none;width:24px;height:24px}
1016
+ /* Reserve actual hit boxes so adjacent Retry and Remove targets cannot overlap. */
1017
+ .app-attachment .app-icon-btn.app-state{flex:none;width:var(--touch-target);height:var(--touch-target)}
1018
+ .app-attachment:not(.app-attachment--message):has(.app-icon-btn~.app-icon-btn){width:320px}
998
1019
  .app-attachment .app-icon-btn .app-icon{font-size:16px}
999
- .app-attachment__bar{position:absolute;left:0;right:0;bottom:0;height:2px;background:color-mix(in srgb,var(--primary) 16%,transparent)}
1000
- .app-attachment__bar>span{display:block;height:100%;background:var(--primary)}
1020
+ .app-attachment__bar{position:absolute;left:var(--space-12);right:var(--space-12);bottom:var(--space-4);height:2px;background:var(--surface-container-highest);border-radius:var(--radius-pill);overflow:hidden}
1021
+ .app-attachment__bar>span{display:block;height:100%;background:var(--on-surface)}
1001
1022
  .app-attachment.is-error .app-attachment__glyph,.app-attachment.is-error .app-attachment__text>.text-meta{color:var(--error)}
1002
- .app-attachment--image{width:56px;padding:0}
1003
- .app-attachment--image>img,.app-attachment--image>svg{display:block;width:100%;height:100%;object-fit:cover}
1023
+ .app-attachment--image{width:var(--attachment-preview-size);height:var(--attachment-preview-size);padding:0}
1024
+ .app-attachment--image>img,.app-attachment--image>svg{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
1004
1025
  .app-attachment--image .app-icon-btn{position:absolute;top:var(--space-4);right:var(--space-4);background:var(--surface);color:var(--on-surface)}
1005
1026
  .app-attachment--message{width:100%;height:auto;min-height:56px}
1006
1027
  a.app-attachment{color:inherit;text-decoration:none}
@@ -1047,6 +1068,8 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1047
1068
  .app-turn .app-icon-btn{width:32px;height:32px}
1048
1069
  .app-turn__who{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);min-height:24px;color:var(--on-surface)}
1049
1070
  .app-turn__who .text-meta{color:var(--on-surface-variant)}
1071
+ .app-turn__audience{display:flex;align-items:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant)}
1072
+ .app-turn__audience .app-icon{font-size:16px}
1050
1073
  .app-turn__avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:var(--radius-pill);background:var(--surface-container-highest);color:var(--on-surface);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:600;overflow:hidden;object-fit:cover}
1051
1074
  .app-turn__avatar--alis{background:transparent}
1052
1075
  .app-turn__head{display:flex;align-items:center;gap:var(--space-12);min-height:32px}
package/classes.json CHANGED
@@ -111,6 +111,7 @@
111
111
  "app-combo__value",
112
112
  "app-compact-only",
113
113
  "app-composer",
114
+ "app-composer__audience",
114
115
  "app-composer__box",
115
116
  "app-composer__capture",
116
117
  "app-composer__capture-label",
@@ -274,6 +275,13 @@
274
275
  "app-shortcuts__heading",
275
276
  "app-shortcuts__note",
276
277
  "app-shortcuts__row",
278
+ "app-signin",
279
+ "app-signin__action",
280
+ "app-signin__card",
281
+ "app-signin__card--steps",
282
+ "app-signin__foot",
283
+ "app-signin__lead",
284
+ "app-signin__logo",
277
285
  "app-skel",
278
286
  "app-skel__bar",
279
287
  "app-skel__bar--block",
@@ -332,6 +340,7 @@
332
340
  "app-turn--them",
333
341
  "app-turn--you",
334
342
  "app-turn__about",
343
+ "app-turn__audience",
335
344
  "app-turn__avatar",
336
345
  "app-turn__avatar--alis",
337
346
  "app-turn__bubble",
@@ -441,6 +450,7 @@
441
450
  "--alis-red",
442
451
  "--amber-100",
443
452
  "--amber-700",
453
+ "--attachment-preview-size",
444
454
  "--background",
445
455
  "--band-bottom",
446
456
  "--band-fg",
@@ -4,11 +4,12 @@ A file, recording or queued message waiting in the composer's tray, and the same
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - **In [AppComposer](AppComposer.md)'s tray**, and in a sent message, where it opens the file. 232px wide, 56 high, `radius-lg` (16: concentric with the composer's corner, 28 − 12), on `surface-container-low`.
7
+ - **In [AppComposer](AppComposer.md)'s tray**, and in a sent message, where it opens the file. 232px wide, at least 56 high (growing for touch controls), `radius-lg` (16: concentric with the composer's corner, 28 − 12), on `surface-container-low`.
8
8
  - **A tile, not a chip.** A file needs a type, a size, progress, an error and a retry, and a chip can't hold them. Chips stay for the composer's context, so the two never read alike.
9
9
  - **No colour for types.** The glyph sits in ink on white: a PDF isn't red and an image isn't blue. Glyphs: `description` (a document), `slideshow`, `table` (a sheet), `graphic_eq` (audio), `movie`, `screen_record` (a screen capture), `draft` (anything else).
10
- - **An image shows itself**: 56 square, the picture, remove on top.
11
- - **States**: ready (type · size on the meta line); uploading (a 2px `primary` bar along the bottom edge); failed ("Didn't upload" in `error`, with retry); not accepted ("Can't be read here" in `error`, no retry, and the composer's line lists what works).
10
+ - **An image shows itself**: `attachment-preview-size` square, the picture, remove on top. Its image clips to the tile; the control and its focus ring stay inside it.
11
+ - **States** follow § Upload lifecycle. Transfer progress is a 2px `on-surface` bar, like [AppProgress](AppProgress.md); it is not an action, so never `primary`.
12
+ - **Controls have real space**: retry, cancel, edit and remove use `touch-target` for both dimensions (32px, 48 on touch). A tile with two controls grows wider; the tile grows taller for touch. Do not shrink controls, overlap their hit areas or let the tile clip a target or focus ring. An ellipsised name keeps its full text in the accessible name and `title`.
12
13
  - **A thing** opens what it names: the whole tile is the link, with no button in it. Its glyph names the kind, in ink, always a Material Symbol (a capability mark names a tool, not an object): `videocam` a meeting, `edit_note` its notes, `record_voice_over` an interview, `monitor_heart` diagnostics, `extension` a skill, `assignment` an issue, `terminal` an agent session. Its name is the label; the meta line is where it lives and its state: "Google Meet · recording", "Linear · BUI-29", "Diagnostics · 2 min ago". A provider's logo never replaces the glyph.
13
14
  - **Inside the product it opens in place; outside, in a new tab, and says so**: a 16px `open_in_new` at the tile's end (`.app-attachment__external`), and "opens in a new tab" in its accessible name.
14
15
  - **A file Alis made** stands in the reply where Alis put it, 320 wide (the full column on a phone), and opens [AppFilePane](AppFilePane.md) beside the conversation: the whole tile is a `<button>` with `aria-expanded`, nothing inside it, and no Download (that's in the pane). The label is Alis's description of the file, or else its name; the meta line its kind and size ("HTML page · 6 KB"). Glyphs: `web` an HTML page, `article` Markdown, `code` code, `text_snippet` plain text, `shapes` an SVG; a PDF, a CSV and anything else as above. An image Alis made shows itself, as any image does, and opens in the pane. No thumbnail of a page: it would mean running the page in every tile.
@@ -17,42 +18,93 @@ A file, recording or queued message waiting in the composer's tray, and the same
17
18
  - **Gone** (`is-gone`, deleted since): a `div`, not pressable and with no state layer; the meta line says "Deleted", in ink, and the glyph sits on an outline. Not red: nothing failed.
18
19
  - **A queued message** (`app-attachment--message`) takes the tray's full width: `schedule`, the text, "Sends when Alis finishes", edit and remove.
19
20
 
21
+ ## Upload lifecycle
22
+
23
+ The product supplies allowed file kinds, size/count limits and concurrency. State
24
+ belongs to a file in one conversation's draft, never to a global attachment tray.
25
+
26
+ | State | What it says | Available action |
27
+ | --- | --- | --- |
28
+ | Queued | **Waiting to upload**, with the file's name and size; no percentage | Remove |
29
+ | Uploading | **Uploading · 48%** when byte progress is known, plus a labelled determinate bar; otherwise **Uploading** without a made-up percentage | Cancel upload |
30
+ | Processing | **Processing** after all bytes transfer, until the service confirms the file is usable; no completed progress bar | Cancel upload |
31
+ | Ready | Type · size; a local thumbnail for an image | Remove |
32
+ | Failed | **Didn't upload**, or **Couldn't process** when transfer succeeded | Retry and Remove |
33
+ | Cancelled | **Upload cancelled**; no progress or error colour | Retry and Remove |
34
+ | Not accepted | The actionable reason, such as **Larger than 10 MiB** or **This file type isn't supported** | Remove; no retry until the input changes |
35
+
36
+ - **100% is not Ready.** Enable Send only after every retained file is Ready and there is text or at least one file. A failed or cancelled tile blocks Send until retried or removed. The composer stays writable.
37
+ - **Partial failure** stays on the affected tile; ready files and text are kept. Retry only that file, using a new attempt identity under its stable draft-file identity. Never upload the entire tray again.
38
+ - **Cancel stops the attempt and keeps its tile. Remove drops the tile.** Abort the request if possible; ignore late progress/completion from either an aborted attempt or a removed tile. Release local previews when removed, sent, discarded or signed out. Cleanup of remote temporary files belongs to the service.
39
+ - **Switching conversations** restores that conversation's draft, files and audience. Completion may update its own draft in the background, never whichever conversation is now open. Signing out clears local previews and work belonging to that session.
40
+ - **Picker, paste and drop** enter the same queue and validation path. Handle file paste without swallowing an ordinary text paste; prevent a file drop from navigating away. Reject unsupported or oversized files with the reason on their tile. Do not silently send, discard or truncate the other files.
41
+ - **Announce transitions, not every byte.** Use one persistent status region for the tray; announce queued, failed and ready counts. A determinate bar has an accessible name and `aria-valuenow`; Processing has words, not a fake percentage. Keep each control's accessible name specific to its file.
42
+
20
43
  ## Markup
21
44
 
22
45
  ```html
23
46
  <!-- Ready -->
24
47
  <div class="app-attachment">
25
48
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">description</span></span>
26
- <span class="app-attachment__text"><span class="text-label">Q3 pricing interviews.pdf</span><span class="text-meta">PDF · 2.4 MB</span></span>
27
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Q3 pricing interviews.pdf" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
49
+ <span class="app-attachment__text"><span class="text-label" title="Q3 pricing interviews.pdf">Q3 pricing interviews.pdf</span><span class="text-meta">PDF · 2.4 MB</span></span>
50
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Q3 pricing interviews.pdf" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
28
51
  </div>
29
52
 
30
53
  <!-- Uploading -->
31
54
  <div class="app-attachment">
32
55
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">slideshow</span></span>
33
- <span class="app-attachment__text"><span class="text-label">Board deck v7.pptx</span><span class="text-meta">PowerPoint · 18 MB</span></span>
34
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Board deck v7.pptx" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
56
+ <span class="app-attachment__text"><span class="text-label" title="Board deck v7.pptx">Board deck v7.pptx</span><span class="text-meta">Uploading · 62%</span></span>
57
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Cancel upload of Board deck v7.pptx" title="Cancel upload"><span class="app-icon" aria-hidden="true">close</span></button>
35
58
  <span class="app-attachment__bar" role="progressbar" aria-label="Uploading Board deck v7.pptx" aria-valuemin="0" aria-valuemax="100" aria-valuenow="62"><span style="width:62%"></span></span>
36
59
  </div>
37
60
 
38
61
  <!-- Failed -->
39
62
  <div class="app-attachment is-error">
40
63
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">error</span></span>
41
- <span class="app-attachment__text"><span class="text-label">Customer list.xlsx</span><span class="text-meta">Didn't upload</span></span>
42
- <button type="button" class="app-icon-btn app-state" aria-label="Retry Customer list.xlsx" title="Retry"><span class="app-icon" aria-hidden="true">refresh</span></button>
43
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Customer list.xlsx" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
64
+ <span class="app-attachment__text"><span class="text-label" title="Customer list.xlsx">Customer list.xlsx</span><span class="text-meta">Didn't upload</span></span>
65
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Retry Customer list.xlsx" title="Retry"><span class="app-icon" aria-hidden="true">refresh</span></button>
66
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Customer list.xlsx" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
67
+ </div>
68
+
69
+ <!-- Queued upload -->
70
+ <div class="app-attachment" role="group" aria-label="Browser screenshot.png, waiting to upload">
71
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
72
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Waiting to upload</span></span>
73
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Browser screenshot.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
74
+ </div>
75
+
76
+ <!-- Processing upload -->
77
+ <div class="app-attachment" role="group" aria-label="Browser screenshot.png, processing">
78
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
79
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Processing</span></span>
80
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Cancel upload of Browser screenshot.png" title="Cancel upload"><span class="app-icon" aria-hidden="true">close</span></button>
81
+ </div>
82
+
83
+ <!-- Cancelled upload -->
84
+ <div class="app-attachment" role="group" aria-label="Browser screenshot.png, upload cancelled">
85
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
86
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Upload cancelled</span></span>
87
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Retry Browser screenshot.png" title="Retry"><span class="app-icon" aria-hidden="true">refresh</span></button>
88
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Browser screenshot.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
89
+ </div>
90
+
91
+ <!-- File not accepted -->
92
+ <div class="app-attachment is-error" role="group" aria-label="Browser screenshot.png, larger than 10 mib">
93
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
94
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Larger than 10 MiB</span></span>
95
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Browser screenshot.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
44
96
  </div>
45
97
 
46
98
  <!-- An image -->
47
99
  <div class="app-attachment app-attachment--image" role="group" aria-label="Churn chart.png">
48
100
  <img src="…" alt="">
49
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Churn chart.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
101
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Churn chart.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
50
102
  </div>
51
103
 
52
104
  <!-- A thing: the whole tile opens it -->
53
105
  <a class="app-attachment app-state" href="…" target="_blank" rel="noopener noreferrer" aria-label="Call with Jan, Google Meet, opens in a new tab">
54
106
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">videocam</span></span>
55
- <span class="app-attachment__text"><span class="text-label">Call with Jan</span><span class="text-meta">Google Meet · recording</span></span>
107
+ <span class="app-attachment__text"><span class="text-label" title="Call with Jan">Call with Jan</span><span class="text-meta">Google Meet · recording</span></span>
56
108
  <span class="app-icon app-attachment__external" aria-hidden="true">open_in_new</span>
57
109
  </a>
58
110
  <!-- Inside the product: no target, no open_in_new -->
@@ -60,38 +112,38 @@ A file, recording or queued message waiting in the composer's tray, and the same
60
112
  <!-- A file Alis made, in Alis's prose; is-selected while it is open in the pane -->
61
113
  <button type="button" class="app-attachment app-state" aria-expanded="false" aria-controls="file-pane">
62
114
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
63
- <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">HTML page · 6 KB</span></span>
115
+ <span class="app-attachment__text"><span class="text-label" title="Pricing page">Pricing page</span><span class="text-meta">HTML page · 6 KB</span></span>
64
116
  </button>
65
117
 
66
118
  <!-- One that can't be shown: it downloads -->
67
119
  <a class="app-attachment app-state" href="…" download aria-label="Interview recordings, ZIP archive, 412 MB, downloads">
68
120
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">folder_zip</span></span>
69
- <span class="app-attachment__text"><span class="text-label">Interview recordings</span><span class="text-meta">ZIP archive · 412 MB</span></span>
121
+ <span class="app-attachment__text"><span class="text-label" title="Interview recordings">Interview recordings</span><span class="text-meta">ZIP archive · 412 MB</span></span>
70
122
  <span class="app-icon app-attachment__external" aria-hidden="true">download</span>
71
123
  </a>
72
124
 
73
125
  <!-- Gone since -->
74
126
  <div class="app-attachment is-gone" role="group" aria-label="Pricing page, deleted">
75
127
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
76
- <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">Deleted</span></span>
128
+ <span class="app-attachment__text"><span class="text-label" title="Pricing page">Pricing page</span><span class="text-meta">Deleted</span></span>
77
129
  </div>
78
130
 
79
131
  <!-- A queued message -->
80
132
  <div class="app-attachment app-attachment--message">
81
133
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">schedule</span></span>
82
- <span class="app-attachment__text"><span class="text-label">Also check the EU accounts.</span><span class="text-meta">Sends when Alis finishes</span></span>
83
- <button type="button" class="app-icon-btn app-state" aria-label="Edit" title="Edit"><span class="app-icon" aria-hidden="true">edit</span></button>
84
- <button type="button" class="app-icon-btn app-state" aria-label="Remove" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
134
+ <span class="app-attachment__text"><span class="text-label" title="Also check the EU accounts.">Also check the EU accounts.</span><span class="text-meta">Sends when Alis finishes</span></span>
135
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Edit" title="Edit"><span class="app-icon" aria-hidden="true">edit</span></button>
136
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
85
137
  </div>
86
138
  ```
87
139
 
88
140
  ## Behaviour you must supply
89
141
 
90
- - Update the bar's width and `aria-valuenow` as the upload runs; remove the bar when it's done.
91
- - Retry restarts the upload; remove drops the tile and returns focus to the editor.
142
+ - Drive § Upload lifecycle, including transfer versus processing; change the label, bar and actions together. Keep the full file name available when it is truncated.
143
+ - Cancel invalidates the current attempt; retry starts only that file; remove drops it. Keep keyboard focus on the next available tile control, or return it to the editor when the tile leaves.
92
144
  - Edit on a queued message moves its text back into the editor and drops the tile.
93
145
  - In a sent message, the tile opens the file (wrap the glyph and text in the link or button); no remove. Sent tiles stack right above your bubble ([AppTurn](AppTurn.md)).
94
146
 
95
147
  ## Classes
96
148
 
97
- `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.is-selected`, `.is-gone`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn` and `.app-state` on its buttons.
149
+ `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.is-selected`, `.is-gone`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn`, `.app-state` and `.app-target` on its buttons.
@@ -14,6 +14,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
14
14
  |---|---|---|
15
15
  | **Capture** (top, only while a capture runs beside the conversation) | The capture bar: a thumbnail of what's captured, the red dot and *Recording*, the time, Pause, ⋯ and Stop recording, divided by a hairline (§ A capture beside the conversation). Above an ask | The product decides what it captures and what ⋯ holds |
16
16
  | **Ask** (top, only while Alis or a person is waiting on you) | The decision they need: an [AppAsk](AppAsk.md), above the tray, divided by a hairline | The product writes it |
17
+ | **Audience** (only when a responder can write internally or to a customer) | A labelled choice and its recipient, always visible while composing (§ Message audience). Below an ask, above the tray | The product supplies the permitted audiences and recipient |
17
18
  | **Tray** (top, only when something's in it) | What goes with *this message*: [AppAttachment](AppAttachment.md)s (files, screen captures), a queued message, the drop target | The product decides which files and sizes |
18
19
  | **Editor** | Body type, 16/24. Grows to eight lines, then scrolls inside itself. The placeholder says what to write | The product writes the placeholder |
19
20
  | **Suggestions** (only while you type `/` or `@`) | An [AppMenu](AppMenu.md) band right above the editor, divided by a hairline: commands, or people and things to mention. Below an open ask | The product supplies the commands and what can be mentioned |
@@ -33,7 +34,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
33
34
  | Empty, mic only | `mic` "Dictate" or "Record a voice note" | none | Placeholder |
34
35
  | Empty, no voice | `arrow_upward` "Send", disabled | none | Placeholder |
35
36
  | Something to send (text or a staged file) | `arrow_upward` "Send" | none: the voice controls leave | Live |
36
- | Uploading, or a tile failed | "Send", disabled; the line says why | none | Live |
37
+ | Queued, uploading, processing, or a tile failed | "Send", disabled; the line says why | none | Live |
37
38
  | Alis is working | `stop` (filled glyph) "Stop" | none | Stays writable; the draft is kept |
38
39
  | Working, queue on, with text | `arrow_upward` "Send when Alis finishes" | `stop_circle` "Stop" | Live |
39
40
  | Dictating | `check` "Done, keep the text" | the row is the recording bar | Words arrive as you speak |
@@ -47,6 +48,32 @@ Where you write to Alis, an agent or a person. One floating surface with three b
47
48
 
48
49
  **Two jobs, one slot:** the commit stays in the slot and the other steps aside as a plain icon button (Stop beside a queued Send, End beside a Send typed into a call). Send is `arrow_upward`, never the paper plane ([icons.md](../rules/icons.md)). Ending a call is cyan like every commit, never red.
49
50
 
51
+ ## Message audience
52
+
53
+ For responders in a conversation with both team-only and customer messages:
54
+
55
+ - **A new draft starts as Internal note.** Choosing **Note to customer** is deliberate and applies to this message only. Keep the choice and recipient visible in `.app-composer__audience`, above the tray and editor; it is never a context chip, a colour alone or a setting hidden in Add.
56
+ - Use a labelled [AppSelect](AppSelect.md): **Message visibility**, with Internal note and Note to customer. This is a choice attached to a message, not a filter on the thread. Beside it, say **Only your team** or **To Thandi Mokoena** (the actual recipient, or **To the customer** when unnamed). The editor's accessible name and placeholder, and Send's accessible name, repeat the chosen action: **Internal note** / **Note to customer**, **Send internal note** / **Send note to customer**.
57
+ - **Keep the audience while editing, uploading, validating or retrying.** Capture it with the message, its recipient and attachments when submitting. A new draft resets to Internal note; retrying an earlier message uses that message's captured audience, even if the current draft is different. Never carry the customer choice into another conversation or another person's session.
58
+ - With only one permitted audience, show its words and recipient without a selector. A customer portal only composes customer-visible messages: no internal option or internal metadata. Enforce audience and access on the server; hiding controls is not authorisation.
59
+ - Ordinary internal conversations with no customer audience need no extra band. A terminal uses the same words and defaults in its composing status; its visibility shortcut changes the draft, never existing messages.
60
+
61
+ ## Delivery and retry
62
+
63
+ The draft and a submitted message have different owners. Use this lifecycle in every conversation, including attachment-only messages:
64
+
65
+ | Stage | What stays on screen | Where recovery lives |
66
+ | --- | --- | --- |
67
+ | Draft validation or an upload fails, before submission | Text, files, audience and recipient stay in the composer; no bubble is created | A field/composer validation line, or the failed attachment's retry/remove controls |
68
+ | Submission starts | Capture an immutable message with a stable submission identity. Move it into the thread immediately; start a fresh draft | The submitted turn owns its delivery state from now on |
69
+ | Delivery fails, or the response is lost | The submitted turn and its files stay; the current draft is untouched | **Didn't send · Try again** beneath that turn ([AppTurn](AppTurn.md)) |
70
+ | Delivery is confirmed | Reconcile the existing turn with the server result, including a result arriving through live updates | Remove its failure line; never append a duplicate |
71
+
72
+ - **One message, one retry location.** Never restore a submitted message to the editor and leave a failed copy in the thread. Upload failures stay on their tiles; the composer's line may explain why Send is disabled, but does not repeat the error or its retry.
73
+ - Retry the same captured payload and submission identity; prevent concurrent retries. When a timeout leaves delivery uncertain, reconcile with the service before resubmitting, or use its deduplication contract. A UI alone cannot make retries idempotent.
74
+ - Keep the captured payload until acknowledged or explicitly discarded. If local persistence fails before submission, keep the draft and explain on the line; do not clear it. If the service cannot support safe retries, say how to check delivery instead of presenting an unsafe Try again.
75
+ - A failure notice is persistent and announced once through the thread's status region. A later successful retry removes it without stealing focus from a new draft.
76
+
50
77
  ## Voice
51
78
 
52
79
  - **Two mic modes; a composer has one**, chosen by the product. **Dictate**: words land in the editor as you speak, the ones still settling in `on-surface-variant`; ✓ ends it and leaves the text to edit, never sends. **Record a voice note**: the editor hides; Send sends the note, with its transcript, as the message.
@@ -95,6 +122,56 @@ Where you write to Alis, an agent or a person. One floating surface with three b
95
122
  <p class="app-composer__line text-meta">What you put here stays in your organisation.</p>
96
123
  </div>
97
124
 
125
+ <!-- Internal note: the recipient remains visible while writing -->
126
+ <div class="app-composer">
127
+ <div class="app-composer__box">
128
+ <div class="app-composer__audience">
129
+ <div class="app-field">
130
+ <label for="audience-internal" class="app-field__label text-label">Message visibility</label>
131
+ <div class="app-field__box app-field__box--select">
132
+ <select id="audience-internal" class="app-field__select" aria-describedby="recipient-internal">
133
+ <option value="internal" selected>Internal note</option>
134
+ <option value="customer">Note to customer</option>
135
+ </select>
136
+ <span class="app-icon" aria-hidden="true">expand_more</span>
137
+ </div>
138
+ </div>
139
+ <p id="recipient-internal" class="text-meta">Only your team</p>
140
+ </div>
141
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="2" aria-label="Internal note" aria-describedby="recipient-internal" placeholder="Internal note">Check the failed request before replying.</textarea></div>
142
+ <div class="app-composer__row">
143
+ <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>
144
+ <span class="app-composer__spacer"></span>
145
+ <button type="button" class="app-composer__go app-state app-target" aria-label="Send internal note" title="Send internal note"><span class="app-icon" aria-hidden="true">arrow_upward</span></button>
146
+ </div>
147
+ </div>
148
+ </div>
149
+
150
+ <!-- Note to customer: the recipient remains visible while writing -->
151
+ <div class="app-composer">
152
+ <div class="app-composer__box">
153
+ <div class="app-composer__audience">
154
+ <div class="app-field">
155
+ <label for="audience-customer" class="app-field__label text-label">Message visibility</label>
156
+ <div class="app-field__box app-field__box--select">
157
+ <select id="audience-customer" class="app-field__select" aria-describedby="recipient-customer">
158
+ <option value="internal">Internal note</option>
159
+ <option value="customer" selected>Note to customer</option>
160
+ </select>
161
+ <span class="app-icon" aria-hidden="true">expand_more</span>
162
+ </div>
163
+ </div>
164
+ <p id="recipient-customer" class="text-meta">To Thandi Mokoena</p>
165
+ </div>
166
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="2" aria-label="Note to customer" aria-describedby="recipient-customer" placeholder="Note to customer">The fix is ready for you to try.</textarea></div>
167
+ <div class="app-composer__row">
168
+ <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>
169
+ <span class="app-composer__spacer"></span>
170
+ <button type="button" class="app-composer__go app-state app-target" aria-label="Send note to customer" title="Send note to customer"><span class="app-icon" aria-hidden="true">arrow_upward</span></button>
171
+ </div>
172
+ </div>
173
+ </div>
174
+
98
175
  <!-- Something to send: a staged file and text; Send -->
99
176
  <div class="app-composer">
100
177
  <div class="app-composer__box">
@@ -196,8 +273,8 @@ Where you write to Alis, an agent or a person. One floating surface with three b
196
273
  <!-- Dragging a file over: the tray opens as the drop target -->
197
274
  <div class="app-composer__tray"><div class="app-composer__drop drop-target text-label">Drop to add to your message</div></div>
198
275
 
199
- <!-- The line: an error with its action -->
200
- <p class="app-composer__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Couldn't send. Your message is still here. <button type="button" class="app-composer__line-action">Try again</button></p>
276
+ <!-- Before submission: the draft stays in the editor -->
277
+ <p class="app-composer__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>This message is too long. Shorten it before sending.</p>
201
278
 
202
279
  <!-- Locked -->
203
280
  <div class="app-composer is-locked"><!-- box with the editor only; the line says why --></div>
@@ -212,9 +289,9 @@ Where you write to Alis, an agent or a person. One floating surface with three b
212
289
  - **Live**: toggle `is-alis` on `.app-composer` while Alis speaks and `is-muted` while muted (and `aria-pressed` on the mute toggle); update the status word, which is a live region.
213
290
  - **A capture beside the conversation**: show `.app-composer__capture` while it runs and remove it when it stops; tick the timer each second (`role="timer"` is not announced every tick); feed the thumbnail the live capture (a muted `<video>` on the stream), and under `prefers-reduced-motion` a still (`<img>` or `<canvas>`) refreshed every couple of seconds; the thumbnail toggles the larger view (`aria-expanded`), which closes on ✕, Esc or a click outside and returns focus to the thumbnail; Pause toggles `is-paused` on the bar, freezes the picture, and swaps the words and Pause's label and glyph; when frames stop arriving, set `is-empty` on the thumbnail with its glyph and put the error on the line, and clear both when they return; Stop ends the capture and stages what it captured as a tile in the thread. Its buttons take an [AppTooltip](AppTooltip.md) on a phone, where they show a glyph alone. Discard asks first ([AppDialog](AppDialog.md)). The bar never takes focus by itself, and after Stop or Discard focus returns to the editor.
214
291
  - **Drop**: show `.app-composer__drop` in the tray while a file is dragged over the composer; on drop, stage an [AppAttachment](AppAttachment.md).
215
- - **A send that fails** keeps the draft in the editor and says so on the line with Try again.
292
+ - **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.
216
293
  - Return focus to the editor after sending, after dictation and after a call.
217
294
 
218
295
  ## Classes
219
296
 
220
- `.app-composer`, `.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__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.
297
+ `.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__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.
@@ -6,14 +6,14 @@ A row in a list, the navigation pane, the agent chat list, or a read-back of sav
6
6
 
7
7
  48px minimum (36 in the navigation pane, 32 in the agent chat list, all 48 on touch); the whole row is the target. A list paints no surface.
8
8
 
9
- - **Content** (default): a row in a content list. Title in object-title, an optional supporting line, an optional trailing slot (a small status [AppChip](AppChip.md), an [AppIconButton](AppIconButton.md)) and a meta value at the end. Selected takes the full `secondary-container` fill.
9
+ - **Content** (default): a row in a content list. Title in object-title, an optional supporting line, an optional trailing slot (a small status [AppChip](AppChip.md), an [AppIconButton](AppIconButton.md), or a text button that is the row's one act) and a meta value at the end. Selected takes the full `secondary-container` fill.
10
10
  - **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 36px, 24px icon, label type, pill shape. The pane is permanent chrome, so its selected row takes the quieter `selection-chrome`. A heading over a group of rows is `.app-nav-heading`, which sets its own type. A destination that can create takes a small `add` [AppIconButton](AppIconButton.md) in its trailing slot ("New project"). A destination where Alis is waiting on you takes `.app-count` there instead: the number of asks, in `error` like every notification badge ([AppAsk](AppAsk.md)).
11
11
  - **Agent chat** (`app-row--agent-chat`): the agent chat list, 32px rows, and nothing else. It is not a density option: no other list may use it, however alike it looks ([spacing.md](../rules/spacing.md)). Its menu button is 24px and projects no target.
12
12
  - **Field** (`app-row--field`, in an `app-list--fields`): one saved setting read back, on a screen that shows what was chosen and lets you change it (an interview's setup, its review before publishing, a settings page). The name is the row's title in object-title; the value is supporting **in ink**, under it, wrapping to as many lines as it has, a second fact on a line of its own. A value not set takes `text-on-surface-variant` and says what happens instead ("Not set. Alis will open the conversation."). The trailing slot holds the `edit` [AppIcon](AppIcon.md), not a button: the row is the target and opens the edit in place, so there is one stop per row and no tooltip. A field that can't change has no glyph, no hit and no `app-state`, and says why on a further line in `text-on-surface-variant`; when it is their role that stops them, the line says who can ("Only Owners can change this."), and for a Viewer every field reads back this way with no line on each: the bar's role chip already says it ([access.md](../rules/access.md)). A line runs between fields, never above the first or below the last. The list reaches 16 into the gutter so the names meet the heading's edge; never margin or pad it at a site. The name is a name, not a question ("Length", not "How long should it take?"); the edit form's label may ask.
13
13
  - `app-row--divided` draws a hairline between consecutive rows. A field list draws its own.
14
14
  - Selection is always two properties: the fill, and the icon at FILL 1 with the text at 700 (the CSS does both from `is-selected`).
15
15
  - **Three or four facts about each item?** Title, then the rest joined with " · " in the supporting line (`europe-west1 · v1.42.3 · main`), the state as a trailing chip, the time as meta. Once people compare values across items, or sort by them, use [AppTable](AppTable.md).
16
- - A trailing control is 32px at most and projects no target, so the row never grows (the CSS enforces it). Below 600px a content row drops its meta so the title keeps room.
16
+ - A trailing control is 32px at most and projects no target, so the row never grows (the CSS enforces it). **A text button there** ("Request to join" on an account the person could join) only when it is the row's one act: the row opens nothing, so it has no hit, and its title is plain `text-object-title`. A row with a hit keeps a chip or an icon button. Below 600px a content row drops its meta so the title keeps room.
17
17
 
18
18
  ## Markup
19
19
 
@@ -35,6 +35,15 @@ The row is a container; its title is the one button or link (`.app-row__hit`) an
35
35
  <!-- An unselected row: no is-selected, aria-pressed="false". A row that navigates: <a class="app-row__hit text-object-title" href="…"> -->
36
36
  </div>
37
37
 
38
+ <!-- The row's one act is its trailing text button: no hit -->
39
+ <div class="app-row app-row--divided" role="listitem">
40
+ <span class="app-row__text">
41
+ <span class="text-object-title">Acme</span>
42
+ <span class="text-supporting">12 members · acme.com</span>
43
+ </span>
44
+ <span class="app-row__trailing"><button type="button" class="app-btn app-state app-target">Request to join</button></span>
45
+ </div>
46
+
38
47
  <!-- Leading icon (content rows: 20px) -->
39
48
  <span class="app-icon app-row__icon" aria-hidden="true">description</span>
40
49
 
@@ -0,0 +1,85 @@
1
+ # AppSignIn
2
+
3
+ Signing in, signing up and onboarding: one card on the plain ground.
4
+
5
+ ## Use / don't use
6
+
7
+ - **Every screen before the product**: Alis Identity signing someone in to any app, AlisX's sign-up and its onboarding steps, an invitation being accepted. Not the home that greets you, which is an entry screen ([page.md](../rules/page.md) § Empty and entry screens), and not an empty state.
8
+ - **The plain ground, never the drafting field or a petrol band.** Alis Identity signs people in to other companies' apps, and there the app's logo is the only brand on the page ([branding.md](../rules/branding.md)). AlisX's own sign-up and onboarding take the same frame, so going from sign-in into onboarding never changes the ground.
9
+ - **One instrument card, 440 wide**: white, its edge, no shadow ([AppCard](AppCard.md)). On a phone it fills the width inside the gutter.
10
+ - **The lead, centred at the top of the card**: the logo of the app being signed in to, then the question in `text-page-title`, then one `text-body` line. For AlisX the logo is the Alis mark at 32 ([AlisMark](AlisMark.md)); a client's logo is at most 40 tall and 200 wide, keeps its aspect ratio, and falls back to its name in `text-object-title`. Never `text-welcome-title`: this is a card.
11
+ - **One question per card and one filled action**, the card's full width, last. A second way on ("Create an account", "Use a different email") is a text button, full width, under it. Signing in with a provider ("Continue with Google") is an outlined button, its words alone until the marks are listed ([known-gaps.md](../rules/known-gaps.md)).
12
+ - **Fields as on every form** ([page.md](../rules/page.md) § Forms): labelled above, errors at the field when they try to continue, the action never disabled. A form's groups inside the card are headed in `text-section-title` ([type.md](../rules/type.md)).
13
+ - **Help · Privacy · Terms under the card**, in `text-meta` and `on-surface-variant`, centred: the links of whoever's app it is.
14
+ - **Onboarding in steps** ([page.md](../rules/page.md) § A form in steps): from the first stepped card, [AppStepper](AppStepper.md) leads the card and the logo goes, because the person has just seen it. A stepped card reads like any form in steps: the title and its line start-aligned, and the action row at the foot with Back leading and the filled action last, at its own width.
15
+ - **A screen with nothing to fill in** (an error, "You're signed in", a request sent) has no card: the logo over an [AppEmptyState](AppEmptyState.md) block, without the drafting field, with the foot under it. Its words are in [errors.md](../rules/errors.md).
16
+ - **The words**: an account, its Admins, free credits, the spend limit, Request to join ([words.json](../words.json)).
17
+
18
+ ## Markup
19
+
20
+ ```html
21
+ <!-- One question: the card is the form -->
22
+ <main class="app-signin">
23
+ <form class="app-card app-card--instrument app-form app-signin__card" novalidate>
24
+ <div class="app-signin__lead">
25
+ <svg class="app-signin__logo" viewBox="0 0 30 50" width="19.2" height="32" role="img" aria-label="Alis" style="fill:var(--alis-red)">
26
+ <circle cx="5" cy="25" r="3.7"/><circle cx="5" cy="35" r="3.7"/><circle cx="5" cy="45" r="3.7"/>
27
+ <circle cx="15" cy="5" r="3.7"/><circle cx="15" cy="15" r="3.7"/><circle cx="15" cy="25" r="3.7"/>
28
+ <circle cx="15" cy="35" r="3.7"/><circle cx="15" cy="45" r="3.7"/>
29
+ <circle cx="25" cy="5" r="3.7"/><circle cx="25" cy="15" r="3.7"/><circle cx="25" cy="25" r="3.7"/>
30
+ </svg>
31
+ <h1 class="text-page-title">Create your AlisX account</h1>
32
+ <p class="text-body">Start with your work email.</p>
33
+ </div>
34
+ <div class="app-field">
35
+ <label for="signin-email" class="app-field__label text-label">Work email</label>
36
+ <div class="app-field__box"><input id="signin-email" class="app-field__input" type="email" autocomplete="email" placeholder="name@company.com"></div>
37
+ </div>
38
+ <button type="submit" class="app-btn app-state app-target app-btn--filled app-signin__action">Continue</button>
39
+ <a class="app-btn app-state app-target app-signin__action" href="/signin">Sign in instead</a>
40
+ </form>
41
+ <nav class="app-signin__foot text-meta" aria-label="Help and legal">
42
+ <a href="/help">Help</a><span aria-hidden="true">·</span><a href="/privacy">Privacy</a><span aria-hidden="true">·</span><a href="/terms">Terms</a>
43
+ </nav>
44
+ </main>
45
+
46
+ <!-- A client's app: its logo, never the Alis mark -->
47
+ <img class="app-signin__logo" src="…/acme.svg" alt="Acme">
48
+
49
+ <!-- In steps: the stepper leads, the logo goes, the title starts the line -->
50
+ <main class="app-signin">
51
+ <form class="app-card app-card--instrument app-form app-signin__card app-signin__card--steps" novalidate>
52
+ <nav class="app-stepper" aria-label="Sign-up steps"><!-- AppStepper: Account · Spending · Billing · Card --></nav>
53
+ <div class="app-signin__lead">
54
+ <h1 class="text-page-title">What happens after the free credits?</h1>
55
+ <p class="text-body">You can change this later.</p>
56
+ </div>
57
+ <!-- the step's fields: here AppSelectTile, two tiles -->
58
+ <div class="app-btn-row">
59
+ <button type="button" class="app-btn app-state app-target app-btn-row__start">Back</button>
60
+ <button type="submit" class="app-btn app-state app-target app-btn--filled">Continue</button>
61
+ </div>
62
+ </form>
63
+ <nav class="app-signin__foot text-meta" aria-label="Help and legal"><!-- as above --></nav>
64
+ </main>
65
+
66
+ <!-- Nothing to fill in: no card -->
67
+ <main class="app-signin">
68
+ <div class="app-empty">
69
+ <img class="app-signin__logo" src="…/acme.svg" alt="Acme">
70
+ <h1 class="app-empty__headline text-page-title">You're signed in</h1>
71
+ <p class="app-empty__line text-supporting">You can close this tab and go back to Acme.</p>
72
+ </div>
73
+ <nav class="app-signin__foot text-meta" aria-label="Help and legal"><!-- as above --></nav>
74
+ </main>
75
+ ```
76
+
77
+ ## Behaviour you must supply
78
+
79
+ - `.app-signin` fills the window (`min-height: 100dvh`) and centres what it holds; give it the whole page, with nothing round it.
80
+ - The logo, the foot's links and the theme come from whoever's app it is, resolved before first paint ([branding.md](../rules/branding.md)).
81
+ - Steps keep their place in the URL, as every form in steps does ([AppStepper](AppStepper.md)).
82
+
83
+ ## Classes
84
+
85
+ `.app-signin`, `.app-signin__card`, `.app-signin__card--steps`, `.app-signin__lead`, `.app-signin__logo`, `.app-signin__action`, `.app-signin__foot`.
@@ -12,7 +12,7 @@ See [page.md](../rules/page.md) § A form in steps for when a form takes steps a
12
12
  - **A done step is a button back to it**, with `app-state`. A later step is not: the flow's Continue checks the step before it moves on. Editing something that already exists, every step has been reached, so every step is a button.
13
13
  - **No step is a button while a save runs, or once going back can't undo what a step made** (an instance created before its configuration): those steps stay done, as `<span>`s.
14
14
  - **A step that no longer holds** (an edit elsewhere broke it, or the server refused it) is `is-invalid`: its segment and name in `error`, the `error` glyph before the name.
15
- - **It leads the flow's surface**: the top of the instrument card on a page, under the title in a dialog. Never a panel of its own, and never "Step 1 of 2" written beside it.
15
+ - **It leads the flow's surface**: the top of the instrument card on a page, under the title in a dialog. Never a panel of its own, and never "Step 1 of 2" written beside it. On a sign-in card ([AppSignIn](AppSignIn.md)) it takes the logo's place from the first stepped card: the person has just seen the logo.
16
16
  - **Narrower than 480** (its own width, so a narrow dialog counts too) the names leave and one caption under the bars names the current step and counts ("Contact", "2 of 3"). The names stay for assistive technology.
17
17
  - Not for work the system runs: that is [AppProgress](AppProgress.md) and its steps. Not for views of one thing: that is an [AppSegmented](AppSegmented.md).
18
18