@alis-build/design-system 0.44.0 → 0.46.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/README.md CHANGED
@@ -150,7 +150,9 @@ export default {
150
150
  plain text a terminal app writes out of everything it says, in blocks headed
151
151
  `== kind place · area`, then one `field<TAB>text` line per thing read.
152
152
  `code` and `alias` lines, backticked spans (one a wrapped line carries on),
153
- printf verbs (`%s`) and placeholders (`<id>`) are code. The baseline counts
153
+ printf verbs (`%s`) and placeholders (`<id>`) are code. A line that carries
154
+ on its field's line above joins it, so a name the wrap breaks still counts.
155
+ The baseline counts
154
156
  each place, so the block that gains a retired name is the one that fails.
155
157
  The file is generated, so there is no ignore: change the words at their source.
156
158
  - In both, a retired name written with a capital ("Read only") is a label, and
package/check.mjs CHANGED
@@ -398,9 +398,13 @@ function plain(text) {
398
398
  let place = ''
399
399
  let open = false
400
400
  let at = 0
401
+ // The piece a wrapped line continues: same field, on the line above, read to its end.
402
+ let last = null
401
403
  for (const line of text.split('\n')) {
402
404
  const start = at
403
405
  at += line.length + 1
406
+ const previous = last
407
+ last = null
404
408
  const header = /^== +(\S+) +(.*?)(?: +hidden)? +· +\S+\s*$/.exec(line)
405
409
  if (header) {
406
410
  place = `${header[1]} ${header[2].replace(/\s+/g, ' ')}`
@@ -423,7 +427,14 @@ function plain(text) {
423
427
  value = value.slice(0, tick)
424
428
  open = true
425
429
  }
426
- if (/[A-Za-z]/.test(value)) pieces.push({ start: start + tab + 1, value, place })
430
+ if (!/[A-Za-z]/.test(value)) continue
431
+ const field = line.slice(0, tab)
432
+ // The 80-column wrap can break a name ("an output / artifact"), so a wrapped
433
+ // line joins the one above; the newline and field become spaces, so offsets hold.
434
+ const wraps = previous?.field === field && previous.end === start - 1
435
+ if (wraps) previous.piece.value += ' '.repeat(tab + 2) + value
436
+ else pieces.push({ start: start + tab + 1, value, place })
437
+ if (tick < 0) last = { field, piece: wraps ? previous.piece : pieces.at(-1), end: start + line.length }
427
438
  }
428
439
  return pieces
429
440
  }
@@ -11,7 +11,7 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
11
11
  - Cyan text is a link, never a button.
12
12
  - **Error** (`app-btn--error`) for destructive actions, at the same level. **Quiet** (`app-btn--quiet`, `on-surface-variant`) for a quiet action beside content.
13
13
  - No tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
14
- - **A word or a glyph, never both, outside the lexicon** ([buttons.md](../rules/buttons.md) § The form): `add` (New, Add), `upload`, `download`, `content_copy` (Copy), `link` (Copy link) and `edit` lead their verb wherever it appears; `edit_square` leads a new conversation; a trailing chevron opens a menu and a trailing `open_in_new` leaves the product, each with `app-icon--trailing` so it pulls into the end padding as a leading glyph pulls into the start; a third party's mark leads a hand-off to them. No glyph on a filled button or a dialog's affirmative.
14
+ - **A word or a glyph, never both, outside the lexicon** ([buttons.md](../rules/buttons.md) § The form): `add` (New, Add), `upload`, `download`, `content_copy` (Copy), `link` (Copy link) and `edit` lead their verb wherever it appears; `delete` (Delete, Discard) is drawn only where its word isn't, so a "Delete" text button has no glyph and its `error` ink marks it; `edit_square` leads a new conversation; a trailing chevron opens a menu and a trailing `open_in_new` leaves the product, each with `app-icon--trailing` so it pulls into the end padding as a leading glyph pulls into the start; a third party's mark leads a hand-off to them. No glyph on a filled button or a dialog's affirmative.
15
15
  - **A shortcut** never goes in the label. A button with one takes an [AppTooltip](AppTooltip.md) that says the label and its keys, and `aria-keyshortcuts` ([shortcuts.md](../rules/shortcuts.md)); a button without one has no tooltip.
16
16
  - The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text and outlined buttons are 600, the filled button 700. `app-btn--small` (32px, padded 12) belongs only in a table row. Inside a toggle group or table row, add `app-target--none`.
17
17
  - **Loading** shows the work on the control the user pressed: a 16px spinner replaces the icon and the label stays (or becomes the present participle, "Deploying"). The button is busy, not disabled: full colour, presses ignored until it settles.
@@ -7,6 +7,7 @@ A 20px glyph in a 40px box that performs one action.
7
7
  - `on-surface-variant`, no fill, no border, no shadow, no product colour ([buttons.md](../rules/buttons.md)).
8
8
  - The label is required: it is the accessible name and its [AppTooltip](AppTooltip.md), which carries the keys when it has a shortcut. No `title` as well: the browser would show a second tooltip.
9
9
  - An icon button is not a selection. The one exception is a **toggle** (on or off, and stays that way): selected, it takes the `secondary-container` fill with a filled glyph.
10
+ - **Delete and Discard are `delete`**, in the same `on-surface-variant`, on one thing on its own (a detail screen's title bar, a detail pane), never on every item in a list: there Delete is the danger row of the item's ⋯ menu. Remove is `close` ([buttons.md](../rules/buttons.md) § The form).
10
11
  - If it shows a word, use [AppButton](AppButton.md). If it does nothing on its own, it is an [AppIcon](AppIcon.md).
11
12
  - `app-icon-btn--small` (32px box; on touch its target still projects to 48) for the title bar's verbs and a detail pane's close. In a list row's trailing slot or a table cell the CSS shrinks it to 32px and drops the projected target for you.
12
13
 
@@ -24,7 +24,7 @@ A list of acts or places that opens from a control or from what you type, and cl
24
24
  | **Hint** | Trailing: a shortcut as an [AppKeys](AppKeys.md), or a /name in meta. Or `open_in_new` when the item leaves the app. Never a chevron |
25
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
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 |
27
+ | **Danger** | An act that destroys: `error` ink, last, after a divider, once. In a menu with glyphs Delete and Discard take `delete`, and Remove takes `close` ([buttons.md](../rules/buttons.md) § The form). It opens its confirmation dialog and never confirms inside the menu |
28
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
29
 
30
30
  ## In the composer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.44.0",
3
+ "version": "0.46.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/buttons.md CHANGED
@@ -108,6 +108,7 @@ appears: a text button, a lead, a menu row in a menu with glyphs, an icon button
108
108
  | Copy | `content_copy` |
109
109
  | Copy link | `link` |
110
110
  | Edit | `edit` |
111
+ | Delete, Discard | `delete`, never beside its word |
111
112
 
112
113
  - **`add` on every New and Add.** The action that brings a thing into a screen
113
114
  (§ Naming the action) leads with the plain `add` glyph wherever it appears: a
@@ -124,15 +125,36 @@ appears: a text button, a lead, a menu row in a menu with glyphs, an icon button
124
125
  link" as its word or tooltip, and every other copy is `content_copy`. Putting
125
126
  a link into what you write is `add_link` ("Insert link"), so `link` means one
126
127
  act.
128
+ - **`delete` means gone for good: Delete and Discard.** Delete is a thing that
129
+ stops existing for everyone; Discard is one that was never kept (a recording,
130
+ a draft). Remove keeps `close`, because what it takes away still exists
131
+ somewhere: a file off a message, a person from Sharing, a value from a field
132
+ ([AppChip](../components/AppChip.md),
133
+ [AppAttachment](../components/AppAttachment.md)). So the trash and the X never
134
+ stand in for each other.
135
+ - **Only where the word isn't shown**: an icon button, whose tooltip starts
136
+ with Delete or Discard ("Delete session"), and a menu row in a menu with
137
+ glyphs, where Delete is the danger row
138
+ ([AppMenu](../components/AppMenu.md)). A "Delete" text button keeps its
139
+ word and its `error` ink and takes no glyph: the ink already marks it. A
140
+ dialog's "Delete environment" is filled `error`, with none.
141
+ - **As an icon button it is `on-surface-variant`**, like the buttons beside
142
+ it, never `error`: the confirmation is where it turns red.
143
+ - **Never on every item.** In a list, a grid of cards or a table, Delete is the
144
+ danger row of each item's ⋯ menu, so how to destroy a thing is never the
145
+ loudest part of a list. One thing on its own (a detail screen's title bar, a
146
+ detail pane) may show it as an icon button.
147
+ - **The act, never a state**: a "Deleting" chip takes no trash.
127
148
  - **A verb joins the lexicon only when all four hold.** People know the glyph
128
149
  without its word, from the products they already use. People come to the screen
129
150
  looking for the action, rather than being offered it at the moment it fits
130
151
  (Retry on an error line is offered). The glyph means one thing in the product.
131
- And the action can't be regretted, because a landmark pulls the eye, and the eye
132
- shouldn't go first to what destroys. So Refresh, Retry and Update now keep no
133
- glyph (one arrow would mean three verbs), nor Delete (its `error` ink already
134
- marks it), nor Preview (the eye also means show and hide), nor Share (its glyph
135
- differs by platform).
152
+ And a glyph for an action that can be regretted stands only where its word
153
+ doesn't, because a landmark pulls the eye, and the eye shouldn't go first to
154
+ what destroys: beside the word, the `error` ink marks it alone. So Refresh,
155
+ Retry and Update now keep no glyph (one arrow would mean three verbs), nor
156
+ Preview (the eye also means show and hide), nor Share (its glyph differs by
157
+ platform).
136
158
 
137
159
  **Tells.** The glyph says what the word can't: what kind of action, or where the
138
160
  click goes.
package/words.json CHANGED
@@ -15,6 +15,34 @@
15
15
  "retired": [],
16
16
  "avoid": ["Ideate (as the one doing something)"]
17
17
  },
18
+ {
19
+ "name": "Alis Build",
20
+ "product": "all",
21
+ "means": "The product: delivery, in secure build environments in your own Google Cloud. \"Build\" alone is its heading in the navigation. Its people are the Alis Build team; the ones you write to are build specialists.",
22
+ "retired": [],
23
+ "avoid": []
24
+ },
25
+ {
26
+ "name": "Skill store",
27
+ "product": "all",
28
+ "means": "The product where skills are found, installed and published, at four levels: you, your team, the community and the platform. Named in full, with a lower-case s, in the CLI as on the console: a skill is in the Skill store, and is published to it.",
29
+ "retired": ["skills catalogue", "skill catalogue", "skills catalog", "skill catalog", "skills registry", "skill registry", "the catalogue", "Alis Build skills"],
30
+ "avoid": ["catalogue", "registry (for skills: a package registry is something else)", "marketplace (for skills: the Google Cloud Marketplace is where an account subscribes)"]
31
+ },
32
+ {
33
+ "name": "AlisX Specialists",
34
+ "product": "all",
35
+ "means": "The product: vetted human expertise, inside the session.",
36
+ "retired": [],
37
+ "avoid": []
38
+ },
39
+ {
40
+ "name": "console",
41
+ "product": "all",
42
+ "means": "The web app at console.alisx.com, as the CLI, Alis and the docs name it when they send you there. Lower case, and never named after one product.",
43
+ "retired": ["Alis Build console", "Ideate console"],
44
+ "avoid": ["Console (capitalised, unless it opens a sentence)", "the dashboard", "the web app"]
45
+ },
18
46
  {
19
47
  "name": "account",
20
48
  "plural": "accounts",
@@ -226,8 +254,8 @@
226
254
  "name": "instructions for Alis",
227
255
  "product": "ideate",
228
256
  "means": "How Alis should run an interview: tone, areas to cover, what to avoid. Participants don't see them.",
229
- "retired": [],
230
- "avoid": ["interviewer instructions"],
257
+ "retired": ["interviewer instructions"],
258
+ "avoid": [],
231
259
  "code": "plan.instructions"
232
260
  },
233
261
  {
@@ -404,9 +432,9 @@
404
432
  "name": "operation",
405
433
  "plural": "operations",
406
434
  "product": "build",
407
- "means": "A Define, Build or Deploy running on the platform. You wait on it, or you are told when it is done.",
435
+ "means": "A Define, Build or Deploy running on the platform. You wait on it, or you are told when it is done. The TUI lists them under Operations; the console's Activity is the team's sessions, not this.",
408
436
  "retired": [],
409
- "avoid": ["op (on screen)", "job"],
437
+ "avoid": ["op (on screen)", "job", "notifications (for the list of them: a notification is the alert that one is done)", "Activity (for the list of them)"],
410
438
  "code": "operations/*"
411
439
  },
412
440
  {
@@ -457,8 +485,8 @@
457
485
  "plural": "build specialists",
458
486
  "product": "build",
459
487
  "means": "Someone on the Alis Build team you can write to from the CLI or the console. Only them: a skill's or a code block's maintainer is its Owner.",
460
- "retired": [],
461
- "avoid": ["support staff"]
488
+ "retired": ["support staff"],
489
+ "avoid": []
462
490
  },
463
491
  {
464
492
  "name": "teammate",
@@ -489,6 +517,7 @@
489
517
  { "name": "Add", "means": "It already exists, and joins this place (buttons.md § Naming the action)." },
490
518
  { "name": "Upload", "means": "Files from your device (buttons.md § Naming the action)." },
491
519
  { "name": "Delete", "means": "It stops existing for everyone, and nobody can bring it back from the product." },
520
+ { "name": "Discard", "means": "It was never kept, and goes for good: a recording, a draft. Its glyph is Delete's (buttons.md § The form)." },
492
521
  { "name": "Remove", "means": "It leaves this place and still exists: a person from Sharing, a project from a collection, a file from a message." },
493
522
  { "name": "Archive", "means": "Only where there is a place to find archived things and bring them back. Otherwise it is Delete." },
494
523
  { "name": "Share", "means": "Opens Sharing." },