create-pmos 0.428.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 +13 -13
- 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/briefing-premium-board-test.js +2 -2
- 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 +5 -4
- package/workspace/changelog.json +12 -0
- package/workspace/ev-everywhere-test.js +2 -2
- package/workspace/guide/home.md +2 -0
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/metric-drafts.md +48 -0
- 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-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/metric-drafts-ui-test.js +209 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-phone-card-test.js +8 -5
- package/workspace/public/pm/bd-acts.js +3 -3
- package/workspace/public/pm/bd-pin-card.css +4 -4
- package/workspace/public/pm/bd-prog-panel.js +9 -4
- 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-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 +1 -1
- 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 +23 -23
- 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 +19 -19
- package/workspace/public/pm/home-app.js +28 -2
- package/workspace/public/pm/home-day.js +131 -26
- package/workspace/public/pm/home-ini.css +32 -32
- package/workspace/public/pm/home-line.css +7 -7
- package/workspace/public/pm/home-list.js +12 -1
- package/workspace/public/pm/home-phone-card.js +18 -15
- package/workspace/public/pm/ini-view.css +102 -102
- package/workspace/public/pm/ini-view.js +9 -3
- 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/ov-view.css +12 -12
- package/workspace/public/pm/premium-chart-tab.js +6 -6
- package/workspace/public/pm/premium-insights.js +298 -107
- 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.css +127 -128
- package/workspace/public/pm/prog-order.css +6 -6
- 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 +1 -1
- 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/wf-page.css +28 -28
- package/workspace/public/premium-intelligence.html +82 -0
- package/workspace/server.js +38 -3
- package/workspace/skills/metric-draft.skill +47 -0
- 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-run.js +3 -0
- package/workspace/public/premium-insights.html +0 -81
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
/* ── the stage move in the card (InStage) ── */
|
|
5
5
|
.hi-slot { display: contents; }
|
|
6
6
|
.hi-mv { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
|
|
7
|
-
.hi-why, .hi-note { margin: 0; font-size:
|
|
7
|
+
.hi-why, .hi-note { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
8
8
|
.hi-note b { color: var(--cz-ink2); }
|
|
9
|
-
.hi-swl { display: flex; align-items: center; gap: 8px; font-size:
|
|
9
|
+
.hi-swl { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
10
10
|
.hi-sw { position: relative; flex: none; width: 32px; height: 20px; border-radius: 999px; background: var(--cz-c-d9dce1); border: 0; padding: 0; cursor: pointer; }
|
|
11
11
|
.hi-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cz-card); transition: left .15s; }
|
|
12
12
|
.hi-sw[aria-checked="true"] { background: var(--cz-blue); }
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.hi-self { align-self: flex-start; }
|
|
20
20
|
|
|
21
21
|
/* ── the list column groups (InTasks, InDocs) ── */
|
|
22
|
-
.hi-g .hm-gh .hi-n { margin-left: auto; font-weight: 700; font-size:
|
|
22
|
+
.hi-g .hm-gh .hi-n { margin-left: auto; font-weight: 700; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
23
23
|
.hm-r.hi-r { min-height: 48px; margin-bottom: 2px; }
|
|
24
24
|
.hm-r.hi-r .hm-rm { min-height: 48px; padding: 7px 10px; }
|
|
25
25
|
.hm-r.hi-r .hm-rt b { font-weight: 600; }
|
|
@@ -38,39 +38,39 @@
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
/* ── the Viewer: Tasks, Documents, Stage (InTasks, InDocs) ── */
|
|
41
|
-
.hi-v { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size:
|
|
41
|
+
.hi-v { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size: var(--fs-3); color: var(--cz-ink); }
|
|
42
42
|
.hi-seg { align-self: flex-start; }
|
|
43
43
|
.hi-vh2 { display: flex; align-items: center; gap: 8px; }
|
|
44
|
-
.hi-vh2 h2 { flex: 1; min-width: 0; margin: 0; font-size:
|
|
45
|
-
.cz-pick.hi-pick { height: 30px; font-size:
|
|
44
|
+
.hi-vh2 h2 { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-5); font-weight: 800; }
|
|
45
|
+
.cz-pick.hi-pick { height: 30px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
|
|
46
46
|
.cz-pick.hi-pick svg { fill: none; stroke: currentColor; }
|
|
47
|
-
.hi-empty { margin: 0; font-size:
|
|
47
|
+
.hi-empty { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
48
48
|
.hi-tg { display: flex; flex-direction: column; border-radius: 12px; }
|
|
49
49
|
.hi-tg.over { background: var(--cz-bluebg); }
|
|
50
50
|
.hi-gh { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
|
|
51
51
|
.hi-ghb { flex: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0; border: 0; background: none; color: var(--cz-ink); font: inherit; cursor: pointer; text-align: left; }
|
|
52
52
|
.hi-ghb svg { color: var(--cz-ink3); }
|
|
53
|
-
.hi-ghb b { font-size:
|
|
54
|
-
.hi-ghb span { font-size:
|
|
55
|
-
.hi-trow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); font-size:
|
|
53
|
+
.hi-ghb b { font-size: var(--fs-3); }
|
|
54
|
+
.hi-ghb span { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
55
|
+
.hi-trow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-3); min-height: 26px; }
|
|
56
56
|
.hi-trow:last-child { border-bottom: 0; }
|
|
57
57
|
.hi-trow[draggable="true"] { cursor: grab; }
|
|
58
58
|
.hi-trow.drag { opacity: .5; }
|
|
59
59
|
.hi-tt { flex: 1; min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
60
|
-
.hi-tt em { font-style: normal; color: var(--cz-ink3); font-size:
|
|
60
|
+
.hi-tt em { font-style: normal; color: var(--cz-ink3); font-size: var(--fs-2); }
|
|
61
61
|
.hi-trow.done .hi-tt { text-decoration: line-through; color: var(--cz-ink3); }
|
|
62
|
-
.hi-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font: inherit; font-size:
|
|
62
|
+
.hi-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font: inherit; font-size: var(--fs-1); font-weight: 700; background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; border: 0; flex: none; }
|
|
63
63
|
button.hi-pill { cursor: pointer; }
|
|
64
64
|
.hi-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
65
65
|
.hi-pill.w { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
66
66
|
.hi-pill.dash { background: transparent; box-shadow: inset 0 0 0 1px var(--cz-c-c5c9d0); color: var(--cz-ink3); }
|
|
67
|
-
.hi-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font-size:
|
|
68
|
-
.hi-due { font-size:
|
|
67
|
+
.hi-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-grid; place-items: center; flex: none; }
|
|
68
|
+
.hi-due { font-size: var(--fs-2); color: var(--cz-ink3); min-width: 38px; text-align: right; flex: none; }
|
|
69
69
|
.hi-due.late { color: var(--cz-late); font-weight: 700; }
|
|
70
70
|
.hi-trow .hi-ib { opacity: .35; }
|
|
71
71
|
.hi-trow:hover .hi-ib, .hi-trow .hi-ib:focus-visible, .hi-trow .hi-ib[aria-expanded="true"] { opacity: 1; }
|
|
72
72
|
.hi-add { display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 14px; background: var(--cz-well); padding: 0 6px 0 12px; }
|
|
73
|
-
.hi-add input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size:
|
|
73
|
+
.hi-add input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: var(--fs-3); color: var(--cz-ink); }
|
|
74
74
|
.hi-foot { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--cz-hair); padding-top: 8px; }
|
|
75
75
|
.hi-drow { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 12px; }
|
|
76
76
|
.hi-drow.look { background: var(--cz-bluebg); }
|
|
@@ -80,11 +80,11 @@ button.hi-pill { cursor: pointer; }
|
|
|
80
80
|
.hi-dic.dash { background: none; box-shadow: inset 0 0 0 1.5px var(--cz-c-d9dce1); color: var(--cz-ink3); }
|
|
81
81
|
.hi-dtx { min-width: 0; display: block; }
|
|
82
82
|
.hi-dtx b { font-weight: 800; }
|
|
83
|
-
.hi-dtx .hi-k { font-size:
|
|
84
|
-
.hi-dtx em { display: block; font-style: normal; font-size:
|
|
85
|
-
.hi-dtx small { display: block; font-size:
|
|
83
|
+
.hi-dtx .hi-k { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
84
|
+
.hi-dtx em { display: block; font-style: normal; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
85
|
+
.hi-dtx small { display: block; font-size: var(--fs-1); color: var(--cz-ink3); overflow-wrap: anywhere; }
|
|
86
86
|
.hi-drow.later { align-items: center; color: var(--cz-ink3); }
|
|
87
|
-
.hi-dt { flex: 1; font-size:
|
|
87
|
+
.hi-dt { flex: 1; font-size: var(--fs-3); }
|
|
88
88
|
.hi-drow > .hi-pill, .hi-drow > .hi-btn { margin-top: 4px; }
|
|
89
89
|
.hi-sec { display: flex; flex-direction: column; gap: 8px; }
|
|
90
90
|
.hi-stages { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
@@ -128,13 +128,13 @@ button.hi-pill { cursor: pointer; }
|
|
|
128
128
|
.hi-page .hm-pcard { margin: 0; }
|
|
129
129
|
.hi-pg { display: flex; flex-direction: column; gap: 2px; }
|
|
130
130
|
.hi-pgh { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px; }
|
|
131
|
-
.hi-pgh b { font-size:
|
|
132
|
-
.hi-pgh .hi-n { font-size:
|
|
131
|
+
.hi-pgh b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
|
|
132
|
+
.hi-pgh .hi-n { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
|
|
133
133
|
.hi-pgh .hm-gadd { margin-left: auto; }
|
|
134
|
-
.hi-pgm { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--cz-ink2); font: inherit; font-size:
|
|
134
|
+
.hi-pgm { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--cz-ink2); font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
|
|
135
135
|
.hi-pge { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 6px; }
|
|
136
|
-
.hi-pge p { margin: 0; font-size:
|
|
137
|
-
.hi-talk { min-height: 44px; border: 0; border-radius: 22px; background: var(--cz-well); color: var(--cz-ink3); font: inherit; font-size:
|
|
136
|
+
.hi-pge p { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
137
|
+
.hi-talk { min-height: 44px; border: 0; border-radius: 22px; background: var(--cz-well); color: var(--cz-ink3); font: inherit; font-size: var(--fs-3); text-align: left; padding: 0 16px; cursor: pointer; }
|
|
138
138
|
@media (hover: hover) { .hi-pgm:hover { background: var(--cz-well2); } }
|
|
139
139
|
|
|
140
140
|
/* ── D99: the initiative's own workflow (WfTriage, WfAChange, WfAWontDo) ── */
|
|
@@ -148,22 +148,22 @@ button.hi-pill { cursor: pointer; }
|
|
|
148
148
|
.hm-card.hm-sc { padding: 0; background: transparent; box-shadow: none; }
|
|
149
149
|
.hm-box.hm-scb { background: var(--cz-card); border-radius: 18px; padding: 12px; gap: 0; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cz-blue) 45%, transparent); }
|
|
150
150
|
.hm-sch { display: flex; align-items: center; gap: 8px; min-height: 28px; }
|
|
151
|
-
.hm-sch > b { font-size:
|
|
152
|
-
.hm-sch .of { font-size:
|
|
151
|
+
.hm-sch > b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
|
|
152
|
+
.hm-sch .of { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
|
|
153
153
|
.hm-sch .hm-wf { display: inline-flex; align-items: center; justify-content: center; padding: 3px; margin-left: 2px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: inherit; }
|
|
154
154
|
.hm-sch .hm-wf:hover, .hm-sch .hm-wf[aria-expanded="true"] { background: var(--cz-well); }
|
|
155
|
-
.hm-sct { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size:
|
|
155
|
+
.hm-sct { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
|
|
156
156
|
.hm-sct.over { color: var(--cz-risk); }
|
|
157
157
|
.hm-bars.hm-scbars { margin: 10px 0 8px; }
|
|
158
158
|
.hm-bars.hm-scbars i { position: relative; } .hm-bars.hm-scbars i::after { content: ""; position: absolute; inset: -6px 0; } /* a taller hover target for the stage name */
|
|
159
159
|
.hm-bars.hm-scbars i.skip { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cz-ink3) 40%, transparent) 0 4px, transparent 4px 7px); }
|
|
160
160
|
.hm-scl { border-top: 1px solid var(--cz-hair); padding-top: 8px; margin-top: 2px; }
|
|
161
|
-
.hm-scwhy { margin: 0; padding: 4px 0 2px 34px; font-size:
|
|
162
|
-
.hm-scb > .hm-none { margin: 4px 0 0; font-size:
|
|
161
|
+
.hm-scwhy { margin: 0; padding: 4px 0 2px 34px; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
162
|
+
.hm-scb > .hm-none { margin: 4px 0 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
163
163
|
/* the move sheet: Move now and Back as two quiet buttons, side by side on a desktop, stacked on the phone */
|
|
164
164
|
.hi-nxa { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--cz-hair); }
|
|
165
165
|
.hi-nxa .hi-btn { flex: 1; justify-content: center; height: 40px; border-radius: 12px; }
|
|
166
|
-
.hi-pop .hi-swl { font-size:
|
|
166
|
+
.hi-pop .hi-swl { font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); min-height: 44px; }
|
|
167
167
|
.hi-pop .hi-swl > span { flex: 1; }
|
|
168
168
|
.hi-pop .hi-sw { width: 44px; height: 28px; }
|
|
169
169
|
.hi-pop .hi-sw::after { top: 4px; left: 4px; width: 20px; height: 20px; }
|
|
@@ -176,6 +176,6 @@ button.hi-pill { cursor: pointer; }
|
|
|
176
176
|
.hi-pop .hi-sw[aria-checked="true"]::before, .hi-v .hi-sw[aria-checked="true"]::before, :root[data-theme="dark"] .hi-pop .hi-sw[aria-checked="true"]::before, :root[data-theme="dark"] .hi-v .hi-sw[aria-checked="true"]::before { background: var(--cz-blue); }
|
|
177
177
|
.hi-pop .hi-sw::after, .hi-v .hi-sw::after { top: 12px; z-index: 1; background: var(--cz-onsolid); }
|
|
178
178
|
.hi-pop.sheet .hi-nxa { flex-direction: column; border-top: 0; padding-top: 0; }
|
|
179
|
-
.hi-pop.sheet .hi-nxa .hi-btn { height: 48px; border-radius: 14px; font-size:
|
|
180
|
-
.hi-pop.sheet .hi-h3 { font-size:
|
|
179
|
+
.hi-pop.sheet .hi-nxa .hi-btn { height: 48px; border-radius: 14px; font-size: var(--fs-3); font-weight: 800; }
|
|
180
|
+
.hi-pop.sheet .hi-h3 { font-size: var(--fs-4); }
|
|
181
181
|
}
|
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
.pl-row { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 2px 4px 2px 0; }
|
|
8
8
|
.pl-hit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
|
|
9
9
|
.pl-hit:focus-visible, .pl-stop:focus-visible, .pl-ib:focus-visible, .pl-dvb:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
10
|
-
.pl-t { flex: 1; min-width: 0; font-size:
|
|
10
|
+
.pl-t { flex: 1; min-width: 0; font-size: var(--fs-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
11
11
|
.hm-pl.open .pl-t { white-space: normal; }
|
|
12
12
|
.hm-pl.you .pl-t, .hm-goalq .pl-t { color: var(--cz-blueink); }
|
|
13
|
-
.pl-n { flex: none; font-size:
|
|
13
|
+
.pl-n { flex: none; font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink3); }
|
|
14
14
|
.pl-cv { flex: none; display: inline-flex; color: var(--cz-ink3); }
|
|
15
15
|
.pl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); }
|
|
16
16
|
.pl-clk { display: inline-flex; color: var(--cz-ink3); }
|
|
17
17
|
.pl-stop { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
18
18
|
.pl-body { padding: 0 14px 12px; }
|
|
19
|
-
.pl-head { margin: 0 0 10px; font-size:
|
|
19
|
+
.pl-head { margin: 0 0 10px; font-size: var(--fs-2); color: var(--cz-ink3); line-height: 1.4; }
|
|
20
20
|
.pl-sl { margin-top: 2px; }
|
|
21
|
-
.pl-now { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--cz-hair); font-size:
|
|
21
|
+
.pl-now { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-2); min-width: 0; }
|
|
22
22
|
.pl-now b { flex: none; font-weight: 800; }
|
|
23
|
-
.pl-now code { min-width: 0; font-family: var(--cz-mono); font-size:
|
|
23
|
+
.pl-now code { min-width: 0; font-family: var(--cz-mono); font-size: var(--fs-2); color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
24
24
|
.hm-pl.open .pl-now code { white-space: normal; word-break: break-all; }
|
|
25
25
|
.pl-acts { display: flex; gap: 8px; margin-top: 10px; }
|
|
26
26
|
.pl-ib { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
/* the Viewer (a desktop) */
|
|
30
30
|
.pl-vw { padding: 16px 20px; }
|
|
31
31
|
.pl-vwh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
|
|
32
|
-
.pl-vwh b { flex: 1; min-width: 0; font-size:
|
|
32
|
+
.pl-vwh b { flex: 1; min-width: 0; font-size: var(--fs-4); font-weight: 800; line-height: 1.3; }
|
|
33
33
|
|
|
34
34
|
/* the divider where a run finished */
|
|
35
|
-
.pl-dv { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size:
|
|
35
|
+
.pl-dv { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
|
|
36
36
|
.pl-dv .ln { flex: 1; height: 1px; background: var(--cz-hair); }
|
|
37
37
|
.pl-dv.stop { color: var(--cz-risk); }
|
|
38
38
|
.pl-dvb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 10px; }
|
|
@@ -322,7 +322,7 @@ export function looseSnapshot(M, D) {
|
|
|
322
322
|
* { id, name, sub (its initiative, or the hint of a row with none), late, state, when (the weekly update's send time) }. */
|
|
323
323
|
function moveOf(groups, needs) {
|
|
324
324
|
const late = [], rest = [], seen = new Set();
|
|
325
|
-
const put = (L, r, sub) => { if (!r || seen.has(r.id)) return; seen.add(r.id); L.push({ id: r.id, name: r.name, sub: sub || '', late: !!r.late, state: r.state || 'needs', check: !!(r.check || r.kind === 'task'), when: whenOf(r), ...(r.ms ? { ms: true } : {}) }); };
|
|
325
|
+
const put = (L, r, sub) => { if (!r || seen.has(r.id)) return; seen.add(r.id); L.push({ id: r.id, name: r.name, sub: sub || '', late: !!r.late, state: r.state || 'needs', check: !!(r.check || r.kind === 'task'), when: whenOf(r), kind: r.kind || '', ...(callOf(r) ? { call: true } : {}), ...(pickOf(r) ? { pick: pickOf(r) } : {}), ...(r.ms ? { ms: true } : {}) }); };
|
|
326
326
|
for (const g of groups) {
|
|
327
327
|
if (g.kind === 'loose') { for (const r of g.rows) if (r.check && r.late) put(late, r); else if (r.state === 'needs' || r.state === 'blocked') put(rest, r, r.kind === 'session' ? '' : bareHint(r)); continue; }
|
|
328
328
|
for (const t of g.tasks || []) if (t.mine && t.late) put(late, t, g.name);
|
|
@@ -333,6 +333,17 @@ function moveOf(groups, needs) {
|
|
|
333
333
|
for (const r of needs) if (!seen.has(r.id) && !r.needSession) put(rest, r, r.kind === 'session' ? '' : bareHint(r));
|
|
334
334
|
return late.concat(rest);
|
|
335
335
|
}
|
|
336
|
+
/** Claude's pick on a Needs-you row: the option its dialog selects ({ sel, opts }), else ''. Your day names it in the call's sentence. */
|
|
337
|
+
const pickOf = (r) => {
|
|
338
|
+
const d = r && r.row && r.row.dialog; const o = d && d.sel && (d.opts || []).find((x) => x && x.k === d.sel);
|
|
339
|
+
if (o && o.t) return String(o.t);
|
|
340
|
+
const p = String((r && r.row && r.row.kind === 'source' && r.row.prepared) || ''); // a brief item's prepared line ("Reply: …"), when it has one
|
|
341
|
+
return p && !/^No .* is on record\.$/.test(p) ? p : '';
|
|
342
|
+
};
|
|
343
|
+
/** Is a row a call only the PM can make (Your day's Your move, batch 15 item 3)? A session that asks, the program's milestone changes, a
|
|
344
|
+
* decision, blocked work, failed reviews to weigh, and an item where someone asked the PM by name. Tasks and the rest can wait. */
|
|
345
|
+
const callOf = (r) => r.kind === 'session' || r.kind === 'msreview' || ['decision', 'blocked', 'waited'].includes(r.row && r.row.kind)
|
|
346
|
+
|| !!(r.row && r.row.kind === 'source' && /mentions you/.test(String(r.row.subject || '')));
|
|
336
347
|
/** "Wed 09:00" from the weekly update's "goes out Wed 09:00"; '' for any other row. */
|
|
337
348
|
export const whenOf = (r) => { const m = /goes out (.+)$/.exec(String((r && r.hint) || '')); return m ? m[1] : ''; };
|
|
338
349
|
|
|
@@ -22,7 +22,7 @@ export function mountPhoneCard(o) {
|
|
|
22
22
|
el.className = 'hm-phc'; el.id = 'phoneCard'; el.hidden = true; el.setAttribute('aria-label', 'Now');
|
|
23
23
|
|
|
24
24
|
const own = () => ((P.page && P.page.ok && P.page.needs) || []).filter((n) => n && n.id && (n.kind === 'overdue' || n.kind === 'due-today'))
|
|
25
|
-
.map((n) => ({ id: n.id, headline: n.headline, label: n.kind === 'overdue' ?
|
|
25
|
+
.map((n) => ({ id: n.id, headline: n.headline, label: n.kind === 'overdue' ? 'Yours, still open' : 'Due today', kind: n.kind, looks: !!(n.evidence && n.evidence.text) }));
|
|
26
26
|
const btn = (label, act, id, alt) => `<button type="button" class="cta${alt ? ' alt' : ''}" data-pha="${act}"${id != null ? ` data-id="${esc(id)}"` : ''}>${esc(label)}</button>`;
|
|
27
27
|
const item = (n) => {
|
|
28
28
|
const act = P.dec.has(n.id) ? `<p class="phok" role="status">${CHECK}<span>Done.</span></p><div class="phacts">${btn('Undo', 'phundo', n.id, true)}</div>` : `<div class="phacts">${btn(n.looks ? 'Confirm done' : 'Done', 'phdone', n.id)}</div>`;
|
|
@@ -32,11 +32,13 @@ export function mountPhoneCard(o) {
|
|
|
32
32
|
const open = (m) => btn('Open the meeting', 'phopen', m.id, true);
|
|
33
33
|
const big = (t) => `<b class="phbig">${esc(t)}</b>`;
|
|
34
34
|
const L = (t) => `<p class="phl">${esc(t)}</p>`, S = (t) => `<p class="phs">${esc(t)}</p>`;
|
|
35
|
+
// a real thank-you to the PM today, from the brief's mentions (GET /api/brief-page mentions); never written, only quoted
|
|
36
|
+
const thanks = () => { const m = ((P.page && P.page.mentions) || []).find((x) => x && x.text && /\b(thank(s| you)?|thx|appreciate[ds]?)\b/i.test(x.text) && (!x.at || new Date(x.at).toDateString() === new Date().toDateString()));
|
|
37
|
+
return m ? { quote: String(m.text).replace(/\s+/g, ' ').trim().slice(0, 160), who: m.who || '', where: m.source ? m.source.charAt(0).toUpperCase() + m.source.slice(1) : '', at: m.at ? hm(m.at) : '' } : null; };
|
|
35
38
|
const dayErr = () => (P.day && P.day.ok === false ? S('Today could not be read: ' + P.day.error + '.') : !P.day ? S('Reading your day.') : '');
|
|
36
39
|
|
|
37
40
|
function moment(mo) {
|
|
38
41
|
const m = mo.meeting, mine = own(), day = P.day && P.day.ok !== false ? P.day : null, fin = day ? day.finished || [] : [];
|
|
39
|
-
const waits = mine.length ? num(mine.length, 'item of yours waits', 'items of yours wait') + '.' : 'Nothing of yours is due.';
|
|
40
42
|
const finRows = (n) => fin.slice(0, n).map((t) => `<div class="phfit"><span class="label">${t.status === 'review' ? 'Waits for you' : t.status === 'sent' ? 'Sent' : 'Finished'}</span><b class="phtt">${esc(t.title)}</b><p class="phs">${esc(t.summary)}</p></div>`).join('');
|
|
41
43
|
const fits = (list) => items(list.map((n) => mine.find((x) => x.id === n.id)).filter(Boolean));
|
|
42
44
|
if (mo.kind === 'meeting') return `<span class="label">Under way · ends ${esc(inText(mo.minutes))}</span>${big(m.title)}${who(m) ? L(who(m)) : ''}<div class="phacts">${open(m)}</div>`;
|
|
@@ -48,24 +50,25 @@ export function mountPhoneCard(o) {
|
|
|
48
50
|
}
|
|
49
51
|
if (mo.kind === 'after') return `<span class="label">Just ended · ${hm(m.end || m.start)}</span>${big(m.title)}${S('The notes of this meeting, if there are any, are in the meeting.')}<div class="phacts">${open(m)}</div>`;
|
|
50
52
|
if (mo.kind === 'gap') return `<span class="label">Until ${esc(mo.next.title)} at ${hm(mo.next.start)}</span>${big(mo.minutes + ' free minutes')}${mo.fits.length ? fits(mo.fits) : L('Nothing of yours is due. A good moment to prepare the next meeting.')}`;
|
|
51
|
-
if (mo.kind === 'morning') {
|
|
52
|
-
const top = mine.slice(0, 3);
|
|
53
|
-
const
|
|
54
|
-
return `<span class="label">Your morning</span>${
|
|
53
|
+
if (mo.kind === 'morning') { // Your day E (YdE1Ready): the day's meetings, time and title; then what of yours is due, with Done
|
|
54
|
+
const t = ((P.page && P.page.today) || []).filter((x) => x && x.state !== 'past'), top = mine.slice(0, 3);
|
|
55
|
+
const rows = t.slice(0, 3).map((x) => `<p class="phrow"><b>${hm(x.start)}</b><span>${esc(x.title)}</span></p>`).join('') + (t.length > 3 ? S((t.length - 3) + ' more later today.') : '');
|
|
56
|
+
return `<span class="label">Your morning</span>${t.length ? rows : S('No meetings today.')}${items(top)}${mo.next ? `<div class="phacts">${open(mo.next)}</div>` : ''}`;
|
|
55
57
|
}
|
|
56
58
|
if (mo.kind === 'work') return `<span class="label">${mo.next ? 'Next: ' + esc(mo.next.title) + ' at ' + hm(mo.next.start) : 'No more meetings today'}</span>${big(fin.length ? 'Finished for you' : 'Nothing new from the agent')}${fin.length ? finRows(2) + S('Approving a draft waits for your computer.') : dayErr() || S('When the agent finishes a draft today, it shows here.')}${mo.fits.length ? fits(mo.fits) : ''}${mo.next ? `<div class="phacts">${open(mo.next)}</div>` : ''}`;
|
|
57
|
-
if (mo.kind === 'recap') { //
|
|
58
|
-
const r = day && day.recap, one = mine[0],
|
|
59
|
-
const KIND = { decision: 'Decided', done: 'Done', agent: '
|
|
60
|
-
const
|
|
61
|
-
const
|
|
59
|
+
if (mo.kind === 'recap') { // Your day E (YdE3Evening): what today made possible, wins only; a real thank-you when one exists; no zero counts
|
|
60
|
+
const r = day && day.recap, one = mine[0], ty = thanks();
|
|
61
|
+
const KIND = { decision: 'Decided', done: 'Done', agent: 'Claude' };
|
|
62
|
+
const moved = r && (r.moved || []).length ? `<div class="phmv">${r.moved.map((x) => `<p><b>${esc(KIND[x.kind] || '')}</b><span>${esc(x.text)}</span>${x.sub ? `<em>${esc(x.sub)}</em>` : ''}</p>`).join('')}</div>` : dayErr();
|
|
63
|
+
const quote = ty ? `<div class="phty"><p class="phl">“${esc(ty.quote)}”</p><p class="phs">${esc([ty.who, ty.where].filter(Boolean).join(' on '))}${ty.at ? ' · ' + esc(ty.at) : ''}</p></div>` : '';
|
|
62
64
|
const conf = r && r.to_confirm ? `<p class="phs phq">${esc(num(r.to_confirm, 'decision', 'decisions'))} from today's notes ${r.to_confirm === 1 ? 'is' : 'are'} not confirmed yet, so ${r.to_confirm === 1 ? 'it does' : 'they do'} not count. Confirm them in the meeting's Replay.</p>` : '';
|
|
63
|
-
const open = one ? `<div class="phfit" data-id="${esc(one.id)}"><span class="label">One thing tonight
|
|
64
|
-
|
|
65
|
-
return `<span class="label">Evening recap</span>${big(
|
|
65
|
+
const open = one ? `<div class="phfit" data-id="${esc(one.id)}"><span class="label">One thing tonight, if you like</span><b class="phtt">${esc(one.headline)}</b>${P.dec.has(one.id) ? `<p class="phok" role="status">${CHECK}<span>Done.</span></p><div class="phacts">${btn('Undo', 'phundo', one.id, true)}</div>` : `<div class="phacts">${btn(one.looks ? 'Confirm done' : 'Done', 'phdone', one.id)}</div>`}${P.err[one.id] ? `<p class="pherr" role="alert">${esc(P.err[one.id])}</p>` : ''}${mine.length > 1 ? S('The rest can wait for tomorrow.') : ''}</div>` : '';
|
|
66
|
+
const big2 = r && ((r.moved || []).length || ty) ? 'What today made possible' : 'Evening';
|
|
67
|
+
return `<span class="label">Evening recap</span>${big(big2)}${quote}${moved}${conf}${open}`;
|
|
66
68
|
}
|
|
67
69
|
const r = day && day.recap, tm = day && day.tomorrow;
|
|
68
|
-
|
|
70
|
+
const today = r ? [r.meetings && num(r.meetings, 'meeting', 'meetings'), r.decided && num(r.decided, 'decision', 'decisions'), r.done && num(r.done, 'item done', 'items done')].filter(Boolean) : []; // zero is silence
|
|
71
|
+
return `<span class="label">End of day</span>${big(tm ? 'Tomorrow, ' + tm.label : 'Tomorrow, at a glance')}${today.length ? L('Today: ' + today.join(', ') + '.') : ''}${tm ? `<div class="phfit"><b class="phtt">${tm.meetings.length ? num(tm.meetings.length, 'meeting', 'meetings') : 'No meetings'}</b>${tm.meetings.slice(0, 5).map((x) => `<p class="phs">${hm(x.start)} · ${esc(x.title)}${who(x) ? ' · ' + esc(who(x)) : ''}</p>`).join('')}</div>` : dayErr()}${mine.length ? S('What’s still open waits on Home tomorrow.') : ''}`;
|
|
69
72
|
}
|
|
70
73
|
const momentNow = () => momentOf({ today: P.page.today || [], needs: own(), now: new Date() });
|
|
71
74
|
function draw(focus) {
|