@alis-build/design-system 0.8.0 → 0.10.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 +36 -5
- package/components/AppAsk.md +1 -1
- package/components/AppComposer.md +3 -2
- package/components/AppMenu.md +99 -0
- package/components/AppTitleBar.md +20 -18
- package/components/AppTurn.md +2 -2
- package/components/README.md +7 -8
- package/package.json +1 -1
- package/rules/known-gaps.md +1 -1
- package/rules/page.md +38 -9
- package/rules/quick-start.md +8 -5
- package/tokens.json +3 -3
package/alisx.css
CHANGED
|
@@ -396,7 +396,6 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
396
396
|
.app-titlebar__name{display:flex;align-items:center;gap:var(--space-8);min-width:0;margin:0}
|
|
397
397
|
.app-titlebar__title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
398
398
|
.app-titlebar__leading{margin-left:calc(var(--space-12) * -1)}
|
|
399
|
-
.app-titlebar__search{flex:1 1 0;min-width:0;max-width:480px;margin:0 auto}
|
|
400
399
|
.app-titlebar__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);margin-left:auto}
|
|
401
400
|
.app-search{display:flex;align-items:center;gap:var(--space-8);height:var(--control-height);padding:0 var(--space-16);border-radius:var(--radius-pill);background:var(--surface-container-highest);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px}
|
|
402
401
|
.app-search__clear{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant)}
|
|
@@ -414,12 +413,15 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
414
413
|
.app-titlebar--detail .app-titlebar__name{flex:1 1 100%}
|
|
415
414
|
/* The first verb's label meets the pane edge, as the close glyph does */
|
|
416
415
|
.app-titlebar--detail .app-titlebar__actions{flex-basis:100%;margin-left:calc(var(--space-24) * -1)}
|
|
417
|
-
/* Compact window:
|
|
418
|
-
@media (max-width:599px){.app-titlebar__row{flex-wrap:wrap;row-gap:var(--space-8)}.app-
|
|
416
|
+
/* Compact window: the verbs take their own row under the name; a row's meta gives way to its title */
|
|
417
|
+
@media (max-width:599px){.app-titlebar__row{flex-wrap:wrap;row-gap:var(--space-8)}.app-titlebar__actions{order:4;flex-basis:100%;margin-left:calc(var(--space-24) * -1)}.app-titlebar--detail .app-titlebar__actions{margin-left:calc(var(--space-24) * -1)}.app-row:not(.app-row--nav):not(.app-row--agent-chat) .app-row__meta{display:none}}
|
|
419
418
|
/* The filter row sits in .app-shell__content, which already pads the sides */
|
|
420
419
|
.app-filterrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
|
|
421
|
-
|
|
422
|
-
.app-
|
|
420
|
+
/* Search leads the row; the controls follow it; the count closes the row and answers them */
|
|
421
|
+
.app-filterrow__search{flex:0 1 360px;min-width:200px}
|
|
422
|
+
.app-filterrow__summary{order:1;margin:0 0 0 auto;color:var(--on-surface-variant);font-variant-numeric:tabular-nums}
|
|
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%}}
|
|
423
425
|
.app-filterrow__controls>.app-seg{max-width:100%;overflow-x:auto;scrollbar-width:none}
|
|
424
426
|
|
|
425
427
|
/* ── Dialog · white at level 3, text actions, affirmative last ── */
|
|
@@ -772,6 +774,35 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
772
774
|
/* ── Count · how many asks are waiting, on a rail row ── */
|
|
773
775
|
.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
776
|
|
|
777
|
+
/* ── Menu ── */
|
|
778
|
+
/* One surface, two behaviours: an action menu (role=menu, focus moves in) and a suggestion menu (role=listbox, focus stays in the editor) */
|
|
779
|
+
.app-menu{display:flex;flex-direction:column;min-width:200px;max-width:320px;max-height:min(400px,60vh);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--elevation-2);color:var(--on-surface);list-style:none}
|
|
780
|
+
.app-menu[hidden]{display:none}
|
|
781
|
+
.app-menu__heading{display:block;padding:var(--space-8) var(--space-12) var(--space-4);color:var(--on-surface-variant)}
|
|
782
|
+
.app-menu__divider{flex:none;height:1px;margin:var(--space-4) calc(var(--space-8) * -1);border:0;background:var(--outline-variant)}
|
|
783
|
+
.app-menu__item{display:flex;align-items:center;gap:var(--space-12);flex:none;width:100%;min-height:40px;padding:var(--space-8) var(--space-12);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:500;letter-spacing:0;text-align:left;text-decoration:none}
|
|
784
|
+
@media (pointer:coarse){.app-menu__item{min-height:var(--touch-target-coarse)}}
|
|
785
|
+
.app-menu__item>.app-icon{color:var(--on-surface-variant)}
|
|
786
|
+
.app-menu__text{display:flex;flex-direction:column;flex:1;min-width:0}
|
|
787
|
+
.app-menu__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
788
|
+
.app-menu__support{color:var(--on-surface-variant);font-size:12px;line-height:16px;font-weight:400}
|
|
789
|
+
.app-menu__hint{flex:none;color:var(--on-surface-variant);font-size:12px;line-height:16px;font-weight:400;font-variant-numeric:tabular-nums}
|
|
790
|
+
.app-menu__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-size:12px;line-height:16px;font-weight:600;object-fit:cover}
|
|
791
|
+
.app-menu__item:focus-visible,.app-menu__item.is-active{outline:2px solid var(--primary);outline-offset:-2px}
|
|
792
|
+
.app-menu__item.is-active::before{opacity:var(--state-hover)}
|
|
793
|
+
.app-menu__item.is-selected{background:var(--secondary-container);color:var(--on-secondary-container);font-weight:700}
|
|
794
|
+
.app-menu__item.is-selected>.app-icon,.app-menu__item.is-selected .app-menu__support{color:var(--on-secondary-container)}
|
|
795
|
+
.app-menu__item--danger,.app-menu__item--danger>.app-icon{color:var(--error)}
|
|
796
|
+
.app-menu__empty{padding:var(--space-8) var(--space-12);color:var(--on-surface-variant);font-size:14px;line-height:20px}
|
|
797
|
+
.app-menu__empty.app-loader--line{display:flex;justify-content:flex-start}
|
|
798
|
+
/* The suggestion menu in a composer: a band on its surface, above the editor, like an ask */
|
|
799
|
+
.app-menu--suggest{flex:none;min-width:0;max-width:none;max-height:min(272px,40vh);margin:0 0 var(--space-4);padding:var(--space-4) 0 var(--space-8);border-bottom:1px solid var(--outline-variant);border-radius:0;background:transparent;box-shadow:none}
|
|
800
|
+
.app-menu--suggest .app-menu__item{border-radius:var(--radius-md)}
|
|
801
|
+
.app-ask+.app-menu--suggest{padding-top:0}
|
|
802
|
+
/* A mention or a command, chosen: one token in the sentence */
|
|
803
|
+
.app-token{display:inline;padding:2px 6px;margin:0 1px;border-radius:var(--radius-sm);background:var(--surface-container-highest);color:var(--on-surface);font-weight:600;white-space:nowrap;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone;user-select:all}
|
|
804
|
+
.app-token>.app-icon{display:inline-block;font-size:1em;width:1em;height:1em;margin-right:var(--space-4);vertical-align:-0.125em;color:var(--on-surface-variant)}
|
|
805
|
+
a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointer}
|
|
775
806
|
/* ── Drop target, while something is dragged over it ── */
|
|
776
807
|
.drop-target{outline:2px dashed var(--primary);outline-offset:-2px;background-color:color-mix(in srgb,var(--primary) calc(var(--state-dragged) * 100%),transparent)}
|
|
777
808
|
|
package/components/AppAsk.md
CHANGED
|
@@ -34,7 +34,7 @@ A band at the top of the composer's surface, above the editor, divided from it b
|
|
|
34
34
|
| **Several questions** | Paged "1 of 3"; answering one moves to the next; Skip lets Alis decide | As the question's kind |
|
|
35
35
|
|
|
36
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.
|
|
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. Typing `/` or `@` docks the suggestions between the ask and the editor ([AppMenu](AppMenu.md)).
|
|
38
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
39
|
|
|
40
40
|
## While she waits, and after
|
|
@@ -15,7 +15,8 @@ Where you write to Alis, an agent or a person. One floating surface with three b
|
|
|
15
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 |
|
|
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 |
|
|
19
|
+
| **Row**: Add | `add` icon button: an [AppMenu](AppMenu.md) of what you can bring in, then the commands | The product fills the menu |
|
|
19
20
|
| **Row**: Context | Label [AppChip](AppChip.md)s you can remove, for what Alis can see or act on *in this conversation* (a project, chosen resources, staged comments). Sticky until removed, where the tray goes with one message. Never a mode or a setting | The product decides which, if any |
|
|
20
21
|
| **Row**: voice | A plain mic icon button beside live (see below) | The product decides whether there's voice, and which mic mode |
|
|
21
22
|
| **Row**: trailing button | The one filled icon button in the system: `primary`, 40px, round | The system |
|
|
@@ -129,7 +130,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
|
|
|
129
130
|
## Behaviour you must supply
|
|
130
131
|
|
|
131
132
|
- **The state machine** above: swap the trailing button's glyph, `aria-label` and `title`, and add or remove the plain voice buttons, on every change to the draft, the tray or the agent's state. `disabled` on Send until there is something to send and every tile is ready.
|
|
132
|
-
- **Keyboard**, on the editor only (never a window listener): Enter sends; Shift+Enter adds a line; ignore Enter while `isComposing` (IME) or while a suggestion menu is open. In a call, Enter with text sends into the call. While Alis works with the queue off, Enter does nothing.
|
|
133
|
+
- **Keyboard**, on the editor only (never a window listener): Enter sends; Shift+Enter adds a line; ignore Enter while `isComposing` (IME) or while a suggestion menu is open ([AppMenu](AppMenu.md)). In a call, Enter with text sends into the call. While Alis works with the queue off, Enter does nothing.
|
|
133
134
|
- **Auto-grow**: set the textarea's height to its `scrollHeight` on input; the editor caps it at eight lines and scrolls.
|
|
134
135
|
- **Recording**: start on the mic (holding Space outside a text field is a shortcut), run the timer, drive the meter bars' heights from the input level (`aria-hidden`; hold them still under `prefers-reduced-motion`). Under about a second is too short.
|
|
135
136
|
- **Live**: toggle `is-alis` on `.app-composer` while Alis speaks and `is-muted` while muted (and `aria-pressed` on the mute toggle); update the status word, which is a live region.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# AppMenu
|
|
2
|
+
|
|
3
|
+
A list of acts or places that opens from a control or from what you type, and closes when you choose. **One menu, two behaviours**: an action menu floats and takes focus; a suggestion menu docks on the composer and leaves focus in the editor. Both use the same rows, group headings and danger zone. What you choose from a suggestion menu becomes a token in your sentence (`.app-token`).
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
| Behaviour | Opens from | Where | Focus |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| **Action menu** (`role="menu"`) | A `more_vert` icon button, a button with a trailing chevron, the composer's Add, the account card, a long press on a phone | Floats: white at `elevation-2`, 4 from its trigger | Moves to the first item; Escape returns it to the trigger |
|
|
10
|
+
| **Suggestion menu** (`role="listbox"`) | Typing `/` or `@` in an editor | In a composer, a band on its surface above the editor (`.app-menu--suggest`), like an [AppAsk](AppAsk.md). In a document, at the caret | Stays in the editor; the active row follows the arrows |
|
|
11
|
+
|
|
12
|
+
- **Not a form.** A field, a checkbox or a type-to-confirm inside a menu is an [AppDialog](AppDialog.md); the item that opens it ends in an ellipsis ("Deploy to production…").
|
|
13
|
+
- **Not a value in a form.** That's an [AppSelect](AppSelect.md). A searchable picker is a known gap.
|
|
14
|
+
- **Never a submenu.** Flatten it with a heading, or open a dialog. **Never on hover**: a tooltip names a control; a menu opens when you press.
|
|
15
|
+
- **Not for the verbs a person uses often.** Those stay visible as buttons; the menu holds the rest. A split action is a button and a `more_vert` whose menu holds the alternatives ([page.md](../rules/page.md)).
|
|
16
|
+
|
|
17
|
+
## Anatomy
|
|
18
|
+
|
|
19
|
+
| Part | What it is |
|
|
20
|
+
|---|---|
|
|
21
|
+
| **Surface** | White, `elevation-2`, `radius-lg` (16) with 8 inside, so a row's `radius-sm` (8) is concentric. 200 to 320 wide. The one list in the product that is white ([surfaces.md](../rules/surfaces.md)). A suggestion band has no surface of its own: it is the composer's, with a hairline under it, and its rows take the ask's `radius-md` |
|
|
22
|
+
| **Row** | 40 tall (48 under a coarse pointer), the whole row the target. A 20px icon in `on-surface-variant` if any row in the menu has one; the label at 14/20 500, set by the menu, no role |
|
|
23
|
+
| **Second line** | Meta, only when the label can't stand alone: who has access, what a command does, a person's role |
|
|
24
|
+
| **Hint** | Trailing meta: a shortcut or a /name. Or `open_in_new` when the item leaves the app. Never a chevron |
|
|
25
|
+
| **Heading** | `text-eyebrow`, only where groups need names (the Add menu's Commands; @'s People and Files). Otherwise a hairline divider alone separates groups |
|
|
26
|
+
| **Checked** | Where you are or what's on (a view, a sort, a switcher): the `secondary-container` fill and a trailing `check`, text at 700 ([selection.md](../rules/selection.md)). One at a time unless the menu says otherwise |
|
|
27
|
+
| **Danger** | An act that destroys: `error` ink, last, after a divider, once. It opens its confirmation dialog and never confirms inside the menu |
|
|
28
|
+
| **Focus** | The state layer, and the 2px `primary` outline drawn inside the row so the menu's edge can't clip it. In a suggestion menu the active row carries the same outline while focus stays in the editor |
|
|
29
|
+
|
|
30
|
+
## In the composer
|
|
31
|
+
|
|
32
|
+
- **Add** (`add`, an action menu opening upward from the button) lists what you can bring in first (Upload files, Record screen, a connected source), then a divider and **Commands**, each with its /name as the hint and no second line. Pointer users find the commands; the hint teaches `/`.
|
|
33
|
+
- **`/`** opens only at the very start of a message, so "and/or" and a path never trigger it. It lists only the commands, label and second line and /name, filtered on both as you type. **A command leads the message**; choosing another replaces it.
|
|
34
|
+
- **`@`** opens at the start or after a space. **People first**, then the things the product offers in this conversation: files, ideas, skills, agents, each group under its heading. A person has their 24px avatar (a photo, else initials); a thing has its icon. In a group thread a mention notifies the person; in a one-to-one with Alis it points her at them.
|
|
35
|
+
- **While it's open**: the first match is active. Up and Down move, Enter or Tab chooses, Escape closes and keeps what you typed. **Enter never sends while a suggestion menu is open** ([AppComposer](AppComposer.md)).
|
|
36
|
+
- **Searching** past 300 ms is one line with the loader: *Searching*. **Nothing found** is one line that echoes what you typed (*No commands match "/pricing"*, *No one or nothing called "thandi"*); a space or Escape then closes the band and your text stays text.
|
|
37
|
+
- **With an ask open**, the band sits between the ask and the editor, closest to the caret; the ask stays where it is.
|
|
38
|
+
|
|
39
|
+
## The token
|
|
40
|
+
|
|
41
|
+
What you chose from `/` or `@` becomes **one token in the sentence** (`.app-token`): `surface-container-highest`, `radius-sm`, 600, at the size of the text around it and on its baseline.
|
|
42
|
+
|
|
43
|
+
- **A person** reads "@Priya Naidoo", with no avatar: initials at text size can't be read. **A thing** carries its icon: `table` Q3 churn.csv. **A command** is `/research` with its icon.
|
|
44
|
+
- **It is atomic.** Backspace removes it whole; it can't be edited letter by letter, so the reference can't break.
|
|
45
|
+
- **In the sent bubble it stays**, and opens the person or thing ([AppTurn](AppTurn.md)). It is ink, not cyan: a bubble isn't a page of links.
|
|
46
|
+
|
|
47
|
+
## Markup
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<!-- An action menu behind more_vert -->
|
|
51
|
+
<button type="button" class="app-icon-btn app-state" aria-label="More actions" title="More actions" aria-haspopup="menu" aria-expanded="false" aria-controls="m-7"><span class="app-icon" aria-hidden="true">more_vert</span></button>
|
|
52
|
+
<div class="app-menu" id="m-7" role="menu" aria-label="Renewal calls, round 2" hidden>
|
|
53
|
+
<button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-icon" aria-hidden="true">edit</span><span class="app-menu__text"><span>Rename</span></span></button>
|
|
54
|
+
<button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-icon" aria-hidden="true">person_add</span><span class="app-menu__text"><span>Share</span><span class="app-menu__support">Priya and 2 others have access</span></span></button>
|
|
55
|
+
<button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-icon" aria-hidden="true">link</span><span class="app-menu__text"><span>Copy link</span></span><span class="app-menu__hint">Ctrl L</span></button>
|
|
56
|
+
<hr class="app-menu__divider">
|
|
57
|
+
<button type="button" class="app-menu__item app-menu__item--danger app-state" role="menuitem"><span class="app-icon" aria-hidden="true">delete</span><span class="app-menu__text"><span>Delete round</span></span></button>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<!-- Checked: a switcher -->
|
|
61
|
+
<button type="button" class="app-menu__item app-state is-selected" role="menuitemradio" aria-checked="true"><span class="app-menu__text"><span>Round 2 · Renewal calls</span><span class="app-menu__support">14 interviews · open</span></span><span class="app-icon" aria-hidden="true">check</span></button>
|
|
62
|
+
|
|
63
|
+
<!-- A heading over a group -->
|
|
64
|
+
<span class="app-menu__heading text-eyebrow" role="presentation">Commands</span>
|
|
65
|
+
|
|
66
|
+
<!-- A suggestion band in the composer, above the editor; the editor is the combobox -->
|
|
67
|
+
<div class="app-composer__box">
|
|
68
|
+
<ul class="app-menu app-menu--suggest" id="sg" role="listbox" aria-label="Mentions">
|
|
69
|
+
<li class="app-menu__heading text-eyebrow" role="presentation">People</li>
|
|
70
|
+
<li class="app-menu__item app-state is-active" id="sg-0" role="option" aria-selected="true"><span class="app-menu__avatar" aria-hidden="true">PN</span><span class="app-menu__text"><span>Priya Naidoo</span><span class="app-menu__support">Product lead</span></span></li>
|
|
71
|
+
<li class="app-menu__heading text-eyebrow" role="presentation">Files</li>
|
|
72
|
+
<li class="app-menu__item app-state" id="sg-1" role="option" aria-selected="false"><span class="app-icon" aria-hidden="true">table</span><span class="app-menu__text"><span>Q3 churn.csv</span><span class="app-menu__support">Sent 09:12</span></span></li>
|
|
73
|
+
</ul>
|
|
74
|
+
<div class="app-composer__editor"><div contenteditable="true" role="combobox" aria-autocomplete="list" aria-expanded="true" aria-controls="sg" aria-activedescendant="sg-0" aria-label="Message">What did @P</div></div>
|
|
75
|
+
<!-- the row -->
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<!-- Searching, and nothing found -->
|
|
79
|
+
<li class="app-menu__empty app-loader app-loader--line" role="presentation"><svg …></svg>Searching</li>
|
|
80
|
+
<li class="app-menu__empty" role="presentation">No commands match “/pricing”</li>
|
|
81
|
+
|
|
82
|
+
<!-- Tokens: in the editor (contenteditable="false"), and in the sent bubble (a link) -->
|
|
83
|
+
<span class="app-token" contenteditable="false"><span class="app-icon" aria-hidden="true">travel_explore</span>/research</span>
|
|
84
|
+
<a class="app-token" href="…">@Priya Naidoo</a>
|
|
85
|
+
<a class="app-token" href="…"><span class="app-icon" aria-hidden="true">table</span>Q3 churn.csv</a>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Behaviour you must supply
|
|
89
|
+
|
|
90
|
+
- **Place an action menu** 4 below its trigger, its start edge on the trigger's start (its end edge for a trigger at the end of a row), flipping above when there isn't room; the composer's Add opens upward. Toggle `hidden` and the trigger's `aria-expanded`.
|
|
91
|
+
- **Action menu keys**: Up and Down move and wrap, Home and End, a letter jumps to the next item starting with it, Enter or Space chooses, Escape closes and returns focus to the trigger, Tab closes. Down or Up on the trigger opens it on the first or last item. A press outside closes it.
|
|
92
|
+
- **Suggestion menu keys**, on the editor only (never a window listener): Up and Down move `is-active` and `aria-activedescendant`, Enter or Tab chooses, Escape closes. Ignore keys while `isComposing`. Stop the keys you handle from reaching anything else.
|
|
93
|
+
- **Triggers**: `/` at the start of the message only, `@` at the start or after a space; filter as you type; close when a space follows no match.
|
|
94
|
+
- **Tokens**: insert them as non-editable atoms followed by a space; carry them through whatever the editor serializes to (a token must survive the round trip, never becoming plain text or a placeholder), and render them as links in the sent message.
|
|
95
|
+
- **Checked items**: set `aria-checked`, `is-selected` and the trailing `check` together.
|
|
96
|
+
|
|
97
|
+
## Classes
|
|
98
|
+
|
|
99
|
+
`.app-menu`, `.app-menu--suggest`, `.app-menu__heading`, `.app-menu__divider`, `.app-menu__item`, `.app-menu__item--danger`, `.is-active`, `.is-selected`, `.app-menu__text`, `.app-menu__support`, `.app-menu__hint`, `.app-menu__avatar`, `.app-menu__empty`; `.app-token`; with `.app-state` on every item and `.app-loader.app-loader--line` on the searching line.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppTitleBar
|
|
2
2
|
|
|
3
|
-
The top of every product screen: the name
|
|
3
|
+
The top of every product screen: the name and the verbs; route tabs under the name; then the filter row, where search leads. And the bar of a detail pane.
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
@@ -11,8 +11,8 @@ See [page.md](../rules/page.md).
|
|
|
11
11
|
- **The verbs follow the route**: each tab shows the verbs that act on what it shows, and none when there is nothing to act on.
|
|
12
12
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
13
13
|
- **Tabs are routes**, and scroll sideways when they don't fit: each opens another view of this screen (Overview, Interviews, Artifacts). A tab that narrows one list is a filter: put it in the filter row as an [AppSegmented](AppSegmented.md).
|
|
14
|
-
- **
|
|
15
|
-
- **The filter row** is the first thing in `.app-shell__content` (which pads it):
|
|
14
|
+
- **No search in the bar.** The bar names the screen and holds its verbs; search narrows the list, so it leads the filter row ([page.md](../rules/page.md) § Search).
|
|
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
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 its verbs as text buttons on a row of their own under the name, so a 360px pane never truncates the name. No search, no tabs. The pane pads it; add nothing.
|
|
@@ -27,16 +27,6 @@ See [page.md](../rules/page.md).
|
|
|
27
27
|
<span class="app-titlebar__leading"><!-- AppIconButton arrow_back --></span>
|
|
28
28
|
<h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1>
|
|
29
29
|
</div>
|
|
30
|
-
<div class="app-titlebar__search">
|
|
31
|
-
<label class="app-search" role="search">
|
|
32
|
-
<span class="app-icon" aria-hidden="true">search</span>
|
|
33
|
-
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
34
|
-
<!-- Only while the input has a value: -->
|
|
35
|
-
<button type="button" class="app-search__clear app-state app-target" aria-label="Clear search">
|
|
36
|
-
<span class="app-icon" aria-hidden="true">close</span>
|
|
37
|
-
</button>
|
|
38
|
-
</label>
|
|
39
|
-
</div>
|
|
40
30
|
<div class="app-titlebar__actions">
|
|
41
31
|
<button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
|
|
42
32
|
</div>
|
|
@@ -66,20 +56,32 @@ See [page.md](../rules/page.md).
|
|
|
66
56
|
</div>
|
|
67
57
|
</header>
|
|
68
58
|
|
|
69
|
-
<!-- Filter row: first thing inside .app-shell__content -->
|
|
59
|
+
<!-- Filter row: first thing inside .app-shell__content. Search, the controls, then the count -->
|
|
70
60
|
<div class="app-filterrow">
|
|
71
|
-
<
|
|
72
|
-
|
|
61
|
+
<label class="app-search app-filterrow__search" role="search">
|
|
62
|
+
<span class="app-icon" aria-hidden="true">search</span>
|
|
63
|
+
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
64
|
+
<!-- Only while the input has a value: -->
|
|
65
|
+
<button type="button" class="app-search__clear app-state app-target" aria-label="Clear search">
|
|
66
|
+
<span class="app-icon" aria-hidden="true">close</span>
|
|
67
|
+
</button>
|
|
68
|
+
</label>
|
|
69
|
+
<div class="app-filterrow__controls"><!-- AppSegmented, filter chips, a select with aria-label --></div>
|
|
70
|
+
<p class="app-filterrow__summary text-meta" aria-live="polite">2 of 5 environments</p>
|
|
73
71
|
</div>
|
|
72
|
+
|
|
73
|
+
<!-- Nothing found: one line in the list's place -->
|
|
74
|
+
<p class="app-empty-line text-supporting">No environments match “eu-west”. <button type="button" class="app-btn app-btn--small app-state">Clear search</button></p>
|
|
74
75
|
```
|
|
75
76
|
|
|
76
77
|
## Behaviour you must supply
|
|
77
78
|
|
|
78
79
|
- Set `title` on the heading to the full name (the hover text for a truncated name).
|
|
79
|
-
- **Search**: filter as the user types;
|
|
80
|
+
- **Search**: filter as the user types a list you already hold; where the search goes to a server, run it on Enter and say so in the placeholder. Show the clear button only while the input has a value; clear empties the input, re-filters and returns focus to the input. Keep the query in the URL (`?q=`), so back, refresh and a shared link keep it.
|
|
81
|
+
- **The count** answers the row: the total at rest, "2 of 5" while a query or a filter narrows.
|
|
80
82
|
- **Tabs**: they are routes. Move `is-selected` and `aria-current="page"` to the current tab when the route changes. If your router renders links, `<a class="app-tab app-state" href="…">` takes the same classes.
|
|
81
83
|
- Hide search and the filter row when the list is empty.
|
|
82
84
|
|
|
83
85
|
## Classes
|
|
84
86
|
|
|
85
|
-
`.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-
|
|
87
|
+
`.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-titlebar__actions`; `.app-tabs`, `.app-tab`, `.is-selected`; `.app-filterrow`, `.app-filterrow__search`, `.app-filterrow__controls`, `.app-filterrow__summary`; `.app-search`, `.app-search__input`, `.app-search__clear`.
|
package/components/AppTurn.md
CHANGED
|
@@ -12,7 +12,7 @@ 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, not rendered as markdown. No avatar, no name | `.app-turn--you` |
|
|
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; 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
|
|
|
@@ -38,7 +38,7 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
|
|
|
38
38
|
|
|
39
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
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
|
|
41
|
+
- **On a phone** there is no hover: a long press on a turn opens the same actions as an [AppMenu](AppMenu.md).
|
|
42
42
|
- **A person's turn has no actions.**
|
|
43
43
|
|
|
44
44
|
## What you send
|
package/components/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
15
15
|
| Component | What it is | Guide |
|
|
16
16
|
|---|---|---|
|
|
17
17
|
| AppShell | The one navigation rail, content, optional detail pane; the brand and the account card | [AppShell.md](AppShell.md) |
|
|
18
|
-
| AppTitleBar | The screen's name,
|
|
18
|
+
| AppTitleBar | The screen's name, verbs and route tabs; the detail bar; the filter row, where search leads | [AppTitleBar.md](AppTitleBar.md) |
|
|
19
19
|
| AppEmptyState | An empty pane that invites a first step | [AppEmptyState.md](AppEmptyState.md) |
|
|
20
20
|
| AppIcon | A Material Symbol, or a capability mark | [AppIcon.md](AppIcon.md) |
|
|
21
21
|
| AppButton | Text in ink by default, outlined for a surface's lead, filled for the one action that commits | [AppButton.md](AppButton.md) |
|
|
@@ -33,6 +33,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
33
33
|
| AppVoiceView | A live call given the content area, or the screen on a phone | [AppVoiceView.md](AppVoiceView.md) |
|
|
34
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
35
|
| AppAsk | When Alis needs you: an approval, a choice, a connection, docked on the composer | [AppAsk.md](AppAsk.md) |
|
|
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) |
|
|
36
37
|
| AppSelectTile | A card chosen among others | [AppSelectTile.md](AppSelectTile.md) |
|
|
37
38
|
| AppSegmented | 2 to 5 options that change content in place | [AppSegmented.md](AppSegmented.md) |
|
|
38
39
|
| AppListRow | A row in a list, the navigation pane or the agent chat list | [AppListRow.md](AppListRow.md) |
|
|
@@ -73,24 +74,22 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
73
74
|
<header class="app-titlebar">
|
|
74
75
|
<div class="app-titlebar__row">
|
|
75
76
|
<div class="app-titlebar__name"><h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1></div>
|
|
76
|
-
<div class="app-titlebar__search">
|
|
77
|
-
<label class="app-search" role="search">
|
|
78
|
-
<span class="app-icon" aria-hidden="true">search</span>
|
|
79
|
-
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
80
|
-
</label>
|
|
81
|
-
</div>
|
|
82
77
|
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button></div>
|
|
83
78
|
</div>
|
|
84
79
|
</header>
|
|
85
80
|
<div class="app-shell__content">
|
|
86
81
|
<div class="app-filterrow">
|
|
87
|
-
<
|
|
82
|
+
<label class="app-search app-filterrow__search" role="search">
|
|
83
|
+
<span class="app-icon" aria-hidden="true">search</span>
|
|
84
|
+
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
85
|
+
</label>
|
|
88
86
|
<div class="app-filterrow__controls">
|
|
89
87
|
<div role="radiogroup" aria-label="Filter by status" class="app-seg">
|
|
90
88
|
<button type="button" role="radio" aria-checked="true" class="app-seg__item app-state is-selected">All</button>
|
|
91
89
|
<button type="button" role="radio" aria-checked="false" class="app-seg__item app-state">Failed</button>
|
|
92
90
|
</div>
|
|
93
91
|
</div>
|
|
92
|
+
<p class="app-filterrow__summary text-meta">5 environments</p>
|
|
94
93
|
</div>
|
|
95
94
|
<div class="app-list" role="list" aria-label="Environments">
|
|
96
95
|
<div class="app-row app-state app-row--divided is-selected" role="listitem">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.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/known-gaps.md
CHANGED
|
@@ -4,7 +4,6 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
4
4
|
|
|
5
5
|
## Components not in the set
|
|
6
6
|
|
|
7
|
-
- **Menus**, and the overflow menu behind a `more_vert` icon button. Until there is one, keep the verbs visible as text buttons. The composer's Add menu, slash commands and mentions wait on it too.
|
|
8
7
|
- **Comboboxes** (a searchable or multi-value select) and **date and time pickers**. Use `AppSelect` or a text field with a format hint.
|
|
9
8
|
- **Checkboxes and radios** as standalone controls. A labelled set of choices is `AppSelectTile`s in an `AppFieldset`; an on/off setting is `AppSwitch`.
|
|
10
9
|
- **Tooltips** beyond the native `title` that `AppIconButton` sets (the product's opens below after 200ms, at most 240px wide).
|
|
@@ -14,6 +13,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
14
13
|
|
|
15
14
|
## Open patterns
|
|
16
15
|
|
|
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
19
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
package/rules/page.md
CHANGED
|
@@ -7,14 +7,15 @@ Every screen with a title bar reads the same way, top down.
|
|
|
7
7
|
```
|
|
8
8
|
Where does this go?
|
|
9
9
|
├─ The name of the screen → the title bar, left
|
|
10
|
-
├─ Search over the screen's content → the
|
|
10
|
+
├─ Search over the screen's content → the filter row, first
|
|
11
11
|
├─ A verb: New, Refresh, Delete → the title bar, right
|
|
12
12
|
├─ Tabs to another view of this screen,
|
|
13
13
|
│ each its own route → the title bar, under the name
|
|
14
14
|
├─ A filter that scopes the page: account,
|
|
15
15
|
│ product, period, status, target, or tabs
|
|
16
16
|
│ that narrow one list → the filter row
|
|
17
|
-
└─ A filter
|
|
17
|
+
└─ A filter or a search inside one pane or
|
|
18
|
+
one section → that pane or section's header
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
**A tab that changes the route is navigation; a tab that narrows one list is a
|
|
@@ -25,7 +26,7 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
25
26
|
|
|
26
27
|
[AppTitleBar](../components/AppTitleBar.md), `.app-titlebar`.
|
|
27
28
|
|
|
28
|
-
- **It holds the name
|
|
29
|
+
- **It holds the name and the verbs, and nothing that narrows the data**, search included. A
|
|
29
30
|
filter in the title slot leaves the screen unnamed; among the actions it reads
|
|
30
31
|
as something you do.
|
|
31
32
|
- **The name is the screen, alone.** Not the project, account or product the
|
|
@@ -49,8 +50,6 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
49
50
|
alternatives, never a button group.
|
|
50
51
|
- **Controls sit in a row with an 8px gap**, never per-control margins. A leading
|
|
51
52
|
back or close button pulls its glyph onto the 24px edge the title uses.
|
|
52
|
-
- **A search gives way first** on a narrow pane: its width shrinks, so no verb is
|
|
53
|
-
pushed off the bar.
|
|
54
53
|
- **The verbs follow the route**: each route tab shows the verbs that act on what
|
|
55
54
|
it shows, and none when nothing can be done.
|
|
56
55
|
|
|
@@ -68,10 +67,40 @@ page-title, so its bar names the selected thing in `text-section-title`
|
|
|
68
67
|
## The filter row
|
|
69
68
|
|
|
70
69
|
`.app-filterrow`. The first thing in the content, directly above what it scopes,
|
|
71
|
-
scrolling with it
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
scrolling with it: **one row that narrows the list**, and wraps.
|
|
71
|
+
|
|
72
|
+
- **Search first**, when the screen has one (§ Search).
|
|
73
|
+
- **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; selects follow
|
|
75
|
+
it.
|
|
76
|
+
- **The count closes the row**, at the far end, and answers it: what the scope
|
|
77
|
+
produces ("24 projects"), and "3 of 24" while a query or a filter narrows.
|
|
78
|
+
- One row of controls before the first result, never two.
|
|
79
|
+
|
|
80
|
+
## Search
|
|
81
|
+
|
|
82
|
+
**A search sits at the head of what it searches.** There are three places, one
|
|
83
|
+
rule:
|
|
84
|
+
|
|
85
|
+
- **A screen's list:** first in the filter row, 360 wide at most, giving way
|
|
86
|
+
before the filters do; below 600px it takes the whole first line. Never in
|
|
87
|
+
the title bar: the bar names the screen, and searching narrows the list.
|
|
88
|
+
- **One section:** at the end of that section's heading row, 240 at most. It
|
|
89
|
+
searches that section only.
|
|
90
|
+
- **A list pane** (a list beside its detail, a pane of sessions): the top of the
|
|
91
|
+
pane, at its full width.
|
|
92
|
+
|
|
93
|
+
Then:
|
|
94
|
+
|
|
95
|
+
- **No search on a list you can see whole**, about ten items or fewer. When the
|
|
96
|
+
list is empty, the row goes with it (§ Empty and entry screens).
|
|
97
|
+
- **It filters as you type** a list already loaded. A search that goes to a
|
|
98
|
+
server runs on Enter, and its placeholder says what it searches.
|
|
99
|
+
- **The query lives in the URL** (`?q=`): back, refresh and a shared link keep it.
|
|
100
|
+
- **Nothing found** is one line in the list's place that echoes the query and
|
|
101
|
+
offers Clear search. The count reads "0 of 24".
|
|
102
|
+
- **Finding anything across the product** (projects, interviews, skills,
|
|
103
|
+
environments) is not this, and has no pattern yet ([known-gaps.md](known-gaps.md)).
|
|
75
104
|
|
|
76
105
|
## A page-level notice
|
|
77
106
|
|
package/rules/quick-start.md
CHANGED
|
@@ -16,10 +16,10 @@ Or link the same two files from `node_modules`, or from a CDN at a pinned versio
|
|
|
16
16
|
```
|
|
17
17
|
AppShell
|
|
18
18
|
├─ nav AppListRow variant="nav" × destinations (navFoot: Settings, Help)
|
|
19
|
-
├─ content AppTitleBar name ·
|
|
19
|
+
├─ content AppTitleBar name · verbs · route tabs
|
|
20
20
|
│ [AppAlert, only for a page-level notice]
|
|
21
21
|
│ .app-shell__content
|
|
22
|
-
│ AppFilterRow
|
|
22
|
+
│ AppFilterRow search · AppSegmented / filter AppChips ··· "5 environments"
|
|
23
23
|
│ the list, table or document
|
|
24
24
|
└─ detail (optional) AppTitleBar variant="detail", then the selected thing
|
|
25
25
|
```
|
|
@@ -29,7 +29,8 @@ AppShell
|
|
|
29
29
|
| You need | Use |
|
|
30
30
|
|---|---|
|
|
31
31
|
| The frame and the navigation rail | `AppShell` |
|
|
32
|
-
| The screen's name,
|
|
32
|
+
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`; other verbs are text or icon buttons; no icon on a single verb |
|
|
33
|
+
| To search or narrow one list | `AppFilterRow`: `search` first, then `AppSegmented` or filter `AppChip`s, the count last ("2 of 5" while narrowed) |
|
|
33
34
|
| The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
|
|
34
35
|
| To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
|
|
35
36
|
| A list of things | `.app-list` + `AppListRow`; status as `trailing` small `AppChip kind="status"`; time as `meta`; other facts joined with " · " in `supporting` |
|
|
@@ -40,6 +41,7 @@ AppShell
|
|
|
40
41
|
| Questions and answers | `AppTranscript` |
|
|
41
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` |
|
|
42
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
|
+
| 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` |
|
|
43
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` |
|
|
44
46
|
| Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
|
|
45
47
|
| The one action that moves the user forward | `AppButton variant="filled"`, once per screen, labelled with the outcome; never in the title bar |
|
|
@@ -74,10 +76,11 @@ The screen most product work becomes: a list on the left, the selected item's se
|
|
|
74
76
|
```
|
|
75
77
|
AppShell detail={…}
|
|
76
78
|
├─ content
|
|
77
|
-
│ AppTitleBar title="Environments"
|
|
79
|
+
│ AppTitleBar title="Environments"
|
|
78
80
|
│ actions=AppButton variant="outlined" "New environment"
|
|
79
81
|
│ .app-shell__content
|
|
80
|
-
│ AppFilterRow summary="5 environments"
|
|
82
|
+
│ AppFilterRow search="Search environments" summary="5 environments"
|
|
83
|
+
│ → AppSegmented All · Healthy · Failed …
|
|
81
84
|
│ .app-list → AppListRow divided title="staging"
|
|
82
85
|
│ supporting="europe-west1 · v1.43.0 · release/1.43"
|
|
83
86
|
│ trailing=AppChip kind="status" tone="error" small "Failed"
|
package/tokens.json
CHANGED
|
@@ -845,17 +845,17 @@
|
|
|
845
845
|
{
|
|
846
846
|
"name": "radius-sm",
|
|
847
847
|
"value": "8px",
|
|
848
|
-
"usage": "
|
|
848
|
+
"usage": "A menu's rows, a token, and small controls."
|
|
849
849
|
},
|
|
850
850
|
{
|
|
851
851
|
"name": "radius-md",
|
|
852
852
|
"value": "12px",
|
|
853
|
-
"usage": "The inset inside a card, concentric with rounded-lg."
|
|
853
|
+
"usage": "The inset inside a card, concentric with rounded-lg; the rows of a band on the composer (an ask's options, suggestions)."
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
856
|
"name": "radius-lg",
|
|
857
857
|
"value": "16px",
|
|
858
|
-
"usage": "Cards, text fields, selects, the navigation-pane primary action, attachment tiles and a turn's bubble. Change the token, never one card."
|
|
858
|
+
"usage": "Cards, text fields, selects, menus, 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",
|