@alis-build/design-system 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/alisx.css CHANGED
@@ -704,7 +704,7 @@ a.app-row,a.app-card{text-decoration:none}
704
704
  .app-file-pane__body>.app-skel{max-width:var(--measure-prose);margin:0 auto;padding:var(--space-32) var(--space-24)}
705
705
  @media (max-width:599px){.app-file-pane__bar{min-height:var(--titlebar-height-phone);padding:env(safe-area-inset-top,0px) var(--space-4) 0;gap:var(--space-4)}.app-file-pane__bar .app-icon-btn{color:var(--on-surface)}.app-file-pane__tools>.app-seg{margin-right:0}.app-file-pane__tools .app-seg__item{padding:0 var(--space-12)}.app-file-pane__word{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
706
706
 
707
- /* ── Navigation pane · brand, account card ── */
707
+ /* ── Navigation pane · brand, account card, a place's switcher ── */
708
708
  .app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
709
709
  .app-brand__wordmark{display:block;width:auto}
710
710
  .app-account{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;margin-top:var(--space-8);padding:var(--space-8);border:1px solid var(--outline-variant);border-radius:var(--radius-lg);background:transparent;color:var(--on-surface);text-align:left;font:inherit}
@@ -713,6 +713,10 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
713
713
  .app-account__text{flex:1;min-width:0;display:flex;flex-direction:column}
714
714
  .app-account__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
715
715
  .app-account>.app-icon{color:var(--on-surface-variant)}
716
+ .app-nav-switcher{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;margin-bottom:var(--space-8);padding:var(--space-8) var(--space-8) var(--space-8) var(--space-16);border:1px solid var(--outline-variant);border-radius:var(--radius-lg);background:transparent;color:var(--on-surface);text-align:left;font:inherit}
717
+ .app-nav-switcher__text{flex:1;min-width:0;display:flex;flex-direction:column}
718
+ .app-nav-switcher__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
719
+ .app-nav-switcher__kind,.app-nav-switcher>.app-icon{color:var(--on-surface-variant)}
716
720
 
717
721
  /* ── Empty state · speaks to the user; may take the drafting field ── */
718
722
  .app-empty{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-8);min-height:320px;padding:var(--space-48) var(--space-24);text-align:center;color:var(--on-surface)}
@@ -896,8 +900,9 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
896
900
  .app-composer__meter>i{display:block;flex:none;width:3px;height:4px;border-radius:2px;background:currentColor}
897
901
  .app-composer__rec{display:inline-flex;align-items:center;gap:var(--space-8);padding-inline:var(--space-8);color:var(--on-surface);white-space:nowrap}
898
902
  /* A live microphone: the dot pulses in error beside "Recording" (rules/colour.md § The two reds); a call is not a recording */
899
- .app-composer__rec::before{content:"";width:8px;height:8px;border-radius:var(--radius-pill);background:var(--error)}
900
- @media (prefers-reduced-motion:no-preference){.app-composer__rec::before{animation:app-dot 1.2s var(--motion-effects) infinite both}}
903
+ .app-field__rec{display:inline-flex;align-items:center;gap:var(--space-8);color:var(--on-surface)}
904
+ .app-composer__rec::before,.app-field__rec::before{content:"";width:8px;height:8px;border-radius:var(--radius-pill);background:var(--error)}
905
+ @media (prefers-reduced-motion:no-preference){.app-composer__rec::before,.app-field__rec::before{animation:app-dot 1.2s var(--motion-effects) infinite both}}
901
906
  .app-composer__timer{padding-inline:var(--space-8);font-variant-numeric:tabular-nums;color:var(--on-surface)}
902
907
  /* In a call: the status word alone; the light behind says whose turn it is, and a red dot means only "recording" */
903
908
  .app-composer__status{padding-inline:var(--space-8);color:var(--on-surface);white-space:nowrap}
package/classes.json CHANGED
@@ -142,6 +142,7 @@
142
142
  "app-field__box--select",
143
143
  "app-field__input",
144
144
  "app-field__label",
145
+ "app-field__rec",
145
146
  "app-field__row",
146
147
  "app-field__select",
147
148
  "app-field__support",
@@ -200,6 +201,9 @@
200
201
  "app-menu__support",
201
202
  "app-menu__text",
202
203
  "app-nav-heading",
204
+ "app-nav-switcher",
205
+ "app-nav-switcher__kind",
206
+ "app-nav-switcher__text",
203
207
  "app-progress",
204
208
  "app-progress__fill",
205
209
  "app-progress__head",
@@ -5,7 +5,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
5
5
  ## Use / don't use
6
6
 
7
7
  - **Every conversation**: Ideate, an interview, an agent session, a specialist thread. One composer per conversation, at the thread's measure (`measure-prose`, 710px), docked to the bottom of the thread or centred on an empty home.
8
- - **Not a form.** Something you fill in and submit once (feedback, a contribution, a new session's brief) is an [AppTextField](AppTextField.md) with a labelled filled button ([page.md](../rules/page.md) § Forms).
8
+ - **Not a form.** Something you fill in and submit once (feedback, a ticket, a contribution, a new session's brief) is an [AppTextField](AppTextField.md) with a labelled filled button ([page.md](../rules/page.md) § Forms). Its voice is the field's dictation, whose Stop never submits: the composer's trailing button sends, so inside a form, stopping a recording would send the form.
9
9
  - The surface is `surface-container-high` (white in light, a step lighter than a card in dark) at `elevation-2` with `radius-xl` (28): concentric with the 40px trailing button set 8 in. It floats; locked, it drops to the ground and the shadow goes.
10
10
 
11
11
  ## Anatomy
@@ -13,13 +13,13 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
13
13
  - **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu (§ The account menu).
14
14
  - **A row's "new"** is a small [AppIconButton](AppIconButton.md) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create: `add`, or `edit_square` where the destination is a conversation ("New chat"), as on its title bar's lead ([buttons.md](../rules/buttons.md) § The form).
15
15
  - **No action in the pane.** A screen's "new" is the outlined lead in its title bar ([AppTitleBar](AppTitleBar.md)); the navigation pane holds destinations, and a row's own "new" icon button.
16
- - **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot and replaces the middle with that object's destinations. Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
16
+ - **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot, and replaces the middle with one place's destinations, led by the way out of it (§ A contextual rail). Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
17
17
  - The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
18
18
  - **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
19
19
  - **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. **It has a URL** (a query parameter, as search keeps `?q=`), so a refresh, a shared link and back all find it. The [AppShortcutSheet](AppShortcutSheet.md) opens in its place: the content narrows for it, or it covers an open detail pane until it closes. Below 840px it slides over the content at `elevation-3`, over a scrim.
20
20
  - **A file beside the conversation** ([AppFilePane](AppFilePane.md)) is the detail pane made wide: `app-shell--file`. From 1200 the content takes two parts and the file three; below it the file takes the content's place; `app-shell--file-expanded` does the same at any width. It never slides over at `elevation-3`. Beside the conversation it is a card with an edge, the one pane that is (a file is an object); in the content's place it is flat.
21
21
  - **On a phone** (below 600px) the shell is one column: the content, under a one-row title bar ([AppTitleBar](AppTitleBar.md) § On a phone).
22
- - **The navigation pane fills the screen**: the same pane, brand, groups, agent chats and foot unchanged, hidden until the title bar's menu button opens it (`app-shell--nav-open`). It lies on the ground, edge to edge inside the safe area: nothing shows behind it, so no scrim and no elevation. Its close (`.app-shell__nav-close`, "Close navigation") sits in its head beside the brand. Never a column of icons: it hid the agent chats, the place you go back to most, and left the content too little room.
22
+ - **The navigation pane fills the screen**: the same pane, brand, groups, agent chats, a contextual rail's head and foot unchanged, hidden until the title bar's menu button opens it (`app-shell--nav-open`). It lies on the ground, edge to edge inside the safe area: nothing shows behind it, so no scrim and no elevation. Its close (`.app-shell__nav-close`, "Close navigation") sits in its head beside the brand. Never a column of icons: it hid the agent chats, the place you go back to most, and left the content too little room.
23
23
  - **The detail pane covers the full width**, and its bar leads with back (`arrow_back`) instead of close: on a phone it reads as a step deeper, and the phone's own back gesture closes it.
24
24
  - The CSS lays all of this out; you open and close the drawer.
25
25
  - No pane is a white card. Panes are separated by an `outline-variant` divider, not by fill.
@@ -85,6 +85,57 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
85
85
 
86
86
  Group headings are the product's short name, "Ideate" and "Build"; the full names (*Alis Ideate*, *Alis Build*) are for copy.
87
87
 
88
+ ## A contextual rail
89
+
90
+ Inside a place, the middle of the pane is that place's destinations, and its head is the way out. **The head is there on every screen inside the place**, so the way out never disappears. Two kinds, by what the place is:
91
+
92
+ - **A place you work in, among others like it** (a project): **its name is a switcher** (`.app-nav-switcher`), under the brand. A small label naming the kind ("Project", `text-meta`, `on-surface-variant`) over the name (`text-object-title`, truncating, the full name its `title`), `unfold_more` trailing: drawn like the account card, the other switcher in the pane. It opens an [AppMenu](AppMenu.md), in this order:
93
+ 1. **Recent projects**, the latest first, up to five, the current one checked (`menuitemradio`). Choosing one opens that project's Home.
94
+ 2. A divider.
95
+ 3. **All projects**.
96
+ 4. **New project**.
97
+
98
+ No glyphs: a menu has one on every row or none ([buttons.md](../rules/buttons.md) § The form), and a project's name has none to give, so New project goes without its `add` here.
99
+
100
+ **Leaving is switching, not back.** The screens the rail reaches (the project's Home, Interviews, Contributions) have no back, the project's Home has no "Back to projects", and the rail has no "← All projects" row: at the top of a pane that row reads as leaving settings ([page.md](../rules/page.md) § Where back goes).
101
+ - **A mode you visit and leave** (an account's settings, Support): **its head is a nav row back Home**, `arrow_back` and "Home", under the brand, the way apps leave settings. Then the place's destinations under an `.app-nav-heading` naming it (the account's name, "Support").
102
+
103
+ **Why two:** a project is a place you work in, for hours, and move between, so its head says where you are and offers the places beside it. Settings is a mode you visit briefly to change something, and then leave, so its head says where you return to. Support is the same: you come to it with one question, and there is no other Support to switch to. The brand still goes Home from every rail; the head is the way out you can read.
104
+
105
+ **On a phone** the head sits in the same place in the full-screen pane, under the brand and its close: the switcher opens its menu over the pane, and Home closes the pane as it goes.
106
+
107
+ ```html
108
+ <!-- A project: its name is the switcher -->
109
+ <nav class="app-shell__nav" aria-label="Customer onboarding">
110
+ <a class="app-brand" href="/" aria-label="AlisX home"><img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36"></a>
111
+ <button type="button" class="app-nav-switcher app-state" aria-haspopup="menu" aria-expanded="false" aria-controls="m-projects" title="Customer onboarding">
112
+ <span class="app-nav-switcher__text">
113
+ <span class="app-nav-switcher__kind text-meta">Project</span>
114
+ <span class="text-object-title">Customer onboarding</span>
115
+ </span>
116
+ <span class="app-icon" aria-hidden="true">unfold_more</span>
117
+ </button>
118
+ <!-- The project's destinations: nav AppListRows (Home, Contributions, Interviews…) -->
119
+ <!-- The foot, as on every rail -->
120
+ </nav>
121
+
122
+ <div class="app-menu" role="menu" id="m-projects" aria-label="Projects">
123
+ <button type="button" class="app-menu__item app-state is-selected" role="menuitemradio" aria-checked="true"><span class="app-menu__text"><span>Customer onboarding</span></span><span class="app-icon" aria-hidden="true">check</span></button>
124
+ <button type="button" class="app-menu__item app-state" role="menuitemradio" aria-checked="false"><span class="app-menu__text"><span>Claims discovery</span></span></button>
125
+ <hr class="app-menu__divider">
126
+ <button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-menu__text"><span>All projects</span></span></button>
127
+ <button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-menu__text"><span>New project</span></span></button>
128
+ </div>
129
+
130
+ <!-- An account's settings: a mode, left by Home -->
131
+ <div class="app-row app-state app-row--nav">
132
+ <span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">arrow_back</span>
133
+ <span class="app-row__text"><a class="app-row__hit text-label" href="/">Home</a></span>
134
+ </div>
135
+ <p class="app-nav-heading">Acme Research</p>
136
+ <!-- The account's destinations: People, Activity, Billing, Settings -->
137
+ ```
138
+
88
139
  ## The account menu
89
140
 
90
141
  An [AppMenu](AppMenu.md), opened from the account card, in three groups:
@@ -104,7 +155,9 @@ Usage lives here, never in a title bar: it measures the account, not the screen
104
155
  - The account card opens the account menu (toggle `aria-expanded`).
105
156
  - No photo: the person's initials ([AppAvatar](AppAvatar.md)) in `<span class="app-account__avatar text-label" aria-hidden="true">RS</span>`.
106
157
  - The brand link keeps its `aria-label`, since the wordmark is decorative.
158
+ - **The switcher** toggles `aria-expanded` and opens its menu under it. Keep the recent projects per person, latest opened first; the current project is always among them. Choosing one goes to that project's Home, and the menu closes.
159
+ - **Which pane shows** follows where the open thing lives, not the route you came by ([page.md](../rules/page.md) § Where back goes): an interview shows its project's rail wherever it was opened from.
107
160
 
108
161
  ## Classes
109
162
 
110
- `.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-shell--nav-open`, `.app-shell__nav-close`; `.app-brand`, `.app-brand__wordmark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
163
+ `.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-shell--nav-open`, `.app-shell__nav-close`; `.app-brand`, `.app-brand__wordmark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-nav-switcher`, `.app-nav-switcher__text`, `.app-nav-switcher__kind`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
@@ -9,6 +9,7 @@ A labelled text input: label above, an outlined box, one supporting or error lin
9
9
  - **An error** replaces the supporting line, in `error` with the `error` icon (outlined: FILL 1 is for selection), and turns the border `error`. Say what to do, as a sentence with a full stop: "Enter a full email address.", not "Invalid".
10
10
  - A `<textarea>` for longer answers. A leading icon only for a conventional glyph (mail, search, link).
11
11
  - **Action**: one text [AppButton](AppButton.md) beside the box (Add, Copy), for a field that collects several values or acts on its own value. Collected values are input [AppChip](AppChip.md)s between the box and the supporting line. With none yet, show nothing; the supporting line says the format ("One per line, as NAME=value.").
12
+ - **Voice in a field is dictation.** A plain `mic` icon button "Dictate" beside the box, where an action sits. While it listens it is `stop` "Stop dictating", the words land in the box as you speak, and the supporting line says **Recording** beside the red dot (a live microphone's privacy signal, [colour.md](../rules/colour.md) § The two reds). Stopping keeps the words to edit. **It never submits**: only the form's own labelled button does. A form never takes a composer, a voice note or a Send arrow ([AppComposer](AppComposer.md)).
12
13
  - **A choice from a list** is an [AppSelect](AppSelect.md), or an [AppCombobox](AppCombobox.md) when the list is long; an on/off setting is an [AppSwitch](AppSwitch.md) ([page.md](../rules/page.md) § Which control).
13
14
  - **A set of choices** (tiles, checkboxes) is labelled with a field set: a legend in label type, an optional supporting line.
14
15
  - **A form** is one column at the prose measure, fields 24px apart (`.app-form`), with its one filled action last. [page.md](../rules/page.md) § Forms says where errors go.
@@ -57,6 +58,16 @@ A labelled text input: label above, an outlined box, one supporting or error lin
57
58
  <p id="f-vars-s" class="app-field__support text-supporting">Add one at a time, as NAME=value.</p>
58
59
  </div>
59
60
 
61
+ <!-- Dictation, while it listens: stop beside the box; Recording on the supporting line -->
62
+ <div class="app-field">
63
+ <label for="f-what" class="app-field__label text-label">What happened?</label>
64
+ <div class="app-field__row">
65
+ <div class="app-field__box"><textarea id="f-what" class="app-field__input" rows="4" aria-describedby="f-what-s"></textarea></div>
66
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Stop dictating" title="Stop dictating"><span class="app-icon app-icon--filled" aria-hidden="true">stop</span></button>
67
+ </div>
68
+ <p id="f-what-s" class="app-field__support text-supporting"><span class="app-field__rec">Recording</span></p>
69
+ </div>
70
+
60
71
  <!-- Field set: labels a set of choices -->
61
72
  <fieldset class="app-fieldset">
62
73
  <legend class="app-fieldset__legend text-label">Plan</legend>
@@ -76,8 +87,9 @@ Disabled: `disabled` on the input and `is-disabled` on `.app-field`.
76
87
 
77
88
  - Give every input an `id`, point the label's `for` at it, and the support line's `id` (`<id>-s`) at `aria-describedby`.
78
89
  - **Error**: on submit, add `is-error` to `.app-field`, `aria-invalid="true"` to the input, put the error icon and message in the support line (replacing the supporting text), then focus the first invalid field. Remove all of it once fixed.
90
+ - **Dictation**: the mic starts it and swaps to `stop` "Stop dictating"; the words go into the box at the caret, the ones still settling in `on-surface-variant`. Stop, Escape or leaving the field ends it and keeps the words; the supporting text comes back. Enter while it listens does nothing. Mic blocked: the button shows `mic_off` and pressing it says on the supporting line how to allow it.
79
91
  - **Action field**: Enter in the input runs the action (prevent the form submit); validate the value, add it as an input chip, clear the input.
80
92
 
81
93
  ## Classes
82
94
 
83
- `.app-field`, `.is-error`, `.is-disabled`, `.app-field__label`, `.app-field__box`, `.app-field__input`, `.app-field__row`, `.app-field__values`, `.app-field__support`; `.app-fieldset`, `.app-fieldset__legend`, `.app-fieldset__support`; `.app-form`.
95
+ `.app-field`, `.is-error`, `.is-disabled`, `.app-field__label`, `.app-field__box`, `.app-field__input`, `.app-field__row`, `.app-field__values`, `.app-field__support`, `.app-field__rec`; `.app-fieldset`, `.app-fieldset__legend`, `.app-fieldset__support`; `.app-form`.
@@ -6,7 +6,7 @@ The top of every product screen: the name and the verbs; route tabs under the na
6
6
 
7
7
  See [page.md](../rules/page.md).
8
8
 
9
- - **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title.
9
+ - **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title. **Back returns to where you came from and is named for it** ("Back to interviews"), never a bare "Back"; with no step in the app behind it, it goes to the thing's parent and names that ([page.md](../rules/page.md) § Where back goes). A screen reached from the navigation pane has no back.
10
10
  - **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add, and by `edit_square` when it starts a new conversation ("New chat"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
11
11
  - **One order, by weight**: the lead, then text buttons, then icon buttons, ⋯ last ([page.md](../rules/page.md) § The title bar). The lead sits beside the name; ⋯ closes the row at every width, so the phone's bar is the same row folded. A destructive verb is the last before ⋯, or inside it.
12
12
  - **Never status.** The bar names the screen and holds its verbs: no meter, no usage ring, no saving state, no count. A thing's state is a chip on the detail bar's row or in the content; an account's usage is a row in the account menu ([AppShell](AppShell.md) § The account menu).
@@ -23,7 +23,7 @@ See [page.md](../rules/page.md).
23
23
 
24
24
  **On a phone** (below 600px) the bar is one row, 64 tall (`titlebar-height-phone`, Material 3's small app bar), and holds four things and nothing else:
25
25
 
26
- 1. **Leading**: the menu button (`menu`), which opens the navigation drawer ([AppShell](AppShell.md)); back (`arrow_back`) on a detail route. Nothing on a screen with no navigation (joining an interview, signing in).
26
+ 1. **Leading**: the menu button (`menu`), which opens the navigation drawer ([AppShell](AppShell.md)); back (`arrow_back`) on a detail route, named for where it returns. Nothing on a screen you arrive at from outside the app (joining an interview, signing in).
27
27
  2. **The name**, page-title at its compact step (22/28 at 500, Material 3's Title Large Emphasized), truncating.
28
28
  3. **The lead as its glyph alone**, its label the accessible name. A lead whose glyph wouldn't read on its own ("Generate key", "Install block") leaves the bar and leads ⋯ instead; a lead whose verb has a glyph ([buttons.md](../rules/buttons.md) § The form) carries it at every width (`edit` for "Edit session").
29
29
  4. **⋯** (`more_vert`), an [AppMenu](AppMenu.md) holding every other verb in the order they had, anything destructive last behind a divider. Left out when there are none. Rename lives here: never a double tap on the name.
@@ -71,24 +71,24 @@ The tabs scroll under it; the filter row is unchanged. Mark the parts that exist
71
71
  </header>
72
72
  <!-- m-bar: Set project goal, Rename, Share, a divider, Delete project -->
73
73
 
74
- <!-- A Viewer's bar: no verbs they can't use; the role chip after the name opens Sharing -->
74
+ <!-- A Viewer's bar on an interview opened from Interviews: back names where it returns; no verbs they can't use; the role chip after the name opens Sharing -->
75
75
  <header class="app-titlebar">
76
76
  <div class="app-titlebar__row">
77
77
  <div class="app-titlebar__name">
78
78
  <span class="app-titlebar__leading">
79
- <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Back to projects" title="Back to projects"><span class="app-icon" aria-hidden="true">arrow_back</span></button>
79
+ <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Back to interviews" title="Back to interviews"><span class="app-icon" aria-hidden="true">arrow_back</span></button>
80
80
  </span>
81
81
  <h1 class="app-titlebar__title text-page-title" title="Renewal calls">Renewal calls</h1>
82
82
  <button type="button" class="app-chip app-state app-titlebar__role app-wide-only" aria-haspopup="dialog" aria-label="Viewer. Open Sharing" title="Sharing"><span class="app-icon" aria-hidden="true">visibility</span>Viewer</button>
83
83
  </div>
84
84
  <div class="app-titlebar__actions">
85
- <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="More project actions" title="More project actions" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">more_vert</span></button>
85
+ <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="More interview actions" title="More interview actions" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">more_vert</span></button>
86
86
  </div>
87
87
  </div>
88
88
  <nav class="app-tabs">
89
- <button type="button" class="app-tab app-state">Overview</button>
90
- <button type="button" class="app-tab app-state is-selected" aria-current="page">Interviews</button>
91
- <button type="button" class="app-tab app-state">Artifacts</button>
89
+ <button type="button" class="app-tab app-state is-selected" aria-current="page">Overview</button>
90
+ <button type="button" class="app-tab app-state">Responses</button>
91
+ <button type="button" class="app-tab app-state">Setup</button>
92
92
  </nav>
93
93
  </header>
94
94
  <!-- On a phone ⋯ leads with Sharing, its second line "You're a Viewer" -->
@@ -137,6 +137,7 @@ The tabs scroll under it; the filter row is unchanged. Mark the parts that exist
137
137
  ## Behaviour you must supply
138
138
 
139
139
  - Set `title` on the heading to the full name (the hover text for a truncated name).
140
+ - **Back**: when a detail screen opens from inside the app, keep where it opened from (that screen's URL, its query included, and its name) in the history entry's state, never in the URL, so a shared link carries no origin. Carry it along as the thing's route tabs change. Back goes to it, restoring its search, filters and scroll: when it is the entry just behind, step back in history so the browser's back and forward still agree; otherwise go to it. With no origin, go to the thing's parent. Its `aria-label` and `title` are "Back to" and the destination's name, in sentence case: "Back to interviews", while a name keeps its own capitals ("Back to Customer onboarding").
140
141
  - **On a phone**: build ⋯ from the verbs the wide bar shows (the `app-wide-only` ones), in the same order, leading with the lead when it leaves the bar. Give the menu button `aria-expanded` and `aria-controls` pointing at the navigation pane. A tooltip never shows on touch: the lead's label is its accessible name.
141
142
  - **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.
142
143
  - **`/`** puts focus in the screen's search field from anywhere on the screen, except while focus is in another field ([shortcuts.md](../rules/shortcuts.md)). A section's or a pane's own search has no `/` and no cap: one field per screen answers to it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
@@ -13,7 +13,6 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
13
13
  ## Open patterns
14
14
 
15
15
  - **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 (reserved for it: [shortcuts.md](shortcuts.md)), opening a dialog grouped like the `@` menu, once a search across products exists.
16
- - **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.
17
16
  - **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
18
17
  - **Withdrawing a request, turning requests off, and approval chains.** A person can't withdraw a request they made, Owners can't choose whether anyone may ask, and a request that needs several approvers in turn has no pattern ([AppAsk](../components/AppAsk.md) § Who asks, [access.md](access.md) § Asking for more). An approval chain would be its own component: its parts and interaction differ.
19
18
  - **An account's own roles, and seats.** `words.json` names the roles on a thing (Owner, Editor, Viewer); an account's roles (an admin, a builder, a curator) and its seats are not in it yet. Say what the person needs in the screen's own words ("ask an admin of Acme"), and add the entries with the first change.
package/rules/page.md CHANGED
@@ -78,8 +78,12 @@ One test: **is what you were on still there behind it?**
78
78
  - **Yes: close (`close`) leads.** It opened beside or over a screen that stays: a
79
79
  detail pane, the file pane, the shortcut sheet, the navigation drawer, a file
80
80
  shown full size, a task you can leave half done (an interview in progress).
81
- - **No: back (`arrow_back`) leads.** It took the screen's place, and back goes up
82
- to where you came from: every detail screen, since it has its own route.
81
+ - **No: back (`arrow_back`) leads.** It took the screen's place: every detail
82
+ screen, since it has its own route, and a screen with no navigation pane that
83
+ you reached from inside the app (a setup shown until a product is set up:
84
+ "Back to Home"). Back returns to where you came from, and names it (§ Where
85
+ back goes). A screen you arrive at from outside the app, with nothing behind
86
+ it (joining an interview, signing in), leads with nothing.
83
87
  - **On a phone**, whatever covers the window leads with back, and the phone's back
84
88
  gesture does the same.
85
89
  - **Either one leads the bar**, its glyph on the 24px edge. Never on the trailing
@@ -94,9 +98,42 @@ One test: **is what you were on still there behind it?**
94
98
  [AppAttachment](../components/AppAttachment.md)). Never to delete, deny or
95
99
  reject: those take words.
96
100
 
101
+ ## Where back goes
102
+
103
+ **Back returns to where you came from, and its name says where.**
104
+
105
+ - **It returns to the screen you opened the thing from**, as you left it: its
106
+ search, its filters, its place in the list. An interview opened from the
107
+ app-wide Interviews goes back there; the same interview opened from its
108
+ project's Interviews goes back to the project's. A thing that opens from two
109
+ lists has two ways back, and each is right.
110
+ - **With no step in the app to return to** (you came by a link, a new tab or an
111
+ email), back goes to the thing's parent, the list it lives in, and names it.
112
+ - **Back never lands somewhere you weren't.** Not up to a parent you didn't come
113
+ through, and not to a level you skipped.
114
+ - **Its name says where**: "Back to interviews", "Back to Customer onboarding",
115
+ as its tooltip and its accessible name. Never a bare "Back" or "Go back" in a
116
+ bar: an arrow alone can't say whether it means the last screen or Home. (A
117
+ flow's Back text button steps to the step before, and says so by where it
118
+ sits.)
119
+ - **Moving inside the thing doesn't move it.** Its route tabs (Overview,
120
+ Responses, Setup) leave back where it was: it still returns to the list,
121
+ never to the tab before.
122
+ - **Only a screen you went into has back.** A screen you reach from the
123
+ navigation pane (a project's Home, its Interviews, its Contributions) is a
124
+ place, not a step: no back. You leave it by the pane
125
+ ([AppShell](../components/AppShell.md) § A contextual rail).
126
+ - **The navigation pane follows where a thing lives, never how you reached
127
+ it.** An interview lives in its project, so it shows its project's pane
128
+ however you opened it, the app-wide Interviews included; back to the app-wide
129
+ Interviews brings the app's pane back. A thing looks the same however you
130
+ reached it: the same pane, the same bar, the same tabs. Only where back goes
131
+ differs.
132
+
97
133
  ## A detail screen
98
134
 
99
- The same bar: back leading in flow, the name left, and renaming it or switching
135
+ The same bar: back leading in flow, named for where it returns (§ Where back
136
+ goes), the name left, and renaming it or switching
100
137
  to a sibling as small icon buttons beside the name. Never a centred title with
101
138
  the back button pinned absolutely, never the name inside a pill
102
139
  button, and never the name again as a title in the body. The bar keeps the
@@ -29,6 +29,7 @@ AppShell
29
29
  | You need | Use |
30
30
  |---|---|
31
31
  | The frame and the navigation rail | `AppShell` |
32
+ | The way out of a place, or back from a thing | Inside a project, its name at the top of the rail is a switcher; settings and Support lead their rail with "← Home" (`AppShell` § A contextual rail). A detail screen leads with back, named for the screen you came from ("Back to interviews"); a screen reached from the rail has none ([page.md](page.md) § Where back goes) |
32
33
  | The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`, led by `add` when it is New or Add (`edit_square` for a new conversation); other verbs are text or icon buttons; no icon on a single verb; never status. On a phone, one row: menu, name, the lead's glyph, ⋯ |
33
34
  | To search or narrow one list | `AppFilterRow`: `search` first, then `AppSegmented` or filter `AppChip`s, the count last ("2 of 5" while narrowed) |
34
35
  | The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |