@alis-build/design-system 0.51.0 → 0.52.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.51.0",
3
+ "version": "0.52.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/README.md CHANGED
@@ -14,7 +14,7 @@ Read only what the job needs.
14
14
 
15
15
  | Rule | Decides |
16
16
  | --- | --- |
17
- | [register.md](register.md) | Which register a surface is in, and the voice |
17
+ | [register.md](register.md) | Which register a surface is in, what a screen shows and what the docs explain (Glass views), and the voice |
18
18
  | [colour.md](colour.md) | Roles, the one action colour, status, categories |
19
19
  | [themes.md](themes.md) | Light and dark: asking for a theme, what changes, what doesn't |
20
20
  | [branding.md](branding.md) | Client identity, account-to-portal inheritance, permitted role overrides and embedding |
@@ -56,11 +56,13 @@ Read only what the job needs.
56
56
 
57
57
  Which applies is decided by the surface, never by preference ([register.md](register.md)).
58
58
 
59
- | | Product | Expressive | Narrative |
60
- |---|---|---|---|
61
- | **Where** | Ideate, Build, Admin: anything a user *works* in | Explainer pages inside the product | alisx.com, decks, one-pagers |
62
- | **Tokens** | Product roles (M3 names) | Product roles | `narrative-*`, `band-*`, `on-band-*`, `term-*` |
63
- | **Components** | `.app-*` (this package) | As product | `.ax-*` (not in this package) |
59
+ | | Product | Narrative |
60
+ |---|---|---|
61
+ | **Where** | Ideate, Build, Admin: anything a user *works* in, Glass views included | alisx.com, decks, one-pagers |
62
+ | **Tokens** | Product roles (M3 names) | `narrative-*`, `band-*`, `on-band-*`, `term-*` |
63
+ | **Components** | `.app-*` (this package) | `.ax-*` (not in this package) |
64
+
65
+ How the platform works is neither: it is the docs, and a screen links to it ([register.md](register.md) § Show it or explain it).
64
66
 
65
67
  **The platform.** **Alis Ideate**: discovery, AI-led interviews, context and shareable artifacts. **Alis Build**: delivery, secure build environments in your own Google Cloud. **Skill store**: the app store for know-how, at four levels (me, my team, the community, the platform). **AlisX Specialists**: vetted human expertise, inside the session.
66
68
 
@@ -39,6 +39,11 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
39
39
  - **C4 third-party styling**: a library component styled in place instead of
40
40
  themed or wrapped.
41
41
 
42
+ - **C5 a second manual**: how the platform works, written into a screen, a dialog,
43
+ a help panel or a command, where it drifts from the docs and no search finds it.
44
+ One sentence and a "How *thing* works" link instead ([register.md](register.md)
45
+ § Show it or explain it).
46
+
42
47
  ## D · Config holes
43
48
 
44
49
  - **D1 off the scale**: a spacing, size or radius value outside its scale.
@@ -55,7 +60,7 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
55
60
 
56
61
  ## Smell test
57
62
 
58
- Six questions, about a minute. **Run this before handing work back.**
63
+ Seven questions, about a minute. **Run this before handing work back.**
59
64
 
60
65
  1. **Is anything in the page casting a shadow?** Only a menu, the composer,
61
66
  a snackbar, a dialog, a dragged item or a card on the drafting field may. A
@@ -71,6 +76,9 @@ Six questions, about a minute. **Run this before handing work back.**
71
76
  6. **Have you looked at it in dark?** Set `data-theme="dark"` on the page. Text
72
77
  that vanishes, a white box, a shadow doing an edge's job → a colour that isn't
73
78
  a role ([themes.md](themes.md)).
79
+ 7. **Is anything here written once, for everyone, beyond one sentence?** Concepts,
80
+ how-it-works steps, conventions, gotchas → C5: it is the docs; link it. A page
81
+ called a Glass view that reads nothing of yours is the docs too.
74
82
 
75
83
  ## The agent failure mode
76
84
 
@@ -78,4 +86,4 @@ A developer under-reads a system and invents locally (C3). An agent does the
78
86
  opposite: it **over-produces**. Linters catch shapes, not this. Before handing
79
87
  work back, look for **B6** (a card where spacing would have done), **B1** (a
80
88
  second primary), **B9** (an outline on every card), a fourth type role, a section
81
- nobody asked for, and a colour that is not a role.
89
+ nobody asked for, a section explaining how it works (C5), and a colour that is not a role.
package/rules/buttons.md CHANGED
@@ -172,7 +172,9 @@ click goes.
172
172
  another site, and its accessible name says so ("Logs, opens in a new tab"), as
173
173
  on an [AppAttachment](../components/AppAttachment.md) and an
174
174
  [AppMenu](../components/AppMenu.md) row. Never `arrow_outward` or
175
- `arrow_forward` for it.
175
+ `arrow_forward` for it. A link to the docs is one of these and reads
176
+ **How *thing* works**, never "Learn more" ([register.md](register.md) § Show
177
+ it or explain it).
176
178
  - **A third party's mark on a hand-off**: "Sign in with Google", "Connect
177
179
  GitHub", "Open in VS Code". The button takes you to that party, so it leads
178
180
  with their mark, at the glyph's size and never recoloured (an agent's mark
package/rules/register.md CHANGED
@@ -11,13 +11,76 @@ What am I building?
11
11
  │ plain ground (AppSignIn)
12
12
  ├─ An empty state, an upgrade prompt → PRODUCT, with the one
13
13
  │ crossing below
14
- ├─ An explainer page inside the product that
15
- │ sells a capability → EXPRESSIVE (below)
14
+ ├─ The live inside of one thing of yours: an
15
+ │ environment, a product's deploys, a run → PRODUCT, a Glass view
16
+ │ (Show it or explain it)
17
+ ├─ How the platform works: concepts, steps,
18
+ │ lifecycle, conventions, gotchas → THE DOCS, never a screen;
19
+ │ the screen links to them
20
+ │ (Show it or explain it)
16
21
  ├─ An email → PRODUCT, built from the
17
22
  │ email shell (email.md)
18
23
  └─ alisx.com, a landing page, a deck → NARRATIVE
19
24
  ```
20
25
 
26
+ ## Show it or explain it
27
+
28
+ **A screen shows what the platform knows about your things. The docs explain how
29
+ the platform works.** Ask of every part of a page: **is it read from the
30
+ platform when you open it, or was it written once, for everyone?**
31
+
32
+ - **Read when you open it** (your environments, a version's artifacts, where each
33
+ deployment stands, the arithmetic behind your score): a product screen.
34
+ - **Written once, for everyone** (what a workstation is, how a release moves, a
35
+ Makefile's conventions, what to do when a deploy hangs): the docs, where search,
36
+ `alis docs` and every agent find it, and where it is written once rather than
37
+ drifting in two places. The screen links to it.
38
+ - **A page that does both** is a product screen: the live part stays, the
39
+ explanation moves to the docs, and the screen links to it.
40
+
41
+ How much a screen explains, so the line is not a judgment:
42
+
43
+ - **One sentence that says what a thing is, where you first meet it**: an empty
44
+ state's line, a field's supporting line, a dialog's line. Then the link.
45
+ - **Never a section of explanation**: no concepts, how-it-works steps, lifecycle,
46
+ conventions, worked examples, gotchas or FAQ on a screen, a tab, a dialog or a
47
+ help panel; and no screen or dialog that holds only explanation.
48
+ - **The link reads "How *thing* works"** ("How workstations work"): a text
49
+ button with a trailing `open_in_new` that opens the docs page in a new tab
50
+ ([buttons.md](buttons.md) § The form). Never "Learn more", "Explain …" or
51
+ "Documentation".
52
+
53
+ ### The Glass view
54
+
55
+ Glass is what you get when the casing of a running machine is made of glass: the
56
+ same thing, with what is happening inside it in sight. **A Glass view is a product
57
+ screen that shows the live inside of one thing of yours**: a build environment's
58
+ products, services and shared infrastructure; where each of a product's
59
+ deployments stands against its designated branch; every artifact of a Define
60
+ result as it lands.
61
+
62
+ - **Nothing running behind it, no Glass view.** A page that reads nothing of
63
+ yours when it opens is the docs, whatever it is called.
64
+ - **Of one named thing**: reached from that thing's screen, at that thing's
65
+ address (`…/products/payments/glass`), never from a separate area of
66
+ explainers. Its title is **Glass view** and back names the thing
67
+ ([page.md](page.md) § Where back goes).
68
+ - **The way in is a text button, "Glass view"**, in the thing's title bar
69
+ ([AppTitleBar](../components/AppTitleBar.md)); a list row whose thing has one may
70
+ carry it in the row's menu. Never "Explain", "Explain this …" or "Glass Mode".
71
+ - **The product register throughout**: the title bar, sections, tables and
72
+ states every screen has. No hero, no display type, no petrol band; it is a
73
+ working screen, and the person on it asked a question.
74
+ - **Its explanation is a docs link** ("How build environments work"), by the
75
+ rule above.
76
+ - **Smaller evidence stays in place**: the arithmetic behind one score, in a
77
+ dialog from the stat it explains, is part of that screen, not a Glass view.
78
+
79
+ The same line holds in the terminal ([terminal.md](terminal.md)).
80
+
81
+ **Nothing inside a product sells.** A signed-in person who asked how something
82
+ works wants the answer, in the docs; the pitch is alisx.com's (Narrative).
83
+
21
84
  ## Product
22
85
 
23
86
  Material Design 3 is the substrate, and the brand is pulled through it. **Where
@@ -54,25 +117,6 @@ one card on the plain ground ([AppSignIn](../components/AppSignIn.md)).
54
117
  The test: is the person on this screen **working**, or **being spoken to**? If it
55
118
  is genuinely both, it is product with a narrative hero, not a blend.
56
119
 
57
- ## Expressive pages
58
-
59
- An explainer page inside the product may take a bolder treatment:
60
-
61
- - A drafting-field hero, Nunito Sans 800 display at 64px (48 tablet, 36 phone)
62
- with tight tracking, and the red terminal mark when the headline has no
63
- punctuation.
64
- - Hero copy at 20/32 (18/28 compact) in solid supporting ink, and section
65
- headings at 36/44 (28/36 phone).
66
- - Petrol narrative and statistic bands with paired inverse ink, a teal lead
67
- feature card, and 64px section gaps (48 on a phone).
68
- - One filled action per hero or closing section; on petrol it is the light filled
69
- action. Link to destinations and interactions that already exist, rather than
70
- inventing new ones.
71
-
72
- The treatment stops at the page's own content. Code, tables, diagnostics, status
73
- colours and dialogs keep product roles. Never carry the display scale into working
74
- records or app chrome.
75
-
76
120
  ## Narrative
77
121
 
78
122
  alisx.com and the pages that sell, outside the product. An email addresses a
package/rules/terminal.md CHANGED
@@ -25,6 +25,14 @@ reads. They use the names in `words.json`, in full sentences ([words.md](words.m
25
25
  § Name it as they know it). JSON field names, error codes and resource paths
26
26
  (`ideas/*`) are code and stay as they are.
27
27
 
28
+ ## Show it or explain it
29
+
30
+ The line in [register.md](register.md) § Show it or explain it holds here too.
31
+ A command or a key shows your things; what it prints about how the platform works
32
+ is the docs page's address and `alis docs <topic>`, never an explanation of its
33
+ own, so there is one manual for people and agents. Where it shows the live inside
34
+ of one thing, it calls that the **Glass view**.
35
+
28
36
  ## Command and flag names
29
37
 
30
38
  A command or a flag is a label: it takes its name from `words.json`.
package/words.json CHANGED
@@ -43,6 +43,13 @@
43
43
  "retired": ["Alis Build console", "Ideate console"],
44
44
  "avoid": ["Console (capitalised, unless it opens a sentence)", "the dashboard", "the web app"]
45
45
  },
46
+ {
47
+ "name": "docs",
48
+ "product": "all",
49
+ "means": "How the platform works, written once for everyone: the docs site, and `alis docs` in the terminal, the one manual for people and agents. A screen says what a thing is in one sentence and links to its page with \"How *thing* works\", a text button with a trailing open_in_new (register.md § Show it or explain it).",
50
+ "retired": ["Learn more"],
51
+ "avoid": ["Explain (as a label for a link to the docs)", "Documentation (as a link label)", "help centre", "knowledge base"]
52
+ },
46
53
  {
47
54
  "name": "account",
48
55
  "plural": "accounts",
@@ -518,6 +525,14 @@
518
525
  "means": "Showing only the build environments you choose, so the others can't be acted on by mistake.",
519
526
  "retired": [],
520
527
  "avoid": []
528
+ },
529
+ {
530
+ "name": "Glass view",
531
+ "plural": "Glass views",
532
+ "product": "build",
533
+ "means": "A screen that shows the live inside of one thing of yours, read when you open it: a build environment's services and shared infrastructure, where each of a product's deployments stands, a Define result's artifacts. Reached by the text button Glass view in that thing's title bar. A page that reads nothing of yours is the docs, never a Glass view (register.md § Show it or explain it).",
534
+ "retired": ["Glass Mode"],
535
+ "avoid": ["Glass (alone, as its name)", "Explain (as its way in)"]
521
536
  }
522
537
  ],
523
538
  "verbs": [