create-pmos 0.634.0 → 0.636.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/bin/create-pmos.js +1 -0
- package/package.json +22 -22
- package/payload/KIT-VERSION +2 -2
- package/payload/README.md +37 -113
- package/payload/design-system/README.md +98 -0
- package/payload/design-system/components/Badge/README.md +16 -0
- package/payload/design-system/components/Badge/preview.html +8 -0
- package/payload/design-system/components/Button/README.md +20 -0
- package/payload/design-system/components/Button/preview.html +8 -0
- package/payload/design-system/components/Calendar/README.md +14 -0
- package/payload/design-system/components/Calendar/preview.html +11 -0
- package/payload/design-system/components/Chart/README.md +24 -0
- package/payload/design-system/components/Chart/preview.html +50 -0
- package/payload/design-system/components/Conversation/README.md +14 -0
- package/payload/design-system/components/Conversation/preview.html +8 -0
- package/payload/design-system/components/Detail/README.md +17 -0
- package/payload/design-system/components/Detail/preview.html +8 -0
- package/payload/design-system/components/Document/README.md +15 -0
- package/payload/design-system/components/Document/preview.html +8 -0
- package/payload/design-system/components/Event/README.md +13 -0
- package/payload/design-system/components/Event/preview.html +8 -0
- package/payload/design-system/components/Field/README.md +13 -0
- package/payload/design-system/components/Field/preview.html +8 -0
- package/payload/design-system/components/Icon/README.md +12 -0
- package/payload/design-system/components/Icon/preview.html +8 -0
- package/payload/design-system/components/Input/README.md +17 -0
- package/payload/design-system/components/Input/preview.html +8 -0
- package/payload/design-system/components/List/README.md +21 -0
- package/payload/design-system/components/List/preview.html +15 -0
- package/payload/design-system/components/ListRow/README.md +19 -0
- package/payload/design-system/components/ListRow/preview.html +8 -0
- package/payload/design-system/components/MainItem/README.md +13 -0
- package/payload/design-system/components/MainItem/preview.html +8 -0
- package/payload/design-system/components/MainSide/README.md +12 -0
- package/payload/design-system/components/MainSide/preview.html +8 -0
- package/payload/design-system/components/Menu/README.md +13 -0
- package/payload/design-system/components/Menu/preview.html +8 -0
- package/payload/design-system/components/Navigation/README.md +14 -0
- package/payload/design-system/components/Navigation/preview.html +8 -0
- package/payload/design-system/components/Number/README.md +17 -0
- package/payload/design-system/components/Number/preview.html +8 -0
- package/payload/design-system/components/Settings/README.md +13 -0
- package/payload/design-system/components/Settings/preview.html +10 -0
- package/payload/design-system/components/SingleColumn/README.md +12 -0
- package/payload/design-system/components/SingleColumn/preview.html +8 -0
- package/payload/design-system/components/Stage/README.md +13 -0
- package/payload/design-system/components/Stage/preview.html +8 -0
- package/payload/design-system/components/Suggestion/README.md +14 -0
- package/payload/design-system/components/Suggestion/preview.html +10 -0
- package/payload/design-system/components/Summary/README.md +19 -0
- package/payload/design-system/components/Summary/preview.html +10 -0
- package/payload/design-system/components/Switch/README.md +13 -0
- package/payload/design-system/components/Switch/preview.html +10 -0
- package/payload/design-system/components/Table/README.md +18 -0
- package/payload/design-system/components/Table/preview.html +23 -0
- package/payload/design-system/components/Tabs/README.md +13 -0
- package/payload/design-system/components/Tabs/preview.html +11 -0
- package/payload/design-system/components/Timeline/README.md +15 -0
- package/payload/design-system/components/Timeline/preview.html +8 -0
- package/payload/design-system/components/Toast/README.md +14 -0
- package/payload/design-system/components/Toast/preview.html +8 -0
- package/payload/design-system/components/TodayPage/README.md +12 -0
- package/payload/design-system/components/TodayPage/preview.html +8 -0
- package/payload/design-system/components/bundle.css +126 -0
- package/payload/design-system/interactions.md +48 -0
- package/payload/design-system/pages.md +34 -0
- package/payload/design-system/tokens.css +9 -0
- package/payload/design-system/tokens.json +339 -0
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/changelog.json +21 -2
- package/workspace/ci-checks.sh +3 -0
- package/workspace/design-system/README.md +98 -0
- package/workspace/design-system/components/Badge/README.md +16 -0
- package/workspace/design-system/components/Badge/preview.html +8 -0
- package/workspace/design-system/components/Button/README.md +20 -0
- package/workspace/design-system/components/Button/preview.html +8 -0
- package/workspace/design-system/components/Calendar/README.md +14 -0
- package/workspace/design-system/components/Calendar/preview.html +11 -0
- package/workspace/design-system/components/Chart/README.md +24 -0
- package/workspace/design-system/components/Chart/preview.html +50 -0
- package/workspace/design-system/components/Conversation/README.md +14 -0
- package/workspace/design-system/components/Conversation/preview.html +8 -0
- package/workspace/design-system/components/Detail/README.md +17 -0
- package/workspace/design-system/components/Detail/preview.html +8 -0
- package/workspace/design-system/components/Document/README.md +15 -0
- package/workspace/design-system/components/Document/preview.html +8 -0
- package/workspace/design-system/components/Event/README.md +13 -0
- package/workspace/design-system/components/Event/preview.html +8 -0
- package/workspace/design-system/components/Field/README.md +13 -0
- package/workspace/design-system/components/Field/preview.html +8 -0
- package/workspace/design-system/components/Icon/README.md +12 -0
- package/workspace/design-system/components/Icon/preview.html +8 -0
- package/workspace/design-system/components/Input/README.md +17 -0
- package/workspace/design-system/components/Input/preview.html +8 -0
- package/workspace/design-system/components/List/README.md +21 -0
- package/workspace/design-system/components/List/preview.html +15 -0
- package/workspace/design-system/components/ListRow/README.md +19 -0
- package/workspace/design-system/components/ListRow/preview.html +8 -0
- package/workspace/design-system/components/MainItem/README.md +13 -0
- package/workspace/design-system/components/MainItem/preview.html +8 -0
- package/workspace/design-system/components/MainSide/README.md +12 -0
- package/workspace/design-system/components/MainSide/preview.html +8 -0
- package/workspace/design-system/components/Menu/README.md +13 -0
- package/workspace/design-system/components/Menu/preview.html +8 -0
- package/workspace/design-system/components/Navigation/README.md +14 -0
- package/workspace/design-system/components/Navigation/preview.html +8 -0
- package/workspace/design-system/components/Number/README.md +17 -0
- package/workspace/design-system/components/Number/preview.html +8 -0
- package/workspace/design-system/components/Settings/README.md +13 -0
- package/workspace/design-system/components/Settings/preview.html +10 -0
- package/workspace/design-system/components/SingleColumn/README.md +12 -0
- package/workspace/design-system/components/SingleColumn/preview.html +8 -0
- package/workspace/design-system/components/Stage/README.md +13 -0
- package/workspace/design-system/components/Stage/preview.html +8 -0
- package/workspace/design-system/components/Suggestion/README.md +14 -0
- package/workspace/design-system/components/Suggestion/preview.html +10 -0
- package/workspace/design-system/components/Summary/README.md +19 -0
- package/workspace/design-system/components/Summary/preview.html +10 -0
- package/workspace/design-system/components/Switch/README.md +13 -0
- package/workspace/design-system/components/Switch/preview.html +10 -0
- package/workspace/design-system/components/Table/README.md +18 -0
- package/workspace/design-system/components/Table/preview.html +23 -0
- package/workspace/design-system/components/Tabs/README.md +13 -0
- package/workspace/design-system/components/Tabs/preview.html +11 -0
- package/workspace/design-system/components/Timeline/README.md +15 -0
- package/workspace/design-system/components/Timeline/preview.html +8 -0
- package/workspace/design-system/components/Toast/README.md +14 -0
- package/workspace/design-system/components/Toast/preview.html +8 -0
- package/workspace/design-system/components/TodayPage/README.md +12 -0
- package/workspace/design-system/components/TodayPage/preview.html +8 -0
- package/workspace/design-system/components/bundle.css +126 -0
- package/workspace/design-system/interactions.md +48 -0
- package/workspace/design-system/pages.md +34 -0
- package/workspace/design-system/tokens.css +9 -0
- package/workspace/design-system/tokens.json +339 -0
- package/workspace/guide/agent-capabilities.md +2 -2
- package/workspace/guide/layout.md +7 -1
- package/workspace/lib/design-system.js +145 -0
- package/workspace/lib/idle-lab-engine.js +5 -1
- package/workspace/lib/live-round.js +15 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-today-model.js +53 -4
- package/workspace/public/pm/komorebi.css +145 -0
- package/workspace/public/pm/komorebi.js +240 -0
- package/workspace/run-tests.js +6 -1
- package/workspace/test-lists/design-system.json +9 -0
- package/workspace/test-lists/komorebi.json +9 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-20T00:18:45Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-20T00:18:45Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-20T00:18:45Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/payload/state/log.md
CHANGED
package/workspace/changelog.json
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"v": "0.
|
|
4
|
-
"at": "2026-11-
|
|
3
|
+
"v": "0.636.0",
|
|
4
|
+
"at": "2026-11-20T00:18:49.118Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1418,
|
|
9
|
+
"t": "The PMOS UI design system in the workspace, prototypes and the kit",
|
|
10
|
+
"s": "The PMOS UI design system in the workspace, prototypes and the kit",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.635.0",
|
|
17
|
+
"at": "2026-11-19T14:42:50.865Z",
|
|
5
18
|
"f": 4,
|
|
6
19
|
"prs": [
|
|
7
20
|
{
|
|
@@ -9,6 +22,12 @@
|
|
|
9
22
|
"t": "Read repo identity off the event loop (stops the 15 s freezes)",
|
|
10
23
|
"s": "Read repo identity off the event loop (stops the 15 s freezes)",
|
|
11
24
|
"k": "fix"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"n": 1417,
|
|
28
|
+
"t": "One line per brief item or Jira ticket; Jira Work shows its key",
|
|
29
|
+
"s": "One line per brief item or Jira ticket; Jira Work shows its key",
|
|
30
|
+
"k": "fix"
|
|
12
31
|
}
|
|
13
32
|
]
|
|
14
33
|
},
|
package/workspace/ci-checks.sh
CHANGED
|
@@ -19,6 +19,9 @@ fi
|
|
|
19
19
|
# token hygiene: no raw hex outside the token-definition blocks.
|
|
20
20
|
shopt -s nullglob
|
|
21
21
|
files=(public/pm/*.css)
|
|
22
|
+
# komorebi.css is generated from design-system/ (lib/design-system.js): its token blocks are the design system's own, and
|
|
23
|
+
# design-system.test.js holds it to that source, so it is the one sheet left out here
|
|
24
|
+
files=("${files[@]/public\/pm\/komorebi.css}"); files=($(printf '%s\n' "${files[@]}" | grep -v '^$'))
|
|
22
25
|
[ ${#files[@]} -gt 0 ] || { echo "❌ no stylesheet found under public/pm/ — this check would silently pass"; exit 1; }
|
|
23
26
|
hits=$(awk '/^:root\{/,/^\}/{next} /^\[data-pm-theme="light"\]\{/,/^\}/{next} 1' "${files[@]}" | grep -nE '#[0-9a-fA-F]{3,6}' || true)
|
|
24
27
|
[ -z "$hits" ] || { echo "❌ raw hex in a component rule (use a semantic token):"; echo "$hits"; exit 1; }
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system (Komorebi)"
|
|
4
|
+
description: "The one design system for the PMOS workspace, and PMOS prototypes (the UI system): rules, levels, colour, type, motion and voice."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# PMOS design system (Komorebi)
|
|
9
|
+
|
|
10
|
+
The UI design system for what PMOS draws on screen: the workspace and the prototypes PMOS makes. Slides get their own design system, made separately. It was agreed on 2026-11-19. These files are the copy that travels: the workspace builds its shared stylesheet from them, PMOS prototypes use them, and `create-pmos` puts them in every kit as `pmos/design-system/`.
|
|
11
|
+
|
|
12
|
+
## Files
|
|
13
|
+
|
|
14
|
+
| File | What it is |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| `tokens.json` | Every foundation value: colour (light and dark), type, space, corners, shadow, motion. The source the CSS is made from. |
|
|
17
|
+
| `tokens.css` | The tokens as CSS custom properties, plus the type classes (`title`, `heading`, `body`, `small`, `code`). |
|
|
18
|
+
| `components/bundle.css` | Every element, component and block class (`pm-btn`, `pm-li`, `pm-block`…). |
|
|
19
|
+
| `components/<Name>/README.md` | What one part is for, what the consumer provides, and its empty, loading and error states. |
|
|
20
|
+
| `components/<Name>/preview.html` | A sample of that part. Load `tokens.css` and `components/bundle.css` to see it styled. |
|
|
21
|
+
| `interactions.md` | How parts behave: the rules, the keys and every block's states. |
|
|
22
|
+
| `pages.md` | Every PMOS workspace page, with its layout and blocks. |
|
|
23
|
+
|
|
24
|
+
## Use it in another project or session
|
|
25
|
+
|
|
26
|
+
1. Read this README first, then the README of each part you use.
|
|
27
|
+
2. In a page: `<link rel="stylesheet" href="tokens.css">` and `<link rel="stylesheet" href="components/bundle.css">`, then `<body class="pm">`.
|
|
28
|
+
3. Build only from the parts below. If no part does the job, add an option to a part and say so.
|
|
29
|
+
|
|
30
|
+
PMOS feels like light through leaves: calm, warm, and only one thing lit at a time. Four ideas shape every decision.
|
|
31
|
+
|
|
32
|
+
- **Ima wa ima, kondo wa kondo** (now is now, next time is next time). Only now is loud. Later folds away.
|
|
33
|
+
- **Komorebi** (sunlight through leaves). Light, not colour, shows what matters. The ground follows the clock.
|
|
34
|
+
- **Ikigai** (a reason to be). Every row says why it is there.
|
|
35
|
+
- **Kaizen** (small steady improvement). Drift is counted every week and brought down.
|
|
36
|
+
|
|
37
|
+
## The six levels
|
|
38
|
+
|
|
39
|
+
Each level is made only from the levels above it.
|
|
40
|
+
|
|
41
|
+
| Level | What it is | Examples |
|
|
42
|
+
| --- | --- | --- |
|
|
43
|
+
| 0 · Foundations | The raw values and what each is for: colour, type, space, corners, shadow, light, motion speed and easing. | `ink`, `leaf`, `body`, `space-16`, `radius-card`, `raise`, `duration-enter` |
|
|
44
|
+
| 1 · Elements | The smallest things you can see. | Button, Input, Badge, Switch, Icon |
|
|
45
|
+
| 2 · Components | A few elements doing one job. Each says how it moves and which gestures it takes. | ListRow, Tabs, Field, Toast, Menu, Suggestion, Event, Chart |
|
|
46
|
+
| 3 · Blocks | A fixed set of components that makes one part of a screen, named by its job, with slots for data. | List, Table, Summary, Number, Detail, Timeline, Calendar, Conversation, Document, Stage, Settings, Navigation |
|
|
47
|
+
| 4 · Layouts | Where blocks sit on a page. | Main + side, Main + open item, Single column |
|
|
48
|
+
| 5 · Pages | A layout filled with blocks and real data. | Today, Work, Goals |
|
|
49
|
+
|
|
50
|
+
**The test for a block:** it does one job, it appears in more than one place, and it keeps the same arrangement everywhere. If a page needs something slightly different, give the block an option. Never make a page-specific block. Empty, loading and error are states of every block, not more blocks.
|
|
51
|
+
|
|
52
|
+
## Colour
|
|
53
|
+
|
|
54
|
+
- `ink` on `card`, `well` and `ground` for all text; `muted` for why lines and meta.
|
|
55
|
+
- `blue` means PMOS is speaking: the ✦, primary buttons, links, the main chart series.
|
|
56
|
+
- `leaf` means now: the focus ring (`glow`), the page you are on, the one Do first group. One lit thing per screen. Never text.
|
|
57
|
+
- `alert` means late, at risk, blocked or danger. Never decoration. On track gets no colour.
|
|
58
|
+
- Tints (`blue-tint`, `leaf-tint`, `alert-tint`) are the only fills behind meaning.
|
|
59
|
+
- The ground follows the clock: `ground-morning`, `ground-afternoon`, `ground-evening`; after 21:00 the page switches to the Dark theme (`ground-night`).
|
|
60
|
+
|
|
61
|
+
## Type
|
|
62
|
+
|
|
63
|
+
Plus Jakarta Sans for everything, IBM Plex Mono for keys and ids. Four workspace sizes only: `title` 26, `heading` 18, `body` 15, `small` 13. Bold (600) only on what you act on: row titles, headings, the chosen tab. Nothing smaller than 13 px.
|
|
64
|
+
|
|
65
|
+
## Space, corners, depth
|
|
66
|
+
|
|
67
|
+
- Space: `space-12` between panels, `space-16` between blocks, `space-32` inside a panel.
|
|
68
|
+
- Corners: `radius-sm` buttons, `radius-md` rows and inputs, `radius-card` blocks, `radius-panel` panels, `radius-pill` counts and switches.
|
|
69
|
+
- Two depths: Now is raised (`raise`); later is flat and dashed. `lift` only for things over things (toast, sheet, menu).
|
|
70
|
+
|
|
71
|
+
## Motion and gestures
|
|
72
|
+
|
|
73
|
+
- Motion means something changed. Nothing moves for decoration, nothing bounces, nothing loops except the ✦ while PMOS works.
|
|
74
|
+
- `duration-quick` for hover and press, `duration-enter` with `ease-out` for things that arrive, `ease-drift` for things that fold or reorder, `duration-leaf` for the leaf ring lighting up.
|
|
75
|
+
- Every gesture is a shortcut for a button that is always there, and every result has Undo. Phones: swipe right = done, swipe left = tomorrow, long press = more, swipe down closes a sheet. No pull to refresh, no swipe that deletes.
|
|
76
|
+
- Reduced motion: fades only.
|
|
77
|
+
|
|
78
|
+
## Voice
|
|
79
|
+
|
|
80
|
+
- Write from the person’s side, in short plain sentences. Say what happened: "Moved to tomorrow", not "Success".
|
|
81
|
+
- In the product, the assistant is **PMOS**. Never write "Claude" in the workspace, except where the person signs in to their Claude account.
|
|
82
|
+
- PMOS speaks once per page, in a Summary block, summary first.
|
|
83
|
+
- Zero is silence: no "0 items", no empty charts. One quiet line and the next thing instead.
|
|
84
|
+
- Buttons are icon-only with a label as tooltip and `aria-label`. PMOS recommends; the person approves (Yes / No). Safe actions happen at once with Undo; never "are you sure".
|
|
85
|
+
|
|
86
|
+
## Interaction
|
|
87
|
+
|
|
88
|
+
Every part responds the same way everywhere: hover explains, click acts, everything acts at once with Undo, and every mouse action has a key. Charts are interactive: hover for the value, click to open the items behind it, toggle series, switch the range. Each component’s page has its own Interaction section; the rules and keys are in the Interaction section of this system.
|
|
89
|
+
|
|
90
|
+
## Iconography
|
|
91
|
+
|
|
92
|
+
Stroke icons on a 24 px grid, 2 px stroke, `currentColor`, drawn at 16 or 18 px. The ✦ is PMOS and is always `blue`. The row icon names the kind of work (task, ask, decision, report). No emoji.
|
|
93
|
+
|
|
94
|
+
## Using this system
|
|
95
|
+
|
|
96
|
+
- **In a design or prototype:** load `tokens.css` and `components/bundle.css`, wrap the page in `class="pm"`, and build only from the components’ classes (`pm-btn`, `pm-li`, `pm-block`…). Pick a Layout, fill it with Blocks. If you need something no block does, add an option to a block and say so.
|
|
97
|
+
- **Slides are not part of this system.** Decks will have their own PMOS slide system.
|
|
98
|
+
- **In the PMOS workspace:** the same names become the workspace’s shared stylesheet and parts; a page may only use blocks from this list.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Badge"
|
|
4
|
+
description: "Small labels: `pm-badge` (state), `pm-count` (a number on the rail), `pm-chip` (a name or tag), `pm-kbd` (a key)."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Small labels: `pm-badge` (state), `pm-count` (a number on the rail), `pm-chip` (a name or tag), `pm-kbd` (a key).
|
|
9
|
+
|
|
10
|
+
- `alert` badge only for late, at risk or blocked. On track gets no badge (zero is silence).
|
|
11
|
+
- Never show a count of 0.
|
|
12
|
+
|
|
13
|
+
## Interaction
|
|
14
|
+
|
|
15
|
+
- Badges are not buttons. Hover shows the detail as a tooltip ("Due 29 Oct, 21 days late").
|
|
16
|
+
- A count that changes animates the number only (`duration-enter`), never the badge.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="1 · Elements" height=64 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div class="pm-row"><span class="pm-badge alert">21 days late</span><span class="pm-badge blue">due</span><span class="pm-badge">waiting 28 d</span><span class="pm-count">28</span><span class="pm-chip">Archana</span><span class="pm-kbd">x</span></div></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Button"
|
|
4
|
+
description: "Icon-only button, 32 px (44 px touch area on phones). Four kinds: ghost (default), `primary` (blue fill, the one main action), `outline` (the second choice next"
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Icon-only button, 32 px (44 px touch area on phones). Four kinds: ghost (default), `primary` (blue fill, the one main action), `outline` (the second choice next to primary), `danger` (alert ink).
|
|
9
|
+
|
|
10
|
+
- Every button has an `aria-label` and the same text as a tooltip. No text buttons in the workspace; the label is the tooltip.
|
|
11
|
+
- One primary per block. The pair "Yes / No" is always primary + outline.
|
|
12
|
+
- Focus shows the leaf ring (`glow`).
|
|
13
|
+
- Consumer provides: icon, label, kind, onClick.
|
|
14
|
+
|
|
15
|
+
## Interaction
|
|
16
|
+
|
|
17
|
+
- Hover: `well` fill in `duration-quick`. Press: 1 px down. Focus: the leaf ring (`glow`).
|
|
18
|
+
- The label shows as a tooltip after 400 ms of hover or on focus, and is the `aria-label`.
|
|
19
|
+
- Disabled buttons stay visible and say why in the tooltip ("Not available: no owner yet").
|
|
20
|
+
- After a click the result shows where the change happened, with Undo in a Toast. Never a confirm dialog.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="1 · Elements" height=72 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div class="pm-row"><button type="button" class="pm-btn " aria-label="Done" title="Done"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn primary" aria-label="Yes" title="Yes"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn outline" aria-label="No" title="No"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button><button type="button" class="pm-btn danger" aria-label="Delete" title="Delete"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button><button type="button" class="pm-btn" disabled aria-label="Not available"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Calendar"
|
|
4
|
+
description: "A month grid. Used for: Events, the date picker. Today carries the leaf ring; a blue dot marks days with events."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
A month grid. Used for: Events, the date picker. Today carries the leaf ring; a blue dot marks days with events.
|
|
9
|
+
|
|
10
|
+
## Interaction
|
|
11
|
+
|
|
12
|
+
- Click a day to see its events; double-click (or long press) on empty time to add one.
|
|
13
|
+
- Drag an event to move it; drag its bottom edge to change the end. A Toast offers Undo.
|
|
14
|
+
- Previous and next month: buttons, or Left and Right keys; `t` jumps to today.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=260 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block" aria-label="November"><div class="head"><h3 class="pm-h">November</h3><span class="sp"></span><button type="button" class="pm-btn " aria-label="Previous month" title="Previous month"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 10l4 4 4-4"/></svg></button><button type="button" class="pm-btn " aria-label="Next month" title="Next month"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div><div class="pm-cal"><span class="pm-meta">M</span><span class="pm-meta">T</span><span class="pm-meta">W</span><span class="pm-meta">T</span><span class="pm-meta">F</span><span class="pm-meta">S</span><span class="pm-meta">S</span><span class="">16</span><span class="">17</span><span class="">18</span><span class="today">19</span><span class="has">20</span><span class="">21</span><span class="">22</span><span class="">23</span><span class="has">24</span><span class="">25</span><span class="">26</span><span class="">27</span><span class="has">28</span><span class="">29</span></div></section><script>
|
|
7
|
+
(function(){var s=document.currentScript.previousElementSibling,c=s.querySelector('.pm-cal'),o=document.createElement('p');o.className='pm-meta';o.style.margin='0';o.textContent='Click a day to see its events.';s.appendChild(o);var ev={20:'Fri 20 · IDPF review 10:00',24:'Tue 24 · CRSM 2.0 demo 15:00',28:'Sat 28 · Email OTP beta ends',19:'Thu 19 · 3 meetings, the next at 16:00'};
|
|
8
|
+
c.addEventListener('click',function(e){var d=e.target.closest('span');if(!d||isNaN(+d.textContent))return;c.querySelectorAll('span').forEach(function(x){x.style.boxShadow=''});d.style.boxShadow='var(--glow)';o.textContent=ev[+d.textContent]||('Nothing on '+d.textContent+' Nov. Double-click to add.')})})();
|
|
9
|
+
</script></div>
|
|
10
|
+
</body>
|
|
11
|
+
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Chart"
|
|
4
|
+
description: "Charts are components: stacked bar, line (burndown), sparkline, area, meter, bar with goal."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Charts are components: stacked bar, line (burndown), sparkline, area, meter, bar with goal.
|
|
9
|
+
|
|
10
|
+
- The heading of the block that holds a chart says the answer ("Sprint will end with 14 points left"), never the chart name.
|
|
11
|
+
- Roles: `blue` = the series you read, `leaf` = done or goal, `muted` = plan or baseline, `alert` = risk only, `line` = grid.
|
|
12
|
+
- At most 3 series. Labels on the marks, no legends. No data = one quiet line, no empty chart. Every chart has its answer as `aria-label`.
|
|
13
|
+
|
|
14
|
+
## Interaction
|
|
15
|
+
|
|
16
|
+
Every chart is interactive. The interactions are the same on every chart, so people learn them once.
|
|
17
|
+
|
|
18
|
+
- **Hover or touch a point or bar:** a crosshair and a tooltip show the exact value, the date and what changed ("13 done · Thu 19 Nov · +4 vs plan"). The tooltip follows the pointer and never covers the point.
|
|
19
|
+
- **Click a point, bar or segment:** opens the items behind it beside the chart ("4 items done on 19 Nov"). The chosen mark stays lit with the leaf ring until another is picked or Esc.
|
|
20
|
+
- **Click a series label:** shows or hides that series. At least one series stays visible.
|
|
21
|
+
- **Range:** Tabs above the chart (Sprint, 30 days, Quarter) switch the period in place; the line redraws in `duration-enter`, it does not jump.
|
|
22
|
+
- **Keyboard:** the chart takes focus; Left and Right move between points and read the tooltip aloud; Enter opens the items; Esc leaves.
|
|
23
|
+
- **Phones:** press and drag along the chart to scrub; lift to keep the last value shown.
|
|
24
|
+
- **Never:** zoom by scroll wheel, legends, 3D, animation on every load. Reduced motion: no redraw animation.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!-- @dsCard group="2 · Components" height=300 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div style="display:flex;flex-direction:column;gap:8px">
|
|
7
|
+
<div class="pm-row" style="justify-content:space-between">
|
|
8
|
+
<b style="font-size:15px">More done each day this sprint</b>
|
|
9
|
+
<div class="pm-tabs" role="tablist" aria-label="Range"><button class="pm-tab" role="tab" aria-selected="true" data-r="s">Sprint</button><button class="pm-tab" role="tab" aria-selected="false" data-r="m">30 days</button></div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="pm-leg"><button aria-pressed="true" data-s="done"><i style="background:var(--blue)"></i>Done</button><button aria-pressed="true" data-s="plan"><i style="background:var(--muted)"></i>Plan</button></div>
|
|
12
|
+
<div class="pm-chart" tabindex="0" role="img" aria-label="Done per day, rising from 3 to 13. Use Left and Right to read each day.">
|
|
13
|
+
<svg width="100%" height="150" viewBox="0 0 600 150" preserveAspectRatio="none" aria-hidden="true">
|
|
14
|
+
<line x1="0" x2="600" y1="140" y2="140" stroke="var(--line)"></line>
|
|
15
|
+
<g class="series" data-s="plan"><path class="line" d="" fill="none" stroke="var(--muted)" stroke-width="2" stroke-dasharray="4 4"></path></g>
|
|
16
|
+
<g class="series" data-s="done"><path class="line" d="" fill="none" stroke="var(--blue)" stroke-width="2.5" stroke-linejoin="round"></path><g class="pts"></g></g>
|
|
17
|
+
<line class="xh" x1="0" x2="0" y1="0" y2="140"></line>
|
|
18
|
+
<g class="hits"></g>
|
|
19
|
+
</svg>
|
|
20
|
+
<div class="pm-tip" role="status"></div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="pm-pick">Hover a day for its numbers. Click to open its items.</div>
|
|
23
|
+
</div>
|
|
24
|
+
<script>
|
|
25
|
+
(function(){
|
|
26
|
+
var D={s:{d:['10 Nov','11 Nov','12 Nov','13 Nov','14 Nov','17 Nov','18 Nov','19 Nov'],v:[3,5,4,8,7,10,9,13],p:[4,5,6,7,8,9,10,11]},
|
|
27
|
+
m:{d:['21 Oct','24 Oct','28 Oct','31 Oct','4 Nov','7 Nov','11 Nov','14 Nov','18 Nov','19 Nov'],v:[2,4,3,6,5,7,5,7,9,13],p:[4,4,5,5,6,6,7,8,10,11]}};
|
|
28
|
+
var r='s',sel=-1,hov=-1,root=document.currentScript.previousElementSibling,ch=root.querySelector('.pm-chart'),svg=ch.querySelector('svg'),tip=ch.querySelector('.pm-tip'),pick=root.querySelector('.pm-pick'),xh=svg.querySelector('.xh');
|
|
29
|
+
function X(i,n){return n<2?300:i*600/(n-1)}function Y(v){return 140-v*9}
|
|
30
|
+
function path(a){return a.map(function(v,i){return(i?'L':'M')+X(i,a.length).toFixed(1)+' '+Y(v)}).join(' ')}
|
|
31
|
+
function draw(){var d=D[r],n=d.v.length;svg.querySelector('[data-s=done] path').setAttribute('d',path(d.v));svg.querySelector('[data-s=plan] path').setAttribute('d',path(d.p));
|
|
32
|
+
var pts='',hits='',w=600/(n-1);for(var i=0;i<n;i++){pts+='<circle class="pt" cx="'+X(i,n)+'" cy="'+Y(d.v[i])+'" r="3.5"></circle>';hits+='<rect class="hit" data-i="'+i+'" x="'+(X(i,n)-w/2)+'" y="0" width="'+w+'" height="150"></rect>'}
|
|
33
|
+
svg.querySelector('.pts').innerHTML=pts;svg.querySelector('.hits').innerHTML=hits;mark()}
|
|
34
|
+
function mark(){[].forEach.call(svg.querySelectorAll('.pt'),function(c,i){c.setAttribute('r',i==hov||i==sel?6:3.5);c.classList.toggle('on',i==sel)})}
|
|
35
|
+
function show(i){var d=D[r],n=d.v.length;hov=i;mark();if(i<0){tip.classList.remove('on');xh.classList.remove('on');return}
|
|
36
|
+
var x=X(i,n);xh.setAttribute('x1',x);xh.setAttribute('x2',x);xh.classList.add('on');var dv=d.v[i]-d.p[i];
|
|
37
|
+
tip.innerHTML='<b>'+d.v[i]+' done</b> · '+d.d[i]+' · '+(dv>=0?'+':'')+dv+' vs plan';var bw=ch.clientWidth,px=x/600*bw;tip.style.left=Math.max(0,Math.min(bw-190,px-95))+'px';tip.style.top=Math.max(0,Y(d.v[i])-44)+'px';tip.classList.add('on')}
|
|
38
|
+
function choose(i){sel=i;mark();var d=D[r];pick.innerHTML=i<0?'Hover a day for its numbers. Click to open its items.':'<a href="#">'+d.v[i]+' items done on '+d.d[i]+'</a> open beside the chart · Esc clears'}
|
|
39
|
+
svg.addEventListener('mousemove',function(e){var t=e.target.closest('.hit');if(t)show(+t.dataset.i)});
|
|
40
|
+
svg.addEventListener('mouseleave',function(){show(-1)});
|
|
41
|
+
svg.addEventListener('click',function(e){var t=e.target.closest('.hit');if(t)choose(+t.dataset.i)});
|
|
42
|
+
ch.addEventListener('keydown',function(e){var n=D[r].v.length,i=hov<0?n-1:hov;if(e.key=='ArrowRight'){show(Math.min(n-1,i+1));e.preventDefault()}else if(e.key=='ArrowLeft'){show(Math.max(0,hov<0?n-1:i-1));e.preventDefault()}else if(e.key=='Enter'&&hov>=0){choose(hov)}else if(e.key=='Escape'){show(-1);choose(-1)}});
|
|
43
|
+
ch.addEventListener('blur',function(){show(-1)});
|
|
44
|
+
root.querySelectorAll('[data-r]').forEach(function(b){b.addEventListener('click',function(){r=b.dataset.r;sel=-1;hov=-1;root.querySelectorAll('[data-r]').forEach(function(x){x.setAttribute('aria-selected',x==b)});choose(-1);draw();show(-1)})});
|
|
45
|
+
root.querySelectorAll('.pm-leg button').forEach(function(b){b.addEventListener('click',function(){var on=b.getAttribute('aria-pressed')=='true',others=root.querySelectorAll('.pm-leg button[aria-pressed=true]').length;if(on&&others<2)return;b.setAttribute('aria-pressed',!on);svg.querySelector('.series[data-s='+b.dataset.s+']').classList.toggle('off',on)})});
|
|
46
|
+
draw();
|
|
47
|
+
})();
|
|
48
|
+
</script></div>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Conversation"
|
|
4
|
+
description: "Messages plus an input. Used for: Chat, Speak to PMOS, goal chat, report chat. One chat open at a time."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Messages plus an input. Used for: Chat, Speak to PMOS, goal chat, report chat. One chat open at a time.
|
|
9
|
+
|
|
10
|
+
## Interaction
|
|
11
|
+
|
|
12
|
+
- Enter sends; Shift+Enter is a new line. While PMOS answers, Send becomes Stop.
|
|
13
|
+
- Answers stream in; links in answers open beside. Each answer has Copy and Retry on hover.
|
|
14
|
+
- Up arrow in an empty input edits the last question.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=240 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block" aria-label="Chat"><div class="head"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z"/></svg><h3 class="pm-h-sm" style="flex:1">Chat</h3><button type="button" class="pm-btn " aria-label="Close" title="Close"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div><div class="pm-msg">What is blocking CRSM 2.0?</div><p class="pm-said" style="margin:0"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg><span>WeChat Signup/Login has no owner, and Admin APIs waits for the new IDP.</span></p><div class="pm-row" style="flex-wrap:nowrap"><input class="pm-input" aria-label="Ask PMOS" placeholder="Ask PMOS"><button type="button" class="pm-btn primary" aria-label="Send" title="Send"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div></section></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Detail"
|
|
4
|
+
description: "One thing: header with icon actions, then fields. Used for: an item, an initiative (mission, experiment, intent), a record preview, a routine, a workflow step."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
One thing: header with icon actions, then fields. Used for: an item, an initiative (mission, experiment, intent), a record preview, a routine, a workflow step.
|
|
9
|
+
|
|
10
|
+
- Consumer provides: icon, title, meta line, fields, actions.
|
|
11
|
+
- Editing happens in place on a field; no separate edit page.
|
|
12
|
+
|
|
13
|
+
## Interaction
|
|
14
|
+
|
|
15
|
+
- Every field edits in place (Field rules). Close (Esc) returns to the list with the row still selected.
|
|
16
|
+
- Previous and next item: `k` and `j`, or swipe left and right on phones.
|
|
17
|
+
- Actions sit in the header as icon buttons; the more menu holds the rest.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=220 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block" aria-label="Item"><div class="head"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg><h3 class="pm-h" style="flex:1">Email OTP login</h3><button type="button" class="pm-btn " aria-label="Open in Jira" title="Open in Jira"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/></svg></button><button type="button" class="pm-btn " aria-label="More" title="More"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h.01M12 12h.01M19 12h.01"/></svg></button><button type="button" class="pm-btn " aria-label="Close" title="Close"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div><span class="pm-meta">IDPF · Build · due 28 Nov</span><dl class="pm-field" style="margin:0"><dt>Owner</dt><dd>You</dd><dt>Done test</dt><dd>sign-up p50 under 2 min</dd><dt>Kill if</dt><dd>no lift by 15 Jan</dd></dl></section></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Document"
|
|
4
|
+
description: "Text to read, with editions. Used for: docs, reports, PRDs, the story so far on a shared link. Lines no wider than 62 characters."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Text to read, with editions. Used for: docs, reports, PRDs, the story so far on a shared link. Lines no wider than 62 characters.
|
|
9
|
+
|
|
10
|
+
- Inside the document body, text uses the PMOS Documents reading sizes (body 16 = 12 pt, h2 22, title 32; Wawan 20 Nov). The block’s header, buttons and meta keep the four workspace sizes.
|
|
11
|
+
|
|
12
|
+
## Interaction
|
|
13
|
+
|
|
14
|
+
- Select text to comment or ask PMOS about it. Headings fold. Editions: a menu to read older ones, with changes marked.
|
|
15
|
+
- Click to edit when the document is yours; it saves as you type, with "Saved" shown quietly.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=220 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block" aria-label="Weekly update"><div class="head"><h3 class="pm-h" style="flex:1">Weekly update · IDPF</h3><span class="pm-meta">edition 12</span><button type="button" class="pm-btn " aria-label="Editions" title="Editions"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M7 3.5h7l4 4V20.5H7zM14 3.5v4h4M10 12h5M10 16h5"/></svg></button><button type="button" class="pm-btn " aria-label="Send" title="Send"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div><div class="pm-doc"><p style="margin:0">Email OTP is in beta with 2 % of users. Sign-up time fell from 3:10 to 2:05. Next: widen to 5 % on 26 Nov.</p></div></section></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Event"
|
|
4
|
+
description: "A meeting. Coming up is raised (now); over is flat and dashed (later)."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
A meeting. Coming up is raised (now); over is flat and dashed (later).
|
|
9
|
+
|
|
10
|
+
## Interaction
|
|
11
|
+
|
|
12
|
+
- Hover shows time, place and who; click opens the event beside the list.
|
|
13
|
+
- Live events show a small dot that breathes; past events are quiet (`over`). Drag to move on the Calendar, drag the bottom edge to change the end time.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="2 · Components" height=100 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div class="pm-ev"><b>CRSM 2.0 Sprint Planning</b><span class="pm-meta">14:00 to 14:30</span></div><div class="pm-ev over"><b>IDPF - DSU</b><span>over · 10:45 to 11:05</span></div></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Field"
|
|
4
|
+
description: "Label and value pairs inside a Detail block. Label in `muted`, value in `ink`, 13 px."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Label and value pairs inside a Detail block. Label in `muted`, value in `ink`, 13 px.
|
|
9
|
+
|
|
10
|
+
## Interaction
|
|
11
|
+
|
|
12
|
+
- Click a value to edit it in place. Enter or leaving the field saves; Esc cancels. Saved shows as a quiet tick for 1 s.
|
|
13
|
+
- Read-only values show why on hover ("Comes from Jira").
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="2 · Components" height=96 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><dl class="pm-field" style="margin:0"><dt>Owner</dt><dd>You</dd><dt>Due</dt><dd>28 Nov</dd><dt>Initiative</dt><dd>Tender new CIAM</dd></dl></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Icon"
|
|
4
|
+
description: "Stroke icons, 24 px grid drawn at 16 or 18 px, 2 px stroke, `currentColor`. ✦ (`star`) belongs to PMOS speaking and is always blue. The row icon says the kind o"
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Stroke icons, 24 px grid drawn at 16 or 18 px, 2 px stroke, `currentColor`. ✦ (`star`) belongs to PMOS speaking and is always blue. The row icon says the kind of work (task, ask, decision, report), so rows never repeat it in words. No emoji.
|
|
9
|
+
|
|
10
|
+
## Interaction
|
|
11
|
+
|
|
12
|
+
- Icons never act alone: they sit inside a Button, a ListRow or a label. The ✦ breathes (opacity) only while PMOS works.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="1 · Elements" height=64 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div class="pm-row"><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v10H9l-4 4z"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4l8 8-8 8-8-8z"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M7 3.5h7l4 4V20.5H7zM14 3.5v4h4M10 12h5M10 16h5"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5.5h16v14H4zM4 10h16M8.5 3.5v4M15.5 3.5v4"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h.01M12 12h.01M19 12h.01"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM21 21l-5-5"/></svg><svg class="pm-ic " width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8M14 5v4M8 15v4"/></svg></div></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Input"
|
|
4
|
+
description: "Text input, 40 px tall, `radius-md`, `line` border on `card`. Focus shows the leaf ring."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Text input, 40 px tall, `radius-md`, `line` border on `card`. Focus shows the leaf ring.
|
|
9
|
+
|
|
10
|
+
- Placeholder says what to type, in sentence case.
|
|
11
|
+
- The only always-on input in the workspace is Today’s capture line; other inputs appear when asked for.
|
|
12
|
+
|
|
13
|
+
## Interaction
|
|
14
|
+
|
|
15
|
+
- Focus: leaf ring. Typing filters or previews live; Enter commits; Esc clears, then leaves.
|
|
16
|
+
- `/` focuses the main search from anywhere. Suggestions open under the input; arrow keys move, Enter picks.
|
|
17
|
+
- Errors appear under the input in `alert`, in words, after the person stops typing (600 ms), never while they type.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="1 · Elements" height=72 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><label class="pm-meta" for="q">Search</label><input id="q" class="pm-input" placeholder="Log a task, an event or a note"></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: List"
|
|
4
|
+
description: "Rows of work under a heading, with optional tabs, groups, nesting and folds. The most used block."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Rows of work under a heading, with optional tabs, groups, nesting and folds. The most used block.
|
|
9
|
+
|
|
10
|
+
Used for: Today’s log, Your move, Waiting on others, Late, Waits on you, Backlog groups, Tasks by stage, Work breakdown (nested), Library, Did it work, Reports, Search results, Needs you, Lab history.
|
|
11
|
+
|
|
12
|
+
- Consumer provides: heading, rows, optional tabs, groups, folds.
|
|
13
|
+
- Order: Now group (lit) first, then today, then Later folded. Never more than one Now group.
|
|
14
|
+
- Empty: one line ("Nothing needs you now.") and the next thing, never an empty box.
|
|
15
|
+
|
|
16
|
+
## Interaction
|
|
17
|
+
|
|
18
|
+
- Tabs filter in place; counts update live.
|
|
19
|
+
- Rows behave as ListRow: hover actions, click opens beside, keys (up/down, Enter, `x`, `t`), drag to reorder, swipes on phones.
|
|
20
|
+
- Group headings fold and unfold; "Later" opens on click and remembers its state per page.
|
|
21
|
+
- Empty: one quiet line and the next useful step. Loading: three soft placeholder rows, no spinner. Error: one line in words plus Retry.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=400 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block list" aria-label="Today’s log"><div class="head"><h3 class="pm-h">Today’s log</h3><span class="sp"></span><div class="pm-tabs" role="tablist"><button class="pm-tab" role="tab" aria-selected="true">All 55</button><button class="pm-tab" role="tab" aria-selected="false">Do 18</button></div></div><div class="pm-group now"><svg class="pm-ic " width="14" height="14" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v2M12 19v2M5 5l1.4 1.4M17.6 17.6L19 19M3 12h2M19 12h2M5 19l1.4-1.4M17.6 6.4L19 5M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z"/></svg>Do first</div><div class="rows"><div class="pm-li now"><span class="pm-meta" style="display:inline-flex"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg></span><span class="txt"><span class="t">Tech blueprint approved</span><span class="w">for Tender new CIAM</span></span><span class="pm-badge alert" title="Due 29 Oct">21 days late</span></div></div><div class="pm-group">Today</div><div class="rows"><div class="pm-li "><span class="pm-meta" style="display:inline-flex"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M7 3.5h7l4 4V20.5H7zM14 3.5v4h4M10 12h5M10 16h5"/></svg></span><span class="txt"><span class="t">Weekly update</span><span class="w">for IDPF</span></span><span class="acts"><button type="button" class="pm-btn " aria-label="Done" title="Done"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn " aria-label="Move to tomorrow" title="Move to tomorrow"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button><button type="button" class="pm-btn " aria-label="Set a date" title="Set a date"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5.5h16v14H4zM4 10h16M8.5 3.5v4M15.5 3.5v4"/></svg></button></span></div></div><button class="pm-fold">Later <span style="font-weight:400">27 can wait</span></button></section><script>
|
|
7
|
+
(function(){var s=document.currentScript.previousElementSibling;var t=document.createElement('div');t.className='pm-toast';t.setAttribute('role','status');t.style.cssText='position:relative;margin-top:8px;display:none';s.parentNode.appendChild(t);var last=null,tm=null;
|
|
8
|
+
s.addEventListener('click',function(e){var b=e.target.closest('button[aria-label="Done"],button[aria-label="Move to tomorrow"]');if(b){var row=b.closest('.pm-li');var what=b.getAttribute('aria-label')=='Done'?'Done':'Moved to tomorrow';row.classList.add('gone');setTimeout(function(){row.style.display='none'},200);last=row;t.innerHTML='<span class="in">'+what+': '+row.querySelector('.t').textContent+' <button type="button" class="pm-btn" aria-label="Undo" title="Undo">Undo</button></span>';t.style.display='flex';clearTimeout(tm);tm=setTimeout(function(){t.style.display='none'},6000);return}
|
|
9
|
+
var f=e.target.closest('.pm-fold');if(f){f.innerHTML=f.dataset.open?'Later <span style="font-weight:400">27 can wait</span>':'Later is open: 27 rows would show here';f.dataset.open=f.dataset.open?'':'1'}});
|
|
10
|
+
t.addEventListener('click',function(e){if(e.target.closest('button')&&last){last.style.display='';requestAnimationFrame(function(){last.classList.remove('gone')});t.style.display='none'}});
|
|
11
|
+
s.addEventListener('click',function(e){var tab=e.target.closest('.pm-tab');if(tab){s.querySelectorAll('.pm-tab').forEach(function(x){x.setAttribute('aria-selected',x==tab)})}});
|
|
12
|
+
})();
|
|
13
|
+
</script></div>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|