create-pmos 0.427.0 → 0.429.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 +25 -25
- 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/board-programs-test.js +16 -2
- package/workspace/briefing-premium-board-test.js +27 -22
- package/workspace/briefing-premium-insights-test.js +81 -60
- package/workspace/briefing-premium-metrics-test.js +5 -3
- package/workspace/briefing-premium-sources-test.js +5 -5
- package/workspace/briefing-premium-test.js +7 -5
- package/workspace/changelog.json +24 -0
- package/workspace/ev-everywhere-test.js +2 -2
- package/workspace/guide/briefing-premium.md +4 -2
- package/workspace/guide/home.md +34 -7
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/metric-drafts.md +48 -0
- package/workspace/guide/programs.md +1 -0
- package/workspace/home-other-product-test.js +12 -2
- package/workspace/intel-report-ui-test.js +189 -0
- package/workspace/lib/board-metrics-premium.js +1 -1
- package/workspace/lib/headless.js +15 -2
- package/workspace/lib/insights-premium.js +5 -1
- package/workspace/lib/insights-records.js +14 -5
- package/workspace/lib/intel-report.js +419 -0
- package/workspace/lib/metric-draft-runs.js +193 -0
- package/workspace/lib/metric-drafts.js +231 -0
- package/workspace/lib/metrics-cli.js +104 -0
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/report-setups.js +29 -13
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-insights-premium.js +2 -2
- package/workspace/lib/routes-insights-records.js +13 -5
- package/workspace/lib/routes-meeting-material.js +22 -1
- package/workspace/lib/routes-metric-drafts.js +141 -0
- package/workspace/lib/routes-phone-day.js +13 -2
- package/workspace/lib/routes-report-setups.js +92 -3
- package/workspace/lib/routes-viewer.js +5 -2
- package/workspace/lib/settings-store.js +14 -0
- package/workspace/metric-drafts-ui-test.js +209 -0
- package/workspace/milestone-pins-test.js +13 -0
- package/workspace/milestone-suggest-test.js +10 -4
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +40 -13
- package/workspace/premium-phone-card-test.js +8 -5
- package/workspace/premium-rec-tab-test.js +8 -0
- package/workspace/premium-vw-item-test.js +7 -3
- package/workspace/premium-vw-jira-test.js +2 -1
- package/workspace/program-charter-test.js +1 -1
- package/workspace/program-leave-test.js +2 -2
- package/workspace/program-order-test.js +3 -2
- package/workspace/program-panel-test.js +2 -1
- package/workspace/public/pm/bd-acts.js +23 -29
- package/workspace/public/pm/bd-ini-panel.js +90 -32
- package/workspace/public/pm/bd-pin-card.css +4 -4
- package/workspace/public/pm/bd-pin-card.js +4 -1
- package/workspace/public/pm/bd-prog-panel.js +9 -4
- package/workspace/public/pm/bd-span.js +22 -12
- package/workspace/public/pm/cozy-aud.css +1 -1
- package/workspace/public/pm/cozy-board.css +256 -256
- package/workspace/public/pm/cozy-ev.css +45 -45
- package/workspace/public/pm/cozy-evmodel.js +1 -1
- package/workspace/public/pm/cozy-home-rows.css +23 -23
- package/workspace/public/pm/cozy-home.css +207 -207
- package/workspace/public/pm/cozy-insights.css +207 -108
- package/workspace/public/pm/cozy-live-pill.css +5 -5
- package/workspace/public/pm/cozy-mtg-present.css +23 -23
- package/workspace/public/pm/cozy-nav.js +1 -1
- package/workspace/public/pm/cozy-news.js +2 -2
- package/workspace/public/pm/cozy-panel.css +29 -29
- package/workspace/public/pm/cozy-pick.css +5 -5
- package/workspace/public/pm/cozy-rec-now.css +20 -20
- package/workspace/public/pm/cozy-rec-present.css +11 -11
- package/workspace/public/pm/cozy-rec-tab.css +13 -13
- package/workspace/public/pm/cozy-rec-tab.js +12 -3
- package/workspace/public/pm/cozy-settings.js +1 -1
- package/workspace/public/pm/cozy-steps.css +9 -9
- package/workspace/public/pm/cozy-today.css +107 -71
- package/workspace/public/pm/cozy-viewer.css +7 -7
- package/workspace/public/pm/cozy-viewer.js +157 -23
- package/workspace/public/pm/cozy-vw-mtg.css +81 -81
- package/workspace/public/pm/cozy-vw-rp.css +53 -53
- package/workspace/public/pm/cozy-vw-shell.css +34 -21
- package/workspace/public/pm/cozy-vw.css +117 -117
- package/workspace/public/pm/cozy-xv.css +11 -11
- package/workspace/public/pm/cozy.css +18 -15
- package/workspace/public/pm/hi-pop.css +82 -0
- package/workspace/public/pm/hi-pop.js +65 -0
- package/workspace/public/pm/home-app.js +83 -28
- package/workspace/public/pm/home-day.js +131 -26
- package/workspace/public/pm/home-ini.css +38 -108
- package/workspace/public/pm/home-ini.js +50 -68
- package/workspace/public/pm/home-line.css +7 -7
- package/workspace/public/pm/home-list.js +41 -4
- package/workspace/public/pm/home-phone-card.js +18 -15
- package/workspace/public/pm/home-today.js +18 -7
- package/workspace/public/pm/ini-more.js +67 -0
- package/workspace/public/pm/ini-view-model.js +3 -2
- package/workspace/public/pm/ini-view.css +104 -102
- package/workspace/public/pm/ini-view.js +16 -8
- package/workspace/public/pm/loose-props.css +13 -13
- package/workspace/public/pm/metric-drafts.css +82 -0
- package/workspace/public/pm/metric-drafts.js +165 -0
- package/workspace/public/pm/ms-suggest.css +8 -8
- package/workspace/public/pm/order-model.js +85 -0
- package/workspace/public/pm/ov-view.css +12 -12
- package/workspace/public/pm/premium-board.js +57 -11
- package/workspace/public/pm/premium-chart-tab.js +6 -6
- package/workspace/public/pm/premium-insights.js +306 -105
- package/workspace/public/pm/premium-report-intel.css +56 -0
- package/workspace/public/pm/premium-report-intel.js +232 -0
- package/workspace/public/pm/premium-shell.js +2 -2
- package/workspace/public/pm/premium-vw-file.js +2 -2
- package/workspace/public/pm/premium-vw-item.js +3 -1
- package/workspace/public/pm/premium-vw-jira.js +2 -0
- package/workspace/public/pm/premium.css +127 -128
- package/workspace/public/pm/prog-order.css +6 -6
- package/workspace/public/pm/prog-order.js +15 -2
- package/workspace/public/pm/program-charter.css +23 -23
- package/workspace/public/pm/rp-parts.js +2 -2
- package/workspace/public/pm/sort-order.css +17 -0
- package/workspace/public/pm/sort-order.js +108 -0
- package/workspace/public/pm/split-merge.css +15 -15
- package/workspace/public/pm/task-card.css +21 -21
- package/workspace/public/pm/tk-tasks.css +37 -37
- package/workspace/public/pm/tk-view.css +6 -6
- package/workspace/public/pm/tk-view.js +3 -2
- package/workspace/public/pm/wf-page.css +28 -28
- package/workspace/public/pm/wf-page.js +1 -1
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-intelligence.html +82 -0
- package/workspace/server.js +38 -3
- package/workspace/skills/metric-draft.skill +47 -0
- package/workspace/sort-order-test.js +201 -0
- package/workspace/stage-card-test.js +1 -0
- package/workspace/task-card-test.js +1 -1
- package/workspace/test-lists/intel-report-ui.json +5 -0
- package/workspace/test-lists/intel-report.json +9 -0
- package/workspace/test-lists/metric-drafts-ui.json +5 -0
- package/workspace/test-lists/metric-drafts.json +9 -0
- package/workspace/test-lists/sort-order.json +6 -0
- package/workspace/test-lists/viewer-trail.json +5 -0
- package/workspace/test-run.js +3 -0
- package/workspace/tk-tasks-test.js +5 -3
- package/workspace/viewer-trail-test.js +145 -0
- package/workspace/public/premium-insights.html +0 -81
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
.tk-gh { position: relative; display: flex; align-items: center; }
|
|
7
7
|
.tk-ghb { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 6px 0 2px; padding: 0 8px; background: none; border: 0; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; border-radius: 12px; }
|
|
8
8
|
.tk-gh.s .tk-ghb { padding-right: 8px; }
|
|
9
|
-
.tk-ghb b { flex: 1; min-width: 0; font-size:
|
|
9
|
+
.tk-ghb b { flex: 1; min-width: 0; font-size: var(--fs-3); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
10
10
|
.tk-gh.s .tk-ghb b { padding-right: 44px; }
|
|
11
11
|
.tk-ghb[aria-expanded="false"] b { color: var(--cz-ink2); font-weight: 700; }
|
|
12
|
-
.tk-ghr { display: inline-flex; align-items: center; gap: 2px; font-size:
|
|
12
|
+
.tk-ghr { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink3); }
|
|
13
13
|
.tk-ghb:focus-visible, .tk-snd:focus-visible, .tk-row:focus-visible, .tk-fold:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
|
|
14
14
|
/* the send icon sits before the count, inside the header row (PgTkList .gh .r) */
|
|
15
15
|
.tk-snd { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 0; background: none; color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
@@ -23,55 +23,55 @@
|
|
|
23
23
|
.tk-sq.doing { background: var(--cz-blue); }
|
|
24
24
|
.tk-sq.done { background: var(--cz-ok); }
|
|
25
25
|
.tk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
26
|
-
.tk-t b { font-size:
|
|
27
|
-
.tk-t span { font-size:
|
|
26
|
+
.tk-t b { font-size: var(--fs-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
27
|
+
.tk-t span { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
28
28
|
.tk-mk { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
|
|
29
29
|
.tk-mk.warn { background: var(--cz-risk); }
|
|
30
30
|
.tk-mk.info { background: var(--cz-blue); }
|
|
31
|
-
.tk-av { width: 24px; height: 24px; border-radius: 50%; background: var(--cz-well); color: var(--cz-ink2); font-size:
|
|
32
|
-
.tk-fold { position: relative; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px 0 42px; background: none; border: 0; font: 600
|
|
33
|
-
.tk-read { margin: 8px 8px 0; font-size:
|
|
31
|
+
.tk-av { width: 24px; height: 24px; border-radius: 50%; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
32
|
+
.tk-fold { position: relative; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px 0 42px; background: none; border: 0; font: 600 var(--fs-3) var(--cz-sans); color: var(--cz-ink2); cursor: pointer; text-align: left; justify-content: space-between; border-radius: 16px; }
|
|
33
|
+
.tk-read { margin: 8px 8px 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
34
34
|
.tk-card { background: var(--cz-card); border-radius: 20px; padding: 12px 14px; box-shadow: 0 8px 24px -20px rgba(42, 46, 53, .35); }
|
|
35
35
|
.tk-empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
|
|
36
|
-
.tk-empty p { margin: 0; font-size:
|
|
36
|
+
.tk-empty p { margin: 0; font-size: var(--fs-2); line-height: 1.45; color: var(--cz-ink2); }
|
|
37
37
|
.hi-v .tk-g.hi-tg { border-radius: 0; }
|
|
38
38
|
|
|
39
39
|
/* ── T2 · one drafted ticket ── */
|
|
40
40
|
.tk-v { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; position: relative; }
|
|
41
|
-
.tk-crumb { margin: 0; font-size:
|
|
42
|
-
.tk-flag { margin: 0; display: flex; align-items: center; gap: 8px; font-size:
|
|
41
|
+
.tk-crumb { margin: 0; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
|
|
42
|
+
.tk-flag { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
43
43
|
.tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
44
44
|
.tk-f { background: var(--cz-card); border: 0; border-radius: 14px; padding: 8px 12px; min-height: 52px; display: flex; flex-direction: column; justify-content: center; text-align: left; font: inherit; color: var(--cz-ink); cursor: pointer; box-shadow: 0 8px 24px -20px rgba(42, 46, 53, .35); }
|
|
45
45
|
.tk-f:hover { background: color-mix(in srgb, var(--cz-well) 45%, var(--cz-card)); }
|
|
46
46
|
.tk-f:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
47
|
-
.tk-fl { font-size:
|
|
48
|
-
.tk-fv { font-size:
|
|
47
|
+
.tk-fl { font-size: var(--fs-1); font-weight: 800; color: var(--cz-ink3); }
|
|
48
|
+
.tk-fv { font-size: var(--fs-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
49
49
|
.tk-fv.mut, .tk-mut { color: var(--cz-ink3); font-weight: 600; }
|
|
50
50
|
.tk-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
|
|
51
|
-
.tk-sh h3 { flex: 1; margin: 0; font-size:
|
|
52
|
-
.tk-sec2 p, .tk-cb2 p { margin: 0 0 6px; font-size:
|
|
53
|
-
.tk-sec2 ol, .tk-sec2 ul, .tk-cb2 ol, .tk-cb2 ul { margin: 0 0 6px; padding-left: 20px; font-size:
|
|
54
|
-
.tk-ac { display: flex; gap: 8px; font-size:
|
|
51
|
+
.tk-sh h3 { flex: 1; margin: 0; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
|
|
52
|
+
.tk-sec2 p, .tk-cb2 p { margin: 0 0 6px; font-size: var(--fs-3); line-height: 1.45; }
|
|
53
|
+
.tk-sec2 ol, .tk-sec2 ul, .tk-cb2 ol, .tk-cb2 ul { margin: 0 0 6px; padding-left: 20px; font-size: var(--fs-3); line-height: 1.45; }
|
|
54
|
+
.tk-ac { display: flex; gap: 8px; font-size: var(--fs-3); line-height: 1.4; padding: 6px 0; border-top: 1px solid var(--cz-hair); }
|
|
55
55
|
.tk-ac:first-of-type { border-top: 0; }
|
|
56
56
|
.tk-ac em { font-style: normal; font-weight: 800; color: var(--cz-ink3); flex: none; }
|
|
57
|
-
.tk-miss { margin: 0; display: flex; align-items: center; gap: 8px; font-size:
|
|
57
|
+
.tk-miss { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
58
58
|
.tk-ib { width: 32px; height: 32px; border-radius: 999px; border: 0; background: none; color: var(--cz-ink3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
59
59
|
.tk-ib:hover { background: var(--cz-well); color: var(--cz-ink); }
|
|
60
60
|
.tk-folds { padding: 0 14px; }
|
|
61
61
|
.tk-coll + .tk-coll { border-top: 1px solid var(--cz-hair); }
|
|
62
62
|
.tk-cr { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; color: var(--cz-ink); cursor: pointer; text-align: left; }
|
|
63
|
-
.tk-cr b { flex: 1; font-size:
|
|
64
|
-
.tk-cn { font-size:
|
|
63
|
+
.tk-cr b { flex: 1; font-size: var(--fs-3); font-weight: 700; }
|
|
64
|
+
.tk-cn { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
|
|
65
65
|
.tk-cr svg { color: var(--cz-ink3); }
|
|
66
66
|
.tk-cb2 { padding: 0 0 10px; }
|
|
67
67
|
.tk-cba { display: flex; justify-content: flex-end; }
|
|
68
68
|
.tk-ed { display: flex; flex-direction: column; gap: 8px; }
|
|
69
|
-
.tk-ed textarea { width: 100%; box-sizing: border-box; min-height: 120px; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 10px 12px; font:
|
|
69
|
+
.tk-ed textarea { width: 100%; box-sizing: border-box; min-height: 120px; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 10px 12px; font: var(--fs-3)/1.45 var(--cz-sans); color: var(--cz-ink); background: var(--cz-card); resize: vertical; }
|
|
70
70
|
.tk-eda { display: flex; gap: 8px; }
|
|
71
71
|
.tk-vh { position: absolute; left: -9999px; }
|
|
72
72
|
.tk-fab { position: sticky; bottom: 16px; align-self: flex-end; margin-top: 0; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--cz-solid); color: var(--cz-onsolid); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(42, 46, 53, .45); z-index: 2; }
|
|
73
73
|
.tk-fab:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
|
|
74
|
-
.tk-msg { margin: 0; font-size:
|
|
74
|
+
.tk-msg { margin: 0; font-size: var(--fs-3); color: var(--cz-late); min-height: 0; }
|
|
75
75
|
.tk-msg:empty { display: none; }
|
|
76
76
|
|
|
77
77
|
/* ── T3 · the Send sheet ── */
|
|
@@ -81,39 +81,39 @@
|
|
|
81
81
|
.tk-sheet.phone { left: 0; right: 0; bottom: 0; top: auto; transform: none; width: auto; max-height: calc(100vh - 150px); border-radius: 28px 28px 0 0; padding: 10px 18px 20px; }
|
|
82
82
|
.tk-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--cz-hair); margin: 0 auto 4px; }
|
|
83
83
|
.tk-sheet.phone .tk-grab { display: block; }
|
|
84
|
-
.tk-h { margin: 0; font-size:
|
|
85
|
-
.tk-note { margin: 0; font-size:
|
|
84
|
+
.tk-h { margin: 0; font-size: var(--fs-5); font-weight: 800; }
|
|
85
|
+
.tk-note { margin: 0; font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
86
86
|
.tk-where { background: var(--cz-well); border-radius: 18px; overflow: hidden; }
|
|
87
|
-
.tk-wr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 46px; font-size:
|
|
87
|
+
.tk-wr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 46px; font-size: var(--fs-3); box-sizing: border-box; }
|
|
88
88
|
.tk-wr + .tk-wr, .tk-where > .tk-wr ~ .tk-wr { border-top: 1px solid var(--cz-hair); }
|
|
89
|
-
.tk-wl { width: 64px; flex: none; font-size:
|
|
89
|
+
.tk-wl { width: 64px; flex: none; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
|
|
90
90
|
.tk-wv { flex: 1; min-width: 0; font-weight: 700; }
|
|
91
91
|
.tk-wv.mut { color: var(--cz-ink3); font-weight: 600; }
|
|
92
|
-
.tk-sel { flex: 1; font: 700
|
|
93
|
-
.tk-chg { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; font: 700
|
|
92
|
+
.tk-sel { flex: 1; font: 700 var(--fs-3) var(--cz-sans); color: var(--cz-ink); background: none; border: 0; }
|
|
93
|
+
.tk-chg { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; font: 700 var(--fs-2) var(--cz-sans); color: var(--cz-ink3); cursor: pointer; min-height: 36px; }
|
|
94
94
|
.tk-chgbox { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 12px; }
|
|
95
|
-
.tk-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 14px; padding: 8px 12px; font: 700
|
|
95
|
+
.tk-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 14px; padding: 8px 12px; font: 700 var(--fs-3) var(--cz-sans); color: var(--cz-ink); cursor: pointer; }
|
|
96
96
|
.tk-opt.on { border-color: var(--cz-blue); }
|
|
97
|
-
.tk-opt em { font-style: normal; font-weight: 600; font-size:
|
|
98
|
-
.tk-fld { display: flex; flex-direction: column; gap: 4px; font-size:
|
|
97
|
+
.tk-opt em { font-style: normal; font-weight: 600; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
98
|
+
.tk-fld { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
|
|
99
99
|
.tk-row2 { display: flex; gap: 8px; }
|
|
100
|
-
.tk-fld input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 0 12px; font:
|
|
101
|
-
.tk-use { height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--cz-solid); color: var(--cz-onsolid); font: 700
|
|
100
|
+
.tk-fld input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 0 12px; font: var(--fs-3) var(--cz-sans); color: var(--cz-ink); background: var(--cz-card); }
|
|
101
|
+
.tk-use { height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--cz-solid); color: var(--cz-onsolid); font: 700 var(--fs-3) var(--cz-sans); cursor: pointer; }
|
|
102
102
|
.tk-sec { display: flex; flex-direction: column; gap: 8px; }
|
|
103
|
-
.tk-sn { margin: 0; font-size:
|
|
103
|
+
.tk-sn { margin: 0; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
|
|
104
104
|
.tk-items { display: flex; flex-direction: column; }
|
|
105
105
|
.tk-it { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; background: none; border: 0; border-top: 1px solid var(--cz-hair); font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; }
|
|
106
106
|
.tk-it:first-child { border-top: 0; }
|
|
107
107
|
.tk-itx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
108
|
-
.tk-it b { font-size:
|
|
108
|
+
.tk-it b { font-size: var(--fs-3); font-weight: 700; }
|
|
109
109
|
.tk-it[aria-disabled="true"] { cursor: default; color: var(--cz-ink3); }
|
|
110
110
|
.tk-it:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 8px; }
|
|
111
|
-
.tk-why { font-size:
|
|
111
|
+
.tk-why { font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink3); }
|
|
112
112
|
.tk-cb { width: 20px; height: 20px; border-radius: 6px; background: var(--cz-solid); color: var(--cz-onsolid); display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; }
|
|
113
113
|
.tk-cb.off { background: transparent; border: 1.5px solid var(--cz-ink3); opacity: .6; }
|
|
114
114
|
.tk-acts { margin-top: auto; display: flex; gap: 8px; }
|
|
115
|
-
.tk-acts button, .tk-go.sm, .tk-c.sm { flex: 1; height: 50px; border-radius: 999px; font: 800
|
|
116
|
-
.tk-go.sm, .tk-c.sm { flex: none; height: 38px; padding: 0 16px; font-size:
|
|
115
|
+
.tk-acts button, .tk-go.sm, .tk-c.sm { flex: 1; height: 50px; border-radius: 999px; font: 800 var(--fs-3) var(--cz-sans); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
116
|
+
.tk-go.sm, .tk-c.sm { flex: none; height: 38px; padding: 0 16px; font-size: var(--fs-2); }
|
|
117
117
|
.tk-c { background: var(--cz-card); border: 1px solid var(--cz-hair); color: var(--cz-ink); }
|
|
118
118
|
.tk-go { background: var(--cz-solid); border: 0; color: var(--cz-onsolid); }
|
|
119
119
|
.tk-go:disabled { opacity: .45; cursor: default; }
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* pm/tk-view.css — the one Jira ticket Viewer (tk-view.js; canvas OvViewers "Jira ticket"), over ov-view.css and cozy.css's tokens. */
|
|
2
|
-
.tkv { display: flex; flex-direction: column; gap: 16px; padding: 6px 2px 18px; font-size:
|
|
2
|
+
.tkv { display: flex; flex-direction: column; gap: 16px; padding: 6px 2px 18px; font-size: var(--fs-3); color: var(--cz-ink); }
|
|
3
3
|
.tkv .czs-sum { margin: 0; }
|
|
4
|
-
.tkv .nt { border: 0; outline: 0; resize: none; field-sizing: content; min-height: 44px; border-radius: 12px; padding: 6px 8px; margin: 0 -8px; font: inherit; font-size:
|
|
4
|
+
.tkv .nt { border: 0; outline: 0; resize: none; field-sizing: content; min-height: 44px; border-radius: 12px; padding: 6px 8px; margin: 0 -8px; font: inherit; font-size: var(--fs-3); line-height: 1.55; color: var(--cz-ink); background: transparent; }
|
|
5
5
|
.tkv .nt::placeholder { color: var(--cz-ink3); }
|
|
6
6
|
.tkv .nt:hover { background: var(--cz-well); }
|
|
7
7
|
.tkv .nt:focus { background: var(--cz-card); box-shadow: 0 0 0 1.5px var(--cz-blue), 0 0 0 5px var(--cz-bluebg); }
|
|
8
8
|
.tkv .czs-secs { margin: 0; }
|
|
9
|
-
.tkv-ac, .tkv-sub, .tkv-ln { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-direction: column; gap: 6px; font-size:
|
|
9
|
+
.tkv-ac, .tkv-sub, .tkv-ln { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-2); line-height: 1.5; }
|
|
10
10
|
.tkv-ac li { position: relative; padding-left: 16px; }
|
|
11
11
|
.tkv-ac li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--cz-ink3); }
|
|
12
12
|
.tkv-sub li { display: flex; align-items: center; gap: 8px; color: var(--cz-ink2); }
|
|
13
13
|
.tkv-sub li.d { color: var(--cz-ink3); }
|
|
14
14
|
.tkv-sub li.d span { text-decoration: line-through; }
|
|
15
15
|
.tkv-ln li { display: flex; align-items: baseline; gap: 8px; }
|
|
16
|
-
.tkv-ln em { font-style: normal; color: var(--cz-ink3); font-size:
|
|
16
|
+
.tkv-ln em { font-style: normal; color: var(--cz-ink3); font-size: var(--fs-2); min-width: 72px; }
|
|
17
17
|
.tkv-ln button { border: 0; background: transparent; padding: 0; font: inherit; color: var(--cz-blueink); cursor: pointer; text-align: left; }
|
|
18
18
|
.tkv-ln button:hover { text-decoration: underline; }
|
|
19
|
-
.tkv-q { margin: 0 0 4px; font-size:
|
|
20
|
-
.tkv-msg { margin: 0; font-size:
|
|
19
|
+
.tkv-q { margin: 0 0 4px; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
20
|
+
.tkv-msg { margin: 0; font-size: var(--fs-3); color: var(--cz-red); }
|
|
21
21
|
.tkv-msg:empty { display: none; }
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* What blocks it leads: a summary card only when Jira flags it ("Blocked by PLAT-88", "Jira · 4 min ago", what that holds up). Then:
|
|
5
5
|
* facts card Status, Due, Assignee, Sprint, Points in plain text, and "Jira owns these. They change only in Jira." (with how fresh the
|
|
6
6
|
* read is when no summary card says it). A fact no reading holds is left out (zero is silence).
|
|
7
|
-
* Description the ticket's text as
|
|
7
|
+
* Description the ticket's text as PMOS keeps it ("PMOS's copy, Jira may differ": PMOS never reads Jira's description; batch 14
|
|
8
|
+
* item 12, an agent-filled ticket file said "from Jira"), shown open, cut at five lines with an icon that opens the rest.
|
|
8
9
|
* Your notes the PM's own words (POST /api/boards/tickets/note), edited in place; Jira never sees them.
|
|
9
10
|
* where it sits the same row as the task: initiative › stage › epic. It opens the initiative; Jira keeps the epic, so there is no move.
|
|
10
11
|
* folds Acceptance criteria, Subtasks, Linked: each only when the record holds something for it.
|
|
@@ -95,7 +96,7 @@ export function tkHtml(t, o = {}) {
|
|
|
95
96
|
const foot = 'Jira owns these. They change only in Jira.' + (!S && fr ? ' ' + fr.charAt(0).toUpperCase() + fr.slice(1) + '.' : '');
|
|
96
97
|
const card = `<div class="ovf tkv-f">${facts}<p class="foot">${foot}</p></div>`;
|
|
97
98
|
const long = t.description.length > DESC_CUT || t.description.split('\n').filter((x) => x.trim()).length > 5;
|
|
98
|
-
const desc = t.description ? `<div class="ovb"><p class="ovl">Description <small>· ${t.inJira ? '
|
|
99
|
+
const desc = t.description ? `<div class="ovb"><p class="ovl">Description <small>· ${t.inJira ? 'PMOS\'s copy, Jira may differ' : 'draft, not in Jira yet'}</small></p><div class="ovd${long && !o.more ? ' cut' : ''}"><div class="ovdx">${textHtml(t.description)}</div>`
|
|
99
100
|
+ (long ? `<div class="ovdm"><button type="button" class="ovib" data-tkv="more" aria-expanded="${o.more ? 'true' : 'false'}" aria-label="${o.more ? 'Show less' : 'Show all of it'}" title="${o.more ? 'Show less' : 'Show all of it'}">${ico(o.more ? I.up : I.down, 16)}</button></div>` : '') + '</div></div>' : '';
|
|
100
101
|
const notes = `<div class="ovb"><label class="ovl" for="tkvNotes">Your notes</label><textarea class="nt" id="tkvNotes" data-tkv-notes rows="2" maxlength="4000" placeholder="Add notes. Only you see them.">${esc(o.notes != null ? o.notes : t.notes)}</textarea></div>`;
|
|
101
102
|
const path = [t.stage, t.epic ? (t.epic.title ? 'Epic ' + t.epic.title : t.epic.key) : ''].filter(Boolean).map(esc);
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans); color: var(--cz-ink); background: var(--cz-well2); }
|
|
4
4
|
.wf-page button { font-family: var(--cz-sans); }
|
|
5
5
|
.wf-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
6
|
-
.wf-small { font-size:
|
|
6
|
+
.wf-small { font-size: var(--fs-2); line-height: 1.45; }
|
|
7
7
|
.wf-mut { color: var(--cz-ink3); }
|
|
8
|
-
.wf-err { color: var(--cz-red); font-size:
|
|
8
|
+
.wf-err { color: var(--cz-red); font-size: var(--fs-2); margin: 0; }
|
|
9
9
|
.wf-err:empty { display: none; }
|
|
10
10
|
.wf-pad { padding: 8px 10px; }
|
|
11
11
|
.wf-page p { margin: 0; }
|
|
@@ -13,17 +13,17 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
|
|
|
13
13
|
/* ── the list ── */
|
|
14
14
|
.wf-list { gap: 2px; overflow: auto; }
|
|
15
15
|
.wf-list .lhead { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px 10px; }
|
|
16
|
-
.wf-list h2 { margin: 0; font-size:
|
|
16
|
+
.wf-list h2 { margin: 0; font-size: var(--fs-4); font-weight: 800; }
|
|
17
17
|
.wf-page .ib { width: 36px; height: 36px; border-radius: 12px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--cz-ink2); cursor: pointer; padding: 0; flex: none; }
|
|
18
18
|
.wf-page .ib.sm { width: 30px; height: 30px; border-radius: 10px; }
|
|
19
19
|
.wf-page .ib:hover { background: var(--cz-well2); }
|
|
20
20
|
.wfl { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; width: 100%; border: 0; background: none; color: var(--cz-ink); cursor: pointer; text-align: left; }
|
|
21
21
|
.wfl:hover { background: var(--cz-well2); }
|
|
22
22
|
.wfl.sel { background: var(--cz-card); box-shadow: 0 6px 18px -10px rgba(42,46,53,.25); }
|
|
23
|
-
.wfl .t { font-size:
|
|
24
|
-
.wfl .n { font-size:
|
|
23
|
+
.wfl .t { font-size: var(--fs-3); font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
24
|
+
.wfl .n { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
|
|
25
25
|
.wfl.arch .t { color: var(--cz-ink3); }
|
|
26
|
-
.wf-sub { font-size:
|
|
26
|
+
.wf-sub { font-size: var(--fs-1); font-weight: 800; color: var(--cz-ink3); padding: 14px 10px 4px; }
|
|
27
27
|
.wf-page .wfi { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; background: var(--cz-well); color: var(--cz-ink2); flex: none; }
|
|
28
28
|
.wfl .wfi, .wf-head .wfi { background: var(--cz-well2); }
|
|
29
29
|
.wfl.sel .wfi { background: var(--cz-well); }
|
|
@@ -36,38 +36,38 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
|
|
|
36
36
|
.wf-main { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; padding: 6px 6px 0 4px; display: flex; flex-direction: column; gap: 14px; }
|
|
37
37
|
.wf-head { display: flex; align-items: center; gap: 10px; min-height: 40px; }
|
|
38
38
|
.wf-push { margin-left: auto; }
|
|
39
|
-
.wf-h1 { margin: 0; font-size:
|
|
40
|
-
.wf-h2 { margin: 0; font-size:
|
|
41
|
-
.wf-h3 { font-size:
|
|
39
|
+
.wf-h1 { margin: 0; font-size: var(--fs-5); font-weight: 800; letter-spacing: -.01em; }
|
|
40
|
+
.wf-h2 { margin: 0; font-size: var(--fs-5); font-weight: 800; flex: 1; }
|
|
41
|
+
.wf-h3 { font-size: var(--fs-4); font-weight: 800; }
|
|
42
42
|
.wf-rn { font: inherit; color: inherit; background: none; border: 0; padding: 2px 6px; margin: -2px -6px; border-radius: 10px; cursor: text; text-align: left; }
|
|
43
43
|
.wf-rn:hover { background: var(--cz-well); }
|
|
44
44
|
.wf-ren { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
45
|
-
.wf-ren input { font: 800
|
|
45
|
+
.wf-ren input { font: 800 var(--fs-5) var(--cz-sans); color: var(--cz-ink); border: 1.5px solid var(--cz-blue); border-radius: 12px; padding: 4px 10px; min-width: 260px; background: var(--cz-card); }
|
|
46
46
|
.wf-sv { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--cz-blueink); color: var(--cz-card); display: grid; place-items: center; cursor: pointer; }
|
|
47
47
|
.wf-ren .wf-err { flex-basis: 100%; }
|
|
48
48
|
.wf-cols { flex: none; display: flex; gap: 8px; min-height: 420px; }
|
|
49
49
|
.wf-col { flex: 1 1 0; min-width: 0; background: var(--cz-well); border-radius: 18px; padding: 10px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
|
|
50
|
-
.wf-col h3 { margin: 0; padding: 2px 6px; font-size:
|
|
50
|
+
.wf-col h3 { margin: 0; padding: 2px 6px; font-size: var(--fs-3); font-weight: 800; }
|
|
51
51
|
.wf-col.wf-end { flex: .9 1 0; background: transparent; border: 1.5px dashed var(--cz-hair2, var(--cz-hair)); }
|
|
52
52
|
.wf-col.wf-end p { padding: 0 6px; }
|
|
53
53
|
.wf-drop { display: flex; flex-direction: column; gap: 6px; min-height: 40px; border-radius: 12px; }
|
|
54
54
|
.wf-drop.over { outline: 2px dashed var(--cz-blue); outline-offset: 2px; }
|
|
55
|
-
.wf-card { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 14px; background: var(--cz-card); border: 1px solid var(--cz-hair); box-shadow: 0 1px 2px rgba(42,46,53,.05); color: var(--cz-ink); cursor: pointer; text-align: left; font-size:
|
|
55
|
+
.wf-card { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 14px; background: var(--cz-card); border: 1px solid var(--cz-hair); box-shadow: 0 1px 2px rgba(42,46,53,.05); color: var(--cz-ink); cursor: pointer; text-align: left; font-size: var(--fs-2); }
|
|
56
56
|
.wf-card[draggable="true"] { cursor: grab; }
|
|
57
57
|
.wf-card:hover { border-color: var(--cz-blue); }
|
|
58
58
|
.wf-card.opt { border-style: dashed; box-shadow: none; }
|
|
59
59
|
.wf-card.drag { opacity: .45; }
|
|
60
60
|
.wf-grip { color: var(--cz-ink3); display: inline-flex; width: 14px; flex: none; }
|
|
61
|
-
.wf-num { width: 16px; font-weight: 800; color: var(--cz-ink3); flex: none; font-size:
|
|
61
|
+
.wf-num { width: 16px; font-weight: 800; color: var(--cz-ink3); flex: none; font-size: var(--fs-2); }
|
|
62
62
|
.wf-ct { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
63
|
-
.wf-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size:
|
|
63
|
+
.wf-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-1); font-weight: 700; background: var(--cz-well); color: var(--cz-ink2); flex: none; max-width: 52%; }
|
|
64
64
|
.wf-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
65
65
|
.wf-pill.dash { background: transparent; border: 1.5px dashed var(--cz-ink3); color: var(--cz-ink3); }
|
|
66
66
|
.wf-pill.y { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
67
67
|
.wf-box { background: var(--cz-well); border-radius: 14px; padding: 10px 12px; }
|
|
68
68
|
.wf-how { display: flex; flex-direction: column; gap: 4px; }
|
|
69
|
-
.wf-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; font-size:
|
|
70
|
-
.wf-btn.sm { height: 32px; padding: 0 12px; font-size:
|
|
69
|
+
.wf-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; font-size: var(--fs-3); font-weight: 700; cursor: pointer; background: var(--cz-well); color: var(--cz-ink); }
|
|
70
|
+
.wf-btn.sm { height: 32px; padding: 0 12px; font-size: var(--fs-2); }
|
|
71
71
|
.wf-btn.dark { background: var(--cz-ink); color: var(--cz-card); }
|
|
72
72
|
.wf-btn.ghost { background: transparent; color: var(--cz-ink2); }
|
|
73
73
|
.wf-btn.ghost:hover { background: var(--cz-well2); }
|
|
@@ -77,30 +77,30 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
|
|
|
77
77
|
|
|
78
78
|
/* ── the stage panel and the condition (the Viewer) ── */
|
|
79
79
|
.wf-stage { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
|
|
80
|
-
.wf-lbl { font-size:
|
|
80
|
+
.wf-lbl { font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
|
|
81
81
|
.wf-sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
|
|
82
82
|
.wf-scol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
|
|
83
83
|
.wf-field { display: flex; flex-direction: column; gap: 6px; }
|
|
84
|
-
.wf-fl { font-size:
|
|
85
|
-
.wf-inp { font: 600
|
|
84
|
+
.wf-fl { font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink2); }
|
|
85
|
+
.wf-inp { font: 600 var(--fs-3) var(--cz-sans); color: var(--cz-ink); background: var(--cz-card); border: 1px solid var(--cz-hair2, var(--cz-hair)); border-radius: 12px; padding: 8px 12px; min-width: 0; box-sizing: border-box; }
|
|
86
86
|
.wf-inp:focus { outline: 2px solid var(--cz-blue); outline-offset: 0; }
|
|
87
87
|
.wf-inp.bare { flex: 1; border-color: transparent; background: transparent; padding: 4px 6px; }
|
|
88
88
|
.wf-inp.bare:hover { border-color: var(--cz-hair); }
|
|
89
89
|
.wf-inp.ta { width: 100%; min-height: 72px; resize: vertical; line-height: 1.45; }
|
|
90
90
|
.wf-inp:disabled { color: var(--cz-ink2); background: var(--cz-well); }
|
|
91
91
|
.wf-seg { display: inline-flex; background: var(--cz-well); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; align-self: flex-start; }
|
|
92
|
-
.wf-seg .sb { border: 0; background: none; border-radius: 999px; height: 30px; padding: 0 12px; font-size:
|
|
92
|
+
.wf-seg .sb { border: 0; background: none; border-radius: 999px; height: 30px; padding: 0 12px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); cursor: pointer; }
|
|
93
93
|
.wf-seg .sb[aria-checked="true"] { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 2px 6px -3px rgba(42,46,53,.3); }
|
|
94
94
|
.wf-seg .sb:disabled { cursor: default; opacity: .7; }
|
|
95
95
|
.wf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
96
|
-
.wf-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cz-hair2, var(--cz-hair)); background: var(--cz-card); font-size:
|
|
96
|
+
.wf-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cz-hair2, var(--cz-hair)); background: var(--cz-card); font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); cursor: pointer; }
|
|
97
97
|
.wf-chip.on { background: var(--cz-bluebg); border-color: var(--cz-blue); color: var(--cz-blueink); }
|
|
98
98
|
.wf-chip:disabled { cursor: default; }
|
|
99
99
|
/* a workflow that ships with PMOS: its controls read as settled, not as presses that fail */
|
|
100
100
|
.wf-chip:disabled, .wf-sw:disabled, .wf-pick:disabled { cursor: default; opacity: .55; }
|
|
101
101
|
.wf-fin { padding: 4px 8px 4px 10px; display: flex; flex-direction: column; }
|
|
102
102
|
.wf-fi { display: flex; align-items: center; gap: 6px; }
|
|
103
|
-
.wf-addi { padding: 6px 0; font-size:
|
|
103
|
+
.wf-addi { padding: 6px 0; font-size: var(--fs-2); }
|
|
104
104
|
.wf-cond { display: flex; align-items: center; gap: 8px; }
|
|
105
105
|
.wf-cond span { flex: 1; }
|
|
106
106
|
.wf-then { display: flex; flex-direction: column; gap: 8px; }
|
|
@@ -108,8 +108,8 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
|
|
|
108
108
|
.wf-wrap { flex-wrap: wrap; }
|
|
109
109
|
.wf-grow { flex: 1; min-width: 160px; }
|
|
110
110
|
.wf-stage select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
|
|
111
|
-
.wf-pick { font: 700
|
|
112
|
-
.wf-swl { display: flex; align-items: center; gap: 10px; font-size:
|
|
111
|
+
.wf-pick { font: 700 var(--fs-2) var(--cz-sans); color: var(--cz-ink); height: 32px; border-radius: 10px; border: 1px solid var(--cz-hair2, var(--cz-hair)); background: var(--cz-card); padding: 0 8px; max-width: 220px; }
|
|
112
|
+
.wf-swl { display: flex; align-items: center; gap: 10px; font-size: var(--fs-2); cursor: pointer; }
|
|
113
113
|
.wf-sw { width: 32px; height: 20px; border-radius: 999px; background: var(--cz-hair2, var(--cz-ink3)); position: relative; flex: none; border: 0; padding: 0; cursor: pointer; }
|
|
114
114
|
.wf-sw i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cz-card); transition: left .12s; }
|
|
115
115
|
.wf-sw[aria-checked="true"] { background: var(--cz-blue); }
|
|
@@ -119,7 +119,7 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
|
|
|
119
119
|
.wf-draft { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 4px; min-height: 100%; box-sizing: border-box; }
|
|
120
120
|
.wf-dh { display: flex; align-items: center; gap: 8px; }
|
|
121
121
|
.wf-draft .wf-lbl { margin: 10px 0 2px; }
|
|
122
|
-
.wf-trow { display: flex; gap: 8px; padding: 7px 2px; align-items: flex-start; border-bottom: 1px solid var(--cz-hair); font-size:
|
|
122
|
+
.wf-trow { display: flex; gap: 8px; padding: 7px 2px; align-items: flex-start; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-3); }
|
|
123
123
|
.wf-trow .wf-pill { margin-top: 3px; }
|
|
124
124
|
.wf-dacts { margin-top: auto; padding-top: 12px; }
|
|
125
125
|
|
|
@@ -138,10 +138,10 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
|
|
|
138
138
|
.wf-mv b { flex: 1; }
|
|
139
139
|
.wf-mvl { display: flex; flex-direction: column; gap: 8px; }
|
|
140
140
|
.wf-menu { position: fixed; z-index: 90; min-width: 180px; background: var(--cz-card); border-radius: 14px; box-shadow: var(--cz-sheet); padding: 6px; display: flex; flex-direction: column; }
|
|
141
|
-
.wf-menu button { border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 10px; font: 700
|
|
141
|
+
.wf-menu button { border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 10px; font: 700 var(--fs-3) var(--cz-sans); color: var(--cz-ink); cursor: pointer; }
|
|
142
142
|
.wf-menu button:hover, .wf-menu button:focus { background: var(--cz-well); outline: none; }
|
|
143
143
|
.wf-menu button.danger { color: var(--cz-red); }
|
|
144
|
-
.wf-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 95; background: var(--cz-ink); color: var(--cz-card); border-radius: 999px; padding: 10px 18px; font-size:
|
|
144
|
+
.wf-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 95; background: var(--cz-ink); color: var(--cz-card); border-radius: 999px; padding: 10px 18px; font-size: var(--fs-3); font-weight: 700; display: flex; gap: 10px; align-items: center; }
|
|
145
145
|
.wf-toast[hidden] { display: none; }
|
|
146
146
|
.wf-undo { border: 0; background: none; color: var(--cz-bluebg); font: inherit; font-weight: 800; cursor: pointer; padding: 0; }
|
|
147
147
|
|
|
@@ -155,7 +155,7 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
|
|
|
155
155
|
.wf-main { padding: 0; overflow: visible; }
|
|
156
156
|
.wf-cols { flex-direction: column; min-height: 0; }
|
|
157
157
|
.wf-col.wf-end { flex: none; }
|
|
158
|
-
.wf-h1 { font-size:
|
|
158
|
+
.wf-h1 { font-size: var(--fs-5); }
|
|
159
159
|
.wf-head { flex-wrap: wrap; }
|
|
160
160
|
.wf-head > .wf-small { flex-basis: 100%; order: 3; padding-left: 40px; }
|
|
161
161
|
.wf-ren input { min-width: 0; width: 100%; }
|
|
@@ -336,7 +336,7 @@ function select(id) {
|
|
|
336
336
|
S.sel = id; S.renaming = false; S.msg = ''; S.phoneOpen = true;
|
|
337
337
|
if (S.edit && id !== S.edit.id) S.edit = null;
|
|
338
338
|
VW.close();
|
|
339
|
-
const u = new URL(location.href); if (id && id !== 'new') u.searchParams.set('wf', id); else u.searchParams.delete('wf');
|
|
339
|
+
const u = new URL(location.href); if (id && id !== 'new') u.searchParams.set('wf', id); else u.searchParams.delete('wf'); VW.replaceUrl(u.pathname + u.search);
|
|
340
340
|
draw();
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
<span class="bd-vr bd-hide-s"></span>
|
|
41
41
|
<button type="button" class="bd-ib" id="bdFind" aria-label="Find an initiative or work-item" title="Find an initiative or work-item" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4"/></svg></button>
|
|
42
42
|
<button type="button" class="bd-ib bd-show-s" id="bdView" aria-label="Change view" title="Change view"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 5h18v4H3zM3 11h18v4H3zM3 17h12v3H3z"/></svg></button>
|
|
43
|
+
<button type="button" class="bd-ib" id="bdSort" data-so-btn aria-haspopup="menu" aria-label="Sort. Now: My order" title="Sort · My order"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 4v16M4 17l3 3 3-3M13 6h8M13 12h6M13 18h4"/></svg></button>
|
|
43
44
|
<button type="button" class="bd-ib" id="bdFilter" aria-label="Filter by owner, kind or sprint" title="Filter by owner, kind or sprint" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16l-6 8v6l-4-2v-4z"/></svg></button>
|
|
44
45
|
<button type="button" class="bd-ib bd-hide-s" id="bdBell" aria-label="Notifications" title="Notifications" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 16v-5a6 6 0 0 1 12 0v5l2 2H4zM10 21h4"/></svg></button>
|
|
45
46
|
<button type="button" class="bd-ib solid" id="newIni" aria-label="New program or initiative" title="New program or initiative" aria-haspopup="menu"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="pmos-nonce" content="" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
7
|
+
<title>PMOS · Intelligence</title>
|
|
8
|
+
<!-- Intelligence (batch 15 item 1; it was Insights, and /premium-insights.html still serves it): ONE page, no tabs, drawn to the frames Iq8Overview,
|
|
9
|
+
Iq8Suggest and Iq8Phone. The ✦ strip, the North Star with its inputs, Claude's drafted metrics, the key results by objective with the health budgets,
|
|
10
|
+
then "Did it work?". Reports and dashboards, Delivery trends, Sources and Export sit in ⋯. Old ?tab=goals|outcomes|library links land on the matching
|
|
11
|
+
section or panel. Before it: the premium Insights in the Agreed design (initiative premium-agreed-design, G1 and G2; before it briefing-premium-insights and insights-one-list),
|
|
12
|
+
with the Uncovered features frames IsGoal, IsTarget, IsLibrary, IsMenus and IsPhone (initiative premium-uncovered-features).
|
|
13
|
+
One bar: the product picker, the tabs Goals, Outcomes and Library, the view, the period and the icon tools. No page header; the floating place menu
|
|
14
|
+
(pm/cozy-nav.js) replaces the rail. It reads GET /api/insights-premium (the KR metric records, the board's initiatives, the report files and setups)
|
|
15
|
+
and GET /api/board-metrics-premium for the Delivery trends tiles, whose one press sets a target (POST /api/board-metric-targets/save). -->
|
|
16
|
+
<link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
17
|
+
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
18
|
+
<link rel="stylesheet" href="/pm/cozy-pick.css" />
|
|
19
|
+
<link rel="stylesheet" href="/pm/cozy-insights.css" />
|
|
20
|
+
<link rel="stylesheet" href="/pm/premium-report-intel.css" />
|
|
21
|
+
</head>
|
|
22
|
+
<body class="cz">
|
|
23
|
+
<!-- Insights has no dialog, dock or veil of the old shell: pm/premium-shell.js binds to a detached copy when #dlg is absent, and a report opens in
|
|
24
|
+
the Viewer card (pm/cozy-viewer.js). The floating place menu (pm/cozy-nav.js) is the page's navigation; there is no rail. The toast is the shell's. -->
|
|
25
|
+
<div class="ins-toast" id="toast" role="status" aria-live="polite"></div>
|
|
26
|
+
|
|
27
|
+
<main class="cz-panel ins stage" id="stage">
|
|
28
|
+
<h1 class="vh">Intelligence</h1>
|
|
29
|
+
<div class="ins-bar" id="insBar">
|
|
30
|
+
<span class="ins-mw ins-pkw" id="prodHost"></span>
|
|
31
|
+
<span class="ins-ttl" aria-hidden="true">Intelligence</span>
|
|
32
|
+
<span class="cz-vr ins-vw"></span>
|
|
33
|
+
<span class="ins-mw ins-vw"><button type="button" class="cz-pick" id="viewChip" aria-haspopup="menu" aria-expanded="false" aria-controls="viewMenu" aria-label="View: a saved dashboard or all goals">View: <b id="viewName">All goals</b><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 10l5 5 5-5"/></svg></button><div class="ins-menu" id="viewMenu" role="menu" aria-label="Dashboard" hidden></div></span>
|
|
34
|
+
<div class="cz-tools ins-tools">
|
|
35
|
+
<span class="ins-mw ins-perw"><button type="button" class="cz-chip" id="perChip" aria-haspopup="menu" aria-expanded="false" aria-controls="perMenu"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6h16v14H4zM4 10h16M9 3v4M15 3v4"/></svg><b id="perName">Q4</b><span class="ins-perd" id="perSub"></span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 10l5 5 5-5"/></svg></button><div class="ins-menu ins-permenu" id="perMenu" role="menu" aria-label="Period" hidden></div></span>
|
|
36
|
+
<span class="cz-vr ins-dk"></span>
|
|
37
|
+
<span class="ins-mw"><button type="button" class="cz-ib" id="findB" aria-haspopup="dialog" aria-expanded="false" aria-controls="findRow" aria-label="Find a goal or report" title="Find a goal or report"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4"/></svg></button><div class="ins-menu ins-right ins-findp" id="findRow" role="dialog" aria-label="Find" hidden><div class="ins-finp"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4"/></svg><input id="findIn" maxlength="120" autocomplete="off" placeholder="Find a goal, initiative or report" aria-label="Find a goal, initiative or report" aria-controls="findRes"><button type="button" class="ins-kbd" id="findX" aria-label="Clear and close the search" title="Clear and close">Esc</button></div><div id="findRes" class="ins-fres" role="listbox" aria-label="Found"></div></div></span>
|
|
38
|
+
<span class="ins-mw ins-dk"><button type="button" class="cz-ib" id="filtB" aria-haspopup="dialog" aria-expanded="false" aria-controls="filtMenu" aria-label="Filter by status, owner or kind" title="Filter by status, owner or kind"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16l-6 8v6l-4-2v-4z"/></svg><i class="ins-fdot" id="filtDot" hidden></i></button><div class="ins-menu ins-right ins-filtp" id="filtMenu" role="dialog" aria-label="Filter" hidden></div></span>
|
|
39
|
+
<span class="ins-mw"><button type="button" class="cz-ib" id="repB" aria-haspopup="menu" aria-expanded="false" aria-controls="repMenu" aria-label="Make a report from this" title="Make a report from this"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3h9l4 4v14H6zM14 3v5h5M9 18v-3M12 18v-6M15 18v-4"/></svg></button><div class="ins-menu ins-right ins-rpmenu" id="repMenu" role="menu" aria-label="Make a report from" hidden></div></span>
|
|
40
|
+
<span class="ins-mw"><button type="button" class="cz-ib solid" id="newB" aria-label="New metric or key result" title="New metric or key result"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button></span>
|
|
41
|
+
<span class="ins-mw"><button type="button" class="cz-ib" id="moreB" aria-haspopup="menu" aria-expanded="false" aria-controls="moreMenu" aria-label="More: reports and dashboards, delivery trends, sources, export" title="More: reports and dashboards, delivery trends, sources, export"><svg viewBox="0 0 24 24" aria-hidden="true" stroke-width="3"><path d="M5 12h.01M12 12h.01M19 12h.01"/></svg></button><div class="ins-menu ins-right" id="moreMenu" role="menu" aria-label="More" hidden>
|
|
42
|
+
<button type="button" role="menuitem" data-more="library"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3h9l4 4v14H6zM14 3v5h5M9 13h6M9 17h4"/></svg><span>Reports and dashboards<small id="libSub"></small></span><span class="k" id="libNew"></span></button>
|
|
43
|
+
<button type="button" role="menuitem" data-more="trends"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 20V10M10 20V4M16 20v-8M22 20H2"/></svg><span>Delivery trends<small>blocked, late, idle, scope, merged</small></span></button>
|
|
44
|
+
<button type="button" role="menuitem" data-more="sources"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4c4.4 0 8 1.3 8 3s-3.6 3-8 3-8-1.3-8-3 3.6-3 8-3zM4 7v10c0 1.7 3.6 3 8 3s8-1.3 8-3V7"/></svg>Sources<span class="k" id="srcAge"></span></button>
|
|
45
|
+
<button type="button" role="menuitem" data-more="export"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"/></svg>Export<span class="k">CSV</span></button>
|
|
46
|
+
<button type="button" role="menuitem" data-more="about"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 8h.01M11 12h1v5h1M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18"/></svg>About these numbers</button>
|
|
47
|
+
</div></span>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<!-- the ✦ strip (Iq8Overview): one finding at a time, its drafted move when it has one, Ask why, Not now and the dots that page through them -->
|
|
52
|
+
<div class="ins-strip ins-hero" id="insHero"><span class="sp" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z"/></svg></span><p class="t" id="insText" aria-live="polite"><b id="insEye"></b> <span id="brief">Reading the records.</span> <span id="insWhy"></span></p><span class="ins-hact" id="insAct"></span><a class="cz-chip gh" id="askWhy" href="/premium.html?ask=insights"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z"/></svg>Ask why</a><span class="ins-pg" id="insPg"></span></div>
|
|
53
|
+
<!-- the North Star and its inputs (Iq8Overview): drawn only when a KR metric record has role north-star -->
|
|
54
|
+
<section class="ins-ns" id="nsRow" aria-label="North Star" hidden></section>
|
|
55
|
+
<!-- what Claude drafted for this product (Iq8Suggest, Iq9Draft): shown only while a draft is running or waits for your ✓ -->
|
|
56
|
+
<section class="ins-dr" id="draftBox" aria-label="Drafted metrics" hidden></section>
|
|
57
|
+
<!-- Key results by objective, then the health budgets (Iq8Overview); goals as cards on a phone (Iq8Phone) -->
|
|
58
|
+
<section class="ins-pane" id="pGoals" aria-label="Key results">
|
|
59
|
+
<div class="ins-tbl" id="goalTbl" role="table" aria-label="Key results"></div>
|
|
60
|
+
<div class="ins-cards" id="goalCards" role="list" aria-label="Key results"></div>
|
|
61
|
+
</section>
|
|
62
|
+
<!-- Did it work? (Iq8Overview): shipped work to judge and in its window, a drafted verdict with ✓ Keep; decided ones fold. Hidden when empty. -->
|
|
63
|
+
<section class="ins-pane" id="pOutcomes" aria-label="Did it work?" hidden>
|
|
64
|
+
<div class="ins-tbl" id="outTbl" role="table" aria-label="Did it work?"></div>
|
|
65
|
+
</section>
|
|
66
|
+
</main>
|
|
67
|
+
|
|
68
|
+
<!-- Reports and dashboards (⋯; the old Library): Found in your work, requests from Home, the reports, then the dashboards -->
|
|
69
|
+
<aside class="ins-side ins-lib" id="libSide" role="dialog" aria-modal="false" aria-labelledby="libTitle" tabindex="-1" hidden>
|
|
70
|
+
<div class="ins-sh"><div><h2 id="libTitle">Reports and dashboards</h2></div><span class="ins-st"><a class="cz-ib" id="newRep" href="/premium.html?ask=insights" aria-label="New report (opens Home)" title="New report (opens Home)"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></a></span><button type="button" class="cz-ib" id="libX" aria-label="Close" title="Close"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div>
|
|
71
|
+
<div class="ins-sb" id="repBody"></div>
|
|
72
|
+
<span class="vh" id="repCap"></span>
|
|
73
|
+
</aside>
|
|
74
|
+
<aside class="ins-side" id="side" role="dialog" aria-modal="false" aria-labelledby="sideTitle" tabindex="-1" hidden>
|
|
75
|
+
<div class="ins-sh"><div><p class="ins-eye" id="sideEye"></p><h2 id="sideTitle"></h2></div><span class="ins-st" id="sideTools"></span><button type="button" class="cz-ib" id="sideX" aria-label="Close" title="Close"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div>
|
|
76
|
+
<div class="ins-sb" id="sideBody"></div>
|
|
77
|
+
<div class="ins-sf"><p class="note" id="sideNote"></p><p class="note ins-sm" id="sideMsg" role="status"></p><span class="ins-sa" id="sideAct"></span></div>
|
|
78
|
+
</aside>
|
|
79
|
+
<noscript>This page needs JavaScript.</noscript>
|
|
80
|
+
<script type="module" src="/pm/premium-insights.js"></script>
|
|
81
|
+
</body>
|
|
82
|
+
</html>
|
package/workspace/server.js
CHANGED
|
@@ -2900,6 +2900,41 @@ const proposalRuns = require('./lib/proposal-runs.js').create({
|
|
|
2900
2900
|
warn: (what, e) => warnWriteFail(what, e),
|
|
2901
2901
|
});
|
|
2902
2902
|
const proposalTick = () => { try { proposalRuns.tick({}); } catch (e) { warnWriteFail('proposal tick', e); } };
|
|
2903
|
+
// batch 15 item 1 (canvas Iq8Suggest and Iq9Draft): Claude drafts metrics without being asked (lib/metric-draft-runs.js): a product with no North
|
|
2904
|
+
// Star, a program charter with no goal, an initiative that gets a PRD with no success metric, and next quarter's key results. The run's only
|
|
2905
|
+
// write is `pmos metrics draft`; the PM's ✓ keep writes the kr-metrics record. At most 2 at once, once per scope. PMOS_METRIC_DRAFT=off.
|
|
2906
|
+
const metricDraftCtx = () => ({ getWs, stateDirFor, workspaceList: () => [...workspaces.values()], runtimeDir: STATE });
|
|
2907
|
+
const metricDraftInis = (w) => { try { return initiativeIndex(w.root).initiatives.filter((g) => g.artifacts.some((a) => a.role === 'PRD' && !a.shared)); } catch { return []; } };
|
|
2908
|
+
const metricDraftRuns = require('./lib/metric-draft-runs.js').create({
|
|
2909
|
+
workspaces: () => [...workspaces.values()],
|
|
2910
|
+
isLead: (w) => isPlanNeedsTree(w),
|
|
2911
|
+
stateDirFor: (w) => stateDirFor(w),
|
|
2912
|
+
records: (w) => require(require('./lib/repo-script.js').repoScript('records/index.js')).list(require('./lib/records-dir.js').recordsDirFor(metricDraftCtx(), w.id), 'kr-metrics'),
|
|
2913
|
+
programs: (w) => require('./lib/routes-programs.js').all(metricDraftCtx()).filter((p) => p.home === w.id && !p.archived),
|
|
2914
|
+
initiatives: (w) => metricDraftInis(w).map((g) => ({ id: g.id, title: g.title || g.id })),
|
|
2915
|
+
titleOf: (w, scope, id) => scope === 'product' ? (w.name || w.id) : scope === 'program' ? ((require('./lib/routes-programs.js').all(metricDraftCtx()).find((p) => p.id === id) || {}).title || id)
|
|
2916
|
+
: ((metricDraftInis(w).find((g) => g.id === id) || {}).title || id),
|
|
2917
|
+
facts: (w, scope, id) => {
|
|
2918
|
+
const out = ['Records folder: ' + require('./lib/records-dir.js').recordsDirFor(metricDraftCtx(), w.id)];
|
|
2919
|
+
if (scope === 'program') { const p = require('./lib/routes-programs.js').all(metricDraftCtx()).find((x) => x.id === id); if (p) {
|
|
2920
|
+
if (p.why) out.push('Charter why: ' + p.why);
|
|
2921
|
+
if (p.target) out.push('Charter target date: ' + p.target);
|
|
2922
|
+
for (const m of p.milestones || []) out.push('Milestone: ' + m.name + (m.date ? ' · ' + m.date : ''));
|
|
2923
|
+
for (const m of p.members || []) out.push('Initiative: ' + m.initiative + ' · product ' + m.ws);
|
|
2924
|
+
} }
|
|
2925
|
+
if (scope === 'initiative') { const g = metricDraftInis(w).find((x) => x.id === id); for (const a of (g && g.artifacts) || []) if (!a.shared) out.push(a.role + ': ' + a.path); }
|
|
2926
|
+
return out;
|
|
2927
|
+
},
|
|
2928
|
+
open: (now) => require('./lib/driver-run.js').dayCheckOpen(proSettings(), now, (n, q) => proactiveLib.inQuietHours(n, q)),
|
|
2929
|
+
headlessOff: () => headlessLib.switchedOff(process.env),
|
|
2930
|
+
env: process.env,
|
|
2931
|
+
promptFor: (skillId) => { const h = homeWorkspace(); const t = taskById(skillId, h ? h.root : SELF_ROOT); return t && t.prompt ? t.prompt : null; },
|
|
2932
|
+
spawn: (spec) => orchSpawn.spawn({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, initiative: spec.initiative, extraEnv: spec.env, autoDelete: undefined, onDone: spec.onDone }),
|
|
2933
|
+
spawnNow: (spec) => spawnSession({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, initiative: spec.initiative, extraEnv: spec.env, autoDelete: undefined, onDone: spec.onDone }),
|
|
2934
|
+
stop: (s) => { if (s && s.child) stopHeadless(s); },
|
|
2935
|
+
warn: (what, e) => warnWriteFail(what, e),
|
|
2936
|
+
});
|
|
2937
|
+
const metricDraftTick = () => { try { metricDraftRuns.tick({}); } catch (e) { warnWriteFail('metric draft tick', e); } };
|
|
2903
2938
|
// core-documents: every 30 minutes inside the working hours, ONE headless run per due core document of the portfolio and of each board
|
|
2904
2939
|
// (at most 3 at once, once per document per day, never one the PM writes). The run writes a draft with `pmos coredoc write`; nothing is sent.
|
|
2905
2940
|
// PMOS_CORE_DOCS_NOW (a local date-time) fixes its clock for the suites.
|
|
@@ -2998,7 +3033,7 @@ const gated = (id, fn) => () => { let g = { ok: true }; try { g = refreshRun.job
|
|
|
2998
3033
|
// data-refresh-settings: the seed schedules move to Settings › Data refresh (refreshRun.settings(), once) BEFORE checkDueSchedules reads
|
|
2999
3034
|
// schedules.json, so a schedule that is moving never fires once more from the old list on the first tick after an upgrade.
|
|
3000
3035
|
const scheduleOwner = require('./lib/schedule-owner.js').create({ port: PORT });
|
|
3001
|
-
try { const _tick = setInterval(() => { try { if (!scheduleOwner.mayRun()) return; } catch { /* no lock: run as before */ } try { refreshRun.settings(); } catch { /* the refresh tick tries again */ } checkDueSchedules(); proactiveTick(); try { prepareTick({ manual: false }); } catch { /* the next tick tries again */ } try { dayTick(); } catch (e) { warnWriteFail('day run tick', e); } try { refreshRun.tick(); } catch (e) { warnWriteFail('refresh tick', e); } try { healthTick(); } catch (e) { warnWriteFail('health tick', e); } gated('sync', () => autoSync.tick().catch(() => {}))(); dashboardScheduleTick(); orchTick(); gated('driver', driverTick)(); gated('scan', scanTick)(); gated('finder', reportFinderTick)(); gated('coredocs', coreDocsTick)(); msReviewTick(); gated('propose', proposalTick)(); reportDesignTick(); reportStructureTick(); }, TICK_MS); if (_tick.unref) _tick.unref(); } catch {}
|
|
3036
|
+
try { const _tick = setInterval(() => { try { if (!scheduleOwner.mayRun()) return; } catch { /* no lock: run as before */ } try { refreshRun.settings(); } catch { /* the refresh tick tries again */ } checkDueSchedules(); proactiveTick(); try { prepareTick({ manual: false }); } catch { /* the next tick tries again */ } try { dayTick(); } catch (e) { warnWriteFail('day run tick', e); } try { refreshRun.tick(); } catch (e) { warnWriteFail('refresh tick', e); } try { healthTick(); } catch (e) { warnWriteFail('health tick', e); } gated('sync', () => autoSync.tick().catch(() => {}))(); dashboardScheduleTick(); orchTick(); gated('driver', driverTick)(); gated('scan', scanTick)(); gated('finder', reportFinderTick)(); gated('coredocs', coreDocsTick)(); msReviewTick(); gated('propose', proposalTick)(); metricDraftTick(); reportDesignTick(); reportStructureTick(); }, TICK_MS); if (_tick.unref) _tick.unref(); } catch {}
|
|
3002
3037
|
|
|
3003
3038
|
// ── Sessions: real PTYs, owned by the server, with disk-backed scrollback + metadata. ──
|
|
3004
3039
|
/** @type {Map<string, {id,ws,name,agent,cwd,state,note,created,pty,buf,cols,rows,clients:Set}>} */
|
|
@@ -6691,7 +6726,7 @@ async function handleRequest(req, res) {
|
|
|
6691
6726
|
res.writeHead(302, { Location: '/premium-welcome.html' + url.search, 'Cache-Control': 'no-store' });
|
|
6692
6727
|
return res.end();
|
|
6693
6728
|
}
|
|
6694
|
-
const PAGES = { '/': 'premium.html', '/index.html': 'premium.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-insights': 'premium-
|
|
6729
|
+
const PAGES = { '/': 'premium.html', '/index.html': 'premium.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html' };
|
|
6695
6730
|
const page = capture ? 'capture.html' : Object.prototype.hasOwnProperty.call(PAGES, p) ? PAGES[p] : null;
|
|
6696
6731
|
if (page) {
|
|
6697
6732
|
// pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
|
|
@@ -10191,7 +10226,7 @@ async function handleRequest(req, res) {
|
|
|
10191
10226
|
// pm-os-absorb Runs 2–5 — the planning layer's routes, one file per run (lib/route-modules.js). Last, so none shadows a route above.
|
|
10192
10227
|
// meeting-notes Run 1: the Notes routes keep notes in the per-user runtime directory and start the agent-summary session.
|
|
10193
10228
|
if (req.method === 'POST' && !(req.headers && req.headers['x-pmos-session'])) orchGate.touch(); // agent-orchestrator: a page press by the PM
|
|
10194
|
-
if (await routeModules.dispatch(req, res, url, { orchestrator: { gate: orchGate, running: () => orchSpawn.running(), health: orchHealth, keepRate: orchKeepRate }, proposalRuns, json, readBody, getWs, invalidateNeedsAgg, boardCache, consoleState, stateDirFor, sessionList, initiativeIndex,
|
|
10229
|
+
if (await routeModules.dispatch(req, res, url, { orchestrator: { gate: orchGate, running: () => orchSpawn.running(), health: orchHealth, keepRate: orchKeepRate }, proposalRuns, metricDraftRuns, json, readBody, getWs, invalidateNeedsAgg, boardCache, consoleState, stateDirFor, sessionList, initiativeIndex,
|
|
10195
10230
|
runtimeDir: STATE, homeRoot: HOME_ENABLED ? SELF_ROOT : null, spawnSession, jevModelOpts, sendToSession, endSupersededRuns, proSettings,
|
|
10196
10231
|
// premium-chat-session: every premium chat panel is an interactive Claude Code session the PM talks to (text as typed, `/` kept)
|
|
10197
10232
|
chatSessions,
|