@alis-build/design-system 0.6.0 → 0.8.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 +88 -0
- package/components/AppAsk.md +132 -0
- package/components/AppAttachment.md +1 -1
- package/components/AppChip.md +1 -1
- package/components/AppComposer.md +4 -1
- package/components/AppListRow.md +1 -1
- package/components/AppTurn.md +157 -0
- package/components/README.md +2 -0
- package/package.json +1 -1
- package/rules/buttons.md +3 -1
- package/rules/known-gaps.md +0 -2
- package/rules/page.md +2 -0
- package/rules/quick-start.md +2 -0
- package/rules/type.md +3 -2
- package/tokens.json +2 -2
package/alisx.css
CHANGED
|
@@ -684,6 +684,94 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
684
684
|
.app-voice__end{min-height:56px;padding:0 var(--space-32)}
|
|
685
685
|
@media (max-width:599px){.app-voice{padding:var(--space-12) var(--space-16) var(--space-24)}}
|
|
686
686
|
|
|
687
|
+
/* ── Thread and turns · you in a bubble, Alis as prose, anyone else in a bubble under a who-line ── */
|
|
688
|
+
.app-thread{display:flex;flex-direction:column;gap:var(--space-32);width:100%;max-width:var(--measure-prose);margin-inline:auto}
|
|
689
|
+
.app-turn{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-8);min-width:0}
|
|
690
|
+
.app-turn--you{align-items:flex-end}
|
|
691
|
+
.app-turn--alis{align-items:stretch}
|
|
692
|
+
.app-turn .app-icon-btn{width:32px;height:32px}
|
|
693
|
+
.app-turn__who{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);min-height:24px;color:var(--on-surface)}
|
|
694
|
+
.app-turn__who .text-meta{color:var(--on-surface-variant)}
|
|
695
|
+
.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}
|
|
696
|
+
.app-turn__avatar--alis{background:transparent}
|
|
697
|
+
.app-turn__head{display:flex;align-items:center;gap:var(--space-12);min-height:32px}
|
|
698
|
+
.app-turn__mark{display:inline-flex;flex:none}
|
|
699
|
+
.app-turn__status{color:var(--on-surface-variant)}
|
|
700
|
+
.app-turn__worked{align-self:flex-start;display:inline-flex;align-items:center;gap:var(--space-4);min-height:32px;margin-left:calc(var(--space-8) * -1);padding:0 var(--space-8);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:400}
|
|
701
|
+
.app-turn__worked .app-icon{transition:transform var(--dur-effects) var(--motion-effects)}
|
|
702
|
+
.app-turn__worked[aria-expanded="true"] .app-icon{transform:rotate(180deg)}
|
|
703
|
+
.app-turn__steps{display:flex;flex-direction:column;gap:var(--space-8);margin:0 0 var(--space-8);padding:var(--space-4) 0 var(--space-4) var(--space-16);border-left:1px solid var(--outline-variant);list-style:none;color:var(--on-surface-variant)}
|
|
704
|
+
.app-turn__steps[hidden]{display:none}
|
|
705
|
+
.app-turn__step{display:flex;flex-direction:column;gap:var(--space-8);min-width:0}
|
|
706
|
+
.app-turn__step>span{display:flex;align-items:center;gap:var(--space-8)}
|
|
707
|
+
.app-turn__step .app-icon{font-size:16px}
|
|
708
|
+
.app-turn__output{margin:0;padding:var(--space-8) var(--space-12);border-radius:var(--radius-md);background:var(--surface-container-low);color:var(--on-surface);font-family:var(--font-mono);font-size:12px;line-height:16px;white-space:pre;overflow-x:auto;max-height:64px}
|
|
709
|
+
.app-turn__caret{display:inline-block;width:2px;height:20px;margin-left:2px;vertical-align:-4px;border-radius:1px;background:var(--signal)}
|
|
710
|
+
@media (prefers-reduced-motion:no-preference){.app-turn__caret{animation:app-dot 1s steps(1) infinite}}
|
|
711
|
+
.app-turn__row{display:flex;align-items:flex-end;justify-content:flex-end;gap:var(--space-4);width:100%}
|
|
712
|
+
.app-turn--them .app-turn__row{justify-content:flex-start}
|
|
713
|
+
.app-turn__bubble{min-width:0;max-width:80%;padding:var(--space-12) var(--space-16);border-radius:var(--radius-lg);background:var(--surface-container-low);color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;font-weight:400;white-space:pre-line;overflow-wrap:anywhere}
|
|
714
|
+
.app-turn__bubble--voice{width:400px;padding:var(--space-8) var(--space-16) var(--space-12) var(--space-8);white-space:normal}
|
|
715
|
+
.app-turn__tools{display:flex;opacity:0;transition:opacity var(--dur-effects) var(--motion-effects)}
|
|
716
|
+
.app-turn:hover .app-turn__tools,.app-turn:focus-within .app-turn__tools{opacity:1}
|
|
717
|
+
.app-turn__files{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:var(--space-8);max-width:80%}
|
|
718
|
+
.app-turn--them .app-turn__files{justify-content:flex-start}
|
|
719
|
+
.app-turn__image{display:block;width:240px;max-width:100%;border-radius:var(--radius-lg);overflow:hidden;background:var(--surface-container-low)}
|
|
720
|
+
.app-turn__image img{display:block;width:100%;height:auto}
|
|
721
|
+
.app-turn__foot{display:flex;align-items:center;min-height:32px;margin-top:var(--space-4);transition:opacity var(--dur-effects) var(--motion-effects)}
|
|
722
|
+
.app-turn__foot .app-icon-btn:first-child{margin-left:-6px}
|
|
723
|
+
.app-turn--alis:not(.is-latest) .app-turn__foot{position:absolute;top:100%;left:0;margin:0;opacity:0}
|
|
724
|
+
.app-turn--alis:not(.is-latest):hover .app-turn__foot,.app-turn--alis:not(.is-latest):focus-within .app-turn__foot{opacity:1}
|
|
725
|
+
.app-turn__line{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant)}
|
|
726
|
+
.app-turn__line .app-icon{font-size:16px}
|
|
727
|
+
.app-turn__line.is-error{color:var(--error)}
|
|
728
|
+
.app-turn__line-action{margin-left:var(--space-4);padding:0;border:0;background:none;color:var(--primary);font:inherit;font-weight:600;cursor:pointer}
|
|
729
|
+
@media (hover:none){.app-turn__tools,.app-turn--alis:not(.is-latest) .app-turn__foot{display:none}}
|
|
730
|
+
@media (max-width:599px){.app-turn__bubble,.app-turn__files{max-width:85%}}
|
|
731
|
+
|
|
732
|
+
/* ── Voice note · a sent recording: play, the waveform, the time, then its transcript ── */
|
|
733
|
+
.app-voice-note{display:flex;flex-direction:column;gap:var(--space-4)}
|
|
734
|
+
.app-voice-note__player{display:flex;align-items:center;gap:var(--space-8)}
|
|
735
|
+
.app-voice-note__player .app-icon-btn{width:40px;height:40px;color:var(--on-surface)}
|
|
736
|
+
.app-voice-note__wave{flex:1;display:flex;align-items:center;gap:2px;height:32px;min-width:0}
|
|
737
|
+
.app-voice-note__wave i{flex:1;min-width:2px;max-width:3px;border-radius:var(--radius-pill);background:var(--outline)}
|
|
738
|
+
.app-voice-note__wave i.is-played{background:var(--primary)}
|
|
739
|
+
.app-voice-note__time{color:var(--on-surface-variant);font-variant-numeric:tabular-nums}
|
|
740
|
+
.app-voice-note__transcript{margin:0;padding-left:var(--space-8);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
|
|
741
|
+
.app-voice-note.is-open .app-voice-note__transcript{display:block}
|
|
742
|
+
.app-voice-note__more{align-self:flex-start;margin-left:var(--space-8);padding:0;border:0;background:none;color:var(--primary);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;cursor:pointer}
|
|
743
|
+
|
|
744
|
+
/* ── Ask · when Alis needs you: the decision, docked on the composer above the editor ── */
|
|
745
|
+
.app-ask{display:flex;flex-direction:column;gap:var(--space-12);padding:var(--space-12) var(--space-12) var(--space-16);margin-bottom:var(--space-4);border-bottom:1px solid var(--outline-variant)}
|
|
746
|
+
.app-ask__head{display:flex;align-items:flex-start;gap:var(--space-8)}
|
|
747
|
+
.app-ask__title{flex:1;min-width:0;margin:0}
|
|
748
|
+
.app-ask__page{display:flex;align-items:center;flex:none;margin:-6px -8px -6px 0;color:var(--on-surface-variant)}
|
|
749
|
+
.app-ask__page .app-icon-btn{width:32px;height:32px}
|
|
750
|
+
.app-ask__page .text-meta{padding:0 2px;font-variant-numeric:tabular-nums}
|
|
751
|
+
.app-ask__body{margin:0;color:var(--on-surface-variant)}
|
|
752
|
+
.app-ask__grants{display:flex;flex-direction:column;gap:var(--space-4);margin:0;padding:0;list-style:none;color:var(--on-surface)}
|
|
753
|
+
.app-ask__grants li{display:flex;align-items:flex-start;gap:var(--space-8)}
|
|
754
|
+
.app-ask__grants .app-icon{font-size:16px;margin-top:2px;color:var(--on-surface-variant)}
|
|
755
|
+
.app-ask__note{margin:0;color:var(--on-surface-variant)}
|
|
756
|
+
.app-ask__options{display:flex;flex-direction:column;gap:var(--space-4);margin:0 calc(var(--space-8) * -1)}
|
|
757
|
+
.app-ask__option{display:grid;grid-template-columns:24px 1fr;align-items:start;column-gap:var(--space-12);width:100%;padding:var(--space-8);border:0;border-radius:var(--radius-md);background:transparent;color:var(--on-surface);font:inherit;text-align:left}
|
|
758
|
+
.app-ask__key{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--radius-sm);background:var(--surface-container-low);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:600;font-variant-numeric:tabular-nums}
|
|
759
|
+
.app-ask__key .app-icon{font-size:16px}
|
|
760
|
+
.app-ask__option-text{display:flex;flex-direction:column;min-width:0;padding-top:2px}
|
|
761
|
+
.app-ask__option-text .text-supporting{color:var(--on-surface-variant)}
|
|
762
|
+
.app-ask__option.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
|
|
763
|
+
.app-ask__option.is-selected .app-ask__key{background:var(--on-secondary-container);color:var(--secondary-container)}
|
|
764
|
+
.app-ask__option.is-selected .app-ask__option-text .text-supporting{color:inherit}
|
|
765
|
+
.app-ask__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--space-8)}
|
|
766
|
+
.app-ask__actions .app-btn--quiet{margin-right:auto}
|
|
767
|
+
@media (max-width:599px){.app-ask__actions{flex-direction:column-reverse;align-items:stretch}.app-ask__actions .app-btn--quiet{margin-right:0}}
|
|
768
|
+
.app-composer__go--plain{background:transparent;color:var(--on-surface-variant)}
|
|
769
|
+
.app-turn__record{display:flex;align-items:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant)}
|
|
770
|
+
.app-turn__record .app-icon{font-size:16px}
|
|
771
|
+
|
|
772
|
+
/* ── Count · how many asks are waiting, on a rail row ── */
|
|
773
|
+
.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}
|
|
774
|
+
|
|
687
775
|
/* ── Drop target, while something is dragged over it ── */
|
|
688
776
|
.drop-target{outline:2px dashed var(--primary);outline-offset:-2px;background-color:color-mix(in srgb,var(--primary) calc(var(--state-dragged) * 100%),transparent)}
|
|
689
777
|
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# AppAsk
|
|
2
|
+
|
|
3
|
+
When Alis needs you: an approval, a choice or a connection that stops her until you answer. **Her turn says what she needs and shows what you have to judge; the decision docks on [AppComposer](AppComposer.md); your answer settles into the thread as your turn ([AppTurn](AppTurn.md)).**
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
- **Anything that blocks Alis on you**: run a command, deploy, delete, send to people, connect an account, pick between ways forward.
|
|
8
|
+
- **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
|
+
- **Not for what you start yourself.** A confirmation of your own act is an [AppDialog](AppDialog.md) ([page.md](../rules/page.md) § Confirm).
|
|
10
|
+
- **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.
|
|
11
|
+
|
|
12
|
+
## Anatomy
|
|
13
|
+
|
|
14
|
+
A band at the top of the composer's surface, above the editor, divided from it by a hairline, 20 in like the editor's text. The surface grows upward; the thread scrolls behind it.
|
|
15
|
+
|
|
16
|
+
| Part | What it holds |
|
|
17
|
+
|---|---|
|
|
18
|
+
| **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 |
|
|
20
|
+
| **Body** (when it needs one) | What goes with the act, in supporting: what it replaces, who loses access, "This can't be undone." |
|
|
21
|
+
| **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
|
+
| **Options** (choose) | Rows: a number key (24px, `surface-container-low`), a label, and a supporting line if it needs one. Never chips |
|
|
23
|
+
| **Actions** | Right-aligned: Not now (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 questions |
|
|
24
|
+
|
|
25
|
+
## The kinds
|
|
26
|
+
|
|
27
|
+
| Kind | The answer | The filled action |
|
|
28
|
+
|---|---|---|
|
|
29
|
+
| **Approve** | The filled action, or Not now | Named by the outcome: "Deploy", "Run it" |
|
|
30
|
+
| **Approve, hard to undo** (deletes, reaches people, production) | The same: **the ask is the confirmation.** No dialog on top | `error` when it destroys: "Delete 14 interviews" |
|
|
31
|
+
| **Choose one** | Press an option, or its number. That is the answer | none |
|
|
32
|
+
| **Choose several** | Toggle options (the fill and a `check` in the key), then send | Counts what it sends: "Send 2 regions" |
|
|
33
|
+
| **Connect** | The filled action opens the provider's sign-in, then returns | "Connect Google Drive" |
|
|
34
|
+
| **Several questions** | Paged "1 of 3"; answering one moves to the next; Skip lets Alis decide | As the question's kind |
|
|
35
|
+
|
|
36
|
+
- **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
|
+
- **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 the ask. Nothing you've typed is ever overwritten.
|
|
38
|
+
- **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
|
+
|
|
40
|
+
## While she waits, and after
|
|
41
|
+
|
|
42
|
+
- **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
|
+
- **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
|
+
- **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 her head 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
|
+
|
|
47
|
+
## Markup
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<div class="app-composer">
|
|
51
|
+
<div class="app-composer__box">
|
|
52
|
+
|
|
53
|
+
<!-- Approve -->
|
|
54
|
+
<div class="app-ask" role="group" aria-labelledby="ask-7">
|
|
55
|
+
<div class="app-ask__head"><h3 class="app-ask__title text-object-title" id="ask-7">Deploy v1.43.0 to staging?</h3></div>
|
|
56
|
+
<div class="app-ask__actions">
|
|
57
|
+
<button type="button" class="app-btn app-state">Not now</button>
|
|
58
|
+
<button type="button" class="app-btn app-state">Allow deploys to staging for this session</button>
|
|
59
|
+
<button type="button" class="app-btn app-btn--filled app-state">Deploy</button>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div class="app-composer__editor"><textarea class="app-composer__input" rows="1" aria-label="Message" placeholder="Or tell Alis something else"></textarea></div>
|
|
64
|
+
<div class="app-composer__row">
|
|
65
|
+
<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>
|
|
66
|
+
<span class="app-composer__spacer"></span>
|
|
67
|
+
<button type="button" class="app-composer__go app-composer__go--plain app-state" aria-label="Dictate" title="Dictate"><span class="app-icon" aria-hidden="true">mic</span></button>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<!-- Hard to undo: a body, and the action in error -->
|
|
73
|
+
<div class="app-ask" role="group" aria-labelledby="ask-8">
|
|
74
|
+
<div class="app-ask__head"><h3 class="app-ask__title text-object-title" id="ask-8">Delete the Q2 interviews?</h3></div>
|
|
75
|
+
<p class="app-ask__body text-supporting">14 transcripts and the synthesis built from them. This can't be undone.</p>
|
|
76
|
+
<div class="app-ask__actions">
|
|
77
|
+
<button type="button" class="app-btn app-state">Not now</button>
|
|
78
|
+
<button type="button" class="app-btn app-btn--filled app-btn--error app-state">Delete 14 interviews</button>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<!-- Choose one, the first of three -->
|
|
83
|
+
<div class="app-ask" role="group" aria-labelledby="ask-9">
|
|
84
|
+
<div class="app-ask__head">
|
|
85
|
+
<h3 class="app-ask__title text-object-title" id="ask-9">How many accounts in the first pass?</h3>
|
|
86
|
+
<span class="app-ask__page">
|
|
87
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Previous question" title="Previous question" disabled><span class="app-icon" aria-hidden="true">chevron_left</span></button>
|
|
88
|
+
<span class="text-meta">1 of 3</span>
|
|
89
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Next question" title="Next question"><span class="app-icon" aria-hidden="true">chevron_right</span></button>
|
|
90
|
+
</span>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="app-ask__options" role="listbox" aria-labelledby="ask-9">
|
|
93
|
+
<button type="button" class="app-ask__option app-state" role="option" aria-selected="false">
|
|
94
|
+
<span class="app-ask__key">1</span>
|
|
95
|
+
<span class="app-ask__option-text"><span class="text-label">25, high confidence</span><span class="text-supporting">Fewer, with stronger evidence for each</span></span>
|
|
96
|
+
</button>
|
|
97
|
+
<!-- … -->
|
|
98
|
+
</div>
|
|
99
|
+
<div class="app-ask__actions"><button type="button" class="app-btn app-btn--quiet app-state">Skip, let Alis decide</button></div>
|
|
100
|
+
</div>
|
|
101
|
+
<!-- Choose several: aria-multiselectable="true" on the listbox; a chosen row has is-selected, aria-selected="true" and a check in its key; the filled action counts: "Send 2 regions" -->
|
|
102
|
+
|
|
103
|
+
<!-- Connect -->
|
|
104
|
+
<div class="app-ask" role="group" aria-labelledby="ask-10">
|
|
105
|
+
<div class="app-ask__head"><h3 class="app-ask__title text-object-title" id="ask-10">Connect Google Drive?</h3></div>
|
|
106
|
+
<p class="app-ask__body text-supporting">To read the board decks you mentioned, Alis will be able to:</p>
|
|
107
|
+
<ul class="app-ask__grants text-supporting">
|
|
108
|
+
<li><span class="app-icon" aria-hidden="true">check</span>Read the files and folders you choose</li>
|
|
109
|
+
</ul>
|
|
110
|
+
<p class="app-ask__note text-meta">You'll sign in with Google, then come back here. Disconnect any time in Settings.</p>
|
|
111
|
+
<div class="app-ask__actions">
|
|
112
|
+
<button type="button" class="app-btn app-state">Not now</button>
|
|
113
|
+
<button type="button" class="app-btn app-btn--filled app-state">Connect Google Drive</button>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<!-- On a rail row: the asks waiting there -->
|
|
118
|
+
<span class="app-row__trailing"><span class="app-count" aria-label="2 need you">2</span></span>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Behaviour you must supply
|
|
122
|
+
|
|
123
|
+
- **Open and close** the band with the ask; focus moves to its first option, or its filled action. Return focus to the editor when it closes.
|
|
124
|
+
- **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 as the answer.
|
|
126
|
+
- **Several questions**: answering moves to the next; previous and next page without answering; Skip answers "let Alis decide".
|
|
127
|
+
- **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*.
|
|
128
|
+
- **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
|
+
|
|
130
|
+
## Classes
|
|
131
|
+
|
|
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.
|
|
@@ -57,7 +57,7 @@ A file, recording or queued message waiting in the composer's tray, and the same
|
|
|
57
57
|
- Update the bar's width and `aria-valuenow` as the upload runs; remove the bar when it's done.
|
|
58
58
|
- Retry restarts the upload; remove drops the tile and returns focus to the editor.
|
|
59
59
|
- Edit on a queued message moves its text back into the editor and drops the tile.
|
|
60
|
-
- In a sent message, the tile opens the file (wrap the glyph and text in the link or button); no remove.
|
|
60
|
+
- 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)).
|
|
61
61
|
|
|
62
62
|
## Classes
|
|
63
63
|
|
package/components/AppChip.md
CHANGED
|
@@ -21,7 +21,7 @@ See [chips-alerts.md](../rules/chips-alerts.md).
|
|
|
21
21
|
| Ready, healthy, deployed, sent, active | status `success` |
|
|
22
22
|
| In progress, deploying, running, syncing | status `info`, icon `pending` |
|
|
23
23
|
| Failed, rejected | status `error` |
|
|
24
|
-
| Needs attention, expiring, degraded | status `warning` |
|
|
24
|
+
| Needs attention, expiring, degraded; needs you (Alis is waiting on an ask) | status `warning` |
|
|
25
25
|
| Stopped, paused, cancelled, archived, closed, draft | label, icon `stop_circle`, `pause_circle`, `cancel`, `archive`, `stop_circle`, none |
|
|
26
26
|
| Suspended | label, icon `pause_circle` |
|
|
27
27
|
| Declined, didn't finish | label, icon `cancel` (nothing needs the user, so not `error`) |
|
|
@@ -12,6 +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 she needs: an [AppAsk](AppAsk.md), above the tray, divided by a hairline | The product writes it |
|
|
15
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 |
|
|
16
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 |
|
|
17
18
|
| **Row**: Add | `add` icon button: the menu of what you can bring in | The product fills the menu |
|
|
@@ -37,6 +38,8 @@ Where you write to Alis, an agent or a person. One floating surface with three b
|
|
|
37
38
|
| Recording a voice note | `arrow_upward` "Send voice note" | the row is the recording bar | Hidden: the note is the message |
|
|
38
39
|
| In a call | `call_end` "End voice" | the row is the call bar | Live, for anything you'd rather type |
|
|
39
40
|
| In a call, with text | `arrow_upward` "Send" | `call_end` "End voice" | Live |
|
|
41
|
+
| 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* |
|
|
42
|
+
| Waiting on an ask, with text | `arrow_upward` "Send", filled; the ask's action steps down to outlined | none | Live: what you send is your answer |
|
|
40
43
|
| Locked | none | none | Dimmed; the line says why |
|
|
41
44
|
|
|
42
45
|
**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.
|
|
@@ -136,4 +139,4 @@ Where you write to Alis, an agent or a person. One floating surface with three b
|
|
|
136
139
|
|
|
137
140
|
## Classes
|
|
138
141
|
|
|
139
|
-
`.app-composer`, `.is-locked`, `.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__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, with `.drop-target` on the drop, `.app-state` on every button and `.app-target` on the icon buttons.
|
|
142
|
+
`.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__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, with `.drop-target` on the drop, `.app-state` on every button and `.app-target` on the icon buttons.
|
package/components/AppListRow.md
CHANGED
|
@@ -7,7 +7,7 @@ A row in a list, the navigation pane or the agent chat list.
|
|
|
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
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.
|
|
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").
|
|
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
|
- `app-row--divided` draws a hairline between consecutive rows.
|
|
13
13
|
- 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`).
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# AppTurn
|
|
2
|
+
|
|
3
|
+
One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis writes prose.** Anyone else writes in a bubble on the other side, under a who-line. The thread runs at the prose measure (710), on the ground, with [AppComposer](AppComposer.md) docked below it.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
- **Every conversation**: Ideate, an interview, an agent session, a specialist thread, a support ticket. The same turns wherever [AppComposer](AppComposer.md) is.
|
|
8
|
+
- **Not a record you read.** Questions and their answers laid out as a document (an interview's answers in a synthesis) are an `AppTranscript` inside an [AppLattice](AppLattice.md).
|
|
9
|
+
- **Alis's prose is body** through `.prose`, never mono, never in a box: her replies are documents, with tables, code and cards that a bubble would squeeze and nest. Mono is for what a machine returned verbatim ([type.md](../rules/type.md)).
|
|
10
|
+
|
|
11
|
+
## Who is speaking
|
|
12
|
+
|
|
13
|
+
| Turn | How it reads | Class |
|
|
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, not rendered as markdown. No avatar, no name | `.app-turn--you` |
|
|
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
|
+
| **Anyone else** | A bubble on the left, same fill and corner, under a who-line | `.app-turn--them` |
|
|
18
|
+
|
|
19
|
+
- **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
|
+
- **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
|
+
## Her work
|
|
23
|
+
|
|
24
|
+
**One thing moves at a time.**
|
|
25
|
+
|
|
26
|
+
| Phase | The head | The body | The foot |
|
|
27
|
+
|---|---|---|---|
|
|
28
|
+
| **Thinking** | The mark, animated ([AppLoader](AppLoader.md) on a line), and the status: the current step in supporting type, written by the product ("Reading 14 interview transcripts"; never "Thinking…" when it can say what) | none | none |
|
|
29
|
+
| **Writing** | The mark, still, and the steps folded into one quiet disclosure: "Worked for 42s · 6 steps" | Prose streams in behind the caret (`signal`) | none |
|
|
30
|
+
| **At rest** | The mark, still, and the disclosure | Her reply | The actions |
|
|
31
|
+
| **No steps** | The mark alone | | |
|
|
32
|
+
| **Waiting for you** | The mark, still, and *Waiting for you* in supporting (*· until 15:30* when the ask expires) | Her reply: what she needs, and anything you have to judge | none until you've answered |
|
|
33
|
+
|
|
34
|
+
- **Opened, the steps** are meta lines with a 16px glyph on a hairline rail. What a machine returned verbatim (a query's rows, a command's output) is mono at 12/16 on `surface-container-low`, three lines at most. The product decides whether a turn has steps.
|
|
35
|
+
- An earlier turn's head is its disclosure only.
|
|
36
|
+
|
|
37
|
+
## Actions
|
|
38
|
+
|
|
39
|
+
- **Under Alis's turn**, plain 32px icon buttons in this order: copy, Try again, then thumbs up and down if the product collects feedback. **Always shown on her latest turn**; on hover or focus for earlier ones, in the gap below the turn so nothing moves. A thumb you've given fills, in ink; one at a time.
|
|
40
|
+
- **Beside your bubble**, on hover or focus: copy, and edit on your latest turn only (the text goes back into the composer and resends).
|
|
41
|
+
- **On a phone** there is no hover: a long press on a turn opens the same actions as a menu.
|
|
42
|
+
- **A person's turn has no actions.**
|
|
43
|
+
|
|
44
|
+
## What you send
|
|
45
|
+
|
|
46
|
+
- **Files** keep their [AppAttachment](AppAttachment.md) tile from the tray, without remove, stacked right above your bubble; the tile opens the file. An image shows itself, 240 wide. A file sent alone is a turn with no bubble.
|
|
47
|
+
- **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
|
+
## When she asks
|
|
50
|
+
|
|
51
|
+
The decision docks on the composer ([AppAsk](AppAsk.md)); the answer is your turn:
|
|
52
|
+
|
|
53
|
+
- **A choice** reads as your bubble, in the option's words. **Words you typed instead** are your bubble.
|
|
54
|
+
- **An approval** is a record line in meta, right-aligned (`.app-turn__record`): `check` "Allowed: Deploy v1.43.0 to staging", or `block` "Not now: Deploy v1.43.0 to staging".
|
|
55
|
+
- **An ask that lapses** is a line in her turn, in ink, with `schedule`: "No answer by 15:30, so Alis didn't delete them."
|
|
56
|
+
|
|
57
|
+
## When it goes wrong
|
|
58
|
+
|
|
59
|
+
One line in meta where it happened (`.app-turn__line`, as the composer's):
|
|
60
|
+
|
|
61
|
+
- **Didn't send**: under your bubble, in `error`, with Try again. The bubble stays.
|
|
62
|
+
- **Her reply failed**: what she wrote stays; then, in `error`, "Alis couldn't finish this reply." with Try again. No foot; the mark stays at the top, as it's still her turn.
|
|
63
|
+
- **You stopped her**: what she wrote stays; then "Stopped", in `on-surface-variant`, and the foot. Stopping is your choice, so it is never red.
|
|
64
|
+
|
|
65
|
+
## Markup
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<div class="app-thread">
|
|
69
|
+
|
|
70
|
+
<!-- You: files, then the bubble; hover actions beside it -->
|
|
71
|
+
<div class="app-turn app-turn--you">
|
|
72
|
+
<div class="app-turn__files">
|
|
73
|
+
<a class="app-attachment" href="…"><!-- AppAttachment, no remove --></a>
|
|
74
|
+
<a class="app-turn__image" href="…"><img src="…" alt="Churn by month"></a>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="app-turn__row">
|
|
77
|
+
<div class="app-turn__tools">
|
|
78
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Copy" title="Copy"><span class="app-icon" aria-hidden="true">content_copy</span></button>
|
|
79
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Edit" title="Edit"><span class="app-icon" aria-hidden="true">edit</span></button>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="app-turn__bubble">Why did enterprise churn spike in Q3?</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<!-- Alis, her latest turn at rest -->
|
|
86
|
+
<div class="app-turn app-turn--alis is-latest">
|
|
87
|
+
<div class="app-turn__head">
|
|
88
|
+
<span class="app-turn__mark"><svg viewBox="0 0 30 50" width="12" height="20" aria-hidden="true" style="fill:var(--signal);display:block"><!-- the eleven circles of AlisMark --></svg></span>
|
|
89
|
+
<button type="button" class="app-turn__worked app-state" aria-expanded="false" aria-controls="steps-7">Worked for 42s · 3 steps<span class="app-icon" aria-hidden="true">expand_more</span></button>
|
|
90
|
+
</div>
|
|
91
|
+
<ol class="app-turn__steps text-meta" id="steps-7" hidden>
|
|
92
|
+
<li class="app-turn__step"><span><span class="app-icon" aria-hidden="true">search</span>Searched interviews for “price” · 9 found</span></li>
|
|
93
|
+
<li class="app-turn__step"><span><span class="app-icon" aria-hidden="true">table</span>Queried renewals</span>
|
|
94
|
+
<pre class="app-turn__output">account seats renewed_at
|
|
95
|
+
Northwind 120 —</pre></li>
|
|
96
|
+
</ol>
|
|
97
|
+
<div class="prose"><!-- her reply --></div>
|
|
98
|
+
<div class="app-turn__foot">
|
|
99
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Copy" title="Copy"><span class="app-icon" aria-hidden="true">content_copy</span></button>
|
|
100
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Try again" title="Try again"><span class="app-icon" aria-hidden="true">refresh</span></button>
|
|
101
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Good reply" title="Good reply" aria-pressed="false"><span class="app-icon" aria-hidden="true">thumb_up</span></button>
|
|
102
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Bad reply" title="Bad reply" aria-pressed="false"><span class="app-icon" aria-hidden="true">thumb_down</span></button>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<!-- Thinking: the mark animates; the status names the step -->
|
|
109
|
+
<div class="app-turn__head">
|
|
110
|
+
<span class="app-turn__mark app-loader app-loader--line" aria-hidden="true"><svg …></svg></span>
|
|
111
|
+
<span class="app-turn__status text-supporting" role="status">Reading 14 interview transcripts</span>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<!-- Writing: the caret follows the last word -->
|
|
115
|
+
<div class="prose"><p>Hi Priya, it's been a few weeks since<span class="app-turn__caret" aria-hidden="true"></span></p></div>
|
|
116
|
+
|
|
117
|
+
<!-- A group thread: the who-line -->
|
|
118
|
+
<div class="app-turn app-turn--them">
|
|
119
|
+
<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>
|
|
120
|
+
<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>
|
|
121
|
+
</div>
|
|
122
|
+
<!-- Alis's who-line: the mark is her avatar -->
|
|
123
|
+
<div class="app-turn__who"><span class="app-turn__avatar app-turn__avatar--alis" aria-hidden="true"><svg …></svg></span><span class="text-label">Alis</span><span class="text-meta">09:44</span></div>
|
|
124
|
+
|
|
125
|
+
<!-- A voice note -->
|
|
126
|
+
<div class="app-turn__bubble app-turn__bubble--voice">
|
|
127
|
+
<div class="app-voice-note">
|
|
128
|
+
<div class="app-voice-note__player">
|
|
129
|
+
<button type="button" class="app-icon-btn app-state" aria-label="Play voice note" title="Play"><span class="app-icon app-icon--filled" aria-hidden="true">play_arrow</span></button>
|
|
130
|
+
<span class="app-voice-note__wave" aria-hidden="true"><i class="is-played" style="height:40%"></i><i style="height:72%"></i><!-- about 44 bars --></span>
|
|
131
|
+
<span class="app-voice-note__time text-label">0:42</span>
|
|
132
|
+
</div>
|
|
133
|
+
<p class="app-voice-note__transcript text-body">So the thing with Northwind is that their champion left in July…</p>
|
|
134
|
+
<button type="button" class="app-voice-note__more">Show all</button>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<!-- When it goes wrong -->
|
|
139
|
+
<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
|
+
<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>
|
|
141
|
+
<p class="app-turn__line text-meta">Stopped</p>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Behaviour you must supply
|
|
145
|
+
|
|
146
|
+
- **`is-latest`** on Alis's newest turn only; move it, and the mark, when she starts the next one.
|
|
147
|
+
- **The phases**: add `app-loader app-loader--line` to the mark and show the status while she thinks; when the first words arrive, drop them, hide the status and show the disclosure with its time and step count; append the caret after the last word while she writes and remove it when she's done, then show the foot. Under `prefers-reduced-motion` the loader and caret hold still (the CSS does it).
|
|
148
|
+
- **The disclosure**: toggle `aria-expanded` and the steps' `hidden`.
|
|
149
|
+
- **Your bubble**: put the text straight into the element with no whitespace around it; line breaks are kept.
|
|
150
|
+
- **A voice note**: drive `is-played` on the bars as it plays, swap `play_arrow` and `pause` (and the label); Show all toggles `is-open` and reads Show less.
|
|
151
|
+
- **Thumbs**: one at a time; set `aria-pressed`, `is-selected` and `app-icon--filled` on the one given.
|
|
152
|
+
- **On a phone**, a long press on a turn opens its actions as a menu.
|
|
153
|
+
- Keep the thread pinned to the bottom while Alis writes, unless the person has scrolled up.
|
|
154
|
+
|
|
155
|
+
## Classes
|
|
156
|
+
|
|
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.
|
package/components/README.md
CHANGED
|
@@ -31,6 +31,8 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
31
31
|
| AppComposer | Where you write to Alis, an agent or a person; voice and live calls | [AppComposer.md](AppComposer.md) |
|
|
32
32
|
| AppAttachment | A file or 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
36
|
| AppSelectTile | A card chosen among others | [AppSelectTile.md](AppSelectTile.md) |
|
|
35
37
|
| AppSegmented | 2 to 5 options that change content in place | [AppSegmented.md](AppSegmented.md) |
|
|
36
38
|
| AppListRow | A row in a list, the navigation pane or the agent chat list | [AppListRow.md](AppListRow.md) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
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,9 @@ 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.
|
|
153
|
+
filled. While Alis is waiting on an [AppAsk](../components/AppAsk.md), the ask
|
|
154
|
+
holds the one filled action and the composer's button goes plain until you
|
|
155
|
+
type; then Send fills and the ask's action steps down to outlined.
|
|
154
156
|
|
|
155
157
|
**It is a glyph, and it is an action.** If it shows a word, it is a
|
|
156
158
|
[AppButton](../components/AppButton.md). If it does nothing on its own (a chevron
|
package/rules/known-gaps.md
CHANGED
|
@@ -15,8 +15,6 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
15
15
|
## Open patterns
|
|
16
16
|
|
|
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
|
-
- **When Alis needs you.** An approval or a question that blocks the agent: whether it's answered in the composer or in the thread is open. Until it's decided, the ask sits in the thread and the composer's line names what Alis is waiting for.
|
|
19
|
-
- **Turns in a conversation.** How the person's and Alis's turns, a sent attachment and a sent voice note look in the thread.
|
|
20
18
|
- **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
|
|
21
19
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
|
22
20
|
- **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.
|
package/rules/page.md
CHANGED
|
@@ -132,6 +132,8 @@ leads its content with it, or leaves it out.
|
|
|
132
132
|
something (then confirm, saying who can read it and what they will see).
|
|
133
133
|
**Regenerating** needs no dialog: the old content stays on screen until the new
|
|
134
134
|
arrives, and a snackbar says when it has.
|
|
135
|
+
**An act Alis asks to do** is confirmed by her ask itself, which follows these
|
|
136
|
+
rules on the composer ([AppAsk](../components/AppAsk.md)): no dialog on top.
|
|
135
137
|
- **After it succeeds**, show the result in place: the thing that now exists. If
|
|
136
138
|
its evidence is off-screen or easy to miss, a snackbar confirms it ("Saved",
|
|
137
139
|
"Deleted staging"); a result someone needs to read stays as a success alert
|
package/rules/quick-start.md
CHANGED
|
@@ -39,6 +39,8 @@ AppShell
|
|
|
39
39
|
| Prose you read, a document | `AppLattice`s at the prose measure, `.prose` inside; a quote is a `blockquote` with a `cite` |
|
|
40
40
|
| Questions and answers | `AppTranscript` |
|
|
41
41
|
| 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` |
|
|
42
|
+
| 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 |
|
|
43
|
+
| 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` |
|
|
42
44
|
| Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
|
|
43
45
|
| The one action that moves the user forward | `AppButton variant="filled"`, once per screen, labelled with the outcome; never in the title bar |
|
|
44
46
|
| 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 |
|
package/rules/type.md
CHANGED
|
@@ -5,8 +5,9 @@ baseline weights:** ordinary text is light, and weight is spent on headings,
|
|
|
5
5
|
selection and the primary action. No tracking on reading text. The values are the `text-*` styles in the tokens, and
|
|
6
6
|
`.prose` restates them for rendered markdown. **Never invent values.**
|
|
7
7
|
|
|
8
|
-
**Monospace means machine speech:**
|
|
9
|
-
|
|
8
|
+
**Monospace means machine speech:** what a machine returned verbatim (a tool's
|
|
9
|
+
output, a log), a prompt to paste, code, a file path. Alis's own words are body,
|
|
10
|
+
never mono ([AppTurn](../components/AppTurn.md)). It is the system stack (`font-mono`), and it changes the face only:
|
|
10
11
|
the role still sets the size. Write `.text-mono` beside the role class
|
|
11
12
|
(`class="text-meta text-mono"`), never on its own. The `.mono*` classes are
|
|
12
13
|
alisx.com's and set their own sizes; never use them in the product.
|
package/tokens.json
CHANGED
|
@@ -855,12 +855,12 @@
|
|
|
855
855
|
{
|
|
856
856
|
"name": "radius-lg",
|
|
857
857
|
"value": "16px",
|
|
858
|
-
"usage": "Cards, text fields, selects, the navigation-pane primary action. Change the token, never one card."
|
|
858
|
+
"usage": "Cards, text fields, selects, the navigation-pane primary action, attachment tiles and a turn's bubble. Change the token, never one card."
|
|
859
859
|
},
|
|
860
860
|
{
|
|
861
861
|
"name": "radius-xl",
|
|
862
862
|
"value": "28px",
|
|
863
|
-
"usage": "
|
|
863
|
+
"usage": "The composer's surface, concentric with its 40px button set 8 in. Nothing else in the product is rounded to it; a 24px step is not on the scale."
|
|
864
864
|
},
|
|
865
865
|
{
|
|
866
866
|
"name": "radius-pill",
|