@alis-build/design-system 0.65.0 → 0.67.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 +8 -0
- package/classes.json +3 -0
- package/components/AppHandOff.md +6 -6
- package/components/AppIconButton.md +1 -1
- package/components/AppKeyBar.md +49 -0
- package/components/AppKeys.md +10 -10
- package/components/AppShortcutSheet.md +3 -3
- package/components/AppTooltip.md +1 -1
- package/components/README.md +1 -0
- package/package.json +1 -1
- package/rules/shortcuts.md +50 -19
- package/words.json +7 -0
package/alisx.css
CHANGED
|
@@ -1462,6 +1462,14 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
|
|
|
1462
1462
|
[data-single-keys="off"] .app-keys--single{display:none}
|
|
1463
1463
|
[data-single-keys="off"] .app-shortcuts .app-keys--single{display:inline-flex;opacity:.38}
|
|
1464
1464
|
.app-shortcuts[data-single-keys="off"] .app-keys--single{display:inline-flex;opacity:.38}
|
|
1465
|
+
/* ── Key bar · the keys of a screen worked through one item at a time, along its bottom edge ── */
|
|
1466
|
+
.app-keybar{position:sticky;bottom:0;z-index:1;display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:var(--space-4) var(--space-16);box-sizing:border-box;width:100%;padding:var(--space-8) var(--space-24);background:var(--background);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:400}
|
|
1467
|
+
.app-keybar__item{display:inline-flex;align-items:center;gap:var(--space-4);white-space:nowrap}
|
|
1468
|
+
.app-keybar__end{margin-left:auto;padding:0;border:0;border-radius:var(--radius-xs);background:none;color:inherit;font:inherit;cursor:pointer}
|
|
1469
|
+
.app-keybar__end:hover{color:var(--on-surface)}
|
|
1470
|
+
.app-keybar__end:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
|
|
1471
|
+
/* No keyboard, no bar */
|
|
1472
|
+
@media (pointer:coarse),(max-width:599px){.app-keybar{display:none}}
|
|
1465
1473
|
/* ── Tooltip · names a control and carries its keys: inverse, below, after 200ms ── */
|
|
1466
1474
|
.app-tooltip{position:fixed;z-index:40;display:inline-flex;align-items:center;gap:var(--space-8);max-width:240px;min-height:28px;box-sizing:border-box;margin:0;padding:var(--space-4) var(--space-8);border-radius:var(--radius-sm);background:var(--inverse-surface);color:var(--on-inverse-surface);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:500;pointer-events:none}
|
|
1467
1475
|
.app-tooltip[hidden]{display:none}
|
package/classes.json
CHANGED
package/components/AppHandOff.md
CHANGED
|
@@ -18,11 +18,11 @@ The person's tool is **your agent** ([words.md](../rules/words.md)), named where
|
|
|
18
18
|
|---|---|---|
|
|
19
19
|
| Plan an interview | Plan | The questions, pasted back; or the draft, saved by the agent |
|
|
20
20
|
| Make an artifact | Draft | The text, pasted back; or the artifact, saved by the agent |
|
|
21
|
-
| Set up a machine | Set up | The agent runs the
|
|
22
|
-
| Fix a failed setup | Fix | The agent runs the
|
|
21
|
+
| Set up a machine | Set up | The agent runs the AlisX CLI; the machine appears |
|
|
22
|
+
| Fix a failed setup | Fix | The agent runs the AlisX CLI; the setup runs again |
|
|
23
23
|
| Carry on an artifact | Continue | None: it ends in the chat or your agent |
|
|
24
24
|
|
|
25
|
-
**What comes back** is said once per group in the list (its heading) and in the steps' first line. A list groups its agents only when they bring the result back in two ways: "Saves the {result} to this project" (Alis, and agents that run commands) and "You paste the {result} back here" (chats). When every agent brings it back the same way (Set up, Fix, Continue), the list has one group and no heading. **What each agent needs** is its row's second line and the steps' first line: "Needs a Claude account", "Needs the
|
|
25
|
+
**What comes back** is said once per group in the list (its heading) and in the steps' first line. A list groups its agents only when they bring the result back in two ways: "Saves the {result} to this project" (Alis, and agents that run commands) and "You paste the {result} back here" (chats). When every agent brings it back the same way (Set up, Fix, Continue), the list has one group and no heading. **What each agent needs** is its row's second line and the steps' first line: "Needs a Claude account", "Needs the AlisX CLI".
|
|
26
26
|
|
|
27
27
|
## Four placements
|
|
28
28
|
|
|
@@ -47,7 +47,7 @@ Then the head (the label, then **Use another agent**), one line saying what the
|
|
|
47
47
|
- **Done on the machine** (Set up, Fix): "Check it here", with a line ("This page updates when Claude Code has finished.") and no button.
|
|
48
48
|
- **None** (Continue): no third step.
|
|
49
49
|
|
|
50
|
-
Under the steps of an agent that runs commands, when the way back needs the
|
|
50
|
+
Under the steps of an agent that runs commands, when the way back needs the AlisX CLI, sits a closed [AppDisclosure](AppDisclosure.md), **Set up the AlisX CLI yourself**, for anyone who would rather not let the agent install it. Continue never shows it.
|
|
51
51
|
|
|
52
52
|
## The doer
|
|
53
53
|
|
|
@@ -67,7 +67,7 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
|
|
|
67
67
|
**Two parts, the same at any length.** It never switches look at a character count.
|
|
68
68
|
|
|
69
69
|
- **The ask**: one sentence in the person's voice, imperative, sentence case, ending in a full stop. "Help me plan an interview about why onboarding takes three weeks." Built from what the person has given so far; with nothing yet, from the project: "Help me plan an interview for Client onboarding." Always shown, on the machine ground behind the `signal` caret like a command to run ([AppCodeBlock](AppCodeBlock.md)). It is words, not code, so it wraps, still in mono.
|
|
70
|
-
- **The context**, in Markdown: everything the agent needs and the person doesn't need to read. The goal (what the person typed, else the project's goal), then each document by its name with its text, then the way back. For an agent that runs commands, the way back says where to save with the
|
|
70
|
+
- **The context**, in Markdown: everything the agent needs and the person doesn't need to read. The goal (what the person typed, else the project's goal), then each document by its name with its text, then the way back. For an agent that runs commands, the way back says where to save with the AlisX CLI, and how to install the CLI and sign in when it is missing. For a chat, it says the form to give the result in, so the paste lands cleanly. A carry-on has no way back. This package sets no length limit; the product does.
|
|
71
71
|
- **One line says what the context carries**, under the ask: "With {what it carries, named and counted} and how to bring the {result} back." So: "With the goal, 3 documents and how to bring the questions back." For an agent that saves to the project: "…and how to save the {result} here." A carry-on drops the last part: "With the brief's full text." **Show full prompt** (beside Copy prompt) opens the context above that row, in a box that scrolls past 12 lines.
|
|
72
72
|
- **Copy prompt** copies the ask, a blank line, then the context. Never the caret.
|
|
73
73
|
- **Alis gets the same prompt**: the ask and the context are sent as the first message of a normal Alis chat.
|
|
@@ -91,7 +91,7 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
|
|
|
91
91
|
<span class="app-icon app-icon--mark app-row__icon" aria-hidden="true"><!-- assets/Harness/claude.svg --></span>
|
|
92
92
|
<span class="app-row__text">
|
|
93
93
|
<button type="button" class="app-row__hit text-object-title">Plan it with Claude Code</button>
|
|
94
|
-
<span class="text-supporting">Needs the
|
|
94
|
+
<span class="text-supporting">Needs the AlisX CLI</span>
|
|
95
95
|
</span>
|
|
96
96
|
<span class="app-row__trailing"><span class="app-icon" aria-hidden="true">chevron_right</span></span>
|
|
97
97
|
</div>
|
|
@@ -23,7 +23,7 @@ A 20px glyph in a 40px box that performs one action.
|
|
|
23
23
|
<button type="button" class="app-icon-btn app-state app-target" aria-label="Resolve conversation" aria-keyshortcuts="R">
|
|
24
24
|
<span class="app-icon" aria-hidden="true">check_circle</span>
|
|
25
25
|
</button>
|
|
26
|
-
<div class="app-tooltip" id="tt-3" role="tooltip" hidden>Resolve conversation <kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">
|
|
26
|
+
<div class="app-tooltip" id="tt-3" role="tooltip" hidden>Resolve conversation <kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">r</kbd></kbd></div>
|
|
27
27
|
|
|
28
28
|
<!-- Small (detail pane close, title bar) -->
|
|
29
29
|
<button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Close details" title="Close details">
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# AppKeyBar
|
|
2
|
+
|
|
3
|
+
The keys of a screen that is worked through one item at a time, in one quiet row along its bottom edge ([shortcuts.md](../rules/shortcuts.md) § The key bar).
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
- **Use** on a screen where one item is in focus and the same few acts are taken on item after item: a queue cleared one at a time.
|
|
8
|
+
- **Don't use** under a composer, a picker, a form or a list beside its detail. Those keys live in tooltips and the [AppShortcutSheet](AppShortcutSheet.md).
|
|
9
|
+
- **Only what works now.** Each item is a key whose act is there to take on the item in focus; the rest are left out, not dimmed.
|
|
10
|
+
- **In a field, the field's keys**: Enter sends, ⇧ Enter breaks the line, Esc leaves.
|
|
11
|
+
- **One per screen**, and never a second list of keys beside it: the last item opens the sheet.
|
|
12
|
+
|
|
13
|
+
## Anatomy
|
|
14
|
+
|
|
15
|
+
| Part | What it is |
|
|
16
|
+
|---|---|
|
|
17
|
+
| **Bar** (`.app-keybar`) | A row pinned to the bottom of the screen's scroller, on the ground (`background`) so content scrolls under it. 8 above and below, 24 either side; items 16 apart and wrapping. No border, no shadow |
|
|
18
|
+
| **Item** (`.app-keybar__item`) | An [AppKeys](AppKeys.md) set, or two that pair, then the act in a word or two: meta, `on-surface-variant`, 4 from the caps |
|
|
19
|
+
| **End** (`.app-keybar__end`) | The last item, pushed to the trailing edge: `?` All keys. A button that opens the sheet |
|
|
20
|
+
|
|
21
|
+
## Markup
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<div class="app-keybar">
|
|
25
|
+
<span class="app-keybar__item" aria-hidden="true">
|
|
26
|
+
<kbd class="app-keys app-keys--single"><kbd class="app-key">h</kbd></kbd>
|
|
27
|
+
<kbd class="app-keys app-keys--single"><kbd class="app-key">l</kbd></kbd>
|
|
28
|
+
Move
|
|
29
|
+
</span>
|
|
30
|
+
<span class="app-keybar__item" aria-hidden="true"><kbd class="app-keys"><kbd class="app-key">Enter</kbd></kbd> Reply</span>
|
|
31
|
+
<span class="app-keybar__item" aria-hidden="true"><kbd class="app-keys app-keys--single"><kbd class="app-key">x</kbd></kbd> Remove</span>
|
|
32
|
+
<span class="app-keybar__item" aria-hidden="true"><kbd class="app-keys app-keys--single"><kbd class="app-key">s</kbd></kbd> Later</span>
|
|
33
|
+
<button type="button" class="app-keybar__item app-keybar__end" aria-label="Keyboard shortcuts">
|
|
34
|
+
<kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">?</kbd></kbd> All keys
|
|
35
|
+
</button>
|
|
36
|
+
</div>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Behaviour you must supply
|
|
40
|
+
|
|
41
|
+
- **The items**, from the product's one list of shortcuts, kept to those whose act is there to take now. Change them as the item in focus changes, and to the field's keys while focus is in a field.
|
|
42
|
+
- **Decoration, not content.** Every item but the end is `aria-hidden`; the controls the keys press carry `aria-keyshortcuts`, and the sheet says each key in words.
|
|
43
|
+
- **The end opens the sheet** and closes it again.
|
|
44
|
+
- **Focus goes back** to what the keys act on after every act, so the next key works.
|
|
45
|
+
- **No keyboard, no bar**: the CSS hides it on a coarse pointer and below 600. Leave out an item whose keys are all single keys while single-key shortcuts are off.
|
|
46
|
+
|
|
47
|
+
## Classes
|
|
48
|
+
|
|
49
|
+
`.app-keybar`, `__item`, `__end`; with `.app-keys`.
|
package/components/AppKeys.md
CHANGED
|
@@ -4,12 +4,12 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
|
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
7
|
-
- **Where it goes**: after a label in an [AppTooltip](AppTooltip.md), in an [AppMenu](AppMenu.md) row's hint, at the end of the screen's search field, in the [AppShortcutSheet](AppShortcutSheet.md), and inline in prose that tells someone what to press.
|
|
7
|
+
- **Where it goes**: after a label in an [AppTooltip](AppTooltip.md), in an [AppMenu](AppMenu.md) row's hint, at the end of the screen's search field, in an [AppKeyBar](AppKeyBar.md), in the [AppShortcutSheet](AppShortcutSheet.md), and inline in prose that tells someone what to press.
|
|
8
8
|
- **Not a label.** Never inside a button, never in brackets, never on a line of its own under a composer or a picker.
|
|
9
9
|
- **One spelling.** ⌘ ⇧ ⌥ ⌃ on a Mac, Ctrl Shift Alt elsewhere; Enter, Esc, Tab, Space and Delete as words everywhere; arrows as arrows. Never a plus sign.
|
|
10
|
-
- **A
|
|
10
|
+
- **A letter cap is lowercase**, as typed: `j`, ⌘ k. **A capital takes Shift**: ⇧ u.
|
|
11
11
|
- **A symbol is its own cap**: `+`, `?`, `/` as the character they type. A lone `+` cap is the plus key, never a separator.
|
|
12
|
-
- **A sequence** puts `then` between its keys:
|
|
12
|
+
- **A sequence** puts `then` between its keys: g then h.
|
|
13
13
|
|
|
14
14
|
## Anatomy
|
|
15
15
|
|
|
@@ -24,21 +24,21 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
|
|
|
24
24
|
|
|
25
25
|
```html
|
|
26
26
|
<!-- On a control (tooltip, menu row, search field): decoration; the control carries aria-keyshortcuts -->
|
|
27
|
-
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">⌘</kbd><kbd class="app-key">
|
|
27
|
+
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">⌘</kbd><kbd class="app-key">k</kbd></kbd>
|
|
28
28
|
|
|
29
29
|
<!-- The same shortcut on Windows and Linux -->
|
|
30
|
-
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Ctrl</kbd><kbd class="app-key">
|
|
30
|
+
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Ctrl</kbd><kbd class="app-key">k</kbd></kbd>
|
|
31
31
|
|
|
32
32
|
<!-- A single key (a letter, a digit, +, ?, /): --single, so it can leave when single-key shortcuts are off -->
|
|
33
|
-
<kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">
|
|
33
|
+
<kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">r</kbd></kbd>
|
|
34
34
|
|
|
35
35
|
<!-- A capital, and a sequence -->
|
|
36
|
-
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">⇧</kbd><kbd class="app-key">
|
|
37
|
-
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">
|
|
36
|
+
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">⇧</kbd><kbd class="app-key">u</kbd></kbd>
|
|
37
|
+
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">g</kbd><span class="app-keys__then">then</span><kbd class="app-key">h</kbd></kbd>
|
|
38
38
|
|
|
39
39
|
<!-- Content (the sheet, prose): the caps hidden, the keys said -->
|
|
40
40
|
<p class="text-body">Open PowerShell and press
|
|
41
|
-
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Ctrl</kbd><kbd class="app-key">
|
|
41
|
+
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Ctrl</kbd><kbd class="app-key">v</kbd></kbd><span class="app-keys__said">Control V</span>
|
|
42
42
|
to paste the command.</p>
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
|
|
|
46
46
|
|
|
47
47
|
- **The platform**, detected once for the product (a Mac, or anything else), and every set written for it. A guide for another app writes that app's platform instead.
|
|
48
48
|
- **`app-keys--single`** on a set that is one character key with no modifier (a letter, a digit, `+`, `?`, `/`), so the product can hide it while single-key shortcuts are off (`data-single-keys="off"` on the root).
|
|
49
|
-
- **`aria-keyshortcuts`** on the control a set describes, in the platform's terms (`Meta+K` on a Mac, `Control+K` elsewhere; `R`; `Shift+U`).
|
|
49
|
+
- **`aria-keyshortcuts`** on the control a set describes, in the platform's terms (`Meta+K` on a Mac, `Control+K` elsewhere; `R`; `Shift+U`). The attribute keeps its capitals; only the cap is lowercase.
|
|
50
50
|
|
|
51
51
|
## Classes
|
|
52
52
|
|
|
@@ -41,11 +41,11 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
|
|
|
41
41
|
<dl>
|
|
42
42
|
<div class="app-shortcuts__row">
|
|
43
43
|
<dt class="text-body">Resolve</dt>
|
|
44
|
-
<dd><kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">
|
|
44
|
+
<dd><kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">r</kbd></kbd><span class="app-keys__said">R</span></dd>
|
|
45
45
|
</div>
|
|
46
46
|
<div class="app-shortcuts__row">
|
|
47
47
|
<dt class="text-body">Hand over</dt>
|
|
48
|
-
<dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">⇧</kbd><kbd class="app-key">
|
|
48
|
+
<dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">⇧</kbd><kbd class="app-key">u</kbd></kbd><span class="app-keys__said">Shift U</span></dd>
|
|
49
49
|
</div>
|
|
50
50
|
</dl>
|
|
51
51
|
</section>
|
|
@@ -63,7 +63,7 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
|
|
|
63
63
|
<label for="ks-single" class="app-switch-row">
|
|
64
64
|
<span class="app-switch-row__text">
|
|
65
65
|
<span class="text-body">Single-key shortcuts</span>
|
|
66
|
-
<span id="ks-single-s" class="text-supporting">Letters like
|
|
66
|
+
<span id="ks-single-s" class="text-supporting">Letters like a and r act on their own. Turn off if you use speech input.</span>
|
|
67
67
|
</span>
|
|
68
68
|
<input id="ks-single" type="checkbox" role="switch" class="app-switch" aria-describedby="ks-single-s" checked>
|
|
69
69
|
</label>
|
package/components/AppTooltip.md
CHANGED
|
@@ -28,7 +28,7 @@ Names a control that shows no words, and carries its keys ([shortcuts.md](../rul
|
|
|
28
28
|
</button>
|
|
29
29
|
<div class="app-tooltip" id="tt-3" role="tooltip" hidden>
|
|
30
30
|
Resolve conversation
|
|
31
|
-
<kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">
|
|
31
|
+
<kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">r</kbd></kbd>
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<!-- No shortcut: the label alone -->
|
package/components/README.md
CHANGED
|
@@ -29,6 +29,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
29
29
|
| AppCheckbox | Several of a list, or something you agree to; the radio for one of a few | [AppCheckbox.md](AppCheckbox.md) |
|
|
30
30
|
| AppTooltip | Names a control that shows no words, and carries its keys | [AppTooltip.md](AppTooltip.md) |
|
|
31
31
|
| AppKeys | A keyboard shortcut, one cap per key, written for the platform | [AppKeys.md](AppKeys.md) |
|
|
32
|
+
| AppKeyBar | The keys of a screen worked through one item at a time, along its bottom edge | [AppKeyBar.md](AppKeyBar.md) |
|
|
32
33
|
| AppFilePane | A file Alis made, opened beside the conversation: Preview / Code, each kind's body, its states | [AppFilePane.md](AppFilePane.md) |
|
|
33
34
|
| AppShortcutSheet | Every key the screen answers to, opened by `?`, in the detail pane's place | [AppShortcutSheet.md](AppShortcutSheet.md) |
|
|
34
35
|
| AppAvatar | A person (round) or a thing (a square tile), at 24, 36 or 80 | [AppAvatar.md](AppAvatar.md) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/shortcuts.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Keyboard shortcuts
|
|
2
2
|
|
|
3
|
-
**One way to write a key,
|
|
3
|
+
**One way to write a key, a few places to show it, one sheet that lists them all.**
|
|
4
4
|
This file decides how a shortcut is shown and which keys mean the same thing on
|
|
5
5
|
every screen. Which other keys a screen binds is that screen's own choice.
|
|
6
6
|
|
|
@@ -17,26 +17,28 @@ side, never a plus sign and never brackets.
|
|
|
17
17
|
| Control, where it differs from `mod` | ⌃ | Ctrl |
|
|
18
18
|
|
|
19
19
|
- **Detect the platform once**, for the whole product, and write every shortcut
|
|
20
|
-
for it. Never two spellings side by side ("⌘
|
|
20
|
+
for it. Never two spellings side by side ("⌘k / Ctrl k").
|
|
21
21
|
- **Modifiers first**, in the platform's order: ⌃ ⌥ ⇧ ⌘ on a Mac, Ctrl Alt Shift
|
|
22
22
|
elsewhere.
|
|
23
23
|
- **Named keys are words** on every platform: Enter, Esc, Tab, Space, Delete,
|
|
24
24
|
Backspace. **Arrows are arrows**: ↑ ↓ ← →.
|
|
25
|
-
- **A
|
|
26
|
-
|
|
27
|
-
- **A
|
|
25
|
+
- **A letter cap is the letter as typed, lowercase**: `j`, ⌘ k, Ctrl v. The cap
|
|
26
|
+
shows what the finger presses, and a capital on it reads as Shift.
|
|
27
|
+
- **A capital is written with Shift**: ⇧ u, never "U" beside "u".
|
|
28
|
+
- **A sequence says "then"**: g then h. Two caps with nothing between them are
|
|
28
29
|
pressed together.
|
|
29
30
|
- **A symbol is its own cap**: `+`, `?` and `/` are the keys themselves, written as
|
|
30
31
|
the character they type, even where a layout needs Shift for it. A lone `+` cap
|
|
31
32
|
is the plus key, never a separator.
|
|
32
|
-
- **Keys for another app** (a setup guide: "In PowerShell, press Ctrl
|
|
33
|
+
- **Keys for another app** (a setup guide: "In PowerShell, press Ctrl v") use that
|
|
33
34
|
guide's platform, not the one detected.
|
|
34
35
|
- **In a terminal** there are no caps, so keys are written in text: `Ctrl+V`
|
|
35
36
|
([terminal.md](terminal.md) § Writing text).
|
|
36
37
|
|
|
37
38
|
## Where a key shows
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
Where someone is already looking at the control it works, and on a screen
|
|
41
|
+
worked through by keyboard, along its bottom edge. Nowhere else.
|
|
40
42
|
|
|
41
43
|
1. **The tooltip** ([AppTooltip](../components/AppTooltip.md)): the label, then the
|
|
42
44
|
keys. A text button that has a shortcut takes a tooltip only to carry its keys.
|
|
@@ -44,9 +46,11 @@ Only where someone is already looking at the control it works. Nowhere else.
|
|
|
44
46
|
trailing hint.
|
|
45
47
|
3. **The screen's search field** ([AppTitleBar](../components/AppTitleBar.md)): a
|
|
46
48
|
`/` cap at its end, while it is empty and unfocused. A field has no tooltip.
|
|
49
|
+
4. **The key bar** ([AppKeyBar](../components/AppKeyBar.md)), only on a screen
|
|
50
|
+
that is worked through one item at a time (§ The key bar).
|
|
47
51
|
|
|
48
|
-
**On a touch screen, none of them.** Tooltips don't open, the search field's cap
|
|
49
|
-
|
|
52
|
+
**On a touch screen, none of them.** Tooltips don't open, the search field's cap,
|
|
53
|
+
a menu row's keys and the key bar leave (the CSS does it on a coarse pointer), and the account
|
|
50
54
|
menu leaves out **Keyboard shortcuts**. Keys in prose stay: a setup guide still
|
|
51
55
|
says what to press on the computer it is about.
|
|
52
56
|
|
|
@@ -55,6 +59,31 @@ and no hint lines: not under a composer ("Press Enter to send"), not under a
|
|
|
55
59
|
picker ("↑↓ to navigate"). Enter sends and Shift Enter breaks the line in every
|
|
56
60
|
composer; Send's tooltip says so, and the sheet lists both.
|
|
57
61
|
|
|
62
|
+
## The key bar
|
|
63
|
+
|
|
64
|
+
A screen where one item is in focus and the same few acts are taken on item
|
|
65
|
+
after item (a queue cleared one at a time) may show its keys in an
|
|
66
|
+
[AppKeyBar](../components/AppKeyBar.md): one quiet row along the bottom of the
|
|
67
|
+
screen. There a tooltip would have to be opened again for every item; the row
|
|
68
|
+
is read once and then left alone.
|
|
69
|
+
|
|
70
|
+
- **Only on a work-through screen.** A form, a list beside its detail, a
|
|
71
|
+
composer and a picker never get one: the hint-line rule above still holds.
|
|
72
|
+
- **Only what works now, on the item in focus.** A key whose act isn't there to
|
|
73
|
+
take is left out, not dimmed, as in the sheet. While focus is in a field the
|
|
74
|
+
row is that field's keys: Enter sends, ⇧ Enter breaks the line, Esc leaves.
|
|
75
|
+
- **Caps, then the act in a word or two**, as its button names it, cut to the
|
|
76
|
+
verb: "Remove", "Later". Two keys that pair share one word: `h` `l` Move.
|
|
77
|
+
- **The last item opens the sheet**: `?` All keys. The bar is a reminder, the
|
|
78
|
+
sheet is the list.
|
|
79
|
+
- **No keyboard, no bar.** It leaves on a coarse pointer and below 600, and an
|
|
80
|
+
item whose keys are all single keys leaves while those are off.
|
|
81
|
+
- **Text buttons need no tooltip for their key** on a screen with a key bar. An
|
|
82
|
+
icon button keeps its tooltip, the keys after its label.
|
|
83
|
+
- **Every act hands focus back** to the thing the keys act on, so the next key
|
|
84
|
+
lands on the next item. A key that sends text goes to the text first: nothing
|
|
85
|
+
is sent unread.
|
|
86
|
+
|
|
58
87
|
## The sheet
|
|
59
88
|
|
|
60
89
|
Every key the screen answers to, in one place: an
|
|
@@ -71,27 +100,27 @@ nothing here is left out, not dimmed.
|
|
|
71
100
|
| ? | Opens or closes the sheet |
|
|
72
101
|
| Esc | Closes what is open (a menu, a dialog, the sheet). In a field it does the field's own job first (clears a search's query, closes a `/` or `@` band, cancels a rename), and otherwise leaves the field. One step at a time: an expanded file goes back beside the conversation before it closes, and a Glass view closes an open part before Esc leaves the view. Inside a page's frame (AppFilePane) keys are the page's, so Esc doesn't reach the app; the pane's bar still works |
|
|
73
102
|
| / | Puts you in the screen's search field |
|
|
74
|
-
| ⌘
|
|
103
|
+
| ⌘ k | Reserved for finding anything across the product ([known-gaps.md](known-gaps.md)); bind nothing to it |
|
|
75
104
|
|
|
76
105
|
A screen never rebinds these, and never takes a key the browser or the operating
|
|
77
|
-
system owns (⌘
|
|
106
|
+
system owns (⌘ w, ⌘ t, ⌘ l, ⌘ r, ⌘ f, ⌘ p, ⌘ q, Ctrl Tab).
|
|
78
107
|
|
|
79
108
|
These single keys mean the same wherever they work, and nothing else anywhere.
|
|
80
109
|
A screen binds the ones it has a use for:
|
|
81
110
|
|
|
82
111
|
| Keys | Does | Where |
|
|
83
112
|
| --- | --- | --- |
|
|
84
|
-
|
|
|
113
|
+
| j / k | Next / previous item; Enter opens it. With a detail open, steps to the next or previous item | Every list, and a list beside its detail |
|
|
85
114
|
| + | The screen's New: its title bar's lead when that is New or Add, or a new conversation. Matched on the character typed, so any layout and the numpad work | Every screen whose lead is a New or an Add |
|
|
86
|
-
|
|
|
115
|
+
| a / x | The affirmative / the refusal of an ask waiting on you, whoever asks ([AppAsk](../components/AppAsk.md)). `x` opens the reason field where there is one. **On an ask that is hard to undo** (deleting, reaching production), `a` moves focus to the affirmative and Enter confirms: one stray key never does it | Any screen showing an ask that waits on you |
|
|
87
116
|
| 1–9 | Picks option n of the ask, or of numbered options, waiting on you | Wherever options are numbered |
|
|
88
|
-
|
|
|
117
|
+
| u / ⇧ u | The people on this thing (participants, sharing, access) / hand it over, only where handing over exists | Anything with people on it |
|
|
89
118
|
|
|
90
119
|
## Single keys
|
|
91
120
|
|
|
92
121
|
A single key is any key that types a character on its own: a letter, a digit,
|
|
93
|
-
`+`, `?`, `/`. A screen may bind single keys for the verbs a person repeats (
|
|
94
|
-
approves,
|
|
122
|
+
`+`, `?`, `/`. A screen may bind single keys for the verbs a person repeats (`a`
|
|
123
|
+
approves, `r` resolves). Three conditions:
|
|
95
124
|
|
|
96
125
|
- **Never while typing.** A single key does nothing while focus is in a field, an
|
|
97
126
|
editor or anything that takes text.
|
|
@@ -101,13 +130,15 @@ approves, R resolves). Three conditions:
|
|
|
101
130
|
leave tooltips, menus and the search field; the sheet keeps them, dimmed, under
|
|
102
131
|
a note saying they are off, and still opens from the account menu. Speech input
|
|
103
132
|
types any character, and a stray one must not approve anything.
|
|
104
|
-
- **The same key, the same act.**
|
|
105
|
-
resolve; it never means Reply on another screen.
|
|
133
|
+
- **The same key, the same act.** `r` resolves wherever there is something to
|
|
134
|
+
resolve; it never means Reply on another screen. The same key may take a
|
|
135
|
+
second act only of the same kind, in a place the first never shows: `x`
|
|
136
|
+
refuses an ask, and takes an item off a queue.
|
|
106
137
|
|
|
107
138
|
## Accessible names
|
|
108
139
|
|
|
109
140
|
- **On a control**, the caps are decoration: hide them from assistive technology
|
|
110
141
|
and give the control `aria-keyshortcuts` (`R`, `Meta+L`, `Control+L`,
|
|
111
|
-
`Shift+U`).
|
|
142
|
+
`Shift+U`): the attribute names keys its own way, capitals included.
|
|
112
143
|
- **In the sheet and in prose**, the keys are the content: say them in words
|
|
113
144
|
(`.app-keys__said`, "Command K"), since a screen reader can't read ⌘ or ⇧.
|
package/words.json
CHANGED
|
@@ -88,6 +88,13 @@
|
|
|
88
88
|
"retired": ["Alis Identity"],
|
|
89
89
|
"avoid": []
|
|
90
90
|
},
|
|
91
|
+
{
|
|
92
|
+
"name": "AlisX CLI",
|
|
93
|
+
"product": "all",
|
|
94
|
+
"means": "The `alis` command line, and the TUI it opens with no arguments: how people and their coding agents use the AlisX Platform from a terminal. A product of the platform, so it takes the platform's name, written in full wherever it is named: its installer, its help, `alis upgrade`, its sign-in, the docs. \"The CLI\" after that; the command stays `alis`.",
|
|
95
|
+
"retired": ["Alis Build CLI", "Alis CLI"],
|
|
96
|
+
"avoid": ["alis CLI (in words: `alis` is the command)", "the Alis tools (for the CLI)"]
|
|
97
|
+
},
|
|
91
98
|
{
|
|
92
99
|
"name": "AlisX Specialists",
|
|
93
100
|
"product": "all",
|