create-pmos 0.641.0 → 0.642.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 +9 -9
- package/payload/KIT-VERSION +1 -1
- 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/workspace/changelog.json +8 -8
- package/workspace/guide/agent-capabilities.md +2 -2
- package/workspace/guide/layout.md +3 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-library.css +102 -97
- package/workspace/public/pm/cozy-present.css +23 -22
- package/workspace/public/pm/cozy-present.js +6 -5
- package/workspace/public/pm/cozy-vw.css +23 -2
- package/workspace/public/pm/premium-library.js +43 -40
- package/workspace/public/premium-library.html +14 -8
- package/workspace/public/premium-present.html +7 -2
- package/workspace/public/premium-viewer.html +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.642.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -34,16 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
36
|
{
|
|
37
|
-
"v": "0.
|
|
38
|
-
"at": "2026-11-20T01:
|
|
37
|
+
"v": "0.642.0",
|
|
38
|
+
"at": "2026-11-20T01:43:00.385Z",
|
|
39
39
|
"f": 4,
|
|
40
40
|
"prs": [
|
|
41
|
-
{
|
|
42
|
-
"n": 1424,
|
|
43
|
-
"t": "Goals and Intelligence on the PMOS design system",
|
|
44
|
-
"s": "Goals and Intelligence on the PMOS design system",
|
|
45
|
-
"k": "new"
|
|
46
|
-
},
|
|
47
41
|
{
|
|
48
42
|
"n": 1423,
|
|
49
43
|
"t": "Welcome, capture and the meeting pages on the PMOS design system",
|
|
@@ -55,6 +49,12 @@
|
|
|
55
49
|
"t": "The rail of places is the design system's Navigation part",
|
|
56
50
|
"s": "The rail of places is the design system's Navigation part",
|
|
57
51
|
"k": "new"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"n": 1421,
|
|
55
|
+
"t": "Library, Present and the Viewer page on the PMOS design system",
|
|
56
|
+
"s": "Library, Present and the Viewer page on the PMOS design system",
|
|
57
|
+
"k": "new"
|
|
58
58
|
}
|
|
59
59
|
]
|
|
60
60
|
},
|
package/payload/KIT-VERSION
CHANGED
|
@@ -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-20T01:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-20T01:42:57Z"}
|
|
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-20T01:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-20T01:42:57Z"}
|
|
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-20T01:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-20T01:42:57Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"v": "0.
|
|
4
|
-
"at": "2026-11-20T01:
|
|
3
|
+
"v": "0.642.0",
|
|
4
|
+
"at": "2026-11-20T01:43:00.385Z",
|
|
5
5
|
"f": 4,
|
|
6
6
|
"prs": [
|
|
7
|
-
{
|
|
8
|
-
"n": 1424,
|
|
9
|
-
"t": "Goals and Intelligence on the PMOS design system",
|
|
10
|
-
"s": "Goals and Intelligence on the PMOS design system",
|
|
11
|
-
"k": "new"
|
|
12
|
-
},
|
|
13
7
|
{
|
|
14
8
|
"n": 1423,
|
|
15
9
|
"t": "Welcome, capture and the meeting pages on the PMOS design system",
|
|
@@ -21,6 +15,12 @@
|
|
|
21
15
|
"t": "The rail of places is the design system's Navigation part",
|
|
22
16
|
"s": "The rail of places is the design system's Navigation part",
|
|
23
17
|
"k": "new"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"n": 1421,
|
|
21
|
+
"t": "Library, Present and the Viewer page on the PMOS design system",
|
|
22
|
+
"s": "Library, Present and the Viewer page on the PMOS design system",
|
|
23
|
+
"k": "new"
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
26
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "What PMOS does behind the scenes, and what stays yours"
|
|
4
4
|
description: "Every job PMOS runs by itself, what agents apply by themselves with Undo (D106), long-running goals, the team of role agents, the live round, the idle lab, and the PM-only acts."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-20
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# What PMOS does behind the scenes
|
|
@@ -259,7 +259,7 @@ To show a round to other people, press ⤢ (Present this round) in the compare v
|
|
|
259
259
|
- In a full-screen frame, you can use the prototype. The arrow keys go to the next or the earlier frame.
|
|
260
260
|
- To show all the frames again, press Esc or ⤡ in the corner. Esc works only when the focus is not in the prototype, so ⤡ is always there.
|
|
261
261
|
|
|
262
|
-
On a phone, the frames show one under the other. Present mode keeps and drops nothing: go back to the compare view to do that.
|
|
262
|
+
On a phone, the frames show one under the other. Present mode keeps and drops nothing: go back to the compare view to do that. The tab is always dark, so the frames are the only light on the screen; each frame carries its key (A, B, C) at its lower left.
|
|
263
263
|
|
|
264
264
|
### Intelligence › Lab
|
|
265
265
|
|
|
@@ -89,6 +89,7 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
|
|
|
89
89
|
- On a computer, work opens in the popup over the page, with Ask PMOS beside it. There is no setting for this: the popup is the one way.
|
|
90
90
|
- Drag its edge to change its width. The expand icon opens it wide. Each kind of item keeps the width you gave it.
|
|
91
91
|
- It keeps one trail: a press inside it keeps the item behind, ← goes back, → goes forward, and the browser's Back and Forward move along the same trail. × or Escape closes it.
|
|
92
|
+
- An item opened on its own page, with **Open in a new tab**, shows the Viewer card in the colours and type of the PMOS design system. When you close it, one line at the top links to Home.
|
|
92
93
|
- One item shows in one Viewer only. If an item is already open, opening it again (a row, a ⌘-click, Open beside) shows it in the Viewer it is in. It never opens a second copy.
|
|
93
94
|
|
|
94
95
|
## Work and its chat, in one popup
|
|
@@ -170,6 +171,8 @@ A Jira date and the planned finish of an initiative get no ✓: PMOS cannot writ
|
|
|
170
171
|
5. To add a file, a link or a new document, press **+**. Ask PMOS opens with "Add to Library" in the box. Say what to add; PMOS fills its kind, product and work and shows you the record.
|
|
171
172
|
6. To open a thing, press its row. It opens in the popup with the chat about it. On a screen 1600 px or wider, the first press shows the record at the right: every field, the first lines, the files that link to it and its editions. Press again, press Enter or press the open button to open it. A link opens in a new browser tab.
|
|
172
173
|
|
|
174
|
+
The Library is drawn with the PMOS design system: the list is one table card, the row you picked is lit, and the record at the right is a card with its fields. On a phone the table shows the kind, the name and the day only. While the list loads, three soft lines stand in for it. When the list cannot be read, one line says why, with **Retry**.
|
|
175
|
+
|
|
173
176
|
The notes of a held meeting look the same wherever you open them: a short summary, the decisions, the tasks that came out of it, and your notes. On the right, **The meeting** says when it was held, what it is about, who was there and what the notes were written from. Press a task to open its initiative. When some tasks are not in the initiative's Work breakdown, PMOS suggests adding them: press ✓ to add them, or ✕. Press the recording, or **Transcript and more**, for the replay, the transcript and the material.
|
|
174
177
|
|
|
175
178
|
## Goals
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.642.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.642.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -1,125 +1,130 @@
|
|
|
1
|
-
/* cozy-library.css — Library (initiative library-place; slice 7 of the six-place navigation, Library round 2
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
1
|
+
/* cozy-library.css — Library (initiative library-place; slice 7 of the six-place navigation, Library round 2), drawn with the PMOS design
|
|
2
|
+
* system (Komorebi, workspace/design-system/ui/; pm/komorebi.css). Layout Main + open item: the catalogue is a List block holding a Table
|
|
3
|
+
* (pm-block list + pm-table), the record at the right on a screen 1600 px or wider is a Detail block (pm-block + pm-field). This sheet
|
|
4
|
+
* holds only what the parts leave to the page: the column widths, where the blocks sit, and the narrow-screen columns. Colours, corners,
|
|
5
|
+
* space and shadow are the system's tokens (brand.css, komorebi.css), light and dark. The filter chips and their menus are the shared
|
|
6
|
+
* picker (cozy-pick.css), the same as the product, program and project chip beside them. */
|
|
5
7
|
.lb-page .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.lb-
|
|
9
|
-
.lb-
|
|
10
|
-
.lb-chip
|
|
11
|
-
.lb-
|
|
12
|
-
.lb-
|
|
13
|
-
.lb-find
|
|
14
|
-
.lb-find input:
|
|
15
|
-
.lb-find input::placeholder { color: var(--
|
|
8
|
+
|
|
9
|
+
/* the bar: filters, the search field (the Input part, with its icon inside), Group by and + */
|
|
10
|
+
.lb-bar { display: flex; align-items: center; gap: var(--space-8); min-height: 44px; }
|
|
11
|
+
.lb-fl { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; min-width: 0; }
|
|
12
|
+
.lb-chip.on, .lb-fl .scp-chip:not([aria-label$=": all"]) { background: var(--blue-tint); color: var(--blue); }
|
|
13
|
+
.lb-chip .ppk-nmc em { font-style: normal; color: var(--muted); }
|
|
14
|
+
.lb-chip .pm-ic { width: 14px; height: 14px; }
|
|
15
|
+
.lb-find { margin-left: auto; display: flex; align-items: center; gap: var(--space-8); height: 40px; width: 380px; max-width: 46vw; padding: 0 var(--space-12); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--muted); flex: none; }
|
|
16
|
+
.lb-find input { all: unset; flex: 1; min-width: 0; font: inherit; font-size: var(--fs-body); color: var(--ink); }
|
|
17
|
+
.lb-find input::placeholder { color: var(--muted); }
|
|
16
18
|
.lb-find input::-webkit-search-cancel-button { cursor: pointer; }
|
|
17
|
-
.lb-find:focus-within { box-shadow:
|
|
18
|
-
.lb-
|
|
19
|
-
.lb-hid { margin: 8px 4px 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
|
|
19
|
+
.lb-find:focus-within { box-shadow: var(--glow); }
|
|
20
|
+
.lb-hid { margin: var(--space-8) var(--space-4) 0; }
|
|
20
21
|
.lb-hid:empty { display: none; }
|
|
21
|
-
.lb-hid button { all: unset; cursor: pointer; color: var(--
|
|
22
|
-
.lb-hid button:focus-visible {
|
|
22
|
+
.lb-hid button, .lb-retry { all: unset; cursor: pointer; color: var(--blue); font-weight: var(--fw-strong); }
|
|
23
|
+
.lb-hid button:focus-visible, .lb-retry:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
|
|
24
|
+
|
|
25
|
+
/* Main + open item */
|
|
26
|
+
.lb-wrap { display: flex; align-items: flex-start; gap: var(--space-16); margin-top: var(--space-12); }
|
|
27
|
+
.lb-main { flex: 1 1 auto; min-width: 0; max-width: 1400px; display: flex; flex-direction: column; gap: var(--space-16); }
|
|
28
|
+
#lbBody { display: flex; flex-direction: column; gap: var(--space-16); }
|
|
23
29
|
|
|
24
|
-
/* the catalogue: set column widths */
|
|
25
|
-
.lb-
|
|
26
|
-
.lb-
|
|
27
|
-
.lb-t
|
|
28
|
-
.lb-
|
|
29
|
-
|
|
30
|
-
.lb-
|
|
30
|
+
/* the catalogue: a Table inside a List block, with set column widths so a wide screen does not stretch the Name past reading */
|
|
31
|
+
.lb-t { table-layout: fixed; }
|
|
32
|
+
.lb-t th, .lb-t td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
33
|
+
.lb-t thead th { background: var(--well); }
|
|
34
|
+
.lb-t thead th:nth-child(1) { width: 40px; }
|
|
35
|
+
.lb-t thead th:nth-child(3) { width: 140px; }
|
|
36
|
+
.lb-t thead th:nth-child(4) { width: 130px; }
|
|
37
|
+
.lb-t thead th:nth-child(5) { width: 220px; }
|
|
38
|
+
.lb-t thead th:nth-child(6) { width: 110px; }
|
|
39
|
+
.lb-t thead th:nth-child(7) { width: 100px; }
|
|
40
|
+
.lb-t thead th:nth-child(8) { width: 88px; }
|
|
41
|
+
.lb-t tr:last-child td { border-bottom: 0; }
|
|
31
42
|
.lb-i { cursor: pointer; }
|
|
32
|
-
.lb-i
|
|
33
|
-
.lb-i.
|
|
34
|
-
.lb-i.
|
|
35
|
-
.lb-i.sub .
|
|
36
|
-
.lb-
|
|
37
|
-
.lb-g {
|
|
38
|
-
.lb-g
|
|
39
|
-
.lb-
|
|
40
|
-
.lb-s {
|
|
41
|
-
.lb-s
|
|
42
|
-
.lb-s
|
|
43
|
-
.lb-
|
|
44
|
-
.lb-
|
|
45
|
-
.lb-
|
|
46
|
-
.lb-
|
|
47
|
-
.lb-
|
|
48
|
-
.lb-
|
|
49
|
-
.lb-
|
|
50
|
-
.lb-
|
|
51
|
-
.lb-
|
|
52
|
-
.lb-
|
|
53
|
-
.lb-ib:focus-visible, .lb-old:focus-visible, .lb-sg:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
|
|
54
|
-
.lb-sp { color: var(--cz-blueink); width: 22px; height: 22px; }
|
|
55
|
-
.lb-nm input { all: unset; flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--cz-well); box-shadow: inset 0 0 0 1px var(--cz-hair); font-size: var(--fs-body); font-weight: var(--fw-strong); color: var(--cz-ink); }
|
|
56
|
-
.lb-sg { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--cz-blueink); }
|
|
43
|
+
.lb-i .c { color: var(--muted); }
|
|
44
|
+
.lb-i td.ic { color: var(--muted); }
|
|
45
|
+
.lb-i td.ic .pm-ic { display: block; }
|
|
46
|
+
.lb-i.sub .lb-nw { padding-left: var(--space-16); }
|
|
47
|
+
.lb-i.sub .lb-nb { font-weight: var(--fw-regular); }
|
|
48
|
+
.lb-t .lb-g th { padding: 0; border-bottom: 1px solid var(--line); }
|
|
49
|
+
.lb-g .pm-group em { font-style: normal; font-weight: var(--fw-regular); }
|
|
50
|
+
.lb-s .pm-group { width: 100%; border: 0; font: inherit; font-size: var(--fs-meta); font-weight: var(--fw-strong); cursor: pointer; text-align: left; }
|
|
51
|
+
.lb-s .pm-group b { color: var(--ink); }
|
|
52
|
+
.lb-s .pm-group:focus-visible { outline: none; box-shadow: var(--glow); }
|
|
53
|
+
.lb-s .pm-group .pm-ic { width: 14px; height: 14px; }
|
|
54
|
+
.lb-nw { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
|
|
55
|
+
.lb-nb { all: unset; cursor: pointer; font-weight: var(--fw-strong); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
56
|
+
.lb-nb:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
|
|
57
|
+
.lb-old { border: 0; flex: none; cursor: pointer; font: inherit; font-size: var(--fs-meta); color: var(--muted); }
|
|
58
|
+
.lb-old[aria-expanded="true"] { background: var(--blue-tint); color: var(--blue); }
|
|
59
|
+
.lb-old:focus-visible { outline: none; box-shadow: var(--glow); }
|
|
60
|
+
.lb-nw .lb-sp { color: var(--blue); width: 28px; height: 28px; }
|
|
61
|
+
.lb-nm .pm-row { flex-wrap: nowrap; }
|
|
62
|
+
.lb-nm .pm-input { height: 32px; font-weight: var(--fw-strong); }
|
|
63
|
+
.lb-sg { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-4); max-width: 100%; color: var(--blue); }
|
|
57
64
|
.lb-sg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
58
|
-
.lb-
|
|
59
|
-
.lb-
|
|
60
|
-
.lb-
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
.lb-sg:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
|
|
66
|
+
.lb-n { margin: 0 var(--space-4); }
|
|
67
|
+
.lb-none { margin: 0; padding: var(--space-24) var(--space-16); }
|
|
68
|
+
|
|
69
|
+
/* loading: three soft placeholder rows, no spinner */
|
|
70
|
+
.lb-blk.lb-sk .rows { padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-16); }
|
|
71
|
+
.lb-sk i { display: block; height: 12px; border-radius: var(--radius-sm); background: var(--well); width: 70%; }
|
|
72
|
+
.lb-sk i:nth-child(2) { width: 55%; }
|
|
73
|
+
.lb-sk i:nth-child(3) { width: 62%; }
|
|
63
74
|
|
|
64
|
-
/* search by meaning: under the title matches */
|
|
65
|
-
.lb-
|
|
66
|
-
.lb-
|
|
67
|
-
.lb-
|
|
68
|
-
.lb-
|
|
69
|
-
.lb-
|
|
70
|
-
.lb-
|
|
71
|
-
.lb-
|
|
72
|
-
.lb-mr .ic { color: var(--cz-ink3); padding-top: 2px; }
|
|
73
|
-
.lb-mr small { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
|
|
74
|
-
.lb-mr p { margin: 4px 0 0; color: var(--cz-ink2); line-height: var(--lh-body); }
|
|
75
|
-
.lb-mr p b { color: var(--cz-ink); font-weight: var(--fw-strong); }
|
|
75
|
+
/* search by meaning: a List block under the title matches, each row with its passage and the idea in bold */
|
|
76
|
+
.lb-m .lb-mq { margin: 0 var(--space-16) var(--space-8); }
|
|
77
|
+
.lb-m .lb-mr { align-items: flex-start; padding-top: var(--space-8); padding-bottom: var(--space-8); cursor: pointer; }
|
|
78
|
+
.lb-mr .lb-nb { display: block; }
|
|
79
|
+
.lb-mi { display: inline-flex; padding-top: 2px; }
|
|
80
|
+
.lb-ps { margin-top: var(--space-4); white-space: normal; color: var(--ink); }
|
|
81
|
+
.lb-ps b { font-weight: var(--fw-strong); }
|
|
82
|
+
.lb-mq { margin: 0 var(--space-4); }
|
|
76
83
|
|
|
77
|
-
/* the menus: Kind (families open to their kinds), State, Group by */
|
|
84
|
+
/* the menus: Kind (families open to their kinds), State, Group by (the Tabs part) */
|
|
78
85
|
.lb-cw { position: relative; display: inline-flex; flex: none; }
|
|
79
86
|
.lb-menu { position: absolute; left: 0; top: calc(100% + 8px); }
|
|
80
87
|
.lb-cwr .lb-menu { left: auto; right: 0; }
|
|
81
88
|
.lb-menu .ppk-mi { min-height: 44px; }
|
|
82
|
-
.lb-menu .ppk-nm { flex-direction: row; align-items: baseline; gap:
|
|
89
|
+
.lb-menu .ppk-nm { flex-direction: row; align-items: baseline; gap: var(--space-8); }
|
|
83
90
|
.lb-menu .ppk-nm em { font-weight: var(--fw-regular); }
|
|
91
|
+
.lb-menu .ppk-tk .pm-ic { width: 14px; height: 14px; }
|
|
84
92
|
.lb-fam { display: flex; align-items: center; }
|
|
85
93
|
.lb-fam .ppk-mi { flex: 1; }
|
|
86
|
-
.lb-fx { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius:
|
|
87
|
-
.lb-fx:hover, .lb-fx:focus-visible { background: var(--
|
|
94
|
+
.lb-fx { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--muted); }
|
|
95
|
+
.lb-fx:hover, .lb-fx:focus-visible { background: var(--well); }
|
|
88
96
|
.lb-kmi { padding-left: 26px; }
|
|
89
|
-
.lb-pl {
|
|
90
|
-
.lb-pl
|
|
91
|
-
.lb-pl
|
|
92
|
-
.lb-
|
|
93
|
-
.lb-gm { width: 300px; }
|
|
97
|
+
.lb-pl { margin: var(--space-4) var(--space-8) var(--space-8); flex-wrap: wrap; }
|
|
98
|
+
.lb-pl .pm-tab[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--raise); }
|
|
99
|
+
.lb-pl .pm-tab:focus-visible { outline: none; box-shadow: var(--glow); }
|
|
100
|
+
.lb-gm { width: 320px; }
|
|
94
101
|
|
|
95
|
-
/* the
|
|
96
|
-
.lb-pv { flex: 0 0 360px; position: sticky; top:
|
|
102
|
+
/* the open item: a Detail block, 1600 px and wider */
|
|
103
|
+
.lb-pv { flex: 0 0 360px; position: sticky; top: var(--space-12); max-height: calc(100vh - 120px); overflow: auto; }
|
|
97
104
|
.lb-pv[hidden] { display: none; }
|
|
98
|
-
.lb-
|
|
99
|
-
.lb-
|
|
100
|
-
.lb-
|
|
101
|
-
.lb-pv
|
|
102
|
-
.lb-pv
|
|
103
|
-
.lb-
|
|
104
|
-
.lb-pv
|
|
105
|
-
.lb-pv
|
|
106
|
-
.lb-pvl p { margin: 0 0 6px; color: var(--cz-ink2); line-height: var(--lh-body); }
|
|
107
|
-
.lb-pv ul { margin: 0; padding-left: 18px; color: var(--cz-ink2); }
|
|
108
|
-
.lb-pv li { margin: 0 0 4px; }
|
|
105
|
+
.lb-pv.pm-block .head { align-items: flex-start; }
|
|
106
|
+
.lb-pv .head .pm-h { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
107
|
+
.lb-pv .pm-field { margin: 0; }
|
|
108
|
+
.lb-pv .pm-field dd { overflow-wrap: anywhere; }
|
|
109
|
+
.lb-pv .pm-h-sm { margin-top: var(--space-4); }
|
|
110
|
+
.lb-pvl p { margin: 0 0 var(--space-4); font-size: var(--fs-meta); line-height: var(--lh-meta); }
|
|
111
|
+
.lb-pv ul { margin: 0; padding-left: 18px; font-size: var(--fs-meta); }
|
|
112
|
+
.lb-pv li { margin: 0 0 var(--space-4); }
|
|
109
113
|
.lb-pv li .lb-nb { font-weight: var(--fw-regular); white-space: normal; }
|
|
110
|
-
.lb-pv small { color: var(--cz-ink3); font-size: var(--fs-meta); }
|
|
111
114
|
@media (max-width: 1599px) { .lb-pv { display: none; } }
|
|
112
115
|
|
|
116
|
+
/* fewer columns: the table sizes itself (a hidden column cannot keep a set width), and the Name takes what is left */
|
|
113
117
|
@media (max-width: 1180px) {
|
|
114
|
-
.lb-
|
|
115
|
-
.lb-
|
|
118
|
+
.lb-t { table-layout: auto; }
|
|
119
|
+
.lb-t td.n { width: 100%; max-width: 0; }
|
|
120
|
+
.lb-t td.c { max-width: 160px; }
|
|
121
|
+
.lb-t tr > :nth-child(6), .lb-t tr > :nth-child(7) { display: none; }
|
|
116
122
|
}
|
|
123
|
+
/* a phone: the Table becomes a List (the kind, the name, the day) */
|
|
117
124
|
@media (max-width: 760px) {
|
|
118
125
|
.lb-bar { flex-wrap: wrap; }
|
|
119
126
|
.lb-fl { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
|
|
120
127
|
.lb-find { order: 3; width: 100%; max-width: none; margin-left: 0; }
|
|
121
|
-
.lb-t {
|
|
122
|
-
.lb-
|
|
123
|
-
.lb-menu, .lb-cwr .lb-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; border-radius: 28px 28px 0 0; padding: 18px 12px 28px; }
|
|
124
|
-
.lb-r > :nth-child(n+3):not(:last-child) { display: none; }
|
|
128
|
+
.lb-t tr > :nth-child(n+3):not(:last-child):not([colspan]) { display: none; }
|
|
129
|
+
.lb-menu, .lb-cwr .lb-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; border-radius: var(--radius-panel) var(--radius-panel) 0 0; padding: 18px 12px 28px; }
|
|
125
130
|
}
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
/* pm/cozy-present.css — present mode (premium-present.html, cozy-present.js; live round W3)
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.prs-
|
|
6
|
-
.prs
|
|
7
|
-
.prs-
|
|
8
|
-
.prs-
|
|
9
|
-
.prs-
|
|
1
|
+
/* pm/cozy-present.css — present mode (premium-present.html, cozy-present.js; live round W3), drawn with the PMOS design system (Komorebi:
|
|
2
|
+
* pm/komorebi.css) in its Dark theme. A dark ground to the edge, like the audience tab: the frames are the only light on the screen. Each
|
|
3
|
+
* frame is a Stage block (pm-stage), its key a Kbd badge (pm-kbd), the back press the Button part (pm-btn). Colours, corners, space and
|
|
4
|
+
* shadow are the system's tokens; type from the role tokens. */
|
|
5
|
+
body.cz.prs-page { margin: 0; min-height: 100vh; background: var(--ground-night); color: var(--ink); }
|
|
6
|
+
.prs { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: var(--space-16) var(--space-24) var(--space-24); gap: var(--space-12); }
|
|
7
|
+
.prs-hd { display: flex; align-items: baseline; gap: var(--space-12); min-width: 0; }
|
|
8
|
+
.prs-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
9
|
+
.prs-round { flex: none; }
|
|
10
|
+
.prs-strip { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--space-16); }
|
|
11
|
+
/* a Stage that fills its share of the screen instead of keeping 16:9; the specimen inside is a page on paper, so the frame stays white */
|
|
12
|
+
.prs-strip .prs-fr { display: block; position: relative; aspect-ratio: auto; min-width: 0; min-height: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--cz-c-ffffff); box-shadow: var(--raise); }
|
|
13
|
+
.prs-strip .prs-fr[hidden] { display: none; }
|
|
10
14
|
.prs-fr iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--cz-c-ffffff); }
|
|
11
15
|
.prs-tap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
|
|
12
|
-
.prs-tap:focus-visible
|
|
13
|
-
.prs-key { position: absolute; left:
|
|
14
|
-
|
|
15
|
-
font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); background: var(--cz-c-17191c); color: var(--cz-c-eceef1); opacity: .85; }
|
|
16
|
-
.prs-none { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--cz-c-9ea4ad); }
|
|
16
|
+
.prs-tap:focus-visible { outline: none; box-shadow: inset var(--glow); }
|
|
17
|
+
.prs-fr .prs-key { position: absolute; left: var(--space-12); bottom: var(--space-12); pointer-events: none; background: var(--ground-night); color: var(--ink); border-color: var(--line); opacity: .85; }
|
|
18
|
+
.prs-none { margin: 0; }
|
|
17
19
|
/* one frame fills the screen: the header goes, the frame takes the whole page */
|
|
18
20
|
.prs:not([data-full=""]) { padding: 0; gap: 0; }
|
|
19
21
|
.prs:not([data-full=""]) .prs-hd { display: none; }
|
|
20
22
|
.prs:not([data-full=""]) .prs-strip { display: block; }
|
|
21
|
-
.prs-fr.full { width: 100%; height: 100%; border-radius: 0; }
|
|
22
|
-
.prs-back { position: absolute; top:
|
|
23
|
-
|
|
24
|
-
.prs-back:hover { opacity: 1; }
|
|
23
|
+
.prs-strip .prs-fr.full { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
|
|
24
|
+
.prs-fr .prs-back { position: absolute; top: var(--space-12); right: var(--space-12); width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--ground-night); color: var(--ink); opacity: .8; cursor: zoom-out; }
|
|
25
|
+
.prs-fr .prs-back:hover { opacity: 1; background: var(--ground-night); }
|
|
25
26
|
/* a phone: the frames stack, each tall enough to read, and the page scrolls */
|
|
26
27
|
@media (max-width: 640px) {
|
|
27
|
-
.prs { height: auto; min-height: 100dvh; padding:
|
|
28
|
-
.prs-title { font-size: var(--fs-panel); line-height: var(--lh-panel); }
|
|
28
|
+
.prs { height: auto; min-height: 100dvh; padding: var(--space-12) var(--space-16) var(--space-16); }
|
|
29
|
+
.prs-hd .prs-title { font-size: var(--fs-panel); line-height: var(--lh-panel); }
|
|
29
30
|
.prs-strip { grid-template-columns: minmax(0, 1fr); }
|
|
30
|
-
.prs-fr { height: 78dvh; }
|
|
31
|
+
.prs-strip .prs-fr { height: 78dvh; }
|
|
31
32
|
.prs:not([data-full=""]) { height: 100dvh; }
|
|
32
|
-
.prs-fr.full { height: 100dvh; }
|
|
33
|
+
.prs-strip .prs-fr.full { height: 100dvh; }
|
|
33
34
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* pm/cozy-present.js — present mode (live round W3, initiative live-round-present; premium-present.html at GET /pm/present?ws&board&id).
|
|
2
2
|
*
|
|
3
|
+
* Drawn with the PMOS design system (pm-ds, Dark theme): each frame is a Stage block, the key a Kbd badge, the back press a Button.
|
|
3
4
|
* A prototype round on a shared screen: its frames side by side (A, B, C of a first round, or the one file of a later round), the
|
|
4
5
|
* initiative title and the round number. Nothing else: no keep or drop, no History, no nav, no Adler. It reads GET /api/lab/present and
|
|
5
6
|
* loads every frame from GET /api/lab/specimen in a sandboxed frame (allow-scripts only: a specimen cannot reach PMOS).
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
import { pmGet } from './http.js';
|
|
14
15
|
|
|
15
16
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));
|
|
16
|
-
const BACK = '<svg aria-hidden="true"
|
|
17
|
+
const BACK = '<svg class="pm-ic" aria-hidden="true" viewBox="0 0 24 24"><path d="M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7"/></svg>';
|
|
17
18
|
|
|
18
19
|
/** The key map. n: how many frames. Digits 1..n and letters a.. pick a frame; Esc goes back; arrows step (in full screen only). */
|
|
19
20
|
export function keyOf(e, n, full) {
|
|
@@ -32,11 +33,11 @@ export function stripHtml(v, full) {
|
|
|
32
33
|
return v.frames.map((f, i) => {
|
|
33
34
|
const on = full === i, off = full != null && !on;
|
|
34
35
|
const label = (f.key || String(i + 1)) + (f.title ? ', ' + f.title : '');
|
|
35
|
-
return `<section class="prs-fr${on ? ' full' : ''}"${off ? ' hidden' : ''} aria-label="${esc(label)}">`
|
|
36
|
+
return `<section class="pm-stage prs-fr${on ? ' full' : ''}"${off ? ' hidden' : ''} aria-label="${esc(label)}">`
|
|
36
37
|
+ `<iframe src="${esc(f.url)}" sandbox="allow-scripts" title="${esc(label)}" tabindex="${on ? 0 : -1}"></iframe>`
|
|
37
|
-
+ (on ? `<button type="button" class="prs-back" data-prs-back aria-label="Back to all frames">${BACK}</button>`
|
|
38
|
+
+ (on ? `<button type="button" class="pm-btn prs-back" data-prs-back aria-label="Back to all frames">${BACK}</button>`
|
|
38
39
|
: `<button type="button" class="prs-tap" data-prs-go="${i}" aria-label="${esc('Fill the screen with ' + label)}"></button>`)
|
|
39
|
-
+ (f.key ? `<span class="prs-key" aria-hidden="true">${esc(f.key)}</span>` : '')
|
|
40
|
+
+ (f.key ? `<span class="pm-kbd prs-key" aria-hidden="true">${esc(f.key)}</span>` : '')
|
|
40
41
|
+ '</section>';
|
|
41
42
|
}).join('');
|
|
42
43
|
}
|
|
@@ -55,7 +56,7 @@ function go(i) { if (!S.v) return; S.full = i == null ? null : (i + S.v.frames.l
|
|
|
55
56
|
async function boot() {
|
|
56
57
|
const q = new URLSearchParams(location.search);
|
|
57
58
|
const r = await pmGet('/api/lab/present?ws=' + encodeURIComponent(q.get('ws') || '') + '&board=' + encodeURIComponent(q.get('board') || '') + '&id=' + encodeURIComponent(q.get('id') || ''));
|
|
58
|
-
if (!r || r.ok === false || !r.present) { $('prsStrip').innerHTML = `<p class="prs-none">${esc((r && r.error) || 'The prototype could not be read.')}</p>`; return; }
|
|
59
|
+
if (!r || r.ok === false || !r.present) { $('prsStrip').innerHTML = `<p class="pm-meta prs-none">${esc((r && r.error) || 'The prototype could not be read.')}</p>`; return; }
|
|
59
60
|
S.v = r.present;
|
|
60
61
|
$('prsTitle').textContent = S.v.title;
|
|
61
62
|
$('prsRound').textContent = 'Round ' + S.v.round;
|
|
@@ -323,12 +323,33 @@
|
|
|
323
323
|
}
|
|
324
324
|
@media print { .vz-pop, .vz-tb { display: none; } }
|
|
325
325
|
|
|
326
|
-
/* ── /premium-viewer.html: the Viewer card as the page
|
|
326
|
+
/* ── /premium-viewer.html: the Viewer card as the page, on the PMOS design system (pm-ds on the body; brand.css, charts.css, komorebi.css).
|
|
327
|
+
* The card's parts are shared with every page that opens the Viewer, so here they keep their shapes and take the system's tokens: inside
|
|
328
|
+
* the host the cozy and premium colour names point at the brand's (ink, muted, card, well, line, blue, alert), the face is the brand's,
|
|
329
|
+
* and the card's shadow is the system's raise. A page without pm-ds is not touched. ── */
|
|
327
330
|
body.vz-solo { min-height: 100vh; }
|
|
328
|
-
.vz-host { display: flex; justify-content: center; padding: 16px; height: 100vh; box-sizing: border-box; }
|
|
331
|
+
.vz-host { display: flex; justify-content: center; padding: var(--space-16, 16px); height: 100vh; box-sizing: border-box; }
|
|
329
332
|
.vz-host > .cz-vw { flex: 0 1 500px; width: 500px; } /* the design's card: flex 0 0 500px */
|
|
330
333
|
.vz-gone { margin: 0; padding: 48px 16px; text-align: center; font: var(--fs-body)/1.5 var(--cz-sans); color: var(--cz-ink2); }
|
|
331
334
|
.vz-gone a { color: var(--cz-blueink); }
|
|
335
|
+
.pm-ds .vz-host {
|
|
336
|
+
--cz-ink: var(--ink); --cz-ink2: var(--ink); --cz-ink3: var(--muted); --cz-card: var(--card); --cz-well: var(--well); --cz-well2: var(--well);
|
|
337
|
+
--cz-hair: var(--line); --cz-blue: var(--blue); --cz-blueink: var(--blue); --cz-bluebg: var(--blue-tint); --cz-solid: var(--blue); --cz-onsolid: var(--on-blue);
|
|
338
|
+
--cz-late: var(--alert); --cz-latebg: var(--alert-tint); --cz-red: var(--alert); --cz-redbg: var(--alert-tint);
|
|
339
|
+
--cz-sans: var(--font-sans); --cz-mono: var(--font-mono);
|
|
340
|
+
}
|
|
341
|
+
body.pm-ds .vz-host .cz-vw {
|
|
342
|
+
--ink: inherit; --card: inherit; --well: inherit; /* the brand's own, not the premium copy cozy-viewer.css writes on the card */
|
|
343
|
+
--ink-2: var(--ink); --ink-3: var(--muted); --card-solid: var(--card); --hair: var(--line); --b3: var(--line);
|
|
344
|
+
--ember: var(--blue); --ember-ink: var(--blue); --solid: var(--blue); --on-solid: var(--on-blue); --spot: var(--blue-tint);
|
|
345
|
+
--bad: var(--alert); --live: var(--alert); --live-bg: var(--alert-tint);
|
|
346
|
+
--glass: var(--card); --glass-edge: var(--line); --card-shadow: var(--raise); --glass-shadow: var(--lift); --sans: var(--font-sans);
|
|
347
|
+
border-radius: var(--radius-panel); box-shadow: var(--raise);
|
|
348
|
+
}
|
|
349
|
+
/* nothing open: the host gives way, so the line that links to Home stands at the top instead of under a screen of empty space */
|
|
350
|
+
.pm-ds .vz-host:not(:has(> .cz-vw:not([hidden]))) { height: auto; padding: 0; }
|
|
351
|
+
.pm-ds .vz-gone { font: inherit; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
|
|
352
|
+
.pm-ds .vz-gone a { color: var(--blue); font-weight: var(--fw-strong); }
|
|
332
353
|
|
|
333
354
|
/* ── the report panel: desktop-only and phone-only controls, the editor host ── */
|
|
334
355
|
.vz-pho { display: none; }
|
|
@@ -25,7 +25,7 @@ import { COLUMNS, FAMILIES, GROUPS, STATES, view, counts, passes, matches, about
|
|
|
25
25
|
import { openItem } from './library-open.js';
|
|
26
26
|
|
|
27
27
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
28
|
-
const svg = (d, cls = '') => `<svg viewBox="0 0 24 24" aria-hidden="true"
|
|
28
|
+
const svg = (d, cls = '') => `<svg class="pm-ic${cls ? ' ' + cls : ''}" viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
29
29
|
const ICON = {
|
|
30
30
|
doc: 'M7 4h7l4 4v12H7zM14 4v4h4',
|
|
31
31
|
link: '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',
|
|
@@ -169,57 +169,58 @@ function statePress(b) {
|
|
|
169
169
|
remember(); drawFilters(); draw();
|
|
170
170
|
return b.dataset.ls ? `[data-ls="${b.dataset.ls}"]` : null;
|
|
171
171
|
}
|
|
172
|
-
const groupMenu = () => `<p class="scp-h" role="presentation">Group by</p><div class="lb-pl" role="radiogroup" aria-label="Group by">${GROUPS.map(([k, n]) => `<button type="button" role="radio" aria-checked="${k === S.group}" class="
|
|
172
|
+
const groupMenu = () => `<p class="scp-h" role="presentation">Group by</p><div class="pm-tabs lb-pl" role="radiogroup" aria-label="Group by">${GROUPS.map(([k, n]) => `<button type="button" role="radio" aria-checked="${k === S.group}" class="pm-tab" data-lg="${k}">${esc(n)}</button>`).join('')}</div>`;
|
|
173
173
|
function groupPress(b) { if (!b.dataset.lg) return false; S.group = b.dataset.lg; remember(); draw(); return `[data-lg="${S.group}"]`; }
|
|
174
174
|
|
|
175
175
|
/* ── the table ── */
|
|
176
|
-
const head = () => `<
|
|
176
|
+
const head = () => `<thead><tr><th scope="col" class="ic"><span class="vh">Kind of item</span></th>${COLUMNS.map((c) => `<th scope="col">${c}</th>`).join('')}</tr></thead>`;
|
|
177
|
+
const SPAN = COLUMNS.length + 1;
|
|
177
178
|
function nameCell(x, extra = '') {
|
|
178
179
|
if (S.naming === x.id) {
|
|
179
|
-
return `<
|
|
180
|
-
+ `<button type="button" class="
|
|
181
|
-
+ `<button type="button" class="
|
|
180
|
+
return `<td class="n lb-nm"><span class="pm-row"><input class="pm-input" id="lbNameIn" value="${esc(x.name)}" aria-label="The note's name" maxlength="120" />`
|
|
181
|
+
+ `<button type="button" class="pm-btn" data-lb-name-ok aria-label="Keep this name" title="Keep this name">${svg(TICK)}</button>`
|
|
182
|
+
+ `<button type="button" class="pm-btn" data-lb-name-no aria-label="Cancel" title="Cancel">${svg(X)}</button></span></td>`;
|
|
182
183
|
}
|
|
183
|
-
const spark = x.named ? `<button type="button" class="
|
|
184
|
-
return `<
|
|
184
|
+
const spark = x.named ? `<button type="button" class="pm-btn pm-star lb-sp" data-lb-name="${esc(x.id)}" aria-label="PMOS named this note. Keep the name or rename it" title="PMOS named this note: keep or rename">${svg(SPARK)}</button>` : '';
|
|
185
|
+
return `<td class="n"><span class="lb-nw"><button type="button" class="lb-nb" data-lb-open>${esc(x.name)}</button>${spark}${extra}</span></td>`;
|
|
185
186
|
}
|
|
186
187
|
function aboutCell(x) {
|
|
187
188
|
const a = aboutText(x);
|
|
188
189
|
if (!a && x.kind === 'meeting' && x.suggest) {
|
|
189
|
-
return `<
|
|
190
|
+
return `<td class="c"><button type="button" class="lb-sg" data-lb-link="${esc(x.id)}" title="PMOS suggests: this note is about ${esc(x.suggest.title)}. Press to link it">${svg(SPARK, 'pm-star')}<span>${esc(x.suggest.title)}</span></button></td>`;
|
|
190
191
|
}
|
|
191
|
-
return `<
|
|
192
|
+
return `<td class="c" title="${esc(a)}">${esc(a)}</td>`;
|
|
192
193
|
}
|
|
193
194
|
function rowHtml(r, i, sub = false, shelf = '') {
|
|
194
195
|
const x = r.x;
|
|
195
196
|
// on a Work shelf, a name that only repeats the shelf's says its Kind instead, and About (which the shelf already says) is quiet
|
|
196
197
|
const same = !!shelf && (bare(x.name) === bare(shelf) || (bare(shelf).length >= 4 && bare(x.name).startsWith(bare(shelf))));
|
|
197
|
-
const older = r.older && r.older.length ? `<button type="button" class="lb-old" data-lb-ed="${esc(x.id)}" aria-expanded="${S.ed.has(x.id)}">${r.older.length} earlier</button>` : '';
|
|
198
|
+
const older = r.older && r.older.length ? `<button type="button" class="pm-chip lb-old" data-lb-ed="${esc(x.id)}" aria-expanded="${S.ed.has(x.id)}">${r.older.length} earlier</button>` : '';
|
|
198
199
|
const label = `${x.name}${x.state ? ', ' + x.state : ''}. ${x.kindText}${aboutText(x) ? '. About ' + aboutText(x) : ''}${x.open && x.open.url ? '. Opens in a new tab' : ''}`;
|
|
199
|
-
return `<
|
|
200
|
-
+ `<
|
|
201
|
-
+ `<
|
|
202
|
-
+ `<
|
|
203
|
-
+ `<
|
|
200
|
+
return `<tr class="lb-i${sub ? ' sub' : ''}${S.pick === x.id ? ' sel' : ''}" data-lb-i="${i}" aria-label="${esc(label)}">`
|
|
201
|
+
+ `<td class="ic">${svg(ICON[x.kind] || ICON.doc)}</td>${nameCell(same ? { ...x, name: x.kindText } : x, older)}`
|
|
202
|
+
+ `<td class="c">${same ? '' : esc(x.kindText)}</td><td class="c">${esc(x.product || '')}</td>${shelf ? '<td class="c"></td>' : aboutCell(x)}`
|
|
203
|
+
+ `<td class="c">${esc(x.by || '')}</td><td class="c q">${esc(stateText(r))}</td>`
|
|
204
|
+
+ `<td class="c">${esc(dayText(when(x)))}</td></tr>`;
|
|
204
205
|
}
|
|
205
206
|
function checksHtml(r) {
|
|
206
207
|
const open = S.ck.has(r.key), a = r.about || {};
|
|
207
208
|
const newest = r.checks.reduce((m, x) => (String(when(x)) > String(when(m)) ? x : m), r.checks[0]);
|
|
208
|
-
let h = `<
|
|
209
|
-
+ `<
|
|
210
|
-
+ `<
|
|
211
|
-
+ `<
|
|
212
|
-
+ `<
|
|
209
|
+
let h = `<tr class="lb-i lb-ck"><td class="ic">${svg(ICON.checks)}</td>`
|
|
210
|
+
+ `<td class="n"><span class="lb-nw"><button type="button" class="lb-nb" data-lb-ck="${esc(r.key)}" aria-expanded="${open}">Checks · ${r.checks.length}</button></span></td>`
|
|
211
|
+
+ `<td class="c">${esc([...new Set(r.checks.map((x) => x.kindText))].join(', '))}</td><td class="c">${esc(a.product || '')}</td>`
|
|
212
|
+
+ `<td class="c">${esc([a.programTitle, a.title].filter(Boolean).join(' › '))}</td><td class="c">PMOS</td><td class="c"></td>`
|
|
213
|
+
+ `<td class="c">${esc(dayText(when(newest)))}</td></tr>`;
|
|
213
214
|
if (open) for (const x of r.checks) { h += rowHtml({ x, older: [] }, S.shown.length, true); S.shown.push(x); }
|
|
214
215
|
return h;
|
|
215
216
|
}
|
|
216
217
|
function tableHtml(groups) {
|
|
217
|
-
let h = `<div class="lb-
|
|
218
|
+
let h = `<div class="pm-block list lb-blk"><table class="pm-table lb-t" aria-label="Library">${head()}<tbody>`;
|
|
218
219
|
for (const g of groups) {
|
|
219
220
|
if (g.level === 2) {
|
|
220
|
-
h += `<
|
|
221
|
+
h += `<tr class="lb-g lb-s"><th scope="rowgroup" colspan="${SPAN}"><button type="button" class="pm-group" data-lb-fold="${esc(g.key)}" aria-expanded="${!g.folded}">${svg(g.folded ? CHEV_R : CHEV_D)}<b>${esc(g.label)}</b><em>${g.n}</em></button></th></tr>`;
|
|
221
222
|
if (g.folded) continue;
|
|
222
|
-
} else h += `<
|
|
223
|
+
} else h += `<tr class="lb-g"><th scope="rowgroup" colspan="${SPAN}"><div class="pm-group">${esc(g.label)}${S.group === 'work' ? ` <em>${g.n}</em>` : ''}</div></th></tr>`;
|
|
223
224
|
const shelf = g.level === 2 && g.key !== 'w:none' ? g.label : '';
|
|
224
225
|
for (const r of g.rows) {
|
|
225
226
|
if (r.checks) { h += checksHtml(r); continue; }
|
|
@@ -227,7 +228,7 @@ function tableHtml(groups) {
|
|
|
227
228
|
if (r.older.length && S.ed.has(r.x.id)) for (const o of r.older) { h += rowHtml({ x: o, older: [] }, S.shown.length, true, shelf); S.shown.push(o); }
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
|
-
return h + '</div>';
|
|
231
|
+
return h + '</tbody></table></div>';
|
|
231
232
|
}
|
|
232
233
|
|
|
233
234
|
/* ── search by meaning ── */
|
|
@@ -246,14 +247,15 @@ function meaningHtml(titled) {
|
|
|
246
247
|
const seen = new Set(titled);
|
|
247
248
|
const list = (M.results || []).map((r) => ({ ...r, x: byId.get(r.id) })).filter((r) => r.x && !seen.has(r.id) && passes(r.x, F()));
|
|
248
249
|
const line = M.busy ? 'PMOS is reading them for meaning…' : !M.ranked && M.why ? 'Ranked by shared words: ' + M.why + '.' : '';
|
|
249
|
-
if (!list.length) return M.busy && !M.results ? `<p class="lb-mq">${esc(line || 'PMOS is reading for meaning…')}</p>` : '';
|
|
250
|
-
let h = `<
|
|
250
|
+
if (!list.length) return M.busy && !M.results ? `<p class="pm-meta lb-mq">${esc(line || 'PMOS is reading for meaning…')}</p>` : '';
|
|
251
|
+
let h = `<section class="pm-block list lb-m" aria-label="${titled.length ? 'Also about this' : 'About this'}"><div class="head"><h2 class="pm-h">${titled.length ? 'Also about this' : 'About this'}</h2><span class="pm-meta">${list.length}</span></div>`
|
|
252
|
+
+ `${line ? `<p class="pm-meta lb-mq">${esc(line)}</p>` : ''}<div class="rows" role="list">`;
|
|
251
253
|
for (const r of list) {
|
|
252
254
|
const x = r.x, i = S.shown.length; S.shown.push(x);
|
|
253
|
-
h += `<div class="lb-mr" role="listitem" data-lb-i="${i}"><span class="
|
|
254
|
-
+ `<
|
|
255
|
+
h += `<div class="pm-li lb-mr" role="listitem" data-lb-i="${i}"><span class="pm-meta lb-mi">${svg(ICON[x.kind] || ICON.doc)}</span><span class="txt"><button type="button" class="t lb-nb" data-lb-open>${esc(x.name)}</button>`
|
|
256
|
+
+ `<span class="w">${esc([x.kindText, x.product, aboutText(x)].filter(Boolean).join(' · '))}</span><span class="lb-ps">${bolded(r.passage || '', r.idea, r.words)}</span></span></div>`;
|
|
255
257
|
}
|
|
256
|
-
return h + '</div>';
|
|
258
|
+
return h + '</div></section>';
|
|
257
259
|
}
|
|
258
260
|
let findT = null, findN = 0;
|
|
259
261
|
function findByMeaning() {
|
|
@@ -278,7 +280,7 @@ function findByMeaning() {
|
|
|
278
280
|
}
|
|
279
281
|
|
|
280
282
|
/* ── the record preview (≥ 1600 px) ── */
|
|
281
|
-
function field(k, v) { return v ? `<
|
|
283
|
+
function field(k, v) { return v ? `<dt>${esc(k)}</dt><dd>${esc(v)}</dd>` : ''; }
|
|
282
284
|
async function drawPreview() {
|
|
283
285
|
const x = S.pick && (S.items || []).find((i) => i.id === S.pick);
|
|
284
286
|
if (!x || !wide()) { pv.hidden = true; pv.innerHTML = ''; document.body.classList.remove('lb-pv-on'); return; }
|
|
@@ -286,14 +288,14 @@ async function drawPreview() {
|
|
|
286
288
|
const older = (S.items || []).filter((o) => o.ed && o.ed === x.ed && o.id !== x.id).sort((a, b) => (b.v || 0) - (a.v || 0) || String(when(b)).localeCompare(String(when(a))));
|
|
287
289
|
const p = x.open && x.open.doc ? S.peek.get(x.id) : null;
|
|
288
290
|
const lines = x.kind === 'meeting' ? x.gist || [] : p && p.head ? p.head : [];
|
|
289
|
-
pv.innerHTML = `<div class="
|
|
290
|
-
+ `<button type="button" class="
|
|
291
|
-
+ `<button type="button" class="
|
|
292
|
-
+ `<dl>${field('Kind', x.kindText)}${field('Product', x.product)}${field('About', aboutText(x) || (x.about && x.about.title))}${field('By', x.by)}${field('State', stateText({ x, older }))}`
|
|
291
|
+
pv.innerHTML = `<div class="head"><span class="pm-meta lb-mi">${svg(ICON[x.kind] || ICON.doc)}</span><h2 class="pm-h">${esc(x.name)}</h2>`
|
|
292
|
+
+ `<button type="button" class="pm-btn" data-lb-pv-open aria-label="Open ${esc(x.name)}" title="Open">${svg(OPEN)}</button>`
|
|
293
|
+
+ `<button type="button" class="pm-btn" data-lb-pv-close aria-label="Close the preview" title="Close">${svg(X)}</button></div>`
|
|
294
|
+
+ `<dl class="pm-field">${field('Kind', x.kindText)}${field('Product', x.product)}${field('About', aboutText(x) || (x.about && x.about.title))}${field('By', x.by)}${field('State', stateText({ x, older }))}`
|
|
293
295
|
+ `${field(x.kind === 'meeting' ? 'Held' : 'Updated', dayText(when(x)))}${field('Came out of it', x.came)}${field('Title', x.sub)}${field('File', x.path)}</dl>`
|
|
294
|
-
+ (lines.length ? `<h3>First lines</h3><div class="lb-pvl">${lines.map((l) => `<p>${esc(l)}</p>`).join('')}</div>` : x.open && x.open.doc && !p ? '<p class="
|
|
295
|
-
+ (p && p.from && p.from.length ? `<h3>Linked from</h3><ul>${p.from.map((f) => `<li>${esc(f.title)}</li>`).join('')}</ul>` : '')
|
|
296
|
-
+ (older.length ? `<h3>Editions</h3><ul>${older.map((o) => `<li><button type="button" class="lb-nb" data-lb-pv-ed="${esc(o.id)}">${esc(o.name)}${o.v ? ' · v' + o.v : ''}</button> <
|
|
296
|
+
+ (lines.length ? `<h3 class="pm-h-sm">First lines</h3><div class="lb-pvl">${lines.map((l) => `<p>${esc(l)}</p>`).join('')}</div>` : x.open && x.open.doc && !p ? '<p class="pm-meta">Reading the first lines…</p>' : '')
|
|
297
|
+
+ (p && p.from && p.from.length ? `<h3 class="pm-h-sm">Linked from</h3><ul>${p.from.map((f) => `<li>${esc(f.title)}</li>`).join('')}</ul>` : '')
|
|
298
|
+
+ (older.length ? `<h3 class="pm-h-sm">Editions</h3><ul>${older.map((o) => `<li><button type="button" class="lb-nb" data-lb-pv-ed="${esc(o.id)}">${esc(o.name)}${o.v ? ' · v' + o.v : ''}</button> <span class="pm-meta">${esc(dayText(when(o)))}</span></li>`).join('')}</ul>` : '');
|
|
297
299
|
if (x.open && x.open.doc && !p) {
|
|
298
300
|
const r = await pmGet('/api/library-items/peek?ws=' + encodeURIComponent(x.open.doc.ws) + '&path=' + encodeURIComponent(x.open.doc.path)).catch(() => null);
|
|
299
301
|
S.peek.set(x.id, r && r.ok ? r : { head: [], from: [] });
|
|
@@ -305,7 +307,7 @@ async function drawPreview() {
|
|
|
305
307
|
function draw() {
|
|
306
308
|
if (S.items == null) return;
|
|
307
309
|
drawFilters();
|
|
308
|
-
if (!S.items.length && S.error) { body.innerHTML = `<p class="lb-none">The Library could not be read: ${esc(S.error)}
|
|
310
|
+
if (!S.items.length && S.error) { body.innerHTML = `<p class="pm-meta lb-none">The Library could not be read: ${esc(S.error)}. <button type="button" class="lb-retry" data-lb-retry>Retry</button></p>`; note.textContent = ''; hid.innerHTML = ''; return; }
|
|
309
311
|
const V = view(S.items, { q: S.q, f: F(), group: S.group, open: S.open, shut: S.shut });
|
|
310
312
|
S.shown = [];
|
|
311
313
|
const filtered = S.kinds.length || S.states.length || narrowed(S.P, S.sel);
|
|
@@ -316,7 +318,7 @@ function draw() {
|
|
|
316
318
|
let h = '';
|
|
317
319
|
if (!V.groups.length) {
|
|
318
320
|
// zero is silence: one quiet line, no empty table
|
|
319
|
-
h = S.q && S.meaning && S.meaning.q === S.q && (S.meaning.busy || (S.meaning.results || []).length) ? '' : `<p class="lb-none">${esc(S.q ? 'No title in the Library matches "' + S.q + '".' : filtered ? 'Nothing here fits the filters.' : 'Nothing was made yet. Documents, meeting notes and prototypes show here as they are made.')}</p>`;
|
|
321
|
+
h = S.q && S.meaning && S.meaning.q === S.q && (S.meaning.busy || (S.meaning.results || []).length) ? '' : `<p class="pm-meta lb-none">${esc(S.q ? 'No title in the Library matches "' + S.q + '".' : filtered ? 'Nothing here fits the filters.' : 'Nothing was made yet. Documents, meeting notes and prototypes show here as they are made.')}</p>`;
|
|
320
322
|
} else h = tableHtml(V.groups);
|
|
321
323
|
const titled = S.shown.map((x) => x.id);
|
|
322
324
|
body.innerHTML = h + meaningHtml(titled);
|
|
@@ -380,6 +382,7 @@ async function saveName(id, name) {
|
|
|
380
382
|
body.onclick = async (e) => {
|
|
381
383
|
const t = e.target;
|
|
382
384
|
let b;
|
|
385
|
+
if (t.closest('[data-lb-retry]')) { load(); return; }
|
|
383
386
|
if ((b = t.closest('[data-lb-fold]'))) {
|
|
384
387
|
const k = b.dataset.lbFold, folded = b.getAttribute('aria-expanded') !== 'true';
|
|
385
388
|
if (folded) { S.open.add(k); S.shut.delete(k); } else { S.shut.add(k); S.open.delete(k); }
|
|
@@ -13,24 +13,30 @@
|
|
|
13
13
|
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
14
14
|
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
15
15
|
<link rel="stylesheet" href="/pm/cozy-pick.css" />
|
|
16
|
+
<link rel="stylesheet" href="/pm/brand.css" />
|
|
17
|
+
<link rel="stylesheet" href="/pm/charts.css" />
|
|
18
|
+
<link rel="stylesheet" href="/pm/komorebi.css" />
|
|
16
19
|
<link rel="stylesheet" href="/pm/cozy-library.css" />
|
|
17
20
|
</head>
|
|
18
|
-
|
|
21
|
+
<!-- Drawn with the PMOS design system (Komorebi, workspace/design-system/ui/): layout Main + open item, blocks List (the catalogue, as a
|
|
22
|
+
Table block) and Detail (the record at the right). The filter chips and their menus stay the shared picker (pm/cozy-pick.css) that the
|
|
23
|
+
product, program and project chip beside them uses. -->
|
|
24
|
+
<body class="cz pm-ds lb-page">
|
|
19
25
|
<main class="stage cz-panel lb" id="stage">
|
|
20
26
|
<h1 class="vh">Library</h1>
|
|
21
27
|
<div class="lb-bar">
|
|
22
28
|
<span class="lb-fl" id="lbFilters" role="group" aria-label="Filters"></span>
|
|
23
|
-
<label class="lb-find"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg><span class="vh">Find in Library</span><input id="lbQ" type="search" autocomplete="off" spellcheck="false" placeholder="Find in Library" /></label>
|
|
24
|
-
<span class="lb-cw lb-cwr"><button type="button" class="
|
|
25
|
-
<button type="button" class="
|
|
29
|
+
<label class="lb-find"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg><span class="vh">Find in Library</span><input id="lbQ" type="search" autocomplete="off" spellcheck="false" placeholder="Find in Library" /></label>
|
|
30
|
+
<span class="lb-cw lb-cwr"><button type="button" class="pm-btn lb-tune" id="lbTune" aria-haspopup="menu" aria-expanded="false" aria-label="Group by" title="Group by"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8M16 5v4M10 15v4"/></svg></button></span>
|
|
31
|
+
<button type="button" class="pm-btn lb-add" id="lbAdd" aria-label="Add a file, a link or a new document" title="Add a file, a link or a new document"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
|
|
26
32
|
</div>
|
|
27
|
-
<p class="lb-hid" id="lbHid" aria-live="polite"></p>
|
|
33
|
+
<p class="pm-meta lb-hid" id="lbHid" aria-live="polite"></p>
|
|
28
34
|
<div class="lb-wrap">
|
|
29
35
|
<div class="lb-main">
|
|
30
|
-
<div id="lbBody" aria-live="polite"><div class="lb-
|
|
31
|
-
<p class="lb-n" id="lbNote"></p>
|
|
36
|
+
<div id="lbBody" aria-live="polite"><div class="pm-block list lb-blk lb-sk" aria-hidden="true"><div class="rows"><i></i><i></i><i></i></div></div></div>
|
|
37
|
+
<p class="pm-meta lb-n" id="lbNote"></p>
|
|
32
38
|
</div>
|
|
33
|
-
<aside class="lb-pv" id="lbPv" hidden aria-label="The record"></aside>
|
|
39
|
+
<aside class="pm-block lb-pv" id="lbPv" hidden aria-label="The record"></aside>
|
|
34
40
|
</div>
|
|
35
41
|
</main>
|
|
36
42
|
<noscript>This page needs JavaScript.</noscript>
|
|
@@ -9,11 +9,16 @@
|
|
|
9
9
|
screen, with the initiative title and the round number only. It makes no press: no keep, no drop, no nav. pm/cozy-present.js draws it. -->
|
|
10
10
|
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
11
11
|
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
12
|
+
<link rel="stylesheet" href="/pm/brand.css" />
|
|
13
|
+
<link rel="stylesheet" href="/pm/charts.css" />
|
|
14
|
+
<link rel="stylesheet" href="/pm/komorebi.css" />
|
|
12
15
|
<link rel="stylesheet" href="/pm/cozy-present.css" />
|
|
13
16
|
</head>
|
|
14
|
-
|
|
17
|
+
<!-- Drawn with the PMOS design system (Komorebi, workspace/design-system/ui/), always in its Dark theme: layout Single column, block
|
|
18
|
+
Stage (each frame is a pm-stage), the frame key a Kbd badge, the back press the Button part. -->
|
|
19
|
+
<body class="cz pm-ds dark prs-page">
|
|
15
20
|
<main class="prs" id="prs" data-full="">
|
|
16
|
-
<header class="prs-hd"><h1 class="prs-title" id="prsTitle"></h1><span class="prs-round" id="prsRound"></span></header>
|
|
21
|
+
<header class="prs-hd"><h1 class="title prs-title" id="prsTitle"></h1><span class="pm-meta prs-round" id="prsRound"></span></header>
|
|
17
22
|
<div class="prs-strip" id="prsStrip" aria-live="polite"></div>
|
|
18
23
|
</main>
|
|
19
24
|
<script type="module" src="/pm/cozy-present.js"></script>
|
|
@@ -10,11 +10,17 @@
|
|
|
10
10
|
each with an optional &ws=. The item opens in the same Viewer card Home shows (cozy-viewer.js), here as the whole page. -->
|
|
11
11
|
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
12
12
|
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
13
|
+
<link rel="stylesheet" href="/pm/brand.css" />
|
|
14
|
+
<link rel="stylesheet" href="/pm/charts.css" />
|
|
15
|
+
<link rel="stylesheet" href="/pm/komorebi.css" />
|
|
13
16
|
<link rel="stylesheet" href="/pm/cozy-vw.css" />
|
|
14
17
|
</head>
|
|
15
|
-
|
|
18
|
+
<!-- Drawn with the PMOS design system (Komorebi, workspace/design-system/ui/): layout Main + open item with only the open item, the Viewer
|
|
19
|
+
card. On this page the card reads the system's colour, font, line and shadow tokens (cozy-vw.css, "the Viewer card as the page"); its
|
|
20
|
+
parts are the Viewer's own, shared with every page that opens it. -->
|
|
21
|
+
<body class="cz pm-ds vz-solo">
|
|
16
22
|
<main class="vz-host" data-cz-viewer-host></main>
|
|
17
|
-
<p class="vz-gone" id="vzGone" hidden>Nothing is open. <a href="/premium.html">Go to Home</a></p>
|
|
23
|
+
<p class="pm-meta vz-gone" id="vzGone" hidden>Nothing is open. <a href="/premium.html">Go to Home</a></p>
|
|
18
24
|
<script type="module" src="/pm/premium-vw-page.js"></script>
|
|
19
25
|
</body>
|
|
20
26
|
</html>
|