create-pmos 0.646.0 → 0.648.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.
Files changed (30) hide show
  1. package/package.json +27 -27
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/design-system/ui/components/Suggestion/README.md +8 -0
  4. package/payload/design-system/ui/components/Timeline/README.md +8 -0
  5. package/payload/design-system/ui/components/bundle.css +38 -0
  6. package/payload/planning/evals/eval-calibration.md +1 -1
  7. package/payload/planning/okrs/health-budgets.md +1 -1
  8. package/payload/state/discoveries.md +1 -1
  9. package/workspace/changelog.json +26 -0
  10. package/workspace/design-system/ui/components/Suggestion/README.md +8 -0
  11. package/workspace/design-system/ui/components/Timeline/README.md +8 -0
  12. package/workspace/design-system/ui/components/bundle.css +38 -0
  13. package/workspace/guide/layout.md +15 -0
  14. package/workspace/lib/routes-backlog.js +6 -2
  15. package/workspace/lib/sprint-now.js +79 -0
  16. package/workspace/package-lock.json +2 -2
  17. package/workspace/package.json +1 -1
  18. package/workspace/public/pm/bd-backlog.js +36 -14
  19. package/workspace/public/pm/bd-ds.css +0 -7
  20. package/workspace/public/pm/bd-span.js +10 -5
  21. package/workspace/public/pm/bd-sprint-ds.js +115 -0
  22. package/workspace/public/pm/bd-sprint.js +71 -56
  23. package/workspace/public/pm/bd-stands.js +165 -0
  24. package/workspace/public/pm/bd-work-ds.css +144 -0
  25. package/workspace/public/pm/bd-work.css +8 -77
  26. package/workspace/public/pm/bd-work.js +79 -46
  27. package/workspace/public/pm/komorebi.css +39 -0
  28. package/workspace/public/pm/premium-board.js +57 -10
  29. package/workspace/public/pm/readonly.js +3 -0
  30. 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.646.0",
3
+ "version": "0.648.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.648.0",
38
+ "at": "2026-11-20T05:58:53.312Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1430,
43
+ "t": "Work's This sprint tab holds all work in the sprint's dates",
44
+ "s": "Work's This sprint tab holds all work in the sprint's dates",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "v": "0.647.0",
51
+ "at": "2026-11-20T05:31:50.958Z",
52
+ "f": 4,
53
+ "prs": [
54
+ {
55
+ "n": 1429,
56
+ "t": "Work's Initiatives tab built from design system blocks",
57
+ "s": "Work's Initiatives tab built from design system blocks",
58
+ "k": "new"
59
+ }
60
+ ]
61
+ },
36
62
  {
37
63
  "v": "0.646.0",
38
64
  "at": "2026-11-20T03:32:31.987Z",
@@ -290,32 +316,6 @@
290
316
  "k": "fix"
291
317
  }
292
318
  ]
293
- },
294
- {
295
- "v": "0.621.0",
296
- "at": "2026-11-19T04:46:30.709Z",
297
- "f": 4,
298
- "prs": [
299
- {
300
- "n": 1402,
301
- "t": "Backlog rows open the small task popup",
302
- "s": "Backlog rows open the small task popup",
303
- "k": "new"
304
- }
305
- ]
306
- },
307
- {
308
- "v": "0.620.0",
309
- "at": "2026-11-19T04:33:41.427Z",
310
- "f": 4,
311
- "prs": [
312
- {
313
- "n": 1399,
314
- "t": "Shared copy draws Work, one view, and nothing private leaks",
315
- "s": "Shared copy draws Work, one view, and nothing private leaks",
316
- "k": "new"
317
- }
318
- ]
319
319
  }
320
320
  ]
321
321
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@206e0237
1
+ kernel-source: pmos@9750136d
2
2
  assembled: 2026-11-20
3
3
  mode: vendor
@@ -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-20T03:32:28Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T05:58:50Z"}
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-20T03:32:28Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T05:58:50Z"}
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-20T03:32:28Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T05:58:50Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,30 @@
1
1
  [
2
+ {
3
+ "v": "0.648.0",
4
+ "at": "2026-11-20T05:58:53.312Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1430,
9
+ "t": "Work's This sprint tab holds all work in the sprint's dates",
10
+ "s": "Work's This sprint tab holds all work in the sprint's dates",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.647.0",
17
+ "at": "2026-11-20T05:31:50.958Z",
18
+ "f": 4,
19
+ "prs": [
20
+ {
21
+ "n": 1429,
22
+ "t": "Work's Initiatives tab built from design system blocks",
23
+ "s": "Work's Initiatives tab built from design system blocks",
24
+ "k": "new"
25
+ }
26
+ ]
27
+ },
2
28
  {
3
29
  "v": "0.646.0",
4
30
  "at": "2026-11-20T03:32:31.987Z",
@@ -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}
@@ -84,6 +84,21 @@ Under the agenda, after a meeting PMOS recorded and filed in the last 3 hours, a
84
84
 
85
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**.
86
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
+
97
+ **This sprint** shows all work in the sprint's dates, in Jira and outside it. It holds every ticket of the active Jira sprint, done ones too, and every PMOS task whose dates meet the sprint's dates. A task under way with no date is in it too. Early stages often have no tickets, so their work still shows here.
98
+
99
+ - **The sprint card.** The sprint's name, its end date and what it holds, for example "21 Jira tickets and 7 tasks outside Jira". Under it, "11 of 28 done" with a bar. Then four columns: **Sprint goal**, **In progress**, **To do** and **Done**, each with its count and its first tasks. PMOS drafts the goal from the sprint's work. Press the pencil to write your own; it can name work outside Jira, and PMOS does not write over it. When PMOS has a newer draft, ✓ uses it and ✕ keeps yours. Press the sprint's name to open a past sprint. The arrow icon reads Jira again; a red dot on it means the last read is old. Under the columns, PMOS shows one suggestion, for example to place tickets in an initiative, with **Why**, **PMOS will**, **What changes** and **Based on**. The pencil picks another initiative first, ✓ does it (with Undo) and ✕ says not now.
100
+ - **Tasks.** A table of the sprint's work, grouped by initiative. Each group says how much is done, for example "2 of 5 done". The tabs show **All**, **To do**, **In progress** or **Done**. **Group** groups the rows by initiative, by who has them, by state, by the themes PMOS found in the ticket titles, or not at all. **Source** shows the Jira ticket, or "Not in Jira". A due date that has passed on work that is not done has a red badge, for example "1 day late". A ticket that moved sprint twice says "Moved twice". Press a task to open it.
101
+
87
102
  ## The Viewer
88
103
 
89
104
  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.
@@ -17,7 +17,8 @@
17
17
  * POST /api/backlog/decline { ws, board, task, undo? } ✕ on "PMOS can take these": not for PMOS (and its Undo)
18
18
  * GET /api/backlog/sprint?ws=&board=&sprint= → { ok, sprint } one sprint as PMOS kept it (initiative sprint-snapshots; SpH2, SpH3):
19
19
  * lib/sprint-history.js detailOf. GET /api/backlog also carries sprintList (the picker, SpH1) and
20
- * sprintTrend (the carried-over line and bars).
20
+ * sprintTrend (the carried-over line and bars), and sprintNow (This sprint: every task in the
21
+ * active sprint's dates, Jira and not, done ones too; lib/sprint-now.js).
21
22
  * POST /api/backlog/place { ws, board, key, to } a No home Jira ticket into an initiative (a ticket-move line on the board
22
23
  * ledger, as a split or merge writes it; Jira is not written to, D88). to '' takes it back out.
23
24
  *
@@ -34,6 +35,7 @@ const assigned = require('./work-assigned.js');
34
35
  const WK = require('./work-kind.js');
35
36
  const SO = require('./sprint-overview.js');
36
37
  const SH = require('./sprint-history.js');
38
+ const SN = require('./sprint-now.js');
37
39
  /** The PM's own name for Who (PMOS_PM_NAME, else git's user.name: the name Home greets them by); '' when neither is set. */
38
40
  const pmNameOf = () => { try { return require('./routes-board-publish.js').sharedBy() || ''; } catch { return ''; } };
39
41
 
@@ -129,7 +131,9 @@ function listOf(ctx, wsId, boardId, now) {
129
131
  const sin = sprintInputs(w, board, sprintNotes, tasks, jiraStatus);
130
132
  let sprintList = [], sprintTrend = null;
131
133
  try { sprintList = SH.listOf(sin); sprintTrend = SH.trendOf(sprintList); } catch { sprintList = []; sprintTrend = null; }
132
- return { ok: true, ws: w.id, board: board.id, product, mode, sprintNotes, sprintList, sprintTrend, _sin: sin, modeLabel: BL.MODE_LABEL[mode], kinds: BL.countKinds(inis.map((x) => x.kind)), factory, readAt, today,
134
+ // This sprint (WorkSprintDS): all work in the sprint's dates, Jira and not, done work too
135
+ let sprintNow = []; try { sprintNow = SN.sprintsNowOf({ R, tasks, items, inis, projects: sin.projects, today, me: actorLib.PM_SLUG, pmName: pmNameOf() }); } catch { sprintNow = []; }
136
+ return { ok: true, ws: w.id, board: board.id, product, mode, sprintNotes, sprintList, sprintTrend, sprintNow, _sin: sin, modeLabel: BL.MODE_LABEL[mode], kinds: BL.countKinds(inis.map((x) => x.kind)), factory, readAt, today,
133
137
  tasks, inis: inis.map((x) => ({ id: x.id, title: x.title, kind: x.kind })), _w: w, _RB: RB, _runTasks: runTasks };
134
138
  }
135
139
 
@@ -0,0 +1,79 @@
1
+ 'use strict';
2
+ /* sprint-now.js — the sprint as Work › This sprint shows it (initiative work-ds-sprint; Exploring 3 page "work", board WorkSprintDS).
3
+ *
4
+ * The sprint holds ALL work in the sprint's dates, Jira and not (Wawan 2026-11-20: early stages have no tickets but still need reporting):
5
+ * · every Jira ticket of the board's projects in the active sprint, done ones too;
6
+ * · every PMOS task of the board whose dates meet the sprint's dates, or that is under way now when it has no date.
7
+ * Nothing is guessed: the sprint's dates are Jira's, a task's dates are its own. A sprint with no dates holds its tickets only.
8
+ *
9
+ * sprintsNowOf(input) → [{ name, label, start, end, rows, jira, other, done, total }] active sprints, the one with most work first.
10
+ * input: { R: Map key → Jira reading, tasks: the open rows of lib/backlog.js tasksOf, items: the board's items (every state), inis: [{ id,
11
+ * title }], projects: [Jira project key] (empty = every project), today: 'YYYY-MM-DD', me, pmName }
12
+ * row: { uid, id, src: jira|pmos, key, title, ini, iniTitle, who, state: To do|In progress|In review|Done, due, late (days), moved (other
13
+ * sprints the ticket was in), url, open (the row is in the Backlog's task list, so it opens as a task) }
14
+ */
15
+ const BL = require('./backlog.js');
16
+
17
+ const DAY = 864e5;
18
+ const dayNum = (d) => { const t = Date.parse(String(d || '').slice(0, 10) + 'T00:00:00Z'); return Number.isFinite(t) ? Math.round(t / DAY) : null; };
19
+ const str = (v, n) => String(v == null ? '' : v).slice(0, n);
20
+ const labelOf = (name) => { const m = /(sprint\s*\d+)\s*$/i.exec(String(name || '')); return m ? m[1].replace(/^s/, 'S') : String(name || ''); };
21
+ const stateOfJira = (rd) => (rd.category === 'done' ? 'Done' : rd.category === 'doing' ? (/review/i.test(rd.status || '') ? 'In review' : 'In progress') : 'To do');
22
+ const OPEN = new Set(['To do', 'In progress', 'In review']);
23
+
24
+ function sprintsNowOf(I) {
25
+ const R = I.R instanceof Map ? I.R : new Map();
26
+ const P = (I.projects || []).length ? new Set(I.projects.map((p) => String(p).toUpperCase())) : null;
27
+ const t0 = dayNum(I.today);
28
+ const iniBy = new Map((I.inis || []).map((x) => [x.id, x]));
29
+ const open = new Map((I.tasks || []).map((t) => [t.id, t]));
30
+ const me = String(I.me || '').toLowerCase();
31
+ const whoOf = (owner) => {
32
+ const o = str(owner, 80).replace(/^(?:person|tracker):/, '').trim();
33
+ if (!o) return '';
34
+ if (/^(pm|you|me)$/i.test(o) || /^pm:/i.test(o) || (me && o.toLowerCase() === me)) return I.pmName || 'You';
35
+ return BL.firstName(o);
36
+ };
37
+ const lateOf = (due, state) => { const d = dayNum(due); return d != null && t0 != null && d < t0 && OPEN.has(state) ? t0 - d : 0; };
38
+ const by = new Map();
39
+ for (const rd of R.values()) {
40
+ if (!rd || !rd.key || !rd.sprint || rd.sprint.state !== 'active' || !rd.sprint.name || /^epic$/i.test(rd.type || '')) continue;
41
+ const key = String(rd.key).toUpperCase();
42
+ if (P && !P.has(key.split('-')[0])) continue;
43
+ const name = String(rd.sprint.name);
44
+ if (!by.has(name)) by.set(name, { name, label: labelOf(name), start: null, end: null, rows: [] });
45
+ const sp = by.get(name);
46
+ if (!sp.start && rd.sprint.start) sp.start = String(rd.sprint.start).slice(0, 10);
47
+ if (!sp.end && rd.sprint.end) sp.end = String(rd.sprint.end).slice(0, 10);
48
+ const t = open.get(key);
49
+ const state = t ? t.state : stateOfJira(rd);
50
+ const ini = t ? t.ini : null;
51
+ const moved = Array.isArray(rd.sprints) ? rd.sprints.filter((s) => s && s.name && s.name !== name).length : 0;
52
+ const due = t ? t.due : null;
53
+ sp.rows.push({ uid: t ? t.ws + '|' + t.board + '|' + t.id : key, id: key, src: 'jira', key, title: str((t && t.title) || rd.summary || key, 300), ini, iniTitle: ini && iniBy.has(ini) ? str(iniBy.get(ini).title, 160) : '',
54
+ who: t ? t.who : whoOf(rd.assignee), state, due, late: lateOf(due, state), moved, url: (t && t.url) || rd.url || null, open: !!t });
55
+ }
56
+ for (const sp of by.values()) {
57
+ const s = dayNum(sp.start), e = dayNum(sp.end);
58
+ for (const w of I.items || []) {
59
+ if (!w || w.src !== 'pmos' || w.kind === 'Epic' || !w.uid) continue;
60
+ if (w.status === 'Archived' || w.status === "Won't do") continue;
61
+ const a = dayNum(w.start), b = dayNum(w.end);
62
+ const lo = a != null ? a : b, hi = b != null ? b : a;
63
+ const inDates = s != null && e != null && lo != null && lo <= e && hi >= s;
64
+ const now = lo == null && (w.status === 'In progress' || w.status === 'In review');
65
+ if (!inDates && !now) continue;
66
+ const id = String(w.uid), t = open.get(id);
67
+ const state = w.status === 'Done' ? 'Done' : OPEN.has(w.status) ? w.status : 'To do';
68
+ const ini = iniBy.has(w.ini) ? w.ini : null;
69
+ sp.rows.push({ uid: t ? t.ws + '|' + t.board + '|' + t.id : id, id, src: 'pmos', key: '', title: str(w.title, 300), ini, iniTitle: ini ? str(iniBy.get(ini).title, 160) : '',
70
+ who: t ? t.who : whoOf(w.owner), state, due: w.end || null, late: lateOf(w.end, state), moved: 0, url: null, open: !!t });
71
+ }
72
+ }
73
+ return [...by.values()].map((sp) => {
74
+ const jira = sp.rows.filter((r) => r.src === 'jira').length;
75
+ return { ...sp, jira, other: sp.rows.length - jira, done: sp.rows.filter((r) => r.state === 'Done').length, total: sp.rows.length };
76
+ }).sort((a, b) => b.total - a.total || a.name.localeCompare(b.name));
77
+ }
78
+
79
+ module.exports = { sprintsNowOf, labelOf };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.646.0",
3
+ "version": "0.648.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.646.0",
9
+ "version": "0.648.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.646.0",
3
+ "version": "0.648.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -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
- /** Is the Backlog the view now? The address first (?work=backlog), then what the PM chose for this pick. */
52
- export function on() {
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 true;
55
- if (q === 'initiatives') return false;
56
- return (get(KEY, {}) || {})[scopeKey()] === 'bk';
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
- const m = get(KEY, {}) || {}; m[scopeKey()] = v ? 'bk' : 'ini'; put(KEY, m);
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
  }
@@ -78,7 +86,8 @@ export async function load() {
78
86
  const ok = got.filter(Boolean);
79
87
  // the oldest Jira read of the pick (the sprint band says when Jira was last read) and the PM's edits of each sprint's overview
80
88
  const reads = ok.map((r) => r.readAt).filter(Boolean).sort();
81
- DATA = { readAt: reads[0] || null, hist: ok.map((r) => ({ ws: r.ws, board: r.board, list: r.sprintList || [], trend: r.sprintTrend || null })), notes: Object.fromEntries(ok.map((r) => [r.ws + '|' + r.board, r.sprintNotes || {}])), tasks: ok.flatMap((r) => r.tasks || []), modes: ok.map((r) => ({ product: productName(r.ws, r.product), mode: r.mode, label: r.modeLabel, kinds: r.kinds || null })), inis: ok.flatMap((r) => (r.inis || []).map((x) => ({ ...x, ws: r.ws, board: r.board, product: productName(r.ws, r.product) }))),
89
+ DATA = { readAt: reads[0] || null, hist: ok.map((r) => ({ ws: r.ws, board: r.board, list: r.sprintList || [], trend: r.sprintTrend || null })),
90
+ now: ok.flatMap((r) => (r.sprintNow || []).map((n) => ({ ...n, ws: r.ws, board: r.board, rows: (n.rows || []).map((x) => ({ ...x, ws: r.ws, board: r.board })) }))), notes: Object.fromEntries(ok.map((r) => [r.ws + '|' + r.board, r.sprintNotes || {}])), tasks: ok.flatMap((r) => r.tasks || []), modes: ok.map((r) => ({ product: productName(r.ws, r.product), mode: r.mode, label: r.modeLabel, kinds: r.kinds || null })), inis: ok.flatMap((r) => (r.inis || []).map((x) => ({ ...x, ws: r.ws, board: r.board, product: productName(r.ws, r.product) }))),
82
91
  err: ok.length ? (ok.length < S.length ? 'One product could not be read; its tasks are not here.' : '') : 'The tasks could not be read. Try again in a moment.', many: S.length > 1 };
83
92
  // ?ini=<initiative id> (the initiative popup's "Open in Backlog"): the Initiative facet starts on that initiative, once
84
93
  if (!iniApplied) {
@@ -95,12 +104,14 @@ export async function load() {
95
104
  /* ── the switch in Work's header ──────────────────────────────────────────────────────────────────────────────── */
96
105
  function drawSwitch() {
97
106
  if (!sw) return;
98
- const n = DATA ? DATA.tasks.filter(BM.isOpen).length : null, bk = on();
99
- sw.innerHTML = `<button type="button" role="tab" aria-selected="${!bk}" class="pm-tab${bk ? '' : ' on'}" data-bksw="ini">Initiatives</button>`
100
- + `<button type="button" role="tab" aria-selected="${bk}" class="pm-tab${bk ? ' on' : ''}" data-bksw="bk">Backlog${n ? `<span class="k">${n}</span>` : ''}</button>`;
107
+ 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>`;
108
+ // one Tabs part for the three (WorkDS); no count on a tab: Where it stands says what matters (say it once)
109
+ sw.innerHTML = tb('ini', 'Initiatives') + tb('bk', 'Backlog') + tb('sp', 'This sprint');
101
110
  }
102
111
  function apply() {
103
112
  const bk = on();
113
+ if (tabOf() === 'sp') CHIPS.add('sprint');
114
+ document.body.classList.toggle('sp-on', tabOf() === 'sp');
104
115
  document.body.classList.toggle('bk-on', bk);
105
116
  if (host) host.hidden = !bk;
106
117
  drawSwitch();
@@ -122,7 +133,16 @@ function draw() {
122
133
  const said = SAID ? `<p class="bk-said" role="status">${esc(SAID.text)}${SAID.undo ? ' <button type="button" class="bk-lnk" data-bksaid>Undo</button>' : ''}</p>` : '';
123
134
  const sh = BM.showingLine(T, { chips: CHIPS, pick: PICK, partB: partB() });
124
135
  const showing = sh ? `<p class="bk-show">${esc(sh.text)}${sh.hidden ? ` · ${sh.hidden} hidden` : ''} · <button type="button" class="bk-lnk" data-bkall>Show all</button></p>` : '';
125
- const band = CHIPS.has('sprint') ? SP.bandHtml({ tasks: T.filter(BM.isOpen), all: T, inis: DATA.inis, readAt: DATA.readAt, notes: DATA.notes, hist: DATA.hist }, spDeps()) : '';
136
+ // This sprint (WorkSprintDS): the Summary card and the Tasks Table, both pm/bd-sprint.js; a past sprint keeps its frozen view and list
137
+ if (tabOf() === 'sp') {
138
+ const card = SP.bandHtml({ tasks: T.filter(BM.isOpen), all: T, inis: DATA.inis, readAt: DATA.readAt, notes: DATA.notes, hist: DATA.hist, now: DATA.now }, spDeps());
139
+ const list = SP.pastOn() ? SP.pastListHtml() : SP.tasksNowHtml();
140
+ host.innerHTML = (DATA.err ? `<p class="bk-err">${esc(DATA.err)}</p>` : '') + (SAID ? `<p class="bk-said" role="status">${esc(SAID.text)}${SAID.undo ? ' <button type="button" class="bk-lnk" data-bksaid>Undo</button>' : ''}</p>` : '')
141
+ + (card || list ? card + list : '<section class="pm-block"><p class="pm-meta">No sprint is active. When Jira has one, its work shows here, with the tasks outside Jira in its dates.</p></section>');
142
+ drawBar();
143
+ return;
144
+ }
145
+ const band = CHIPS.has('sprint') ? SP.bandHtml({ tasks: T.filter(BM.isOpen), all: T, inis: DATA.inis, readAt: DATA.readAt, notes: DATA.notes, hist: DATA.hist, now: DATA.now }, spDeps()) : '';
126
146
  const th = band ? SP.themeOf() : null;
127
147
  // a theme pressed in the band: the list is its tickets only, in one group with "Show all" (board SpA2)
128
148
  const G = th ? [{ k: 'theme', n: th.name, sub: '', open: true, total: th.total,
@@ -198,6 +218,8 @@ function rowHtml(t, gk, cols = COLS) {
198
218
 
199
219
  /** What the sprint band (pm/bd-sprint.js) needs from the Backlog and its page. */
200
220
  const spDeps = () => ({ post, tasks: () => (DATA ? DATA.tasks.filter(BM.isOpen) : []), say: (m, u) => AP().say(m, u), draw, load, reload: () => AP().reload(), taskOf,
221
+ openTask: (t, from) => AP().openTask(t, from),
222
+ pickIni: (at, p, done) => pickPop(at, 'Put them in', (DATA.inis || []).filter((x) => x.ws === p.ws && x.board === p.board).map((x) => [x.id, x.title]), (id) => done(id, ((DATA.inis || []).find((x) => x.id === id) || {}).title || id)),
201
223
  readJira: A && A.readJira ? () => A.readJira() : null, newInitiative: A && A.newInitiative ? (name, from) => A.newInitiative(name, from) : null });
202
224
 
203
225
  /* ── the bar under ticked rows (board BkSelect) ───────────────────────────────────────────────────────────────── */
@@ -408,7 +430,7 @@ function closeRv() { if (rv) { rv.remove(); rv = null; } }
408
430
  const taskOf = (u) => (SC ? SC.tasks() : DATA ? DATA.tasks : []).find((t) => uidOf(t) === u) || null;
409
431
  async function press(e, emb) {
410
432
  const t0 = e.target;
411
- if (!emb && t0.closest('.sbo-band, .bk-past, [data-spall]') && await SP.press(e, spDeps())) return;
433
+ if (!emb && t0.closest('.sbo-band, .bk-past, [data-spall], .wk-sp, .wk-spt') && await SP.press(e, spDeps())) return;
412
434
  const chip = t0.closest('[data-bkchip]');
413
435
  if (chip) { const k = chip.dataset.bkchip; if (k === 'all') CHIPS.clear(); else if (CHIPS.has(k)) CHIPS.delete(k); else CHIPS.add(k); draw(); const n = host.querySelector(`[data-bkchip="${k}"]`); if (n) n.focus(); return; }
414
436
  if (t0.closest('[data-bkall]')) { CHIPS.clear(); PICK = {}; SP.clearTheme(); draw(); return; }
@@ -527,9 +549,9 @@ export function sync(api) {
527
549
  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
550
  // 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
551
  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); };
552
+ 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
553
  place(); PH.addEventListener('change', place);
532
- sw.addEventListener('click', (e) => { const b = e.target.closest('[data-bksw]'); if (b) setOn(b.dataset.bksw === 'bk'); });
554
+ sw.addEventListener('click', (e) => { const b = e.target.closest('[data-bksw]'); if (b) setOn(b.dataset.bksw); });
533
555
  host = document.createElement('div'); host.id = 'bkBody'; host.className = 'bk-host'; host.hidden = true;
534
556
  ib.insertAdjacentElement('afterend', host);
535
557
  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); }