@alis-build/design-system 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alisx.css +14 -2
- package/components/AppAsk.md +79 -8
- package/components/AppAttachment.md +11 -1
- package/components/AppComposer.md +4 -3
- package/components/AppTitleBar.md +1 -1
- package/components/AppTurn.md +56 -3
- package/components/README.md +3 -3
- package/package.json +1 -1
- package/rules/buttons.md +1 -1
- package/rules/chips-alerts.md +5 -0
- package/rules/known-gaps.md +1 -0
- package/rules/page.md +14 -4
- package/rules/quick-start.md +1 -1
package/alisx.css
CHANGED
|
@@ -418,10 +418,10 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
418
418
|
/* The filter row sits in .app-shell__content, which already pads the sides */
|
|
419
419
|
.app-filterrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
|
|
420
420
|
/* Search leads the row; the controls follow it; the count closes the row and answers them */
|
|
421
|
-
.app-filterrow__search{flex:
|
|
421
|
+
.app-filterrow__search{flex:1 1 200px;min-width:200px;max-width:360px}
|
|
422
422
|
.app-filterrow__summary{order:1;margin:0 0 0 auto;color:var(--on-surface-variant);font-variant-numeric:tabular-nums}
|
|
423
423
|
.app-filterrow__controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);min-width:0;max-width:100%}
|
|
424
|
-
@media (max-width:599px){.app-filterrow__search{flex-basis:100
|
|
424
|
+
@media (max-width:599px){.app-filterrow__search{flex-basis:100%;max-width:none}}
|
|
425
425
|
.app-filterrow__controls>.app-seg{max-width:100%;overflow-x:auto;scrollbar-width:none}
|
|
426
426
|
|
|
427
427
|
/* ── Dialog · white at level 3, text actions, affirmative last ── */
|
|
@@ -666,6 +666,8 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
666
666
|
.app-attachment--image>img,.app-attachment--image>svg{display:block;width:100%;height:100%;object-fit:cover}
|
|
667
667
|
.app-attachment--image .app-icon-btn{position:absolute;top:var(--space-4);right:var(--space-4);background:var(--surface);color:var(--on-surface)}
|
|
668
668
|
.app-attachment--message{width:100%;height:auto;min-height:56px}
|
|
669
|
+
a.app-attachment{color:inherit;text-decoration:none}
|
|
670
|
+
.app-attachment__external{flex:none;font-size:16px;color:var(--on-surface-variant)}
|
|
669
671
|
|
|
670
672
|
/* ── Voice view · a live call given the content area (focus) or the whole screen (phone) ── */
|
|
671
673
|
.app-voice{position:relative;display:flex;flex-direction:column;gap:var(--space-24);height:100%;min-height:0;padding:var(--space-16) var(--space-24) var(--space-32);background:var(--background);overflow:hidden}
|
|
@@ -764,12 +766,22 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
764
766
|
.app-ask__option.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
|
|
765
767
|
.app-ask__option.is-selected .app-ask__key{background:var(--on-secondary-container);color:var(--secondary-container)}
|
|
766
768
|
.app-ask__option.is-selected .app-ask__option-text .text-supporting{color:inherit}
|
|
769
|
+
.app-ask__line{display:flex;align-items:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant)}
|
|
770
|
+
.app-ask__line .app-icon{font-size:16px}
|
|
771
|
+
.app-ask__line.is-error{color:var(--error)}
|
|
767
772
|
.app-ask__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--space-8)}
|
|
768
773
|
.app-ask__actions .app-btn--quiet{margin-right:auto}
|
|
769
774
|
@media (max-width:599px){.app-ask__actions{flex-direction:column-reverse;align-items:stretch}.app-ask__actions .app-btn--quiet{margin-right:0}}
|
|
770
775
|
.app-composer__go--plain{background:transparent;color:var(--on-surface-variant)}
|
|
771
776
|
.app-turn__record{display:flex;align-items:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant)}
|
|
772
777
|
.app-turn__record .app-icon{font-size:16px}
|
|
778
|
+
.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}
|
|
779
|
+
.app-thread__event .app-icon{font-size:16px}
|
|
780
|
+
.app-thread__typing{margin:0;color:var(--on-surface-variant)}
|
|
781
|
+
.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}
|
|
782
|
+
.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}
|
|
783
|
+
.app-turn__request{display:flex;align-items:center;gap:var(--space-8);margin-bottom:var(--space-4);white-space:normal}
|
|
784
|
+
.app-turn__request .app-icon{font-size:20px;color:var(--on-surface-variant)}
|
|
773
785
|
|
|
774
786
|
/* ── Count · how many asks are waiting, on a rail row ── */
|
|
775
787
|
.app-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--radius-pill);background:var(--error);color:var(--on-error);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:600;font-variant-numeric:tabular-nums}
|
package/components/AppAsk.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# AppAsk
|
|
2
2
|
|
|
3
|
-
When
|
|
3
|
+
When someone needs a decision from you: Alis, or a person in the conversation. An approval, a choice or a connection that stops them until you answer. **Their turn says what they need and shows what you have to judge; the decision docks on [AppComposer](AppComposer.md); the answer settles into the thread ([AppTurn](AppTurn.md)).**
|
|
4
|
+
|
|
5
|
+
One component whoever asks. **The band is the same** (its parts, its buttons, its keys); **the lifecycle belongs to whoever asks** (§ Who asks). Most of this page is written for Alis.
|
|
4
6
|
|
|
5
7
|
## Use / don't use
|
|
6
8
|
|
|
7
9
|
- **Anything that blocks Alis on you**: run a command, deploy, delete, send to people, connect an account, pick between ways forward.
|
|
10
|
+
- **A person's request that you can decide**: a new product, access to an organisation, an organisation set up for them.
|
|
11
|
+
- **Something only your machine can produce, when a person asks for it**: an agent session, a diagnostics snapshot.
|
|
8
12
|
- **Not an open question.** When any words will do ("What should Priya hear first?"), there is no ask: her head reads *Waiting for you* and the composer's placeholder reads *Answer Alis*.
|
|
9
13
|
- **Not for what you start yourself.** A confirmation of your own act is an [AppDialog](AppDialog.md) ([page.md](../rules/page.md) § Confirm).
|
|
10
14
|
- **Never in the thread, never a dialog.** The thread holds her reasoning and anything you have to judge (the draft, the plan, the diff); the composer holds the decision, where your hands are. It can't scroll away, and there is one place to type.
|
|
@@ -16,11 +20,12 @@ A band at the top of the composer's surface, above the editor, divided from it b
|
|
|
16
20
|
| Part | What it holds |
|
|
17
21
|
|---|---|
|
|
18
22
|
| **Title** | The act as a question, in object-title: "Deploy v1.43.0 to staging?", "Delete the Q2 interviews?". A command or path inside it is `.text-mono` |
|
|
19
|
-
| **Pager** (several questions) | "1 of 3" in meta between previous and next icon buttons |
|
|
23
|
+
| **Pager** (several questions or asks) | "1 of 3" in meta between previous and next icon buttons |
|
|
20
24
|
| **Body** (when it needs one) | What goes with the act, in supporting: what it replaces, who loses access, "This can't be undone." |
|
|
21
25
|
| **Grants** (connect) | What Alis will be able to do, one plain line each with a `check`; then a meta note: where you'll sign in, how to disconnect |
|
|
22
26
|
| **Options** (choose) | Rows: a number key (24px, `surface-container-low`), a label, and a supporting line if it needs one. Never chips |
|
|
23
|
-
| **
|
|
27
|
+
| **Line** (only when it has something to say) | One meta line above the actions (`.app-ask__line`): a decision that failed, in `error` ("Couldn't record the decision. Try again."), or one someone else made, in ink ("Granted by Jan Krynauw") |
|
|
28
|
+
| **Actions** | Right-aligned: Not now or Decline (text), a wider scope if the product offers one (text), then the filled action named by its outcome. Skip (`quiet`, leading) on a run of Alis's questions |
|
|
24
29
|
|
|
25
30
|
## The kinds
|
|
26
31
|
|
|
@@ -32,17 +37,43 @@ A band at the top of the composer's surface, above the editor, divided from it b
|
|
|
32
37
|
| **Choose several** | Toggle options (the fill and a `check` in the key), then send | Counts what it sends: "Send 2 regions" |
|
|
33
38
|
| **Connect** | The filled action opens the provider's sign-in, then returns | "Connect Google Drive" |
|
|
34
39
|
| **Several questions** | Paged "1 of 3"; answering one moves to the next; Skip lets Alis decide | As the question's kind |
|
|
40
|
+
| **Produce it** (a person asks you for something only your machine has) | Run what the body says; the ask closes when it arrives in the thread. Not now says no | none: the action copies the command, and copying commits nothing |
|
|
35
41
|
|
|
36
42
|
- **Once by default.** The filled action allows this act once. The product may offer **one** wider scope as a text button, named exactly ("Allow git for this session"): never preselected, never on an ask that destroys or reaches people. What you've allowed is listed where the conversation's settings live, with a way to take it back.
|
|
37
|
-
- **
|
|
43
|
+
- **When Alis asks, something else is the editor**, never an extra option: its placeholder reads *Or tell Alis something else*. Whatever you send is your answer, in your own words, and closes her ask. When a person asks, what you send is a reply and the ask stays (§ Who asks). Nothing you've typed is ever overwritten. Typing `/` or `@` docks the suggestions between the ask and the editor ([AppMenu](AppMenu.md)).
|
|
38
44
|
- **The ask holds the one filled action.** While it's open the composer's button goes plain (`.app-composer__go--plain`); type, and Send fills while the ask's action steps down to outlined ([buttons.md](../rules/buttons.md)).
|
|
39
45
|
|
|
46
|
+
## Who asks
|
|
47
|
+
|
|
48
|
+
| | Alis | A person |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| **Their turn** | Her reasoning and what you judge; her head reads *Waiting for you* | The request, with its state line ([AppTurn](AppTurn.md) § A request) |
|
|
51
|
+
| **Who sees the ask** | You | Everyone who can decide, never the requester. When the product can't tell, everyone but the requester, and a refusal is the band's line |
|
|
52
|
+
| **When it arrives** | At the end of her turn; focus moves to the band | At any moment, so it docks **without moving focus** and is announced politely |
|
|
53
|
+
| **The title** | The act: "Deploy v1.43.0 to staging?" | The person and the act: "Give Martha Mukama builder access to inovar?" |
|
|
54
|
+
| **What you send** | Your answer; it closes the ask. Placeholder *Or tell Alis something else* | A reply; the ask stays. Placeholder *Reply to Martha* |
|
|
55
|
+
| **Saying no** | Not now | Decline, with a reason they read. Not now when they ask you to produce something: no reason |
|
|
56
|
+
| **It closes on** | Any answer | A decision, by anyone who can make it, or what you produced arriving |
|
|
57
|
+
| **It lapses** | When the product gives it a time | Never, unless the product gives it a time |
|
|
58
|
+
| **The outcome** | Your turn: a bubble, or a record line | Their request's state line, naming who decided. No record turn |
|
|
59
|
+
| **Skip** | On a run of her questions | Never |
|
|
60
|
+
|
|
61
|
+
- **Decline asks for a reason**, because the requester reads it. Decline opens a field in the band, "Reason for Martha", and the actions become Back (text) and Decline (filled: nothing is destroyed, so not `error`). Focus moves to the field; Back returns it to Decline. An empty reason is an error at the field, which takes focus ([page.md](../rules/page.md) § Forms).
|
|
62
|
+
- **One value at most** when the decision needs one (the organisation id when you set one up): an [AppTextField](AppTextField.md) above the actions, filled with what they suggested.
|
|
63
|
+
- **Produce it**: the body says how, with the command in mono, and the action copies it (text). When it arrives in the thread as an [AppAttachment](AppAttachment.md) the ask closes and their request reads "Shared by Martha". Not now closes it, and the request reads "Not shared by Martha".
|
|
64
|
+
- **Someone else decides first**: the band shows it on its line for a moment ("Granted by Jan Krynauw"), then closes. A reason you had started moves into the editor, so nothing you typed is lost.
|
|
65
|
+
- **A decision that fails** stays in the band: its line in `error` says what happened, and the actions stay.
|
|
66
|
+
- **Several open asks share one band**, oldest first, paged "1 of 2". With Alis's ask and a person's open together, what you send answers only hers.
|
|
67
|
+
- **A resolved conversation** keeps its open requests waiting; their ask docks again only if the conversation reopens.
|
|
68
|
+
- **The requester** sees their own request on the right, with the same live state line. They can't withdraw it.
|
|
69
|
+
- **Needs you** counts the open asks you can decide, Alis's and people's alike, and the row's second line is the ask's title (below). The requester's row adds nothing.
|
|
70
|
+
|
|
40
71
|
## While she waits, and after
|
|
41
72
|
|
|
42
73
|
- **Her turn's head** reads *Waiting for you*, the mark still: she isn't working. An ask that expires says when: *Waiting for you · until 15:30*.
|
|
43
74
|
- **Your answer is your turn**, on the right ([AppTurn](AppTurn.md)): a choice reads as your bubble ("25, high confidence"); an approval is a record line in meta, "Allowed: Deploy v1.43.0 to staging" with `check`, or "Not now: …" with `block`; words you typed are your bubble, with no record.
|
|
44
75
|
- **An ask that lapses** is recorded in her turn, in ink, with `schedule`: "No answer by 15:30, so Alis didn't delete them." Nothing failed, so nothing is red.
|
|
45
|
-
- **Seen from elsewhere**, the conversation *Needs you*: a status `warning` chip "Needs you" on its row, its second line
|
|
76
|
+
- **Seen from elsewhere**, the conversation *Needs you*: a status `warning` chip "Needs you" on its row, its second line the ask's title word for word; a row in Home's Needs you, whose Answer opens the conversation with the ask on the composer (it never answers from the list); `.app-count` on the rail destination, counting asks ([AppListRow](AppListRow.md)); and "(1) " before the tab's title.
|
|
46
77
|
|
|
47
78
|
## Markup
|
|
48
79
|
|
|
@@ -114,19 +145,59 @@ A band at the top of the composer's surface, above the editor, divided from it b
|
|
|
114
145
|
</div>
|
|
115
146
|
</div>
|
|
116
147
|
|
|
148
|
+
<!-- A person asks: on the composer of whoever can decide -->
|
|
149
|
+
<div class="app-ask" role="group" aria-labelledby="ask-11">
|
|
150
|
+
<div class="app-ask__head"><h3 class="app-ask__title text-object-title" id="ask-11">Give Martha Mukama builder access to inovar?</h3></div>
|
|
151
|
+
<p class="app-ask__body text-supporting">Martha will be able to build in inovar's products as martha.mukama@inovar-solutions.co.</p>
|
|
152
|
+
<div class="app-ask__actions">
|
|
153
|
+
<button type="button" class="app-btn app-state">Decline</button>
|
|
154
|
+
<button type="button" class="app-btn app-btn--filled app-state">Grant access</button>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
<!-- with the placeholder "Reply to Martha" on the editor -->
|
|
158
|
+
|
|
159
|
+
<!-- Declining: the reason the requester reads; focus is in the field -->
|
|
160
|
+
<div class="app-ask" role="group" aria-labelledby="ask-12">
|
|
161
|
+
<div class="app-ask__head"><h3 class="app-ask__title text-object-title" id="ask-12">Give Martha Mukama builder access to inovar?</h3></div>
|
|
162
|
+
<div class="app-field">
|
|
163
|
+
<label for="ask-12-reason" class="app-field__label text-label">Reason for Martha</label>
|
|
164
|
+
<div class="app-field__box"><input id="ask-12-reason" class="app-field__input"></div>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="app-ask__actions">
|
|
167
|
+
<button type="button" class="app-btn app-state">Back</button>
|
|
168
|
+
<button type="button" class="app-btn app-btn--filled app-state">Decline</button>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<!-- Produce it: a person asks you; the action copies the command -->
|
|
173
|
+
<div class="app-ask" role="group" aria-labelledby="ask-13">
|
|
174
|
+
<div class="app-ask__head"><h3 class="app-ask__title text-object-title" id="ask-13">Share your agent session with Jan?</h3></div>
|
|
175
|
+
<p class="app-ask__body text-supporting">Run <span class="text-mono">alis specialist send-session</span> in the project you were working in. It arrives here.</p>
|
|
176
|
+
<div class="app-ask__actions">
|
|
177
|
+
<button type="button" class="app-btn app-state">Not now</button>
|
|
178
|
+
<button type="button" class="app-btn app-state">Copy command</button>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
<!-- The band's line: someone else decided, or a decision failed -->
|
|
183
|
+
<p class="app-ask__line text-meta"><span class="app-icon" aria-hidden="true">check</span>Granted by Jan Krynauw</p>
|
|
184
|
+
<p class="app-ask__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Couldn't record the decision. Try again.</p>
|
|
185
|
+
|
|
117
186
|
<!-- On a rail row: the asks waiting there -->
|
|
118
187
|
<span class="app-row__trailing"><span class="app-count" aria-label="2 need you">2</span></span>
|
|
119
188
|
```
|
|
120
189
|
|
|
121
190
|
## Behaviour you must supply
|
|
122
191
|
|
|
123
|
-
- **Open and close** the band with the ask
|
|
192
|
+
- **Open and close** the band with the ask. Alis's ask takes focus (its first option, or its filled action); a person's docks without moving it and is announced through a polite live region. Return focus to the editor when it closes.
|
|
124
193
|
- **The lead**: `.app-composer__go--plain` on the composer's button while the editor is empty; when it has text, drop it (Send fills) and swap the ask's `app-btn--filled` for `app-btn--outlined`.
|
|
125
|
-
- **Keyboard**, on the band only (never a window listener): the number keys pick an option while focus is in the band, not in the editor; Enter on a focused option answers it; Escape moves focus to the editor without answering. Enter in the editor sends your words
|
|
194
|
+
- **Keyboard**, on the band only (never a window listener): the number keys pick an option while focus is in the band, not in the editor; Enter on a focused option answers it; Escape moves focus to the editor without answering. Enter in the editor sends your words: Alis's answer, or a reply to a person.
|
|
126
195
|
- **Several questions**: answering moves to the next; previous and next page without answering; Skip answers "let Alis decide".
|
|
127
196
|
- **After**: write the record into the thread (your bubble for a choice or words, `.app-turn__record` for an approval) and the head moves on from *Waiting for you*.
|
|
197
|
+
- **A person's request**: show the ask to everyone who can decide; keep it docked while they type replies; Decline swaps the actions for the reason field and Back, moving focus as § Who asks says; when someone else decides, show it on the line, move any started reason into the editor, then close; on a failure, keep the band and its actions with the line in `error`; write the outcome to the request's state line, not a record turn.
|
|
198
|
+
- **Several asks**: one band, oldest first, paged; answering one shows the next.
|
|
128
199
|
- **Surfacing**: while an ask is open, the conversation's row shows the chip, Home lists it, the rail counts it, and the tab title starts "(n) ". Remove all of them when it closes or lapses.
|
|
129
200
|
|
|
130
201
|
## Classes
|
|
131
202
|
|
|
132
|
-
`.app-ask`, `.app-ask__head`, `.app-ask__title`, `.app-ask__page`, `.app-ask__body`, `.app-ask__grants`, `.app-ask__note`, `.app-ask__options`, `.app-ask__option`, `.is-selected`, `.app-ask__key`, `.app-ask__option-text`, `.app-ask__actions`; `.app-composer__go--plain`; `.app-turn__record`; `.app-count`; with `.app-btn`, `.app-icon-btn` and `.app-state` on the buttons.
|
|
203
|
+
`.app-ask`, `.app-ask__head`, `.app-ask__title`, `.app-ask__page`, `.app-ask__body`, `.app-ask__grants`, `.app-ask__note`, `.app-ask__options`, `.app-ask__option`, `.is-selected`, `.app-ask__key`, `.app-ask__option-text`, `.app-ask__line`, `.is-error`, `.app-ask__actions`; `.app-composer__go--plain`; `.app-turn__record`; `.app-count`; with `.app-btn`, `.app-icon-btn` and `.app-state` on the buttons.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppAttachment
|
|
2
2
|
|
|
3
|
-
A file, recording or queued message waiting in the composer's tray, and the same tile in the message once it's sent.
|
|
3
|
+
A file, recording or queued message waiting in the composer's tray, and the same tile in the message once it's sent. **A thing shared into the conversation** (a meeting, its notes, an interview, diagnostics, a skill, an issue, an agent session) is the same tile.
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
@@ -9,6 +9,8 @@ A file, recording or queued message waiting in the composer's tray, and the same
|
|
|
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
10
|
- **An image shows itself**: 56 square, the picture, remove on top.
|
|
11
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).
|
|
12
|
+
- **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
|
+
- **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.
|
|
12
14
|
- **A queued message** (`app-attachment--message`) takes the tray's full width: `schedule`, the text, "Sends when Alis finishes", edit and remove.
|
|
13
15
|
|
|
14
16
|
## Markup
|
|
@@ -43,6 +45,14 @@ A file, recording or queued message waiting in the composer's tray, and the same
|
|
|
43
45
|
<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>
|
|
44
46
|
</div>
|
|
45
47
|
|
|
48
|
+
<!-- A thing: the whole tile opens it -->
|
|
49
|
+
<a class="app-attachment app-state" href="…" target="_blank" rel="noopener noreferrer" aria-label="Call with Jan, Google Meet, opens in a new tab">
|
|
50
|
+
<span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">videocam</span></span>
|
|
51
|
+
<span class="app-attachment__text"><span class="text-label">Call with Jan</span><span class="text-meta">Google Meet · recording</span></span>
|
|
52
|
+
<span class="app-icon app-attachment__external" aria-hidden="true">open_in_new</span>
|
|
53
|
+
</a>
|
|
54
|
+
<!-- Inside the product: no target, no open_in_new -->
|
|
55
|
+
|
|
46
56
|
<!-- A queued message -->
|
|
47
57
|
<div class="app-attachment app-attachment--message">
|
|
48
58
|
<span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">schedule</span></span>
|
|
@@ -12,7 +12,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
|
|
|
12
12
|
|
|
13
13
|
| Band | What it holds | Who decides |
|
|
14
14
|
|---|---|---|
|
|
15
|
-
| **Ask** (top, only while Alis is waiting on you) | The decision
|
|
15
|
+
| **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 |
|
|
16
16
|
| **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 |
|
|
17
17
|
| **Editor** | Body type, 16/24. Grows to eight lines, then scrolls inside itself. The placeholder says what to write | The product writes the placeholder |
|
|
18
18
|
| **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 |
|
|
@@ -39,8 +39,9 @@ Where you write to Alis, an agent or a person. One floating surface with three b
|
|
|
39
39
|
| Recording a voice note | `arrow_upward` "Send voice note" | the row is the recording bar | Hidden: the note is the message |
|
|
40
40
|
| In a call | `call_end` "End voice" | the row is the call bar | Live, for anything you'd rather type |
|
|
41
41
|
| In a call, with text | `arrow_upward` "Send" | `call_end` "End voice" | Live |
|
|
42
|
-
| Alis is waiting on an [AppAsk](AppAsk.md) | As empty, but plain (`.app-composer__go--plain`): the ask holds the filled action | none | Placeholder *Or tell Alis something else* |
|
|
43
|
-
| Waiting on
|
|
42
|
+
| Alis or a person is waiting on an [AppAsk](AppAsk.md) | As empty, but plain (`.app-composer__go--plain`): the ask holds the filled action | none | Placeholder *Or tell Alis something else*, or *Reply to Martha* when a person asks |
|
|
43
|
+
| Waiting on Alis's ask, with text | `arrow_upward` "Send", filled; the ask's action steps down to outlined | none | Live: what you send is your answer, and closes her ask |
|
|
44
|
+
| Waiting on a person's ask, with text | `arrow_upward` "Send", filled; the ask's action steps down to outlined | none | Live: what you send is a reply; the ask stays |
|
|
44
45
|
| Locked | none | none | Dimmed; the line says why |
|
|
45
46
|
|
|
46
47
|
**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.
|
|
@@ -15,7 +15,7 @@ See [page.md](../rules/page.md).
|
|
|
15
15
|
- **The filter row** is the first thing in `.app-shell__content` (which pads it), one row that narrows the list: search first, then the filters, then the count at the far end ("12 interviews", "3 of 12" while something narrows). Below 600px, search takes the whole first line.
|
|
16
16
|
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
|
17
17
|
|
|
18
|
-
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and
|
|
18
|
+
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. The pane pads it; add nothing.
|
|
19
19
|
|
|
20
20
|
## Markup
|
|
21
21
|
|
package/components/AppTurn.md
CHANGED
|
@@ -12,10 +12,11 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
|
|
|
12
12
|
|
|
13
13
|
| Turn | How it reads | Class |
|
|
14
14
|
|---|---|---|
|
|
15
|
-
| **You** | A bubble on the right: `surface-container-low`, `radius-lg` (16, the tiles' corner), at most 80% of the measure (85% on a phone). Your words as written, line breaks kept
|
|
15
|
+
| **You** | A bubble on the right: `surface-container-low`, `radius-lg` (16, the tiles' corner), at most 80% of the measure (85% on a phone). Your words as written, line breaks kept (markdown: below); a mention or a command stays the token it was in the composer, and opens what it names ([AppMenu](AppMenu.md)). No avatar, no name | `.app-turn--you` |
|
|
16
16
|
| **Alis** | Prose at the full measure, on the ground. Her latest turn opens with the mark ([colour.md](../rules/colour.md) § `signal`) | `.app-turn--alis` |
|
|
17
17
|
| **Anyone else** | A bubble on the left, same fill and corner, under a who-line | `.app-turn--them` |
|
|
18
18
|
|
|
19
|
+
- **Markdown in a bubble.** With Alis, your words stay as written and markdown isn't rendered. In a conversation with people, where messages also arrive from the CLI and from agents, every bubble renders its markdown: `.prose` on the bubble keeps body type, and headings step down to body size at 600, so lists, code and links read and nothing outgrows the bubble.
|
|
19
20
|
- **The who-line** appears only when someone besides you and Alis is in the thread, and opens each run of turns by anyone but you: a 24px avatar (a photo, else initials), the name in label, then role and time in meta. **Alis's avatar is the mark**, so in a group thread it marks each of her runs. Two bubbles in one run sit 8 apart under one who-line.
|
|
20
21
|
- **The mark is where Alis is now.** In a one-to-one it stands only at the top of her latest turn, 20px, in the turn's head: animated while she thinks, still once she writes, and it moves on to her next turn. Earlier turns carry none: a column of red marks stops meaning *Alis is on it*. In a group thread the who-line carries it instead.
|
|
21
22
|
|
|
@@ -43,9 +44,42 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
|
|
|
43
44
|
|
|
44
45
|
## What you send
|
|
45
46
|
|
|
46
|
-
- **Files** keep their [AppAttachment](AppAttachment.md) tile from the tray, without remove, stacked right above your bubble; the tile opens the
|
|
47
|
+
- **Files and things** keep their [AppAttachment](AppAttachment.md) tile from the tray, without remove, stacked right above your bubble; the tile opens what it names. A thing shared into the conversation (a meeting, its notes, an interview, diagnostics, a skill, an issue, an agent session) is the same tile, never a card with a button in it. An image shows itself, 240 wide. A file or a thing sent alone is a turn with no bubble.
|
|
47
48
|
- **A voice note** is its own bubble (`.app-voice-note`): play, the waveform (played in `primary`, the rest in `outline`) and the time, then the transcript in body, three lines and Show all. The transcript is what Alis acted on, so a misheard word is in plain sight.
|
|
48
49
|
|
|
50
|
+
## People in the thread
|
|
51
|
+
|
|
52
|
+
When people talk to each other in a thread (a support conversation, a group thread), it says who is here and what has happened, **always in words**, in meta and ink:
|
|
53
|
+
|
|
54
|
+
| State | How it reads |
|
|
55
|
+
|---|---|
|
|
56
|
+
| **A new day** | A centred meta line before its first turn (`.app-thread__event`): "Today", "Yesterday", "Thursday", "2 October" |
|
|
57
|
+
| **Something happened** | The same line with its 16px glyph: "Jan Krynauw took over the conversation", "Newton added Martha", "Resolved by Jan". Never a turn, never coloured |
|
|
58
|
+
| **Seen** | One `.app-turn__record` inside your turn, under the newest of your bubbles anyone has read. With one other person: "Seen". With more: "Seen by Jan", "Seen by Jan and Newton", then "Seen by everyone". On that bubble only, never a tick per bubble, never ✓✓ |
|
|
59
|
+
| **Sending** | Nothing: your bubble appears at once. Only *Didn't send* says anything |
|
|
60
|
+
| **Typing** | One meta line at the end of the thread, where their turn will appear (`.app-thread__typing`): "Jan is typing", "Jan and Newton are typing". No avatar and no who-line, so it never doubles a run's |
|
|
61
|
+
| **Here** | "Here now" in meta after the name, only where the conversation lists its people (its header, its participants). Never on a turn's who-line, where it goes stale. No dot: presence isn't the state of the work |
|
|
62
|
+
|
|
63
|
+
Alis is never typing or seen: her phases already say what she is doing.
|
|
64
|
+
|
|
65
|
+
**One live region speaks for the thread** (`.app-thread__status`, `role="status"`, visually hidden, always present): it announces typing once when it starts, and each change to a request's state. The visible lines are not live regions: inserted and removed, they're announced unreliably.
|
|
66
|
+
|
|
67
|
+
## A request
|
|
68
|
+
|
|
69
|
+
**A person's request is their turn** ([AppAsk](AppAsk.md) § Who asks), on the left for everyone else and on the right for the requester. Their bubble opens with what they ask for (`.app-turn__request`: a 20px glyph naming the kind, and the request in label), then their reason in their own words. Under it, one state line (`.app-turn__line`), kept up to date for everyone in the thread:
|
|
70
|
+
|
|
71
|
+
| State | The line, in ink unless it failed |
|
|
72
|
+
|---|---|
|
|
73
|
+
| Waiting | `schedule` "Waiting for a decision" |
|
|
74
|
+
| Under way | `pending` "Approved by Jan Krynauw · Setting up the product" |
|
|
75
|
+
| Done | `check` "Granted by Jan Krynauw", or what it made: "Ready: open acme to start building" |
|
|
76
|
+
| Declined | `block` "Declined by Jan Krynauw: use the existing shared product". Nothing failed, so nothing is red |
|
|
77
|
+
| Failed | `error`, `is-error`: "Couldn't set it up: the quota is used", with Try again for whoever decided |
|
|
78
|
+
| Waiting on them | When you asked them to produce something: `schedule` "Waiting for Martha" |
|
|
79
|
+
| Shared, or not | `check` "Shared by Martha", or `block` "Not shared by Martha" |
|
|
80
|
+
|
|
81
|
+
This line is the request's state in the thread. **On a list row** the same state is a chip ([chips-alerts.md](../rules/chips-alerts.md) § States of a thing): waiting is a label with `schedule`, under way `info`, done `success`, declined a label with `cancel`, failed `error`.
|
|
82
|
+
|
|
49
83
|
## When she asks
|
|
50
84
|
|
|
51
85
|
The decision docks on the composer ([AppAsk](AppAsk.md)); the answer is your turn:
|
|
@@ -135,6 +169,24 @@ Northwind 120 —</pre></li>
|
|
|
135
169
|
</div>
|
|
136
170
|
</div>
|
|
137
171
|
|
|
172
|
+
<!-- People in the thread -->
|
|
173
|
+
<p class="app-thread__event text-meta">Today</p>
|
|
174
|
+
<p class="app-thread__event text-meta"><span class="app-icon" aria-hidden="true">swap_horiz</span>Jan Krynauw took over the conversation</p>
|
|
175
|
+
<div class="app-turn app-turn--you">
|
|
176
|
+
<div class="app-turn__row"><div class="app-turn__bubble">Updated, and it runs. Thanks.</div></div>
|
|
177
|
+
<p class="app-turn__record text-meta">Seen</p>
|
|
178
|
+
</div>
|
|
179
|
+
<p class="app-thread__typing text-meta">Jan is typing</p>
|
|
180
|
+
<!-- once per thread, always present; the product writes what to announce -->
|
|
181
|
+
<p class="app-thread__status" role="status">Jan is typing</p>
|
|
182
|
+
|
|
183
|
+
<!-- A request: their turn, and its state line -->
|
|
184
|
+
<div class="app-turn app-turn--them">
|
|
185
|
+
<div class="app-turn__who"><span class="app-turn__avatar" aria-hidden="true">MM</span><span class="text-label">Martha Mukama</span><span class="text-meta">10:15</span></div>
|
|
186
|
+
<div class="app-turn__row"><div class="app-turn__bubble"><span class="app-turn__request"><span class="app-icon" aria-hidden="true">key</span><span class="text-label">Builder access to inovar</span></span>I would like to access the Skill store please</div></div>
|
|
187
|
+
<p class="app-turn__line text-meta"><span class="app-icon" aria-hidden="true">schedule</span>Waiting for a decision</p>
|
|
188
|
+
</div>
|
|
189
|
+
|
|
138
190
|
<!-- When it goes wrong -->
|
|
139
191
|
<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>
|
|
140
192
|
<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>
|
|
@@ -151,7 +203,8 @@ Northwind 120 —</pre></li>
|
|
|
151
203
|
- **Thumbs**: one at a time; set `aria-pressed`, `is-selected` and `app-icon--filled` on the one given.
|
|
152
204
|
- **On a phone**, a long press on a turn opens its actions as a menu.
|
|
153
205
|
- Keep the thread pinned to the bottom while Alis writes, unless the person has scrolled up.
|
|
206
|
+
- **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.
|
|
154
207
|
|
|
155
208
|
## Classes
|
|
156
209
|
|
|
157
|
-
`.app-thread`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__who`, `.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__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-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 her reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while she thinks.
|
|
210
|
+
`.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__who`, `.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__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 her reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while she thinks.
|
package/components/README.md
CHANGED
|
@@ -29,10 +29,10 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
29
29
|
| AppCard | Statement and instrument surfaces | [AppCard.md](AppCard.md) |
|
|
30
30
|
| AppLattice | Content you read; the transcript and `.prose` | [AppLattice.md](AppLattice.md) |
|
|
31
31
|
| AppComposer | Where you write to Alis, an agent or a person; voice and live calls | [AppComposer.md](AppComposer.md) |
|
|
32
|
-
| AppAttachment | A file or queued message in the composer's tray
|
|
32
|
+
| AppAttachment | A file, a thing shared into the conversation, or a queued message, in the composer's tray and in the sent message | [AppAttachment.md](AppAttachment.md) |
|
|
33
33
|
| AppVoiceView | A live call given the content area, or the screen on a phone | [AppVoiceView.md](AppVoiceView.md) |
|
|
34
|
-
| AppTurn | A turn in a conversation: your bubble, Alis's prose, anyone else under a who-line; her work, actions, voice notes | [AppTurn.md](AppTurn.md) |
|
|
35
|
-
| AppAsk | When Alis needs you: an approval, a choice, a connection, docked on the composer | [AppAsk.md](AppAsk.md) |
|
|
34
|
+
| AppTurn | A turn in a conversation: your bubble, Alis's prose, anyone else under a who-line; her work, actions, voice notes; people's states and requests | [AppTurn.md](AppTurn.md) |
|
|
35
|
+
| AppAsk | When Alis or a person needs a decision from you: an approval, a choice, a connection, docked on the composer | [AppAsk.md](AppAsk.md) |
|
|
36
36
|
| AppMenu | Acts or places that open from a control (floating) or from `/` and `@` (docked on the composer), and the token you chose | [AppMenu.md](AppMenu.md) |
|
|
37
37
|
| AppSelectTile | A card chosen among others | [AppSelectTile.md](AppSelectTile.md) |
|
|
38
38
|
| AppSegmented | 2 to 5 options that change content in place | [AppSegmented.md](AppSegmented.md) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/buttons.md
CHANGED
|
@@ -150,7 +150,7 @@ border, no shadow, no product colour. A tooltip names the action, and is require
|
|
|
150
150
|
Send, and whatever the composer's state makes it (live, the mic, Stop, End)
|
|
151
151
|
([AppComposer](../components/AppComposer.md)). The composer is a surface of its
|
|
152
152
|
own, and that button is both its lead and its commit. No other icon button is
|
|
153
|
-
filled. While Alis is waiting on an [AppAsk](../components/AppAsk.md), the ask
|
|
153
|
+
filled. While Alis or a person is waiting on an [AppAsk](../components/AppAsk.md), the ask
|
|
154
154
|
holds the one filled action and the composer's button goes plain until you
|
|
155
155
|
type; then Send fills and the ask's action steps down to outlined.
|
|
156
156
|
|
package/rules/chips-alerts.md
CHANGED
|
@@ -77,6 +77,11 @@ not started and draft are labels.
|
|
|
77
77
|
In progress is never `signal`: signal is the mark and the caret, never a state.
|
|
78
78
|
[AppChip](../components/AppChip.md) has the full table.
|
|
79
79
|
|
|
80
|
+
**A state that names a party is worded from where the viewer sits**: the person
|
|
81
|
+
who asked reads "Waiting on you", the specialist reads "Waiting on Martha".
|
|
82
|
+
Waiting on someone is a label with `schedule`, never `warning`: *Needs you*
|
|
83
|
+
(`warning`) is kept for an open ask ([AppAsk](../components/AppAsk.md)).
|
|
84
|
+
|
|
80
85
|
**Severity is a state too**, so it takes the statuses rather than a scale of its
|
|
81
86
|
own: blocking or critical is `error`, major is `warning`, and minor or lower is a
|
|
82
87
|
label. A kind of report (a bug, a feature request) is not a severity: it is a
|
package/rules/known-gaps.md
CHANGED
|
@@ -16,6 +16,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
16
16
|
- **Finding anything across the product** (a project, an interview, a skill, an environment) from any screen. A screen's search narrows the list in front of you ([page.md](page.md) § Search); this is a different job. The likely shape is a Search row at the top of the rail with ⌘K, opening a dialog grouped like the `@` menu, once a search across products exists.
|
|
17
17
|
- **Navigation inside a project.** Open objects can sit in the navigation pane as secondary rows under a heading ([AppShell](../components/AppShell.md)), and an object's own views are route tabs in its title bar. A project's own destinations beside the app's have no pattern yet.
|
|
18
18
|
- **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
|
|
19
|
+
- **Withdrawing a request, and approval chains.** A person can't withdraw a request they made, and a request that needs several approvers in turn has no pattern ([AppAsk](../components/AppAsk.md) § Who asks). An approval chain would be its own component: its parts and interaction differ.
|
|
19
20
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
|
20
21
|
- **Each product's destinations** (the rows under its heading in the rail) are product content, not part of this system. Use the capability marks for the tools they name.
|
|
21
22
|
|
package/rules/page.md
CHANGED
|
@@ -62,7 +62,12 @@ button, and never the name again as a title in the body.
|
|
|
62
62
|
|
|
63
63
|
**A detail pane** beside a list is part of the same screen, which already has its
|
|
64
64
|
page-title, so its bar names the selected thing in `text-section-title`
|
|
65
|
-
(`.app-titlebar--detail`).
|
|
65
|
+
(`.app-titlebar--detail`). The row under the name holds the thing's state first,
|
|
66
|
+
when it has one, then its verbs, and wraps when the pane is narrow: the name never
|
|
67
|
+
truncates and the bar stays two rows. Where the pane's content is a centred column
|
|
68
|
+
(a conversation at the prose measure), the bar aligns to that column, as all
|
|
69
|
+
persistent chrome does ([spacing.md](spacing.md) § Measure). A notice about that thing sits at
|
|
70
|
+
the top of the pane.
|
|
66
71
|
|
|
67
72
|
## The filter row
|
|
68
73
|
|
|
@@ -71,8 +76,12 @@ scrolling with it: **one row that narrows the list**, and wraps.
|
|
|
71
76
|
|
|
72
77
|
- **Search first**, when the screen has one (§ Search).
|
|
73
78
|
- **Then the filters.** The one used most, usually the one whose choice reveals
|
|
74
|
-
the others, comes first, so it never moves as they come and go;
|
|
79
|
+
the others, comes first, so it never moves as they come and go; the rest follow
|
|
75
80
|
it.
|
|
81
|
+
- **A choice among several options is a button that names its choice**, with a
|
|
82
|
+
trailing `expand_more`, opening a menu whose chosen row is checked (§ Menus).
|
|
83
|
+
It keeps the row at the control height, where a field wouldn't. A select field
|
|
84
|
+
([AppSelect](../components/AppSelect.md)) belongs in a form.
|
|
76
85
|
- **The count closes the row**, at the far end, and answers it: what the scope
|
|
77
86
|
produces ("24 projects"), and "3 of 24" while a query or a filter narrows.
|
|
78
87
|
- One row of controls before the first result, never two.
|
|
@@ -161,8 +170,9 @@ leads its content with it, or leaves it out.
|
|
|
161
170
|
something (then confirm, saying who can read it and what they will see).
|
|
162
171
|
**Regenerating** needs no dialog: the old content stays on screen until the new
|
|
163
172
|
arrives, and a snackbar says when it has.
|
|
164
|
-
**An act Alis asks
|
|
165
|
-
rules on the composer ([AppAsk](../components/AppAsk.md)): no
|
|
173
|
+
**An act Alis or a person asks for** is confirmed by the ask itself, which
|
|
174
|
+
follows these rules on the composer ([AppAsk](../components/AppAsk.md)): no
|
|
175
|
+
dialog on top.
|
|
166
176
|
- **After it succeeds**, show the result in place: the thing that now exists. If
|
|
167
177
|
its evidence is off-screen or easy to miss, a snackbar confirms it ("Saved",
|
|
168
178
|
"Deleted staging"); a result someone needs to read stays as a success alert
|
package/rules/quick-start.md
CHANGED
|
@@ -42,7 +42,7 @@ AppShell
|
|
|
42
42
|
| Writing to Alis, an agent or a person | `AppComposer`, one per conversation; files in its tray as `AppAttachment`s; a call given room is `AppVoiceView` |
|
|
43
43
|
| The conversation above it | `AppTurn`s in an `.app-thread`: you in a bubble, Alis as prose, the mark at the top of her latest turn |
|
|
44
44
|
| More actions behind `more_vert`, the composer's Add, `/` commands and `@` mentions | `AppMenu`: floating for actions, a band on the composer for suggestions; what you choose is an `.app-token` |
|
|
45
|
-
| Alis needs an answer, an approval or a connection | `AppAsk`, docked on the composer; the conversation's row shows a `warning` "Needs you" chip and the rail an `.app-count` |
|
|
45
|
+
| Alis or a person needs an answer, an approval or a connection | `AppAsk`, docked on the composer of whoever decides; the conversation's row shows a `warning` "Needs you" chip and the rail an `.app-count` |
|
|
46
46
|
| Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
|
|
47
47
|
| The one action that moves the user forward | `AppButton variant="filled"`, once per screen, labelled with the outcome; never in the title bar |
|
|
48
48
|
| The lead of a surface that starts something (the title bar, a pane, an empty state) | `AppButton variant="outlined"`, once per surface; never in a card or a repeated item |
|