@alis-build/design-system 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alisx.css +7 -5
- package/components/AppTitleBar.md +20 -18
- package/components/README.md +6 -8
- package/package.json +1 -1
- package/rules/known-gaps.md +1 -0
- package/rules/page.md +38 -9
- package/rules/quick-start.md +7 -5
package/alisx.css
CHANGED
|
@@ -396,7 +396,6 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
396
396
|
.app-titlebar__name{display:flex;align-items:center;gap:var(--space-8);min-width:0;margin:0}
|
|
397
397
|
.app-titlebar__title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
398
398
|
.app-titlebar__leading{margin-left:calc(var(--space-12) * -1)}
|
|
399
|
-
.app-titlebar__search{flex:1 1 0;min-width:0;max-width:480px;margin:0 auto}
|
|
400
399
|
.app-titlebar__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);margin-left:auto}
|
|
401
400
|
.app-search{display:flex;align-items:center;gap:var(--space-8);height:var(--control-height);padding:0 var(--space-16);border-radius:var(--radius-pill);background:var(--surface-container-highest);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px}
|
|
402
401
|
.app-search__clear{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant)}
|
|
@@ -414,12 +413,15 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
414
413
|
.app-titlebar--detail .app-titlebar__name{flex:1 1 100%}
|
|
415
414
|
/* The first verb's label meets the pane edge, as the close glyph does */
|
|
416
415
|
.app-titlebar--detail .app-titlebar__actions{flex-basis:100%;margin-left:calc(var(--space-24) * -1)}
|
|
417
|
-
/* Compact window:
|
|
418
|
-
@media (max-width:599px){.app-titlebar__row{flex-wrap:wrap;row-gap:var(--space-8)}.app-
|
|
416
|
+
/* Compact window: the verbs take their own row under the name; a row's meta gives way to its title */
|
|
417
|
+
@media (max-width:599px){.app-titlebar__row{flex-wrap:wrap;row-gap:var(--space-8)}.app-titlebar__actions{order:4;flex-basis:100%;margin-left:calc(var(--space-24) * -1)}.app-titlebar--detail .app-titlebar__actions{margin-left:calc(var(--space-24) * -1)}.app-row:not(.app-row--nav):not(.app-row--agent-chat) .app-row__meta{display:none}}
|
|
419
418
|
/* The filter row sits in .app-shell__content, which already pads the sides */
|
|
420
419
|
.app-filterrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
|
|
421
|
-
|
|
422
|
-
.app-
|
|
420
|
+
/* Search leads the row; the controls follow it; the count closes the row and answers them */
|
|
421
|
+
.app-filterrow__search{flex:0 1 360px;min-width:200px}
|
|
422
|
+
.app-filterrow__summary{order:1;margin:0 0 0 auto;color:var(--on-surface-variant);font-variant-numeric:tabular-nums}
|
|
423
|
+
.app-filterrow__controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);min-width:0;max-width:100%}
|
|
424
|
+
@media (max-width:599px){.app-filterrow__search{flex-basis:100%}}
|
|
423
425
|
.app-filterrow__controls>.app-seg{max-width:100%;overflow-x:auto;scrollbar-width:none}
|
|
424
426
|
|
|
425
427
|
/* ── Dialog · white at level 3, text actions, affirmative last ── */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppTitleBar
|
|
2
2
|
|
|
3
|
-
The top of every product screen: the name
|
|
3
|
+
The top of every product screen: the name and the verbs; route tabs under the name; then the filter row, where search leads. And the bar of a detail pane.
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
@@ -11,8 +11,8 @@ See [page.md](../rules/page.md).
|
|
|
11
11
|
- **The verbs follow the route**: each tab shows the verbs that act on what it shows, and none when there is nothing to act on.
|
|
12
12
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
13
13
|
- **Tabs are routes**, and scroll sideways when they don't fit: each opens another view of this screen (Overview, Interviews, Artifacts). A tab that narrows one list is a filter: put it in the filter row as an [AppSegmented](AppSegmented.md).
|
|
14
|
-
- **
|
|
15
|
-
- **The filter row** is the first thing in `.app-shell__content` (which pads it):
|
|
14
|
+
- **No search in the bar.** The bar names the screen and holds its verbs; search narrows the list, so it leads the filter row ([page.md](../rules/page.md) § Search).
|
|
15
|
+
- **The filter row** is the first thing in `.app-shell__content` (which pads it), one row that narrows the list: search first, then the filters, then the count at the far end ("12 interviews", "3 of 12" while something narrows). Below 600px, search takes the whole first line.
|
|
16
16
|
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
|
17
17
|
|
|
18
18
|
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and its verbs as text buttons on a row of their own under the name, so a 360px pane never truncates the name. No search, no tabs. The pane pads it; add nothing.
|
|
@@ -27,16 +27,6 @@ See [page.md](../rules/page.md).
|
|
|
27
27
|
<span class="app-titlebar__leading"><!-- AppIconButton arrow_back --></span>
|
|
28
28
|
<h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1>
|
|
29
29
|
</div>
|
|
30
|
-
<div class="app-titlebar__search">
|
|
31
|
-
<label class="app-search" role="search">
|
|
32
|
-
<span class="app-icon" aria-hidden="true">search</span>
|
|
33
|
-
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
34
|
-
<!-- Only while the input has a value: -->
|
|
35
|
-
<button type="button" class="app-search__clear app-state app-target" aria-label="Clear search">
|
|
36
|
-
<span class="app-icon" aria-hidden="true">close</span>
|
|
37
|
-
</button>
|
|
38
|
-
</label>
|
|
39
|
-
</div>
|
|
40
30
|
<div class="app-titlebar__actions">
|
|
41
31
|
<button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
|
|
42
32
|
</div>
|
|
@@ -66,20 +56,32 @@ See [page.md](../rules/page.md).
|
|
|
66
56
|
</div>
|
|
67
57
|
</header>
|
|
68
58
|
|
|
69
|
-
<!-- Filter row: first thing inside .app-shell__content -->
|
|
59
|
+
<!-- Filter row: first thing inside .app-shell__content. Search, the controls, then the count -->
|
|
70
60
|
<div class="app-filterrow">
|
|
71
|
-
<
|
|
72
|
-
|
|
61
|
+
<label class="app-search app-filterrow__search" role="search">
|
|
62
|
+
<span class="app-icon" aria-hidden="true">search</span>
|
|
63
|
+
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
64
|
+
<!-- Only while the input has a value: -->
|
|
65
|
+
<button type="button" class="app-search__clear app-state app-target" aria-label="Clear search">
|
|
66
|
+
<span class="app-icon" aria-hidden="true">close</span>
|
|
67
|
+
</button>
|
|
68
|
+
</label>
|
|
69
|
+
<div class="app-filterrow__controls"><!-- AppSegmented, filter chips, a select with aria-label --></div>
|
|
70
|
+
<p class="app-filterrow__summary text-meta" aria-live="polite">2 of 5 environments</p>
|
|
73
71
|
</div>
|
|
72
|
+
|
|
73
|
+
<!-- Nothing found: one line in the list's place -->
|
|
74
|
+
<p class="app-empty-line text-supporting">No environments match “eu-west”. <button type="button" class="app-btn app-btn--small app-state">Clear search</button></p>
|
|
74
75
|
```
|
|
75
76
|
|
|
76
77
|
## Behaviour you must supply
|
|
77
78
|
|
|
78
79
|
- Set `title` on the heading to the full name (the hover text for a truncated name).
|
|
79
|
-
- **Search**: filter as the user types;
|
|
80
|
+
- **Search**: filter as the user types a list you already hold; where the search goes to a server, run it on Enter and say so in the placeholder. Show the clear button only while the input has a value; clear empties the input, re-filters and returns focus to the input. Keep the query in the URL (`?q=`), so back, refresh and a shared link keep it.
|
|
81
|
+
- **The count** answers the row: the total at rest, "2 of 5" while a query or a filter narrows.
|
|
80
82
|
- **Tabs**: they are routes. Move `is-selected` and `aria-current="page"` to the current tab when the route changes. If your router renders links, `<a class="app-tab app-state" href="…">` takes the same classes.
|
|
81
83
|
- Hide search and the filter row when the list is empty.
|
|
82
84
|
|
|
83
85
|
## Classes
|
|
84
86
|
|
|
85
|
-
`.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-
|
|
87
|
+
`.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-titlebar__actions`; `.app-tabs`, `.app-tab`, `.is-selected`; `.app-filterrow`, `.app-filterrow__search`, `.app-filterrow__controls`, `.app-filterrow__summary`; `.app-search`, `.app-search__input`, `.app-search__clear`.
|
package/components/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
15
15
|
| Component | What it is | Guide |
|
|
16
16
|
|---|---|---|
|
|
17
17
|
| AppShell | The one navigation rail, content, optional detail pane; the brand and the account card | [AppShell.md](AppShell.md) |
|
|
18
|
-
| AppTitleBar | The screen's name,
|
|
18
|
+
| AppTitleBar | The screen's name, verbs and route tabs; the detail bar; the filter row, where search leads | [AppTitleBar.md](AppTitleBar.md) |
|
|
19
19
|
| AppEmptyState | An empty pane that invites a first step | [AppEmptyState.md](AppEmptyState.md) |
|
|
20
20
|
| AppIcon | A Material Symbol, or a capability mark | [AppIcon.md](AppIcon.md) |
|
|
21
21
|
| AppButton | Text in ink by default, outlined for a surface's lead, filled for the one action that commits | [AppButton.md](AppButton.md) |
|
|
@@ -74,24 +74,22 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
74
74
|
<header class="app-titlebar">
|
|
75
75
|
<div class="app-titlebar__row">
|
|
76
76
|
<div class="app-titlebar__name"><h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1></div>
|
|
77
|
-
<div class="app-titlebar__search">
|
|
78
|
-
<label class="app-search" role="search">
|
|
79
|
-
<span class="app-icon" aria-hidden="true">search</span>
|
|
80
|
-
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
81
|
-
</label>
|
|
82
|
-
</div>
|
|
83
77
|
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button></div>
|
|
84
78
|
</div>
|
|
85
79
|
</header>
|
|
86
80
|
<div class="app-shell__content">
|
|
87
81
|
<div class="app-filterrow">
|
|
88
|
-
<
|
|
82
|
+
<label class="app-search app-filterrow__search" role="search">
|
|
83
|
+
<span class="app-icon" aria-hidden="true">search</span>
|
|
84
|
+
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
85
|
+
</label>
|
|
89
86
|
<div class="app-filterrow__controls">
|
|
90
87
|
<div role="radiogroup" aria-label="Filter by status" class="app-seg">
|
|
91
88
|
<button type="button" role="radio" aria-checked="true" class="app-seg__item app-state is-selected">All</button>
|
|
92
89
|
<button type="button" role="radio" aria-checked="false" class="app-seg__item app-state">Failed</button>
|
|
93
90
|
</div>
|
|
94
91
|
</div>
|
|
92
|
+
<p class="app-filterrow__summary text-meta">5 environments</p>
|
|
95
93
|
</div>
|
|
96
94
|
<div class="app-list" role="list" aria-label="Environments">
|
|
97
95
|
<div class="app-row app-state app-row--divided is-selected" role="listitem">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/known-gaps.md
CHANGED
|
@@ -13,6 +13,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
13
13
|
|
|
14
14
|
## Open patterns
|
|
15
15
|
|
|
16
|
+
- **Finding anything across the product** (a project, an interview, a skill, an environment) from any screen. A screen's search narrows the list in front of you ([page.md](page.md) § Search); this is a different job. The likely shape is a Search row at the top of the rail with ⌘K, opening a dialog grouped like the `@` menu, once a search across products exists.
|
|
16
17
|
- **Navigation inside a project.** Open objects can sit in the navigation pane as secondary rows under a heading ([AppShell](../components/AppShell.md)), and an object's own views are route tabs in its title bar. A project's own destinations beside the app's have no pattern yet.
|
|
17
18
|
- **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
|
|
18
19
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
package/rules/page.md
CHANGED
|
@@ -7,14 +7,15 @@ Every screen with a title bar reads the same way, top down.
|
|
|
7
7
|
```
|
|
8
8
|
Where does this go?
|
|
9
9
|
├─ The name of the screen → the title bar, left
|
|
10
|
-
├─ Search over the screen's content → the
|
|
10
|
+
├─ Search over the screen's content → the filter row, first
|
|
11
11
|
├─ A verb: New, Refresh, Delete → the title bar, right
|
|
12
12
|
├─ Tabs to another view of this screen,
|
|
13
13
|
│ each its own route → the title bar, under the name
|
|
14
14
|
├─ A filter that scopes the page: account,
|
|
15
15
|
│ product, period, status, target, or tabs
|
|
16
16
|
│ that narrow one list → the filter row
|
|
17
|
-
└─ A filter
|
|
17
|
+
└─ A filter or a search inside one pane or
|
|
18
|
+
one section → that pane or section's header
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
**A tab that changes the route is navigation; a tab that narrows one list is a
|
|
@@ -25,7 +26,7 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
25
26
|
|
|
26
27
|
[AppTitleBar](../components/AppTitleBar.md), `.app-titlebar`.
|
|
27
28
|
|
|
28
|
-
- **It holds the name
|
|
29
|
+
- **It holds the name and the verbs, and nothing that narrows the data**, search included. A
|
|
29
30
|
filter in the title slot leaves the screen unnamed; among the actions it reads
|
|
30
31
|
as something you do.
|
|
31
32
|
- **The name is the screen, alone.** Not the project, account or product the
|
|
@@ -49,8 +50,6 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
49
50
|
alternatives, never a button group.
|
|
50
51
|
- **Controls sit in a row with an 8px gap**, never per-control margins. A leading
|
|
51
52
|
back or close button pulls its glyph onto the 24px edge the title uses.
|
|
52
|
-
- **A search gives way first** on a narrow pane: its width shrinks, so no verb is
|
|
53
|
-
pushed off the bar.
|
|
54
53
|
- **The verbs follow the route**: each route tab shows the verbs that act on what
|
|
55
54
|
it shows, and none when nothing can be done.
|
|
56
55
|
|
|
@@ -68,10 +67,40 @@ page-title, so its bar names the selected thing in `text-section-title`
|
|
|
68
67
|
## The filter row
|
|
69
68
|
|
|
70
69
|
`.app-filterrow`. The first thing in the content, directly above what it scopes,
|
|
71
|
-
scrolling with it
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
scrolling with it: **one row that narrows the list**, and wraps.
|
|
71
|
+
|
|
72
|
+
- **Search first**, when the screen has one (§ Search).
|
|
73
|
+
- **Then the filters.** The one used most, usually the one whose choice reveals
|
|
74
|
+
the others, comes first, so it never moves as they come and go; selects follow
|
|
75
|
+
it.
|
|
76
|
+
- **The count closes the row**, at the far end, and answers it: what the scope
|
|
77
|
+
produces ("24 projects"), and "3 of 24" while a query or a filter narrows.
|
|
78
|
+
- One row of controls before the first result, never two.
|
|
79
|
+
|
|
80
|
+
## Search
|
|
81
|
+
|
|
82
|
+
**A search sits at the head of what it searches.** There are three places, one
|
|
83
|
+
rule:
|
|
84
|
+
|
|
85
|
+
- **A screen's list:** first in the filter row, 360 wide at most, giving way
|
|
86
|
+
before the filters do; below 600px it takes the whole first line. Never in
|
|
87
|
+
the title bar: the bar names the screen, and searching narrows the list.
|
|
88
|
+
- **One section:** at the end of that section's heading row, 240 at most. It
|
|
89
|
+
searches that section only.
|
|
90
|
+
- **A list pane** (a list beside its detail, a pane of sessions): the top of the
|
|
91
|
+
pane, at its full width.
|
|
92
|
+
|
|
93
|
+
Then:
|
|
94
|
+
|
|
95
|
+
- **No search on a list you can see whole**, about ten items or fewer. When the
|
|
96
|
+
list is empty, the row goes with it (§ Empty and entry screens).
|
|
97
|
+
- **It filters as you type** a list already loaded. A search that goes to a
|
|
98
|
+
server runs on Enter, and its placeholder says what it searches.
|
|
99
|
+
- **The query lives in the URL** (`?q=`): back, refresh and a shared link keep it.
|
|
100
|
+
- **Nothing found** is one line in the list's place that echoes the query and
|
|
101
|
+
offers Clear search. The count reads "0 of 24".
|
|
102
|
+
- **Finding anything across the product** (projects, interviews, skills,
|
|
103
|
+
environments) is not this, and has no pattern yet ([known-gaps.md](known-gaps.md)).
|
|
75
104
|
|
|
76
105
|
## A page-level notice
|
|
77
106
|
|
package/rules/quick-start.md
CHANGED
|
@@ -16,10 +16,10 @@ Or link the same two files from `node_modules`, or from a CDN at a pinned versio
|
|
|
16
16
|
```
|
|
17
17
|
AppShell
|
|
18
18
|
├─ nav AppListRow variant="nav" × destinations (navFoot: Settings, Help)
|
|
19
|
-
├─ content AppTitleBar name ·
|
|
19
|
+
├─ content AppTitleBar name · verbs · route tabs
|
|
20
20
|
│ [AppAlert, only for a page-level notice]
|
|
21
21
|
│ .app-shell__content
|
|
22
|
-
│ AppFilterRow
|
|
22
|
+
│ AppFilterRow search · AppSegmented / filter AppChips ··· "5 environments"
|
|
23
23
|
│ the list, table or document
|
|
24
24
|
└─ detail (optional) AppTitleBar variant="detail", then the selected thing
|
|
25
25
|
```
|
|
@@ -29,7 +29,8 @@ AppShell
|
|
|
29
29
|
| You need | Use |
|
|
30
30
|
|---|---|
|
|
31
31
|
| The frame and the navigation rail | `AppShell` |
|
|
32
|
-
| The screen's name,
|
|
32
|
+
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`; other verbs are text or icon buttons; no icon on a single verb |
|
|
33
|
+
| To search or narrow one list | `AppFilterRow`: `search` first, then `AppSegmented` or filter `AppChip`s, the count last ("2 of 5" while narrowed) |
|
|
33
34
|
| The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
|
|
34
35
|
| To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
|
|
35
36
|
| A list of things | `.app-list` + `AppListRow`; status as `trailing` small `AppChip kind="status"`; time as `meta`; other facts joined with " · " in `supporting` |
|
|
@@ -75,10 +76,11 @@ The screen most product work becomes: a list on the left, the selected item's se
|
|
|
75
76
|
```
|
|
76
77
|
AppShell detail={…}
|
|
77
78
|
├─ content
|
|
78
|
-
│ AppTitleBar title="Environments"
|
|
79
|
+
│ AppTitleBar title="Environments"
|
|
79
80
|
│ actions=AppButton variant="outlined" "New environment"
|
|
80
81
|
│ .app-shell__content
|
|
81
|
-
│ AppFilterRow summary="5 environments"
|
|
82
|
+
│ AppFilterRow search="Search environments" summary="5 environments"
|
|
83
|
+
│ → AppSegmented All · Healthy · Failed …
|
|
82
84
|
│ .app-list → AppListRow divided title="staging"
|
|
83
85
|
│ supporting="europe-west1 · v1.43.0 · release/1.43"
|
|
84
86
|
│ trailing=AppChip kind="status" tone="error" small "Failed"
|