@alis-build/design-system 0.81.0 → 0.82.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
@@ -1151,8 +1151,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
1151
1151
  .app-composer{position:relative;display:flex;flex-direction:column;gap:var(--space-8);width:100%;max-width:var(--measure-prose);margin-inline:auto}
1152
1152
  .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(--spring-fast-effects),box-shadow var(--spring-fast-effects)}
1153
1153
  /* Audience is a message property, kept above the draft even when its error line changes. */
1154
- .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)}
1155
- .app-composer__audience .app-field{flex:1 1 24ch;min-width:0;max-width:100%}
1154
+ .app-composer__audience{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-12);padding:var(--space-8) var(--space-12) var(--space-12);border-bottom:1px solid var(--outline-variant)}
1156
1155
  .app-composer__audience>.text-meta{margin:0;padding-block:var(--space-8);color:var(--on-surface-variant);overflow-wrap:anywhere}
1157
1156
  .app-composer__tray{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-8);padding:var(--space-4) var(--space-4) 0}
1158
1157
  .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}
@@ -1219,6 +1218,8 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
1219
1218
  @media (max-width:599px) and (pointer:coarse){.app-composer:focus-within .app-composer__editor{max-height:136px}.app-composer:focus-within>.app-composer__line:not(.is-error){display:none}}
1220
1219
  .app-composer__drop{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;border-radius:var(--radius-lg);color:var(--primary)}
1221
1220
  /* Locked: drops to the ground, no shadow, no controls */
1221
+ /* A private note is quieter but still floats: the fill keeps the state in sight while typing. */
1222
+ .app-composer.is-note .app-composer__box{background:var(--surface-container-low)}
1222
1223
  .app-composer.is-locked .app-composer__box{background:var(--surface-container-low);box-shadow:none}
1223
1224
  .app-composer.is-locked .app-composer__editor{color:var(--on-surface-variant)}
1224
1225
  /* The voice light, behind the composer in a call: cool while you speak, warm while Alis does */
package/classes.json CHANGED
@@ -517,6 +517,7 @@
517
517
  "is-locked",
518
518
  "is-more",
519
519
  "is-muted",
520
+ "is-note",
520
521
  "is-numeric",
521
522
  "is-open",
522
523
  "is-paused",
@@ -14,7 +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
+ | **Audience** (only for the people helping, where they can also write privately) | Reply or Private note, and who reads it, always visible while composing (§ Message audience). Below an ask, above the tray | The product supplies the permitted audiences, the default and who reads it |
18
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 |
19
19
  | **Editor** | Body type, 16/24. Grows to eight lines (five on a phone while the keyboard is up), then scrolls inside itself. The placeholder says what to write, short enough to fit beside the buttons on a phone (§ On a phone) | The product writes the placeholder |
20
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 |
@@ -63,13 +63,17 @@ Below 600 wide, with the keyboard up, the conversation has about 390px, and ever
63
63
 
64
64
  ## Message audience
65
65
 
66
- For responders in a conversation with both team-only and customer messages:
66
+ For the people helping in a conversation where they can also write to each other alone (AlisX's own support, a portal's team):
67
67
 
68
- - **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.
69
- - 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**.
70
- - **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.
71
- - 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.
72
- - 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.
68
+ - **Two choices, the same words on every conversation and portal: Reply and Private note.** A reply is read by everyone in the conversation: the person who asked and anyone on it with them. A private note is read only by the team helping them. Never "internal", "external" or "customer" for a message: internal to whom, and on AlisX's own support the person who asked is a builder. Never "note" for anything the person who asked reads.
69
+ - **An [AppSegmented](AppSegmented.md) at the head of the composer**, in `.app-composer__audience` above the tray and editor, named "Who can read this"; Private note carries `lock`. The choice changes the composer in place, so it is never a select that hides the other choice, a context chip, a colour alone or a setting in Add. Two short words always fit; on a phone the line beside it wraps below.
70
+ - **Beside it, who reads it**: a reply says **To Thandi Mokoena**, or **To Thandi Mokoena and 1 other** (the people, never a role); a note says **Only the team helping Thandi**. Never "Only your team": the person who asked has teammates in the conversation too.
71
+ - **A note is quieter**: the box takes `surface-container-low` and keeps its shadow (`.is-note`), so the state is in view where you type, after the placeholder has gone. The lock, the segment's word and the line beside it carry the meaning; the fill only keeps it in sight.
72
+ - **The editor and Send repeat the choice**: the placeholder and the editor's accessible name are **Write a reply** / **Write a private note**; Send's accessible name and tooltip are **Send reply** / **Add private note**.
73
+ - **A new draft starts as Reply on AlisX's own support, and as Private note on a portal.** On our own support the person who asked is waiting on the team, and a note is written on purpose: knowing the content is private is when you look at the switch. On a portal a slip reaches our customer's own customer and can't be taken back, while a note sent by mistake only keeps them waiting. The product sets which; a choice applies to this message only.
74
+ - **Keep the audience while editing, uploading, validating or retrying.** Capture it with the message, its recipients and attachments when submitting. A new draft resets to the conversation's default; retrying an earlier message uses that message's captured audience, even if the current draft is different. Never carry a choice into another conversation or another person's session.
75
+ - With only one permitted audience, show no control. The side of the person who asked (a portal's customer, a builder on AlisX's support) only composes replies: no private option, no note metadata. Enforce audience and access on the server; hiding controls is not authorisation.
76
+ - Conversations with no private notes need no extra band. A terminal uses the same words and defaults in its composing status; its shortcut changes this draft only, never the next one or a sent message.
73
77
 
74
78
  ## Delivery and retry
75
79
 
@@ -160,52 +164,40 @@ Select text on a screen with a dock and **Ask Alis** appears by the selection (`
160
164
  <p class="app-composer__line text-meta">What you put here stays in your organisation.</p>
161
165
  </div>
162
166
 
163
- <!-- Internal note: the recipient remains visible while writing -->
167
+ <!-- A reply: who reads it stays in view while writing -->
164
168
  <div class="app-composer">
165
169
  <div class="app-composer__box">
166
170
  <div class="app-composer__audience">
167
- <div class="app-field">
168
- <label for="audience-internal" class="app-field__label text-label">Message visibility</label>
169
- <div class="app-field__box app-field__box--select">
170
- <select id="audience-internal" class="app-field__select" aria-describedby="recipient-internal">
171
- <option value="internal" selected>Internal note</option>
172
- <option value="customer">Note to customer</option>
173
- </select>
174
- <span class="app-icon" aria-hidden="true">expand_more</span>
175
- </div>
171
+ <div role="radiogroup" aria-label="Who can read this" class="app-seg">
172
+ <button type="button" role="radio" aria-checked="true" class="app-seg__item app-state is-selected">Reply</button>
173
+ <button type="button" role="radio" aria-checked="false" class="app-seg__item app-state"><span class="app-icon" aria-hidden="true">lock</span>Private note</button>
176
174
  </div>
177
- <p id="recipient-internal" class="text-meta">Only your team</p>
175
+ <p id="audience-reply" class="text-meta">To Thandi Mokoena and 1 other</p>
178
176
  </div>
179
- <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>
177
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="2" aria-label="Write a reply" aria-describedby="audience-reply" placeholder="Write a reply">The fix is ready for you to try.</textarea></div>
180
178
  <div class="app-composer__row">
181
179
  <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>
182
180
  <span class="app-composer__spacer"></span>
183
- <button type="button" class="app-composer__go app-state app-target" aria-label="Send internal note" title="Send internal note"><span class="app-icon-swap" aria-hidden="true"><span class="app-icon">arrow_upward</span><span class="app-icon">stop</span></span></button>
181
+ <button type="button" class="app-composer__go app-state app-target" aria-label="Send reply" title="Send reply"><span class="app-icon" aria-hidden="true">arrow_upward</span></button>
184
182
  </div>
185
183
  </div>
186
184
  </div>
187
185
 
188
- <!-- Note to customer: the recipient remains visible while writing -->
189
- <div class="app-composer">
186
+ <!-- A private note: quieter, with its lock; a portal's new draft starts here -->
187
+ <div class="app-composer is-note">
190
188
  <div class="app-composer__box">
191
189
  <div class="app-composer__audience">
192
- <div class="app-field">
193
- <label for="audience-customer" class="app-field__label text-label">Message visibility</label>
194
- <div class="app-field__box app-field__box--select">
195
- <select id="audience-customer" class="app-field__select" aria-describedby="recipient-customer">
196
- <option value="internal">Internal note</option>
197
- <option value="customer" selected>Note to customer</option>
198
- </select>
199
- <span class="app-icon" aria-hidden="true">expand_more</span>
200
- </div>
190
+ <div role="radiogroup" aria-label="Who can read this" class="app-seg">
191
+ <button type="button" role="radio" aria-checked="false" class="app-seg__item app-state">Reply</button>
192
+ <button type="button" role="radio" aria-checked="true" class="app-seg__item app-state is-selected"><span class="app-icon app-icon--filled" aria-hidden="true">lock</span>Private note</button>
201
193
  </div>
202
- <p id="recipient-customer" class="text-meta">To Thandi Mokoena</p>
194
+ <p id="audience-note" class="text-meta">Only the team helping Thandi</p>
203
195
  </div>
204
- <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>
196
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="2" aria-label="Write a private note" aria-describedby="audience-note" placeholder="Write a private note">Check the failed request before replying.</textarea></div>
205
197
  <div class="app-composer__row">
206
198
  <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>
207
199
  <span class="app-composer__spacer"></span>
208
- <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>
200
+ <button type="button" class="app-composer__go app-state app-target" aria-label="Add private note" title="Add private note"><span class="app-icon-swap" aria-hidden="true"><span class="app-icon">arrow_upward</span><span class="app-icon">stop</span></span></button>
209
201
  </div>
210
202
  </div>
211
203
  </div>
@@ -373,4 +365,4 @@ Select text on a screen with a dock and **Ask Alis** appears by the selection (`
373
365
 
374
366
  ## Classes
375
367
 
376
- `.app-composer`, `.app-icon-swap`, `.is-swapped`, `.app-composer__audience`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__go-label`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__capture`, `.is-paused`, `.app-composer__capture-label`, `.app-capture-thumb`, `.is-empty`, `.app-capture-peek`, `.app-capture-peek__head`, `.app-capture-peek__title`, `.app-capture-peek__frame`, `.app-capture-peek__note`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, `.app-dock`, `.app-composer__lift`, `.is-settled`, `.app-composer__trace`, `.app-composer__quote`, `.app-composer__quote-text`, `.app-selection-ask`, with `.drop-target` on the drop, `.app-state` on every button, `.app-target` on the icon buttons and the capture bar's buttons, `.app-btn--error` on Stop recording, and `.app-compact-only` on Pause's glyph.
368
+ `.app-composer`, `.app-icon-swap`, `.is-swapped`, `.app-composer__audience`, `.is-note`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__go-label`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__capture`, `.is-paused`, `.app-composer__capture-label`, `.app-capture-thumb`, `.is-empty`, `.app-capture-peek`, `.app-capture-peek__head`, `.app-capture-peek__title`, `.app-capture-peek__frame`, `.app-capture-peek__note`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, `.app-dock`, `.app-composer__lift`, `.is-settled`, `.app-composer__trace`, `.app-composer__quote`, `.app-composer__quote-text`, `.app-selection-ask`, with `.drop-target` on the drop, `.app-state` on every button, `.app-target` on the icon buttons and the capture bar's buttons, `.app-btn--error` on Stop recording, and `.app-compact-only` on Pause's glyph.
@@ -67,22 +67,22 @@ Alis is never typing or seen: the phases already say what Alis is doing.
67
67
 
68
68
  ## Message audience
69
69
 
70
- In the responder's view of a conversation that mixes team and customer messages,
71
- show a separate `.app-turn__audience` meta line **under the author and time** and
72
- above the content: `lock` **Internal** or `outgoing_mail` **External**. The icon
73
- is decorative; the word carries the meaning. Keep it in `on-surface-variant`,
74
- never a coloured bubble or a bracketed prefix in the message body.
70
+ In the helpers' view of a conversation that holds private notes, a private note
71
+ carries a `.app-turn__audience` meta line **under the author and time** and above
72
+ the content: `lock` **Private note**. A reply carries none: everyone in the
73
+ conversation reads it, which is the usual case, so only the exception is marked.
74
+ The icon is decorative; the words carry the meaning. Keep it in
75
+ `on-surface-variant`, never a coloured bubble or a bracketed prefix in the body.
75
76
 
76
77
  - Record the audience from the sent message, not the current composer's choice.
77
- Every message keeps its annotation, including consecutive messages from the
78
- same person. If grouping suppresses the author line, keep the audience line.
79
- - **Internal** means only authorised team members. **External** means visible
80
- to the customer, including messages the customer sent. The customer's own
81
- portal has no internal messages, counts, snippets, attachments or audience
82
- annotations; filter these on the server, not by hiding DOM elements.
83
- - A failed submitted turn keeps that same annotation and its captured recipient.
84
- Try again resends the same message, never the current draft. A terminal uses
85
- the same **Internal / External** words beneath its author/time metadata.
78
+ Every note keeps its line, including consecutive notes from the same person. If
79
+ grouping suppresses the author line, keep the audience line.
80
+ - The side of the person who asked has no private notes, counts, snippets,
81
+ attachments or annotations of them; filter these on the server, not by hiding
82
+ DOM elements.
83
+ - A failed note keeps its line and its captured audience. Try again resends the
84
+ same message, never the current draft. A terminal uses the same **Private note**
85
+ words beneath its author/time metadata, and nothing on a reply.
86
86
 
87
87
  ## A request
88
88
 
@@ -174,16 +174,15 @@ Northwind 120 —</pre></li>
174
174
  <div class="app-turn__who"><span class="app-turn__avatar" aria-hidden="true">TM</span><span class="text-label">Thandi Mokoena</span><span class="text-meta">Build specialist · 09:20</span></div>
175
175
  <div class="app-turn__row"><div class="app-turn__bubble">I've got it. I'll split the index into its own step.</div></div>
176
176
  </div>
177
- <!-- Message audiences: responder view only -->
177
+ <!-- Message audiences: the helpers' view only; a reply carries no line -->
178
178
  <div class="app-thread">
179
179
  <div class="app-turn app-turn--them">
180
- <div class="app-turn__who"><span class="app-turn__avatar" aria-hidden="true">TM</span><span class="text-label">Thandi Mokoena</span><span class="text-meta">09:20</span></div>
181
- <p class="app-turn__audience text-meta"><span class="app-icon" aria-hidden="true">lock</span>Internal</p>
180
+ <div class="app-turn__who"><span class="app-turn__avatar" aria-hidden="true">JK</span><span class="text-label">Jan Krynauw</span><span class="text-meta">09:20</span></div>
181
+ <p class="app-turn__audience text-meta"><span class="app-icon" aria-hidden="true">lock</span>Private note</p>
182
182
  <div class="app-turn__row"><div class="app-turn__bubble">The upload completed; processing still needs checking.</div></div>
183
183
  </div>
184
184
  <div class="app-turn app-turn--you">
185
185
  <div class="app-turn__who"><span class="text-label">You</span><span class="text-meta">09:22</span></div>
186
- <p class="app-turn__audience text-meta"><span class="app-icon" aria-hidden="true">outgoing_mail</span>External</p>
187
186
  <div class="app-turn__row"><div class="app-turn__bubble">Your file is ready. Could you try again?</div></div>
188
187
  <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>
189
188
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.81.0",
3
+ "version": "0.82.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/words.json CHANGED
@@ -261,6 +261,22 @@
261
261
  "retired": ["support ticket", "support tickets"],
262
262
  "avoid": ["ticket (on screen)"]
263
263
  },
264
+ {
265
+ "name": "reply",
266
+ "plural": "replies",
267
+ "product": "all",
268
+ "means": "A message everyone in a conversation reads: the person who asked and anyone on it with them. The one choice beside a private note when you are helping (AppComposer § Message audience).",
269
+ "retired": ["reply to customer", "note to customer"],
270
+ "avoid": ["external (for a message)", "customer (for the person who asked, outside a portal)"]
271
+ },
272
+ {
273
+ "name": "private note",
274
+ "plural": "private notes",
275
+ "product": "all",
276
+ "means": "A message only the team helping in a conversation reads, never the person who asked or anyone on it with them. Marked with a lock and its name in the thread.",
277
+ "retired": ["internal note", "internal notes"],
278
+ "avoid": ["internal (for a message)", "note (for anything the person who asked reads)"]
279
+ },
264
280
  {
265
281
  "name": "file",
266
282
  "plural": "files",