create-pmos 0.645.0 → 0.647.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 +27 -27
- package/payload/KIT-VERSION +1 -1
- package/payload/design-system/ui/components/Suggestion/README.md +8 -0
- package/payload/design-system/ui/components/Timeline/README.md +8 -0
- package/payload/design-system/ui/components/bundle.css +38 -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/workspace/changelog.json +26 -0
- package/workspace/design-system/ui/components/Suggestion/README.md +8 -0
- package/workspace/design-system/ui/components/Timeline/README.md +8 -0
- package/workspace/design-system/ui/components/bundle.css +38 -0
- package/workspace/guide/layout.md +24 -12
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-backlog.js +21 -11
- package/workspace/public/pm/bd-ds.css +0 -7
- package/workspace/public/pm/bd-span.js +10 -5
- package/workspace/public/pm/bd-stands.js +165 -0
- package/workspace/public/pm/bd-work-ds.css +107 -0
- package/workspace/public/pm/bd-work.css +8 -77
- package/workspace/public/pm/bd-work.js +79 -46
- package/workspace/public/pm/cozy-today-app.js +10 -5
- package/workspace/public/pm/cozy-today-model.js +11 -5
- package/workspace/public/pm/cozy-today-page.css +50 -135
- package/workspace/public/pm/cozy-today-view.js +147 -98
- package/workspace/public/pm/komorebi.css +39 -0
- package/workspace/public/pm/premium-board.js +57 -10
- package/workspace/public/pm/readonly.js +3 -0
- package/workspace/public/premium-board.html +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.647.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": {
|
|
@@ -33,6 +33,32 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.647.0",
|
|
38
|
+
"at": "2026-11-20T05:31:50.958Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1429,
|
|
43
|
+
"t": "Work's Initiatives tab built from design system blocks",
|
|
44
|
+
"s": "Work's Initiatives tab built from design system blocks",
|
|
45
|
+
"k": "new"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"v": "0.646.0",
|
|
51
|
+
"at": "2026-11-20T03:32:31.987Z",
|
|
52
|
+
"f": 4,
|
|
53
|
+
"prs": [
|
|
54
|
+
{
|
|
55
|
+
"n": 1428,
|
|
56
|
+
"t": "Today is built from the design system's blocks",
|
|
57
|
+
"s": "Today is built from the design system's blocks",
|
|
58
|
+
"k": "new"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
36
62
|
{
|
|
37
63
|
"v": "0.645.0",
|
|
38
64
|
"at": "2026-11-20T02:59:30.947Z",
|
|
@@ -290,32 +316,6 @@
|
|
|
290
316
|
"k": "new"
|
|
291
317
|
}
|
|
292
318
|
]
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"v": "0.620.0",
|
|
296
|
-
"at": "2026-11-19T04:33:41.427Z",
|
|
297
|
-
"f": 4,
|
|
298
|
-
"prs": [
|
|
299
|
-
{
|
|
300
|
-
"n": 1399,
|
|
301
|
-
"t": "Shared copy draws Work, one view, and nothing private leaks",
|
|
302
|
-
"s": "Shared copy draws Work, one view, and nothing private leaks",
|
|
303
|
-
"k": "new"
|
|
304
|
-
}
|
|
305
|
-
]
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"v": "0.619.0",
|
|
309
|
-
"at": "2026-11-19T04:21:53.302Z",
|
|
310
|
-
"f": 4,
|
|
311
|
-
"prs": [
|
|
312
|
-
{
|
|
313
|
-
"n": 1401,
|
|
314
|
-
"t": "A task on Today opens the small task popup on top of its initiative",
|
|
315
|
-
"s": "A task on Today opens the small task popup on top of its initiative",
|
|
316
|
-
"k": "new"
|
|
317
|
-
}
|
|
318
|
-
]
|
|
319
319
|
}
|
|
320
320
|
]
|
|
321
321
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -12,3 +12,11 @@ One thing PMOS proposes, with Yes (primary) and No (outline). Blue-tint ground a
|
|
|
12
12
|
- Yes applies the change at once, the suggestion folds away, and a Toast offers Undo.
|
|
13
13
|
- No folds it away and PMOS remembers ("Won’t suggest this again for this initiative").
|
|
14
14
|
- Hover on the ✦ shows why PMOS suggests it, in one line.
|
|
15
|
+
|
|
16
|
+
## Expanded form (`pm-sug x`)
|
|
17
|
+
|
|
18
|
+
When a Suggestion changes dates, people or what is sent, it opens in the expanded form so the person can check it before Yes (Wawan: "user can't just trust to accept or reject"):
|
|
19
|
+
|
|
20
|
+
- A title: what PMOS proposes, in one line.
|
|
21
|
+
- Rows (a `dl`): **Why** with its evidence, **PMOS will** with the exact steps (anything sent outside is shown first), **What changes**, and **Based on** with the sources in muted text. A row with nothing to say is left out.
|
|
22
|
+
- The answers, right-aligned: Change it first (pencil), Yes (primary), No (outline). Icon-only, with their names as labels.
|
|
@@ -13,3 +13,11 @@ Things in time order. Used for: the agenda, an events day, milestones, PMOS’s
|
|
|
13
13
|
|
|
14
14
|
- The now line moves with the clock; the list scrolls to now when the page opens.
|
|
15
15
|
- Hover an event for detail; click opens it beside. Past events are quiet; the next one is raised.
|
|
16
|
+
|
|
17
|
+
## In a table, and the date line
|
|
18
|
+
|
|
19
|
+
The Work boards draw time in two more places, from the same marks:
|
|
20
|
+
|
|
21
|
+
- **Table timeline** (`pm-gt` inside a Table cell): done bars in leaf (`.b.dn`), now in blue (`.b.nw`), planned in well with a hairline (`.b`), and the today line (`pm-now`, alert). It scrolls sideways with a trackpad, a drag, or Earlier / Go to today / Later; no scrollbar is drawn.
|
|
22
|
+
- **Milestone** (`pm-dia`): a diamond. Late is alert (`.late`), done is leaf (`.dn`). Milestones less than 8 days apart merge into one numbered mark (`.n`, the number centred in it) that lists them on hover.
|
|
23
|
+
- **Date line** (`pm-dline`): the next milestones on one line, each a diamond with its date (mono), its name and what it belongs to. A label that would touch the one before it drops to the next row with a dashed lead. A milestone past the visible range folds into a `+N` mark (`pm-more`) at the right end with its month above it; once the line is scrolled, a matching mark shows at the left end. The line follows the table's scale.
|
|
@@ -53,12 +53,50 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
|
|
|
53
53
|
.pm-sug{display:flex;align-items:center;gap:10px;background:var(--blue-tint);border-radius:var(--radius-md);padding:4px 4px 4px 12px;font-size:13px}
|
|
54
54
|
.pm-sug .say{flex:1}
|
|
55
55
|
.pm-star{color:var(--blue)}
|
|
56
|
+
.pm-sug.x{flex-direction:column;align-items:stretch;gap:10px;padding:14px 16px}
|
|
57
|
+
.pm-sug.x .ttl{display:flex;align-items:center;gap:8px;font-weight:600}
|
|
58
|
+
.pm-sug.x .ttl .pm-ic{color:var(--blue)}
|
|
59
|
+
.pm-sug.x dl{display:grid;grid-template-columns:110px 1fr;gap:6px 12px;margin:0;font-size:14px;line-height:20px}
|
|
60
|
+
.pm-sug.x dt{color:var(--muted)}
|
|
61
|
+
.pm-sug.x dd{margin:0;min-width:0}
|
|
62
|
+
.pm-sug.x dd ul{margin:0;padding-left:18px}
|
|
63
|
+
.pm-sug.x dd li{margin:0 0 2px}
|
|
64
|
+
.pm-sug.x dd.src{color:var(--muted)}
|
|
65
|
+
.pm-sug.x .ans{display:flex;gap:8px;justify-content:flex-end}
|
|
56
66
|
.pm-ev{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--raise);padding:6px 10px;display:flex;flex-direction:column;line-height:1.35;font-size:13px}
|
|
57
67
|
.pm-ev b{font-weight:600}
|
|
58
68
|
.pm-ev.over{background:none;box-shadow:none;border-style:dashed;color:var(--muted)}
|
|
59
69
|
.pm-fold{height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;border:0;border-top:1px dashed var(--line);background:none;width:100%;font:inherit;font-size:13px;font-weight:600;color:var(--muted);text-align:left;cursor:pointer}
|
|
60
70
|
.pm-group{height:32px;display:flex;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:600;background:var(--well);color:var(--muted)}
|
|
61
71
|
.pm-group.now{background:var(--leaf-tint);color:var(--ink)}
|
|
72
|
+
.pm-dia{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;padding:0;transform:rotate(45deg);background:var(--card);border:2px solid var(--ink);border-radius:2px;box-sizing:border-box;cursor:pointer;z-index:2}
|
|
73
|
+
.pm-dia.late{border-color:var(--alert)}
|
|
74
|
+
.pm-dia.dn{background:var(--leaf);border-color:var(--leaf)}
|
|
75
|
+
.pm-dia.n{width:18px;height:18px;margin:-9px 0 0 -9px;background:var(--ink);border-color:var(--ink);display:flex;align-items:center;justify-content:center}
|
|
76
|
+
.pm-dia.n>b{transform:rotate(-45deg);color:var(--card);font-size:11px;line-height:1;font-weight:600}
|
|
77
|
+
.pm-dia:focus-visible{outline:none;box-shadow:var(--glow)}
|
|
78
|
+
.pm-now{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--alert);z-index:1}
|
|
79
|
+
.pm-now>span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:13px;font-style:normal;font-weight:600;color:var(--alert);white-space:nowrap}
|
|
80
|
+
.pm-gt{position:relative;height:24px}
|
|
81
|
+
.pm-gt>.b{position:absolute;top:7px;height:10px;border-radius:var(--radius-pill);background:var(--well);box-shadow:inset 0 0 0 1px var(--line)}
|
|
82
|
+
.pm-gt>.b.dn{background:var(--leaf);box-shadow:none}
|
|
83
|
+
.pm-gt>.b.nw{background:var(--blue);box-shadow:none}
|
|
84
|
+
.pm-dline{position:relative;padding:0 40px 0 8px}
|
|
85
|
+
.pm-dline .axis{position:relative;height:20px;font-size:13px;color:var(--muted)}
|
|
86
|
+
.pm-dline .axis .tk{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
|
|
87
|
+
.pm-dline .line{position:relative;height:calc(24px + var(--rows,1) * 86px);background:linear-gradient(var(--line),var(--line)) 0 12px/100% 1px no-repeat}
|
|
88
|
+
.pm-dline .line>.pm-now{bottom:auto;height:34px;top:-8px}
|
|
89
|
+
.pm-dline .ms{position:absolute;top:0;width:0}
|
|
90
|
+
.pm-dline .ms>.pm-dia{top:12px}
|
|
91
|
+
.pm-dline .ms .lb{position:absolute;top:calc(28px + var(--row) * 86px);left:-6px;display:flex;flex-direction:column;align-items:flex-start;gap:0;width:max-content;max-width:220px;font-size:13px;line-height:20px}
|
|
92
|
+
.pm-dline .ms .lb b{font-size:15px;line-height:24px;font-weight:600}
|
|
93
|
+
.pm-dline .ms .lb .code{font-family:var(--font-mono);color:var(--muted)}
|
|
94
|
+
.pm-dline .ms.low::before{content:"";position:absolute;left:0;top:20px;height:calc(var(--row) * 86px + 6px);border-left:1px dashed var(--line)}
|
|
95
|
+
.pm-dline .ms.late .lb .code{color:var(--alert)}
|
|
96
|
+
.pm-more{position:absolute;top:20px;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:0;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
|
|
97
|
+
.pm-more.r{right:0}.pm-more.l{left:-8px}
|
|
98
|
+
.pm-more b{min-width:24px;height:20px;padding:0 6px;border-radius:var(--radius-pill);background:var(--ink);color:var(--card);font-size:11px;line-height:20px;font-weight:600}
|
|
99
|
+
.pm-more:focus-visible{outline:none;box-shadow:var(--glow);border-radius:var(--radius-sm)}
|
|
62
100
|
/* Blocks */
|
|
63
101
|
.pm-block{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--raise);padding:16px 18px;display:flex;flex-direction:column;gap:12px;min-width:0}
|
|
64
102
|
.pm-block.flat{background:var(--well);box-shadow:none;border-color:transparent}
|
|
@@ -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-20T05:31:47Z"}
|
|
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-20T05:31:47Z"}
|
|
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-20T05:31:47Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.647.0",
|
|
4
|
+
"at": "2026-11-20T05:31:50.958Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1429,
|
|
9
|
+
"t": "Work's Initiatives tab built from design system blocks",
|
|
10
|
+
"s": "Work's Initiatives tab built from design system blocks",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.646.0",
|
|
17
|
+
"at": "2026-11-20T03:32:31.987Z",
|
|
18
|
+
"f": 4,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1428,
|
|
22
|
+
"t": "Today is built from the design system's blocks",
|
|
23
|
+
"s": "Today is built from the design system's blocks",
|
|
24
|
+
"k": "new"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
2
28
|
{
|
|
3
29
|
"v": "0.645.0",
|
|
4
30
|
"at": "2026-11-20T02:59:30.947Z",
|
|
@@ -12,3 +12,11 @@ One thing PMOS proposes, with Yes (primary) and No (outline). Blue-tint ground a
|
|
|
12
12
|
- Yes applies the change at once, the suggestion folds away, and a Toast offers Undo.
|
|
13
13
|
- No folds it away and PMOS remembers ("Won’t suggest this again for this initiative").
|
|
14
14
|
- Hover on the ✦ shows why PMOS suggests it, in one line.
|
|
15
|
+
|
|
16
|
+
## Expanded form (`pm-sug x`)
|
|
17
|
+
|
|
18
|
+
When a Suggestion changes dates, people or what is sent, it opens in the expanded form so the person can check it before Yes (Wawan: "user can't just trust to accept or reject"):
|
|
19
|
+
|
|
20
|
+
- A title: what PMOS proposes, in one line.
|
|
21
|
+
- Rows (a `dl`): **Why** with its evidence, **PMOS will** with the exact steps (anything sent outside is shown first), **What changes**, and **Based on** with the sources in muted text. A row with nothing to say is left out.
|
|
22
|
+
- The answers, right-aligned: Change it first (pencil), Yes (primary), No (outline). Icon-only, with their names as labels.
|
|
@@ -13,3 +13,11 @@ Things in time order. Used for: the agenda, an events day, milestones, PMOS’s
|
|
|
13
13
|
|
|
14
14
|
- The now line moves with the clock; the list scrolls to now when the page opens.
|
|
15
15
|
- Hover an event for detail; click opens it beside. Past events are quiet; the next one is raised.
|
|
16
|
+
|
|
17
|
+
## In a table, and the date line
|
|
18
|
+
|
|
19
|
+
The Work boards draw time in two more places, from the same marks:
|
|
20
|
+
|
|
21
|
+
- **Table timeline** (`pm-gt` inside a Table cell): done bars in leaf (`.b.dn`), now in blue (`.b.nw`), planned in well with a hairline (`.b`), and the today line (`pm-now`, alert). It scrolls sideways with a trackpad, a drag, or Earlier / Go to today / Later; no scrollbar is drawn.
|
|
22
|
+
- **Milestone** (`pm-dia`): a diamond. Late is alert (`.late`), done is leaf (`.dn`). Milestones less than 8 days apart merge into one numbered mark (`.n`, the number centred in it) that lists them on hover.
|
|
23
|
+
- **Date line** (`pm-dline`): the next milestones on one line, each a diamond with its date (mono), its name and what it belongs to. A label that would touch the one before it drops to the next row with a dashed lead. A milestone past the visible range folds into a `+N` mark (`pm-more`) at the right end with its month above it; once the line is scrolled, a matching mark shows at the left end. The line follows the table's scale.
|
|
@@ -53,12 +53,50 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
|
|
|
53
53
|
.pm-sug{display:flex;align-items:center;gap:10px;background:var(--blue-tint);border-radius:var(--radius-md);padding:4px 4px 4px 12px;font-size:13px}
|
|
54
54
|
.pm-sug .say{flex:1}
|
|
55
55
|
.pm-star{color:var(--blue)}
|
|
56
|
+
.pm-sug.x{flex-direction:column;align-items:stretch;gap:10px;padding:14px 16px}
|
|
57
|
+
.pm-sug.x .ttl{display:flex;align-items:center;gap:8px;font-weight:600}
|
|
58
|
+
.pm-sug.x .ttl .pm-ic{color:var(--blue)}
|
|
59
|
+
.pm-sug.x dl{display:grid;grid-template-columns:110px 1fr;gap:6px 12px;margin:0;font-size:14px;line-height:20px}
|
|
60
|
+
.pm-sug.x dt{color:var(--muted)}
|
|
61
|
+
.pm-sug.x dd{margin:0;min-width:0}
|
|
62
|
+
.pm-sug.x dd ul{margin:0;padding-left:18px}
|
|
63
|
+
.pm-sug.x dd li{margin:0 0 2px}
|
|
64
|
+
.pm-sug.x dd.src{color:var(--muted)}
|
|
65
|
+
.pm-sug.x .ans{display:flex;gap:8px;justify-content:flex-end}
|
|
56
66
|
.pm-ev{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--raise);padding:6px 10px;display:flex;flex-direction:column;line-height:1.35;font-size:13px}
|
|
57
67
|
.pm-ev b{font-weight:600}
|
|
58
68
|
.pm-ev.over{background:none;box-shadow:none;border-style:dashed;color:var(--muted)}
|
|
59
69
|
.pm-fold{height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;border:0;border-top:1px dashed var(--line);background:none;width:100%;font:inherit;font-size:13px;font-weight:600;color:var(--muted);text-align:left;cursor:pointer}
|
|
60
70
|
.pm-group{height:32px;display:flex;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:600;background:var(--well);color:var(--muted)}
|
|
61
71
|
.pm-group.now{background:var(--leaf-tint);color:var(--ink)}
|
|
72
|
+
.pm-dia{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;padding:0;transform:rotate(45deg);background:var(--card);border:2px solid var(--ink);border-radius:2px;box-sizing:border-box;cursor:pointer;z-index:2}
|
|
73
|
+
.pm-dia.late{border-color:var(--alert)}
|
|
74
|
+
.pm-dia.dn{background:var(--leaf);border-color:var(--leaf)}
|
|
75
|
+
.pm-dia.n{width:18px;height:18px;margin:-9px 0 0 -9px;background:var(--ink);border-color:var(--ink);display:flex;align-items:center;justify-content:center}
|
|
76
|
+
.pm-dia.n>b{transform:rotate(-45deg);color:var(--card);font-size:11px;line-height:1;font-weight:600}
|
|
77
|
+
.pm-dia:focus-visible{outline:none;box-shadow:var(--glow)}
|
|
78
|
+
.pm-now{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--alert);z-index:1}
|
|
79
|
+
.pm-now>span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:13px;font-style:normal;font-weight:600;color:var(--alert);white-space:nowrap}
|
|
80
|
+
.pm-gt{position:relative;height:24px}
|
|
81
|
+
.pm-gt>.b{position:absolute;top:7px;height:10px;border-radius:var(--radius-pill);background:var(--well);box-shadow:inset 0 0 0 1px var(--line)}
|
|
82
|
+
.pm-gt>.b.dn{background:var(--leaf);box-shadow:none}
|
|
83
|
+
.pm-gt>.b.nw{background:var(--blue);box-shadow:none}
|
|
84
|
+
.pm-dline{position:relative;padding:0 40px 0 8px}
|
|
85
|
+
.pm-dline .axis{position:relative;height:20px;font-size:13px;color:var(--muted)}
|
|
86
|
+
.pm-dline .axis .tk{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
|
|
87
|
+
.pm-dline .line{position:relative;height:calc(24px + var(--rows,1) * 86px);background:linear-gradient(var(--line),var(--line)) 0 12px/100% 1px no-repeat}
|
|
88
|
+
.pm-dline .line>.pm-now{bottom:auto;height:34px;top:-8px}
|
|
89
|
+
.pm-dline .ms{position:absolute;top:0;width:0}
|
|
90
|
+
.pm-dline .ms>.pm-dia{top:12px}
|
|
91
|
+
.pm-dline .ms .lb{position:absolute;top:calc(28px + var(--row) * 86px);left:-6px;display:flex;flex-direction:column;align-items:flex-start;gap:0;width:max-content;max-width:220px;font-size:13px;line-height:20px}
|
|
92
|
+
.pm-dline .ms .lb b{font-size:15px;line-height:24px;font-weight:600}
|
|
93
|
+
.pm-dline .ms .lb .code{font-family:var(--font-mono);color:var(--muted)}
|
|
94
|
+
.pm-dline .ms.low::before{content:"";position:absolute;left:0;top:20px;height:calc(var(--row) * 86px + 6px);border-left:1px dashed var(--line)}
|
|
95
|
+
.pm-dline .ms.late .lb .code{color:var(--alert)}
|
|
96
|
+
.pm-more{position:absolute;top:20px;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:0;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
|
|
97
|
+
.pm-more.r{right:0}.pm-more.l{left:-8px}
|
|
98
|
+
.pm-more b{min-width:24px;height:20px;padding:0 6px;border-radius:var(--radius-pill);background:var(--ink);color:var(--card);font-size:11px;line-height:20px;font-weight:600}
|
|
99
|
+
.pm-more:focus-visible{outline:none;box-shadow:var(--glow);border-radius:var(--radius-sm)}
|
|
62
100
|
/* Blocks */
|
|
63
101
|
.pm-block{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--raise);padding:16px 18px;display:flex;flex-direction:column;gap:12px;min-width:0}
|
|
64
102
|
.pm-block.flat{background:var(--well);box-shadow:none;border-color:transparent}
|
|
@@ -43,27 +43,27 @@ On a phone, **⋯** at the top right of every screen opens the menu: Today, Work
|
|
|
43
43
|
|
|
44
44
|
## Today
|
|
45
45
|
|
|
46
|
-
On a computer, Today is one page that starts at the left of the panel. At the top are the day and the time, and a greeting. Under them, the Overview and Today's log take the left (at most about 1100 px wide). Today's agenda is in one grey box on the right, about
|
|
46
|
+
On a computer, Today is one page that starts at the left of the panel. At the top are the day and the time, and a greeting. Under them, the Overview and Today's log take the left (at most about 1100 px wide). Today's agenda is in one grey box on the right, about 340 px wide, with the meeting you recorded under it. Today is built from the parts of the PMOS design system: the Overview is a summary card, the log a list card, and the agenda a timeline. Today reads every product. Home's old address on a computer (`/premium.html`, and a link that names one item) opens Today.
|
|
47
47
|
|
|
48
|
-
The **Overview** is one card written by PMOS (✦). It says how many lines are open, the ones to start with and why, how much free time today has and when your first or next meeting is. It names only what the lines themselves say. Under it, PMOS suggests what to clean up with ✓ ✕, only when it is true, for example "Drop the 2 checks carried more than 60 days".
|
|
48
|
+
The **Overview** is one card written by PMOS (✦). It says how many lines are open, the ones to start with and why, how much free time today has and when your first or next meeting is. It names only what the lines themselves say. The names of the lines to start with are links: press one to open it. Under it, PMOS suggests what to clean up with ✓ ✕, only when it is true, for example "Drop the 2 checks carried more than 60 days".
|
|
49
49
|
|
|
50
|
-
The log is a
|
|
50
|
+
The log is a list, kept the Bullet Journal way. Tabs at the top right count the lines by job: **All**, **Reply**, **Do**, **Decide** and **Send**. Press a tab to show only that job; **All** shows all again. A job with no lines has no tab. The lines are in three groups:
|
|
51
51
|
|
|
52
|
-
- **Do first**: five lines at most, each with the reason PMOS picked it under its title. PMOS picks what you marked first, a date that is late, a date that is today or a send that goes out today, a session that waits on you, and the person who waits longest. A line that PMOS suggests to drop is never in Do first.
|
|
52
|
+
- **Do first**: five lines at most, each with the reason PMOS picked it under its title. Its first line is lit: start there. PMOS picks what you marked first, a date that is late, a date that is today or a send that goes out today, a session that waits on you, and the person who waits longest. A line that PMOS suggests to drop is never in Do first.
|
|
53
53
|
- **Today**: what is new today (dated today, logged today or asked today), then what you did today.
|
|
54
|
-
- **
|
|
54
|
+
- **Later**: the rest, folded to one line ("66 can wait · the oldest waits 23 days"). Press it to see them, by type and then the oldest first.
|
|
55
55
|
|
|
56
|
-
Each row
|
|
56
|
+
Each row has two lines:
|
|
57
57
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
58
|
+
- An icon says what it is: a speech bubble for an **Ask**, a diamond for a **Decision**, a tick for a **Check**, a flag for a **Milestone**, a square for a **Task**, a page for a **Report**, a dash for a **Note**, a circle for your own event, ✦ for something PMOS suggests, and a tick in grey for done. **First** marks what you marked first.
|
|
59
|
+
- The title, then a short line under it: the work it belongs to and its date ("for Tender new CIAM · due 21 Oct"), or who waits ("Suhas waits on you"). A red badge at the right says how late it is ("29 days late") or how long a person waits ("28 days"). The type is **Ask** (a person asked you; the line starts with who, then the ask; an ask with no person behind it can wait), **Decision**, **Check** ("did it work?"), **Milestone**, **Task**, **Report** or **Note**. The same ask from the same people shows once, with every name ("Suhas and Betty: …"). One thing shows once, however it reached Today: an item of the morning brief that you put on today, a Jira ticket in your tasks, and a brief item that says what a person asked you are each one row. Done, Move to tomorrow and Set a date act on the whole row. A Jira ticket's Work is its key, for example "CONHUB-233". **Decide** is a call you make up your mind on, **Do** is something you do yourself ("Draft the PRD, or let PMOS draft it"), **Reply** is an answer a person waits for, and **Send** is a thing of yours that is ready to go out. PMOS's own note, such as the asks that expired with no answer, closes the log with the Job **Note**.
|
|
60
60
|
- The rows are the calls only you can make, your late tasks, the next steps, your own items for today, the drafts to send, and what you typed yourself.
|
|
61
|
-
- The
|
|
61
|
+
- The tabs count the log, so there is no separate count line.
|
|
62
62
|
|
|
63
63
|
To use the log:
|
|
64
64
|
|
|
65
65
|
1. Type a task, an event or a note in the first line and press Enter. Start with **o** for an event (add a time, such as 14:00, to put it on the agenda), with **-** for a note, and with **!** for what comes first. Enter only adds the row. It opens nothing and starts no session.
|
|
66
|
-
2. Point at a row to see its
|
|
66
|
+
2. Point at a row to see its icons. The first is its job: **Reply**, **Decide** or **Send** opens the item where you do it, and **Done** marks it done. Then come **Move to tomorrow** and **Set a date**. A done row turns grey. Each change shows Undo for a moment.
|
|
67
67
|
3. Press a row, or an event in the agenda, to open that one item in the popup. An ask opens that one mention, not the list of mentions. A task opens its initiative at that task, with the task's row lit, and the task itself in a small popup on top; Esc closes only the small popup. A check ("did it work?") opens its initiative. With the popup open, press **j** or **k** (or **↓** and **↑** in an ask) to open the next or the previous row in its place.
|
|
68
68
|
|
|
69
69
|
When the same step waits on several initiatives (for example "Draft the PRD" on six of them), it is one row, "6 initiatives have no PRD", with the ✦ line "PMOS drafts them for you to read": ✓ starts one draft per initiative, ✕ hides the line for a month. Press the row to list the initiatives. A title never shows an id, and Work names a product by its name.
|
|
@@ -74,14 +74,26 @@ Every row says why it is on Today, after its title: "Due today", "3 days late",
|
|
|
74
74
|
|
|
75
75
|
**PMOS checks that an ask still waits on you.** On every read, when Today opens and again when you open the ask, PMOS checks the source. When you replied after the ask, the ticket it points to is closed, or the person took the ask back, the ask leaves Today by itself and a message says how ("You replied Tue 17 Nov: …"), with Undo. A new message from the person after your reply brings it back. An ask with no move for 21 days asks "Still needed?" once.
|
|
76
76
|
|
|
77
|
-
What you do not finish is carried to the next day, and the
|
|
77
|
+
What you do not finish is carried to the next day, and the badge says for how long. When a row is carried for 30 days, PMOS suggests to drop it from your log. ✓ drops it, ✕ keeps it, and PMOS does not ask again for a month. A task's own date changes only when you set a date on it.
|
|
78
78
|
|
|
79
79
|
Findings that fit no initiative (the Lab) are ✦ rows in the log. ✓ keeps one and starts an initiative from it. ✕ drops it.
|
|
80
80
|
|
|
81
|
-
The agenda
|
|
81
|
+
The agenda lists the day's events in time order, each with its start time, and a red line with the time now between the past and the next ones. Past events are dashed. The next event says how soon it starts ("in 20 min"). A meeting with a call has a play button: one press joins the call and starts the recording. It shows your meetings, the reports that go out today at their time, your own events, and focus time: the free time from now until the next meeting, held for the first row of your log, in a dashed box. Focus time is only ever a gap before a meeting: it never runs past the last one. Press the focus time to open that row. A day with no meeting or event shows one quiet line, for example "No events today · 9 h free". **Events** at the top right opens the Events page. "PMOS did" is not on Today; it moves to Routine.
|
|
82
|
+
|
|
83
|
+
Under the agenda, after a meeting PMOS recorded and filed in the last 3 hours, a card says what came of it and where PMOS filed it. ✓ keeps it there and the card goes. ✕ takes the recording out of that work, with Undo.
|
|
82
84
|
|
|
83
85
|
On a phone, Today is one page with no boxes: the overview, the next event with **Record**, and the log. Swipe a row to the right to do or accept it, and to the left to drop it or put it off. Each swipe has **Undo**.
|
|
84
86
|
|
|
87
|
+
## Work
|
|
88
|
+
|
|
89
|
+
On a computer, Work is built from the parts of the PMOS design system. The top line shows the path (**Work ›** and the product; press the product to switch it), the tabs **Initiatives**, **Backlog** and **This sprint**, then Search, New initiative and More.
|
|
90
|
+
|
|
91
|
+
**Initiatives** has three blocks:
|
|
92
|
+
|
|
93
|
+
- **Where it stands.** One paragraph that says what is happening and why it matters: an initiative past its milestone, with the cause from the record (a Jira ticket that is blocked, a step that waits on you), an initiative that sat in a stage with no dates and for how long, and the next decision point. Press a name to open the initiative. Under it, PMOS shows one suggestion from its open proposals, with **Why**, **PMOS will** (the exact steps), **What changes** and **Based on** (the sources). The pencil opens the initiative so you can change the proposal first, ✓ does it (with Undo), and ✕ drops it. When nothing needs saying, the block does not show.
|
|
94
|
+
- **Initiatives.** A table with the columns you choose (the tune icon also sorts and filters). Press a column heading to sort by it. The timeline shows done in green, now in blue and planned in grey, with a red line for today. A milestone is a diamond on its initiative's row; a late one is red. Milestones less than 8 days apart are one numbered diamond: point at it to see them. Pick the scale with **Week**, **Month**, **Quarter**, **Year** or **Full**. Move the timeline with the arrows, with a sideways swipe on a trackpad, or by dragging it; the middle arrow goes back to today. A late date has a red badge, for example "8 days late". Closed initiatives fold into one line at the end.
|
|
95
|
+
- **Next milestones.** The next five milestones of all initiatives on one line, on the same scale as the table, each with its date, its name and its initiative. Labels that are too close move down a row. A milestone after the end of the line is in the **+N** mark at the right: press it to move the line on. When the line has moved, a mark at the left moves it back. Press a diamond to open the milestone.
|
|
96
|
+
|
|
85
97
|
## The Viewer
|
|
86
98
|
|
|
87
99
|
The Viewer shows one item: an initiative, a program, a task, a document, a meeting, a report, Your day or a page of this guide.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.647.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.647.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -48,15 +48,23 @@ const put = (k, v) => { try { const s = box(); if (s) s.setItem(k, JSON.stringif
|
|
|
48
48
|
const scopeKey = () => (A ? A.scope().map((s) => s.ws + '|' + (s.board || '')).sort().join(',') : '');
|
|
49
49
|
const uidOf = (t) => t.ws + '|' + t.board + '|' + t.id;
|
|
50
50
|
|
|
51
|
-
/**
|
|
52
|
-
|
|
51
|
+
/** Work's tab now (WorkDS: Initiatives, Backlog, This sprint): the address first (?work=backlog, ?work=sprint), then what the PM chose for
|
|
52
|
+
* this pick. → 'ini' | 'bk' | 'sp' */
|
|
53
|
+
export function tabOf() {
|
|
53
54
|
const q = new URLSearchParams(location.search).get('work');
|
|
54
|
-
if (q === 'backlog') return
|
|
55
|
-
if (q === '
|
|
56
|
-
|
|
55
|
+
if (q === 'backlog') return 'bk';
|
|
56
|
+
if (q === 'sprint') return 'sp';
|
|
57
|
+
if (q === 'initiatives') return 'ini';
|
|
58
|
+
const v = (get(KEY, {}) || {})[scopeKey()];
|
|
59
|
+
return v === 'bk' || v === 'sp' ? v : 'ini';
|
|
57
60
|
}
|
|
61
|
+
/** Is a task tab (Backlog or This sprint) the view now? */
|
|
62
|
+
export const on = () => tabOf() !== 'ini';
|
|
58
63
|
function setOn(v) {
|
|
59
|
-
|
|
64
|
+
v = v === true ? 'bk' : v === false ? 'ini' : v;
|
|
65
|
+
const m = get(KEY, {}) || {}; m[scopeKey()] = v; put(KEY, m);
|
|
66
|
+
// This sprint is the task list with the sprint on: the band over it (pm/bd-sprint.js); Backlog is the list without it
|
|
67
|
+
if (v === 'sp') CHIPS.add('sprint'); else if (v === 'bk') CHIPS.delete('sprint');
|
|
60
68
|
const q = new URLSearchParams(location.search); if (q.has('work')) { q.delete('work'); const s = q.toString(); history.replaceState(history.state, '', location.pathname + (s ? '?' + s : '')); }
|
|
61
69
|
apply();
|
|
62
70
|
}
|
|
@@ -95,12 +103,14 @@ export async function load() {
|
|
|
95
103
|
/* ── the switch in Work's header ──────────────────────────────────────────────────────────────────────────────── */
|
|
96
104
|
function drawSwitch() {
|
|
97
105
|
if (!sw) return;
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
const t = tabOf(), tb = (k, n) => `<button type="button" role="tab" aria-selected="${t === k}" class="pm-tab${t === k ? ' on' : ''}" data-bksw="${k}">${n}</button>`;
|
|
107
|
+
// one Tabs part for the three (WorkDS); no count on a tab: Where it stands says what matters (say it once)
|
|
108
|
+
sw.innerHTML = tb('ini', 'Initiatives') + tb('bk', 'Backlog') + tb('sp', 'This sprint');
|
|
101
109
|
}
|
|
102
110
|
function apply() {
|
|
103
111
|
const bk = on();
|
|
112
|
+
if (tabOf() === 'sp') CHIPS.add('sprint');
|
|
113
|
+
document.body.classList.toggle('sp-on', tabOf() === 'sp');
|
|
104
114
|
document.body.classList.toggle('bk-on', bk);
|
|
105
115
|
if (host) host.hidden = !bk;
|
|
106
116
|
drawSwitch();
|
|
@@ -527,9 +537,9 @@ export function sync(api) {
|
|
|
527
537
|
sw = document.createElement('span'); sw.className = 'bk-sw pm-tabs'; // the system's Tabs (design-system ui/components/Tabs) sw.setAttribute('role', 'tablist'); sw.setAttribute('aria-label', 'Work');
|
|
528
538
|
// on a desk the switch sits in the toolbar after the product picker; on a phone the toolbar is full, so it takes its own line above the list
|
|
529
539
|
const PH = matchMedia('(max-width: 760px)');
|
|
530
|
-
const place = () => { if (PH.matches) ib.insertAdjacentElement('beforebegin', sw); else crumb.insertAdjacentElement('afterend', sw); sw.classList.toggle('bk-sw-row', PH.matches); };
|
|
540
|
+
const place = () => { if (PH.matches) ib.insertAdjacentElement('beforebegin', sw); else (crumb.closest('.wk-path') || crumb).insertAdjacentElement('afterend', sw); sw.classList.toggle('bk-sw-row', PH.matches); };
|
|
531
541
|
place(); PH.addEventListener('change', place);
|
|
532
|
-
sw.addEventListener('click', (e) => { const b = e.target.closest('[data-bksw]'); if (b) setOn(b.dataset.bksw
|
|
542
|
+
sw.addEventListener('click', (e) => { const b = e.target.closest('[data-bksw]'); if (b) setOn(b.dataset.bksw); });
|
|
533
543
|
host = document.createElement('div'); host.id = 'bkBody'; host.className = 'bk-host'; host.hidden = true;
|
|
534
544
|
ib.insertAdjacentElement('afterend', host);
|
|
535
545
|
host.addEventListener('click', (e) => { press(e); });
|
|
@@ -47,13 +47,6 @@ body.bd-page.pm-ds > :not(#czNav, .pv-scrim, .pv-ov) :focus-visible { outline: n
|
|
|
47
47
|
.bd-page.pm-ds .bk-sw .pm-tab.on { box-shadow: var(--raise); }
|
|
48
48
|
.bd-page.pm-ds .bk-sw .k { font-weight: var(--fw-regular); color: var(--muted); }
|
|
49
49
|
|
|
50
|
-
/* Table: the Work grid and the Backlog list. Column heads are label-size, muted; lines are the system's line; a row lights on hover. */
|
|
51
|
-
.bd-page.pm-ds .wk-h { border-radius: var(--radius-card) var(--radius-card) 0 0; color: var(--muted); }
|
|
52
|
-
.bd-page.pm-ds .wk-g { background: var(--well); color: var(--muted); }
|
|
53
|
-
@media (hover: hover) { .bd-page.pm-ds .wk-r:not(.wk-h):not(.wk-g):hover { background: var(--well); } }
|
|
54
|
-
.bd-page.pm-ds .wk-now { background: var(--alert); opacity: 1; }
|
|
55
|
-
.bd-page.pm-ds .wk-nowl { background: var(--alert); color: var(--card); }
|
|
56
|
-
|
|
57
50
|
/* Menu: the View menu, the stage menu, the milestone lists, the Backlog's small popovers and the Publish popover sit on the system's Menu
|
|
58
51
|
* surface: card, medium corners, lift. */
|
|
59
52
|
.bd-page.pm-ds :is(.wk-menu, .wk-stm, .tg-msp, .bk-pop, .bppop) { border-radius: var(--radius-md); background: var(--card); box-shadow: var(--lift); }
|
|
@@ -221,7 +221,7 @@ const slipWords = (r, e) => { const p = r.plan, b = p && day(p.end), n = p && p.
|
|
|
221
221
|
* (pm/cozy-pop-work.js), so the bar has one design everywhere (Wawan, 2026-11-19). X: a date → its percent of the box; the markup sits in a
|
|
222
222
|
* position:relative box of the row's height. o: { pxPct: px per 1 % of the box, reach: days in which ◇s merge, mode: 'all' | 'pinned',
|
|
223
223
|
* label: false drops the end label, phone } → html */
|
|
224
|
-
export const rowBar = (r, X, now, o = {}) => qBar(r, X, now, !!o.phone, md, o.pxPct || 0, { reach: o.reach || 7, mode: o.mode || 'all', noLabel: o.label === false });
|
|
224
|
+
export const rowBar = (r, X, now, o = {}) => qBar(r, X, now, !!o.phone, md, o.pxPct || 0, { reach: o.reach || 7, mode: o.mode || 'all', noLabel: o.label === false, endIn: !!o.endIn });
|
|
225
225
|
function qBar(r, X, now, phone, fmt, pxPct, ms = {}) {
|
|
226
226
|
const s = day(r.start), e = day(r.end), fr = fcRange(r), fc = r.forecast ? null : r.track && day(r.track.forecast), tone = toneOf(r);
|
|
227
227
|
const tm = taskMarks(r, X, now, phone, pxPct, ms), et = tm.end, note = markWords(r, now);
|
|
@@ -249,7 +249,7 @@ function qBar(r, X, now, phone, fmt, pxPct, ms = {}) {
|
|
|
249
249
|
const name = landsOf(r, et), eTitle = name + ' · ' + md(ed) + (et && et.stage ? ' · ◆ ' + et.stage : '') + (et && et.done ? ' · done' : isLate ? ' · late' : '');
|
|
250
250
|
// nothing lands (batch 25 item 13): a workflow with no ◆ stage and no dated milestone draws no ◇ and no label; the bar's own end says it
|
|
251
251
|
if (!name) return out + planMarks(r, X, phone, fmt);
|
|
252
|
-
out += `<button type="button" class="tg-end${et && et.done ? ' dn' : ''}${isLate ? ' late' : ''}" data-ms-pick="${esc(r.key)}" data-ms-id="${esc(et ? et.id : '')}" style="left:${P(X(ed))}" aria-haspopup="dialog" aria-label="${esc(eTitle + '. Milestones of ' + r.title)}" title="${esc(eTitle + (clash ? '. ' + clash : ''))}"></button>`;
|
|
252
|
+
if (!tm.endMerged) out += `<button type="button" class="tg-end${et && et.done ? ' dn' : ''}${isLate ? ' late' : ''}" data-ms-pick="${esc(r.key)}" data-ms-id="${esc(et ? et.id : '')}" style="left:${P(X(ed))}" aria-haspopup="dialog" aria-label="${esc(eTitle + '. Milestones of ' + r.title)}" title="${esc(eTitle + (clash ? '. ' + clash : ''))}"></button>`;
|
|
253
253
|
// with the Next milestone column on, the column names it and the bar's end has no label (StsA8Board); the ◇ keeps the words as its hover
|
|
254
254
|
if (!ms.noLabel) out += endLabel(Math.max(X(e), X(ed), over ? X(now) : 0, late ? X(fc) : 0, fr ? X(fr.high) : 0), name, ed, isLate ? 'late' : risk, now, pxPct, hover, slipHtml(r));
|
|
255
255
|
} else if (fc) {
|
|
@@ -398,9 +398,14 @@ function taskMarks(r, X, now, phone, pxPct, ms) {
|
|
|
398
398
|
const M = (r.milestones || []).filter((m) => day(m.date));
|
|
399
399
|
if (!M.length) return { html: '', end: null };
|
|
400
400
|
const end = endTask(r, M, ms.reach || 0), show = new Set(shownMs(r, ms.mode || 'pinned').map((m) => m.id));
|
|
401
|
-
|
|
401
|
+
// Work (WorkDS, ms.endIn): the end ◇ merges with milestones less than `reach` days from it, into one numbered mark
|
|
402
|
+
const withEnd = !!(ms.endIn && end);
|
|
403
|
+
const L = M.filter((m) => (withEnd && end && m.id === end.id) || ((!end || m.id !== end.id) && show.has(m.id))).map((m) => ({ ...m, late: msLate(m, now, r), stage: msStage(r, m) }))
|
|
402
404
|
.filter((m) => { const x = X(day(m.date)); return x > 0 && x < 100; });
|
|
403
|
-
const
|
|
405
|
+
const C0 = mergeClose(L, Math.max(1, ms.reach || 7));
|
|
406
|
+
const hasEnd = (c) => withEnd && c.items.some((m) => m.id === end.id);
|
|
407
|
+
// the end alone stays the end ◇ qBar draws; merged with others it is drawn here, once, as part of the count
|
|
408
|
+
const C = C0.filter((c) => !(hasEnd(c) && c.n < 2)), endMerged = C.some(hasEnd);
|
|
404
409
|
const html = C.map((c) => {
|
|
405
410
|
const x = P(X(day(c.date))), tone = c.late ? ' late' : c.done ? ' dn' : '';
|
|
406
411
|
const one = c.items[0], words = (m) => m.name + ' · ' + md(day(m.date)) + (m.stage ? ' · ◆ ' + m.stage : '') + (m.late ? ' · late' : m.done ? ' · done' : '');
|
|
@@ -408,7 +413,7 @@ function taskMarks(r, X, now, phone, pxPct, ms) {
|
|
|
408
413
|
? `<button type="button" class="tg-tmc${tone}" data-ms-row="${esc(r.key)}" data-ms-ids="${esc(c.items.map((m) => m.id).join(' '))}" style="left:${x}" aria-haspopup="menu" aria-label="${esc(c.n + ' milestones, ' + c.range + ': ' + c.items.map((m) => m.name).join(', '))}" title="${esc(c.items.map(words).join('\n'))}"><b aria-hidden="true">${c.n}</b></button>`
|
|
409
414
|
: `<button type="button" class="tg-tm${tone}" data-ms-pick="${esc(r.key)}" data-ms-id="${esc(one.id)}" style="left:${x}" aria-haspopup="dialog" aria-label="${esc('Milestone ' + words(one) + '. Milestones of ' + r.title)}" title="${esc(words(one))}"></button>`;
|
|
410
415
|
}).join('');
|
|
411
|
-
return { html, end };
|
|
416
|
+
return { html, end, endMerged };
|
|
412
417
|
}
|
|
413
418
|
|
|
414
419
|
/* ── the product lane (feedback batch 11 item 17; canvas PlmA1Board, PlmA2Folded, PlmA3Phone) ──
|