create-pmos 0.428.0 → 0.430.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 +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/briefing-premium-board-test.js +4 -4
- package/workspace/briefing-premium-insights-test.js +82 -61
- 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 +24 -0
- package/workspace/ev-everywhere-test.js +2 -2
- package/workspace/guide/adler.md +45 -0
- package/workspace/guide/briefing-premium.md +2 -0
- package/workspace/guide/home.md +4 -2
- package/workspace/guide/index.md +2 -0
- package/workspace/guide/metric-drafts.md +49 -0
- package/workspace/guide/programs.md +2 -0
- package/workspace/intel-report-ui-test.js +189 -0
- package/workspace/intelligence-gaps-ui-test.js +168 -0
- package/workspace/lib/board-metrics-premium.js +1 -1
- package/workspace/lib/headless.js +15 -2
- package/workspace/lib/initiative-writer.js +16 -2
- package/workspace/lib/insight-moves.js +135 -0
- package/workspace/lib/insights-premium.js +9 -4
- package/workspace/lib/insights-records.js +14 -5
- package/workspace/lib/intel-report.js +432 -0
- package/workspace/lib/metric-draft-runs.js +193 -0
- package/workspace/lib/metric-drafts.js +261 -0
- package/workspace/lib/metrics-cli.js +104 -0
- package/workspace/lib/page-opens.js +74 -0
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/report-setups.js +29 -13
- package/workspace/lib/route-modules.js +3 -0
- package/workspace/lib/routes-insight-moves.js +119 -0
- package/workspace/lib/routes-insights-premium.js +12 -3
- package/workspace/lib/routes-insights-records.js +13 -5
- package/workspace/lib/routes-metric-drafts.js +150 -0
- package/workspace/lib/routes-page-opens.js +26 -0
- package/workspace/lib/routes-phone-day.js +13 -2
- package/workspace/lib/routes-report-setups.js +97 -3
- package/workspace/lib/routes-viewer.js +5 -2
- package/workspace/lib/settings-store.js +6 -0
- package/workspace/metric-drafts-ui-test.js +209 -0
- package/workspace/milestone-suggest-test.js +4 -4
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-phone-card-test.js +8 -5
- package/workspace/premium-viewer-flicker-test.js +1 -1
- 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 +12 -7
- package/workspace/public/pm/bd-prog.js +2 -2
- package/workspace/public/pm/cozy-adler.css +82 -0
- package/workspace/public/pm/cozy-adler.js +270 -0
- 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 +48 -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 +211 -207
- package/workspace/public/pm/cozy-insights.css +221 -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 +3 -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-search.js +4 -2
- package/workspace/public/pm/cozy-settings.js +16 -3
- package/workspace/public/pm/cozy-steps.css +9 -9
- package/workspace/public/pm/cozy-today.css +122 -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 +34 -15
- package/workspace/public/pm/hi-pop.css +19 -19
- package/workspace/public/pm/home-app.js +33 -9
- package/workspace/public/pm/home-chat.js +10 -2
- package/workspace/public/pm/home-day.js +155 -27
- 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/home-today.js +5 -3
- package/workspace/public/pm/ini-view-model.js +1 -1
- package/workspace/public/pm/ini-view.css +108 -102
- package/workspace/public/pm/ini-view.js +22 -3
- package/workspace/public/pm/loose-props.css +13 -13
- package/workspace/public/pm/metric-drafts.css +89 -0
- package/workspace/public/pm/metric-drafts.js +204 -0
- package/workspace/public/pm/ms-suggest.css +8 -8
- package/workspace/public/pm/ms-suggest.js +2 -1
- package/workspace/public/pm/ov-view.css +12 -12
- package/workspace/public/pm/premium-board.js +2 -2
- package/workspace/public/pm/premium-chart-tab.js +6 -6
- package/workspace/public/pm/premium-insights.js +364 -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-cal.js +1 -1
- package/workspace/public/pm/premium-vw-file.js +2 -2
- package/workspace/public/pm/premium-welcome.js +3 -2
- package/workspace/public/pm/premium.css +130 -128
- package/workspace/public/pm/prog-order.css +6 -6
- package/workspace/public/pm/program-charter.css +23 -23
- package/workspace/public/pm/program-model.js +7 -0
- 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/split-merge.js +2 -1
- 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/intelligence-gaps-ui.json +5 -0
- package/workspace/test-lists/intelligence-gaps.json +5 -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
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
/* the stage card and the Plan card (XipB .card2): a quiet outlined card, its head the name and where it stands */
|
|
16
16
|
.xv-card { border: 1px solid var(--cz-hair); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
|
|
17
17
|
.xv-ch { display: flex; align-items: center; gap: 8px; color: var(--cz-ink); }
|
|
18
|
-
.xv-ch b { font-size:
|
|
19
|
-
.xv-ch .r { margin-left: auto; font-size:
|
|
18
|
+
.xv-ch b { font-size: var(--fs-3); font-weight: 800; }
|
|
19
|
+
.xv-ch .r { margin-left: auto; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 700; white-space: nowrap; }
|
|
20
20
|
.xv-sc .xv-lr { padding-left: 0; padding-right: 0; }
|
|
21
21
|
.xv-sl { margin: 0; }
|
|
22
22
|
.xv-sl .cz-nd.tl { width: 14px; height: 14px; margin: 4px; border-radius: 3px; transform: rotate(45deg); border-style: solid; }
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
/* the summary's meta: the owner's avatar and name, the workflow's icon and name */
|
|
32
32
|
.xv-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
33
|
-
.xv-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-bluebg); color: var(--cz-blueink); font-size:
|
|
33
|
+
.xv-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-bluebg); color: var(--cz-blueink); font-size: var(--fs-1); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
34
34
|
.xv-who .wfi { color: var(--cz-ink3); }
|
|
35
35
|
|
|
36
36
|
/* the plan line (XipB .pl): your plan grey, past the plan amber dashed, Jira's pace blue dashed, a tick for today */
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
.xv-pl .tk { position: absolute; top: 12px; width: 2px; height: 22px; margin-left: -1px; border-radius: 1px; background: var(--cz-ink); }
|
|
43
43
|
.xv-pl .tk.am { background: var(--cz-dot-risk); }
|
|
44
44
|
.xv-pl .tk.e { background: var(--cz-blueink); }
|
|
45
|
-
.xv-pl .lb { position: absolute; top: 38px; font-size:
|
|
45
|
+
.xv-pl .lb { position: absolute; top: 38px; font-size: var(--fs-1); font-weight: 700; color: var(--cz-ink3); white-space: nowrap; }
|
|
46
46
|
.xv-pl .lb.tp { top: -2px; }
|
|
47
47
|
.xv-pl .lb b { color: var(--cz-ink); font-weight: 800; }
|
|
48
48
|
.xv-pl .lb.w, .xv-pl .lb.w b { color: var(--cz-risk); }
|
|
49
49
|
.xv-pl .lb.e, .xv-pl .lb.e b { color: var(--cz-blueink); }
|
|
50
|
-
.xv-lg { display: flex; gap: 14px; flex-wrap: wrap; font-size:
|
|
50
|
+
.xv-lg { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-1); color: var(--cz-ink3); font-weight: 600; }
|
|
51
51
|
.xv-lg span { display: inline-flex; align-items: center; gap: 5px; }
|
|
52
52
|
.xv-lg i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: var(--cz-well2); }
|
|
53
53
|
.xv-lg i.over { background: repeating-linear-gradient(90deg, var(--cz-dot-risk) 0 4px, transparent 4px 6px); }
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
.xv-lg i.today.am { background: var(--cz-dot-risk); }
|
|
57
57
|
|
|
58
58
|
/* one row in a section (XvABoard .lr): a mark, a title, one quiet line; a ticket row is a press */
|
|
59
|
-
.xv-lr { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 12px; font: inherit; font-size:
|
|
59
|
+
.xv-lr { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 12px; font: inherit; font-size: var(--fs-3); color: var(--cz-ink); background: none; border: 0; width: 100%; box-sizing: border-box; text-align: left; }
|
|
60
60
|
.xv-lr + .xv-lr { border-top: 1px solid var(--cz-hair); border-radius: 0; }
|
|
61
61
|
button.xv-lr { cursor: pointer; }
|
|
62
62
|
@media (hover: hover) { button.xv-lr:hover { background: color-mix(in srgb, var(--cz-well) 50%, var(--cz-card)); border-radius: 12px; } }
|
|
@@ -64,21 +64,21 @@ button.xv-lr:focus-visible { outline: 2px solid var(--cz-blue); outline-offset:
|
|
|
64
64
|
.xv-lr .w { flex: 1; min-width: 0; }
|
|
65
65
|
.xv-lr .w b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
66
66
|
.xv-lr .w b em { font-style: normal; font-weight: 800; color: var(--cz-ink2); }
|
|
67
|
-
.xv-lr .w span { display: block; font-size:
|
|
68
|
-
.xv-lr .r { font-size:
|
|
67
|
+
.xv-lr .w span { display: block; font-size: var(--fs-2); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
68
|
+
.xv-lr .r { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
|
|
69
69
|
.xv-mk { width: 8px; height: 8px; border-radius: 50%; flex: none; }
|
|
70
70
|
.xv-mk.warn { background: var(--cz-dot-risk); }
|
|
71
71
|
.xv-mk.you { background: var(--cz-blue); }
|
|
72
72
|
.xv-mk.done { background: var(--cz-done); }
|
|
73
73
|
|
|
74
74
|
/* quiet words, chips, a small secondary press */
|
|
75
|
-
.xv-q { margin: 0; font-size:
|
|
75
|
+
.xv-q { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); line-height: 1.45; }
|
|
76
76
|
.xv-q b { color: var(--cz-ink2); }
|
|
77
77
|
.xv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
78
|
-
.xv-chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cz-well); font: 700
|
|
78
|
+
.xv-chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cz-well); font: 700 var(--fs-2) var(--cz-sans); color: var(--cz-ink2); display: inline-flex; align-items: center; border: 0; }
|
|
79
79
|
button.xv-chip { cursor: pointer; }
|
|
80
80
|
button.xv-chip:focus-visible, .xv-mini:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
81
|
-
.xv-mini { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cz-bluebg); color: var(--cz-blueink); font: 700
|
|
81
|
+
.xv-mini { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cz-bluebg); color: var(--cz-blueink); font: 700 var(--fs-2) var(--cz-sans); border: 0; cursor: pointer; }
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
@media (max-width: 760px) {
|
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/vendor/nunito-var.woff2) format('woff2'); }
|
|
7
7
|
|
|
8
|
+
/* iOS Safari inflates text it thinks is too small to read ("text autosizing"), unevenly: a wide title or sub-line grows and a narrow time
|
|
9
|
+
column does not, so the calendar rows broke the scale on a phone (batch 16 item 4). The sizes are the scale's; the browser keeps them. */
|
|
10
|
+
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
8
11
|
:root{
|
|
12
|
+
/* The type scale (R27; feedback batch 15 item 2): every font size in the cozy sheets is one of these six. Hierarchy comes from weight and
|
|
13
|
+
colour, never from a half pixel. 11 marks and badges · 12 meta · 14 body and rows · 16 group heads and phone rows · 20 page titles · 28 display. */
|
|
14
|
+
--fs-1: 11px; --fs-2: 12px; --fs-3: 14px; --fs-4: 16px; --fs-5: 20px; --fs-6: 28px;
|
|
9
15
|
/* The Agreed design's palette (premium-agreed-design): every colour the cozy sheets use, one token each, defined only here.
|
|
10
16
|
The light and dark .cz blocks and the page sheets (cozy-board, -home, -initiative, -viewer, bd-span.js) name these. */
|
|
11
17
|
--cz-c-17191c: #17191C;
|
|
@@ -104,6 +110,19 @@
|
|
|
104
110
|
--cz-c-3a3018: #3A3018; --cz-c-e3c46a: #E3C46A; --cz-c-3a1f1d: #3A1F1D; --cz-c-f09a92: #F09A92;
|
|
105
111
|
/* the report's title slide (ReportPanel.dc.html): its gradient and the accent of its second line */
|
|
106
112
|
--cz-c-2546b8: #2546B8; --cz-c-1b3a9e: #1B3A9E; --cz-c-cfe88a: #CFE88A; --cz-c-9ab53c: #9AB53C;
|
|
113
|
+
/* Adler, Claude's face (feedback batch 16 item 2; pm/cozy-adler.js and cozy-adler.css name these, never a colour): Wawan's art. Fur, cream,
|
|
114
|
+
hoodie and sprout gradients, then the face, the props, and the scenes' skies and grounds. */
|
|
115
|
+
--ad-f0: #FFD995; --ad-f1: #F0B05A; --ad-f2: #C98030; --ad-c0: #FFFFFA; --ad-c1: #FCEFD8; --ad-c2: #EBD3AE;
|
|
116
|
+
--ad-h0: #93B163; --ad-h1: #6A8A44; --ad-h2: #4A682C; --ad-l0: #C7E37A; --ad-l1: #78A93A;
|
|
117
|
+
--ad-pink: #F4B3A2; --ad-blush: #F49C8C; --ad-ink: #2A2018; --ad-mouth: #7A2E2E; --ad-tongue: #E8737A; --ad-white: #FFFFFF;
|
|
118
|
+
--ad-creamhi: #FFF8EA; --ad-shade: #8A5A20; --ad-shadow: #5A3A10; --ad-hoodd: #46652C; --ad-hoodl: #7A9C55;
|
|
119
|
+
--ad-mug: #6E8E4B; --ad-mugleaf: #CFE0B0; --ad-gold: #E9B949; --ad-glass: #3A2E22; --ad-cardline: #C9C3B6; --ad-tick: #2B55C9;
|
|
120
|
+
--ad-hp: #3A4466; --ad-lens: #EAF4FA;
|
|
121
|
+
--ad-morning0: #FFF4E2; --ad-morning1: #FBE6C4; --ad-tea0: #F6F3EA; --ad-tea1: #EEE9DC; --ad-win0: #FFF5E3; --ad-win1: #F6E9D0;
|
|
122
|
+
--ad-think0: #F1F2EE; --ad-think1: #E6E9E0; --ad-rain0: #EEF0F2; --ad-rain1: #E2E5E9; --ad-night0: #2D3550; --ad-night1: #1E2438;
|
|
123
|
+
--ad-plain0: #F7F6F3; --ad-plain1: #F7F6F3; --ad-sun: #FFC85A; --ad-sunglow: #FFD27A; --ad-moon: #F4E9C6; --ad-firefly: #E9F59A;
|
|
124
|
+
--ad-raincloud: #C9CED6; --ad-drop: #9AA6B8; --ad-ground: #E4D8BC; --ad-groundn: #3A4466; --ad-grass: #8DB05A; --ad-leaf2: #9CC25A;
|
|
125
|
+
--ad-thinkdot: #A9B39A;
|
|
107
126
|
}
|
|
108
127
|
.cz {
|
|
109
128
|
--cz-ink: var(--cz-c-2a2e35); --cz-ink2: var(--cz-c-4a4f58); --cz-ink3: var(--cz-c-646a74);
|
|
@@ -131,7 +150,7 @@
|
|
|
131
150
|
--cz-late: var(--cz-c-e8a07a); --cz-latebg: var(--cz-c-3a2418); --cz-ok: var(--cz-c-8fcf9c); --cz-okbg: var(--cz-c-1f3324);
|
|
132
151
|
--cz-risk: var(--cz-c-e3c46a); --cz-riskbg: var(--cz-c-3a3018); --cz-red: var(--cz-c-f09a92); --cz-redbg: var(--cz-c-3a1f1d);
|
|
133
152
|
}
|
|
134
|
-
body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); background: var(--cz-ground); background-attachment: fixed; -webkit-font-smoothing: antialiased; font-size:
|
|
153
|
+
body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); background: var(--cz-ground); background-attachment: fixed; -webkit-font-smoothing: antialiased; font-size: var(--fs-3); }
|
|
135
154
|
.cz .sky { display: none; }
|
|
136
155
|
/* The old five-place rail is gone: premium-shell.js takes its markup out of the page, and this rule hides it until then. */
|
|
137
156
|
.cz nav.rail { display: none !important; }
|
|
@@ -143,7 +162,7 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
143
162
|
.cz-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
144
163
|
.cz-fabm { box-sizing: border-box; width: 220px; padding: 8px; display: flex; flex-direction: column; gap: 2px; border-radius: 24px; background: var(--cz-card); border: 1px solid var(--cz-hair); box-shadow: 0 24px 60px -24px rgba(27,42,24,.45); }
|
|
145
164
|
.cz-fabm[hidden] { display: none; }
|
|
146
|
-
.cz-fabm a, .cz-fabm button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 14px; font: inherit; font-size:
|
|
165
|
+
.cz-fabm a, .cz-fabm button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 14px; font: inherit; font-size: var(--fs-3); color: var(--cz-ink2); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
|
|
147
166
|
.cz-fabm a:hover, .cz-fabm button:hover { background: var(--cz-well); }
|
|
148
167
|
.cz-fabm [aria-current="page"] { background: var(--cz-bluebg); color: var(--cz-ink); font-weight: 700; }
|
|
149
168
|
.cz-fabm .cz-set { border-top: 1px solid var(--cz-hair); margin-top: 4px; border-radius: 0 0 14px 14px; }
|
|
@@ -161,29 +180,29 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
161
180
|
.cz-fabw { left: auto; right: 18px; bottom: 24px; align-items: flex-end; }
|
|
162
181
|
.cz-panel { margin: 0; border-radius: 0; min-height: 100vh; padding: 12px 12px 96px; box-shadow: none; }
|
|
163
182
|
.cz-top { display: flex; align-items: center; gap: 6px; min-height: 48px; }
|
|
164
|
-
.cz-top .cz-title { font-weight: 800; font-size:
|
|
183
|
+
.cz-top .cz-title { font-weight: 800; font-size: var(--fs-4); margin-left: 4px; margin-right: auto; }
|
|
165
184
|
}
|
|
166
185
|
|
|
167
186
|
/* ── Shared parts ── */
|
|
168
|
-
.cz-pick { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--cz-well); font: inherit; font-size:
|
|
187
|
+
.cz-pick { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--cz-well); font: inherit; font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); border: 0; cursor: pointer; }
|
|
169
188
|
.cz-tabs { display: flex; gap: 2px; }
|
|
170
|
-
.cz-tab { height: 34px; padding: 0 13px; border-radius: 999px; font: inherit; font-size:
|
|
189
|
+
.cz-tab { height: 34px; padding: 0 13px; border-radius: 999px; font: inherit; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink3); display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
|
|
171
190
|
.cz-tab[aria-selected="true"] { background: var(--cz-well); color: var(--cz-ink); }
|
|
172
|
-
.cz-tab .n { font-weight: 600; color: var(--cz-ink3); font-size:
|
|
191
|
+
.cz-tab .n { font-weight: 600; color: var(--cz-ink3); font-size: var(--fs-2); }
|
|
173
192
|
.cz-ib { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); background: none; border: 0; cursor: pointer; flex: none; padding: 0; }
|
|
174
193
|
.cz-ib:hover { background: var(--cz-well); }
|
|
175
194
|
.cz-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
176
195
|
.cz-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
177
196
|
.cz-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cz-well); gap: 2px; }
|
|
178
|
-
.cz-seg button { height: 30px; min-width: 34px; padding: 0 11px; border-radius: 999px; font: inherit; font-size:
|
|
197
|
+
.cz-seg button { height: 30px; min-width: 34px; padding: 0 11px; border-radius: 999px; font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); background: none; border: 0; cursor: pointer; }
|
|
179
198
|
.cz-seg button[aria-pressed="true"] { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
|
|
180
199
|
.cz-vr { width: 1px; height: 20px; background: var(--cz-hair); margin: 0 4px; flex: none; }
|
|
181
|
-
.cz-chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size:
|
|
200
|
+
.cz-chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); white-space: nowrap; cursor: pointer; }
|
|
182
201
|
.cz-chip:hover { background: var(--cz-well); }
|
|
183
202
|
.cz-chip.gh { border-color: transparent; background: transparent; padding: 0 8px; }
|
|
184
203
|
.cz-chip.on { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
185
204
|
.cz-chip b { font-weight: 800; color: var(--cz-ink); }
|
|
186
|
-
.cz-pill { display: inline-flex; align-items: center; gap: 5px; font-size:
|
|
205
|
+
.cz-pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-1); font-weight: 800; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
|
|
187
206
|
.cz-pill.late { background: var(--cz-latebg); color: var(--cz-late); } .cz-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
188
207
|
.cz-pill.q { background: var(--cz-well); color: var(--cz-ink3); } .cz-pill.you { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
189
208
|
.cz-pill.red { background: var(--cz-redbg); color: var(--cz-red); } .cz-pill.risk { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
@@ -226,9 +245,9 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
226
245
|
.cz-vw-tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cz-bluebg); color: var(--cz-blueink); flex: none; }
|
|
227
246
|
.cz-vw-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
228
247
|
.cz-vw-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; } /* the kind in small grey before the bold title, on one line (AgHome) */
|
|
229
|
-
.cz-vw-kind { margin: 0; flex: none; max-width: 45%; font-size:
|
|
248
|
+
.cz-vw-kind { margin: 0; flex: none; max-width: 45%; font-size: var(--fs-2); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
230
249
|
.cz-vw-kind:empty { display: none; }
|
|
231
|
-
.cz-vw-title { margin: 0; min-width: 0; font-size:
|
|
250
|
+
.cz-vw-title { margin: 0; min-width: 0; font-size: var(--fs-4); font-weight: 700; color: var(--cz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
232
251
|
.cz-vw-ib { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--cz-ink2); background: none; border: 0; padding: 0; cursor: pointer; flex: none; font: inherit; }
|
|
233
252
|
.cz-vw-ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
234
253
|
.cz-vw-ib[data-cz-vw="close"] svg { stroke-width: 2; }
|
|
@@ -248,8 +267,8 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
248
267
|
.cz-ph-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cz-card); color: var(--cz-ink3); flex: none; }
|
|
249
268
|
.cz-ph-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
250
269
|
.cz-ph-t { min-width: 0; }
|
|
251
|
-
.cz-ph-l { margin: 0; font-size:
|
|
252
|
-
.cz-ph-n { margin: 2px 0 0; font-size:
|
|
270
|
+
.cz-ph-l { margin: 0; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink2); }
|
|
271
|
+
.cz-ph-n { margin: 2px 0 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
253
272
|
|
|
254
273
|
/* ── slide editor on the cozy pages (moved from premium-vw-slides.css, which stays on the console type scale) ── */
|
|
255
274
|
/* ── the cozy pages (premium-agreed-design, area viewer): the console tokens this sheet names, mapped to the cozy tokens of cozy.css,
|
|
@@ -257,12 +276,12 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
257
276
|
.cz .sl,.cz .sl-pres,.cz .sl-pop,.cz.sl-audw{--hair:var(--cz-hair);--ink:var(--cz-ink);--ink-2:var(--cz-ink2);--ink-3:var(--cz-ink3);--ember:var(--cz-blue);--card:var(--cz-card);--card-solid:var(--cz-card);
|
|
258
277
|
--well:var(--cz-well);--solid:var(--cz-blueink);--on-solid:var(--cz-card);--spot:var(--cz-bluebg);--bad:var(--cz-red);--sans:var(--cz-sans);--mono:var(--cz-mono);--card-shadow:var(--cz-lift)}
|
|
259
278
|
/* the report slide kicker (ReportPanel.dc.html): 20px, 700 */
|
|
260
|
-
.sl-cv[data-th="report"] .r-kicker .sl-tx{display:inline-block;width:auto;height:auto;padding:6px 16px;border-radius:8px;background:var(--sso);color:var(--sfg);font-size:
|
|
279
|
+
.sl-cv[data-th="report"] .r-kicker .sl-tx{display:inline-block;width:auto;height:auto;padding:6px 16px;border-radius:8px;background:var(--sso);color:var(--sfg);font-size:var(--fs-5);font-weight:700;letter-spacing:.06em}
|
|
261
280
|
|
|
262
281
|
/* testing fixes: a phone zooms the page into any field typed in under 16 px, and the page then sits off the screen's right edge with
|
|
263
282
|
the keyboard open. On a touch screen every field is at least 16 px. */
|
|
264
283
|
@media (hover: none) and (pointer: coarse) {
|
|
265
|
-
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size:
|
|
284
|
+
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: var(--fs-4) !important; }
|
|
266
285
|
}
|
|
267
286
|
/* testing fixes: nothing may widen the page on a phone (a menu past the right edge made the whole page zoom out) */
|
|
268
287
|
/* on body only: an overflow set on html stops body.cz-home's overflow:hidden from reaching the viewport, and the whole page then scrolls */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* hi-pop.css — the initiative's popovers, menus and the toast with Undo (pm/hi-pop.js), the same on Home and the Board (feedback batch 14
|
|
2
2
|
* item 5). Moved out of home-ini.css, which Home loads after this sheet, so Home's phone rules still win. Every class starts with hi-. */
|
|
3
3
|
/* buttons, as the canvas draws them */
|
|
4
|
-
.hi-btn { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size:
|
|
4
|
+
.hi-btn { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-3); font-weight: 700; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); white-space: nowrap; cursor: pointer; }
|
|
5
5
|
.hi-btn svg { flex: none; }
|
|
6
|
-
.hi-btn.sm { height: 30px; padding: 0 11px; font-size:
|
|
6
|
+
.hi-btn.sm { height: 30px; padding: 0 11px; font-size: var(--fs-2); }
|
|
7
7
|
.hi-btn.dark { background: var(--cz-ink); border-color: transparent; color: var(--cz-card); }
|
|
8
8
|
.hi-btn.ghost { border-color: transparent; background: transparent; color: var(--cz-ink2); }
|
|
9
9
|
.hi-btn.ghost:hover { background: var(--cz-well); }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.hi-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
14
14
|
.hi-ib.sm { width: 28px; height: 28px; }
|
|
15
15
|
/* ── the popovers: Move anyway, Back, the menus ── */
|
|
16
|
-
.hi-pop { position: fixed; z-index: 90; left: var(--hi-x, 24px); top: var(--hi-y, 24px); width: 360px; max-width: calc(100vw - 24px); box-sizing: border-box; background: var(--cz-card); color: var(--cz-ink); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--cz-sans); font-size:
|
|
16
|
+
.hi-pop { position: fixed; z-index: 90; left: var(--hi-x, 24px); top: var(--hi-y, 24px); width: 360px; max-width: calc(100vw - 24px); box-sizing: border-box; background: var(--cz-card); color: var(--cz-ink); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--cz-sans); font-size: var(--fs-3); box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); }
|
|
17
17
|
.hi-pop.menu { width: 290px; padding: 8px; gap: 2px; }
|
|
18
18
|
.hi-pop.sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; border-radius: 28px 28px 0 0; padding: 10px 16px 28px; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.35); }
|
|
19
19
|
.hi-pop.sheet .hi-btn { height: 48px; justify-content: center; }
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
.hi-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--cz-c-d9dce1); align-self: center; margin-bottom: 4px; }
|
|
22
22
|
.hi-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(42,46,53,.18); }
|
|
23
23
|
.hi-pop p { margin: 0; }
|
|
24
|
-
.hi-h3 { font-size:
|
|
25
|
-
.hi-lbl { margin: 0; font-size:
|
|
26
|
-
.hi-small { margin: 0; font-size:
|
|
27
|
-
.hi-warn { background: var(--cz-riskbg); color: var(--cz-risk); border-radius: 14px; padding: 12px 14px; font-size:
|
|
24
|
+
.hi-h3 { font-size: var(--fs-4); font-weight: 800; }
|
|
25
|
+
.hi-lbl { margin: 0; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
|
|
26
|
+
.hi-small { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
27
|
+
.hi-warn { background: var(--cz-riskbg); color: var(--cz-risk); border-radius: 14px; padding: 12px 14px; font-size: var(--fs-2); }
|
|
28
28
|
.hi-field { display: flex; flex-direction: column; gap: 6px; }
|
|
29
|
-
.hi-field > span { font-size:
|
|
29
|
+
.hi-field > span { font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink2); }
|
|
30
30
|
.hi-field em { font-style: normal; font-weight: 600; color: var(--cz-ink3); }
|
|
31
|
-
.hi-field input, .hi-field textarea { box-sizing: border-box; width: 100%; border: 0; border-radius: 14px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size:
|
|
31
|
+
.hi-field input, .hi-field textarea { box-sizing: border-box; width: 100%; border: 0; border-radius: 14px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size: var(--fs-3); padding: 10px 14px; outline: 0; }
|
|
32
32
|
.hi-field input { height: 42px; }
|
|
33
33
|
.hi-field textarea { min-height: 56px; resize: vertical; }
|
|
34
34
|
.hi-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
.hi-chips .cz-chip[aria-pressed="true"] { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
37
37
|
.hi-cks { display: flex; flex-direction: column; gap: 4px; }
|
|
38
38
|
.hi-pop:not(.sheet) .hi-cks { display: none; } /* the card shows the items; the phone's sheet repeats them (InPhone) */
|
|
39
|
-
.hi-ck { display: flex; align-items: center; gap: 8px; font-size:
|
|
39
|
+
.hi-ck { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); color: var(--cz-ink2); padding: 2px 0; }
|
|
40
40
|
.hi-ck i { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--cz-c-c5c9d0); box-sizing: border-box; display: inline-grid; place-items: center; flex: none; color: var(--cz-card); }
|
|
41
41
|
.hi-ck.on i { background: var(--cz-ink); border-color: var(--cz-ink); }
|
|
42
|
-
.hi-mlbl { margin: 0; font-size:
|
|
42
|
+
.hi-mlbl { margin: 0; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); padding: 8px 12px 4px; }
|
|
43
43
|
.hi-hr { height: 1px; background: var(--cz-hair); margin: 4px 0; }
|
|
44
|
-
.hi-mi { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: inherit; font-size:
|
|
44
|
+
.hi-mi { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: inherit; font-size: var(--fs-3); font-weight: 600; color: var(--cz-ink); width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
|
|
45
45
|
.hi-mi:hover, .hi-mi.on { background: var(--cz-well); }
|
|
46
46
|
.hi-mi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
47
|
-
.hi-mi em { font-style: normal; margin-left: auto; font-size:
|
|
47
|
+
.hi-mi em { font-style: normal; margin-left: auto; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
48
48
|
.hi-mi:disabled { opacity: .45; cursor: default; }
|
|
49
49
|
.hi-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
50
50
|
|
|
51
51
|
/* the toast with Undo: info, so it does not move */
|
|
52
|
-
.hi-toast { position: fixed; z-index: 95; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); font-family: var(--cz-sans); font-size:
|
|
52
|
+
.hi-toast { position: fixed; z-index: 95; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); font-family: var(--cz-sans); font-size: var(--fs-3); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
|
|
53
53
|
.hi-toast[hidden] { display: none; }
|
|
54
54
|
.hi-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
55
55
|
.hi-toast button { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: inherit; font: inherit; font-weight: 700; cursor: pointer; flex: none; }
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
.hi-wfh { display: flex; align-items: center; gap: 8px; }
|
|
62
62
|
.hi-wfh .hi-h3 { flex: 1; min-width: 0; }
|
|
63
63
|
.hi-wfrows { display: flex; flex-direction: column; }
|
|
64
|
-
.hi-wfrow { display: grid; grid-template-columns: minmax(0, 130px) 14px minmax(0, 130px) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--cz-hair); font-size:
|
|
64
|
+
.hi-wfrow { display: grid; grid-template-columns: minmax(0, 130px) 14px minmax(0, 130px) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--cz-hair); font-size: var(--fs-3); }
|
|
65
65
|
.hi-wfrow:first-child { border-top: 0; }
|
|
66
66
|
.hi-wfrow span { min-width: 0; }
|
|
67
|
-
.hi-wfrow em { display: block; font-style: normal; font-size:
|
|
67
|
+
.hi-wfrow em { display: block; font-style: normal; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
68
68
|
.hi-wfland { display: flex; align-items: center; gap: 8px; }
|
|
69
69
|
.hi-wfland span { flex: 1; }
|
|
70
|
-
.hi-wfland select { font: inherit; font-size:
|
|
71
|
-
.hi-end { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cz-well); font-size:
|
|
70
|
+
.hi-wfland select { font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink); background: var(--cz-well); border: 0; border-radius: 10px; padding: 6px 10px; max-width: 60%; }
|
|
71
|
+
.hi-end { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cz-well); font-size: var(--fs-3); }
|
|
72
72
|
.hi-end p { margin: 0; flex: 1; min-width: 0; color: var(--cz-ink2); }
|
|
73
73
|
.hi-endi { display: inline-flex; color: var(--cz-ink3); }
|
|
74
74
|
@media (max-width: 760px) {
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
.hi-pop .wfi { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 6px; background: var(--cz-well); color: var(--cz-ink2); }
|
|
80
80
|
.hi-pop .wfi svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
81
81
|
/* a small form in the Viewer (the Board's Add a stakeholder) */
|
|
82
|
-
.hi-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size:
|
|
82
|
+
.hi-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size: var(--fs-3); color: var(--cz-ink); }
|
|
@@ -36,7 +36,8 @@ import { mountPhoneCard } from './home-phone-card.js';
|
|
|
36
36
|
import { mountFirst } from './premium-first.js';
|
|
37
37
|
import * as L from './home-list.js';
|
|
38
38
|
import * as TD from './home-today.js';
|
|
39
|
-
import * as YD from './home-day.js';
|
|
39
|
+
import * as YD from './home-day.js';
|
|
40
|
+
import * as AD from './cozy-adler.js'; // Adler, Claude's face (batch 16 item 2) // Your day in the Viewer (XvAPhDay)
|
|
40
41
|
import { canDictate, dictate } from './home-dictate.js';
|
|
41
42
|
import { mountIni, iniList, iniOverview, iniPage, iniAddTask } from './home-ini.js'; // the initiative's page, its stage move, Tasks and Core documents (premium-uncovered-features, HbC)
|
|
42
43
|
import * as MEN from './home-mentions.js'; // @Mentions, the permanent row at the top of Home and its Viewer (Viewer kit, XvANew)
|
|
@@ -294,19 +295,17 @@ function homeListHtml() {
|
|
|
294
295
|
pick: S.D.pick, tones: pickTones(), review: R, mic: canDictate(), phone: isPhone(), day: S.day, top: S.ready ? RECROW.html() + MEN.rowHtml(S.D, { sel: S.sel }) : '',
|
|
295
296
|
});
|
|
296
297
|
}
|
|
297
|
-
/** Your day (XvAPhDay, was the HvAOpen sheet)
|
|
298
|
-
*
|
|
298
|
+
/** Your day (XvAPhDay, was the HvAOpen sheet): "Good morning" opens it in the Viewer on a phone and a desktop alike (batch 16, Wawan: the same
|
|
299
|
+
* press must lead to the same place); the calendar is under ⋯. A phone also draws the moment card (TfPhone) as its Now section. */
|
|
299
300
|
function dayHtml() { return ''; }
|
|
300
301
|
function day(on) {
|
|
301
302
|
S.day = !!on;
|
|
302
303
|
if (!on) { const c = VW.current(); if (c && c.id === 'day') VW.close(); return; }
|
|
303
304
|
if (!S.M) return;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
if (!isPhone()) { S.day = false; openCalendar(); return; }
|
|
307
|
-
const Y = YD.dayModel(S.M, S.D, L.reviewModel(S.D, NOW()), NOW());
|
|
305
|
+
const Y = YD.dayModel(S.M, S.D, L.reviewModel(S.D, NOW()), NOW(), { delightOk: delightOk() && AD.mayCelebrate(NOW()) });
|
|
306
|
+
if (Y.mood === 'delighted') { try { localStorage.setItem(DELIGHT_KEY, new Date(NOW()).toDateString()); } catch { /* the face still shows */ } AD.celebrated(NOW()); }
|
|
308
307
|
const ph = isPhone() && PHC;
|
|
309
|
-
const P = YD.dayParts(Y, { moment: !!ph });
|
|
308
|
+
const P = YD.dayParts(Y, { moment: !!ph, now: NOW(), first: YD.firstOpenToday('day', NOW()) });
|
|
310
309
|
VW.open({ id: 'day', kind: 'Your day', title: 'Your day', icon: YD.DAY_ICON, more: [{ label: 'Open the calendar', on: () => openCalendar() }],
|
|
311
310
|
onClose: () => { S.day = false; },
|
|
312
311
|
render: (body) => {
|
|
@@ -314,11 +313,36 @@ function day(on) {
|
|
|
314
313
|
body.onclick = (e) => { // the rows are the list's own rows: the same presses open them
|
|
315
314
|
const b = e.target.closest('button'); if (!b) return;
|
|
316
315
|
if (b.dataset.hmSel) { select(b.dataset.hmSel); return; }
|
|
316
|
+
if (b.dataset.yd === 'sel') { const c = b.closest('.yd-call'); if (c) select(c.dataset.id); return; }
|
|
317
|
+
if (b.dataset.yd === 'retry' || b.dataset.yd === 'prep') { dayAct(b); return; }
|
|
317
318
|
if ('hmReview' in b.dataset) { openReviewVw(); return; }
|
|
318
319
|
if ('hdMeet' in b.dataset && Y.next) openMeeting(Y.next.meeting);
|
|
319
320
|
};
|
|
320
321
|
} });
|
|
321
322
|
}
|
|
323
|
+
/* Delighted shows at most once a week (canvas note ydEBuild): the day it last showed, kept in this browser. Another day of this week says no. */
|
|
324
|
+
const DELIGHT_KEY = 'pmos-yd-delight';
|
|
325
|
+
function delightOk() {
|
|
326
|
+
let last = null; try { last = localStorage.getItem(DELIGHT_KEY); } catch { return true; }
|
|
327
|
+
if (!last) return true;
|
|
328
|
+
const d = new Date(last), n = new Date(NOW());
|
|
329
|
+
if (Number.isNaN(d.getTime()) || d.toDateString() === n.toDateString()) return true;
|
|
330
|
+
const monday = (x) => { const y = new Date(x.getFullYear(), x.getMonth(), x.getDate()); y.setDate(y.getDate() - ((y.getDay() + 6) % 7)); return y.getTime(); };
|
|
331
|
+
return monday(d) !== monday(n);
|
|
332
|
+
}
|
|
333
|
+
/** Your day's two real presses: ✓ on Claude's miss runs that task again (POST /api/proactive/day/decide retry); ✓ on "I haven't prepared
|
|
334
|
+
* today yet" is Prepare my day (POST /api/proactive/goals/plan). Then the day is read again and Your day redrawn. */
|
|
335
|
+
async function dayAct(b) {
|
|
336
|
+
if (b.disabled) return;
|
|
337
|
+
b.disabled = true;
|
|
338
|
+
const prep = b.dataset.yd === 'prep';
|
|
339
|
+
const r = await (prep ? pmPost('/api/proactive/goals/plan', { ws: WS || boardWs() || undefined }) : pmPost('/api/proactive/day/decide', { task: b.dataset.id, action: 'retry' })).catch(() => null);
|
|
340
|
+
if (!r || r.ok === false) { b.disabled = false; toast('That did not go through' + (r && r.error ? ': ' + r.error : '.')); return; }
|
|
341
|
+
toast(prep ? 'I’m on it. Your day fills in as I finish.' : 'Running it again.');
|
|
342
|
+
const pd = await pmGet('/api/phone-day').catch(() => null);
|
|
343
|
+
if (pd && pd.ok) S.D.phoneDay = pd;
|
|
344
|
+
if (S.day) { const c = VW.current(); if (c && c.id === 'day') day(true); }
|
|
345
|
+
}
|
|
322
346
|
/* the list's filter (HvACDesk): Today, Kept or Done, behind the icon in the list's top bar */
|
|
323
347
|
function filterMenu(b) {
|
|
324
348
|
const M = S.M || L.homeList(S.D, { now: NOW() });
|
|
@@ -987,7 +1011,7 @@ function pickProduct(chip) {
|
|
|
987
1011
|
PP.openPicker(chip, { P: S.D.pick, label: 'Products on Home', tones: pickTones(), lines: pickLine, onApply: async (on) => { const r = await PP.savePick(on); if (!r.ok) toast(r.error); } });
|
|
988
1012
|
}
|
|
989
1013
|
// a saved pick (from this chip or Settings): Home shows and reads the ticked products
|
|
990
|
-
addEventListener('pp:changed', (e) => { if (WS) { location.assign('/premium.html'); return; } S.D.pick = e.detail; drawList(); toast('Saved. Home, Board and
|
|
1014
|
+
addEventListener('pp:changed', (e) => { if (WS) { location.assign('/premium.html'); return; } S.D.pick = e.detail; drawList(); toast('Saved. Home, Board and Intelligence show the products you picked.'); load(); });
|
|
991
1015
|
|
|
992
1016
|
/* ── the Viewer: needs rows, the weekly update, the overview, files, people, routines ── */
|
|
993
1017
|
let lastViewer = null;
|
|
@@ -32,6 +32,7 @@ import { splitChase, runStop, sweepLine, stopText } from './home-sweep.js';
|
|
|
32
32
|
import { splitFiles, filesHtml, sizeText, MAX_BYTES, MAX_FILES, setAttachSink } from './premium-attach.js';
|
|
33
33
|
import * as VWC from './cozy-viewer.js';
|
|
34
34
|
import { canDictate, dictate } from './home-dictate.js';
|
|
35
|
+
import { adler } from './cozy-adler.js';
|
|
35
36
|
/* The views a chat opens go in the Viewer: on a page with no dialog the old viewer's views draw in the cozy card (premium-viewer.js). */
|
|
36
37
|
const views = {
|
|
37
38
|
ctx: () => import('./premium-vw-ctx.js'), file: () => import('./premium-vw-file.js'), attach: () => import('./premium-attach.js'),
|
|
@@ -50,6 +51,11 @@ export function avHtml(role, size = 28, cls = '') {
|
|
|
50
51
|
return `<span class="hm-av t-${tintOf(k)} s${size}${k.length > 1 ? ' two' : ''}${cls ? ' ' + cls : ''}" aria-hidden="true">${k}</span>`;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
/** Adler is Claude's avatar once, on the latest reply, in that reply's mood (batch 16 item 2, canvas AdU1): needs you while it asks,
|
|
55
|
+
* honest when the run stopped, thinking while it runs, handled otherwise. Another role keeps its letter. */
|
|
56
|
+
const isClaude = (r) => !r || !r.key || r.key === 'claude';
|
|
57
|
+
export const adlerAvHtml = (mood) => `<span class="hm-av hm-adler" aria-hidden="true">${adler(mood, 36, { label: false, id: 'chat' })}</span>`;
|
|
58
|
+
|
|
53
59
|
export function mountChat(el, host) {
|
|
54
60
|
const esc = host.esc;
|
|
55
61
|
const C = { t: null, th: null, conv: null, timer: null, show: 12, plOpen: false, plAll: false, open: new Set(), seq: 0, sending: false, files: [], seenAt: null, lastKey: null, picked: {}, auto: { key: null, ctx: new Set(), rep: null, goal: null }, slashAt: 0 };
|
|
@@ -117,7 +123,8 @@ export function mountChat(el, host) {
|
|
|
117
123
|
const go = GU.blockOpts(it.mi, g.block, gl); // home-goal.js: the newest plan, the method menu, the editor in place
|
|
118
124
|
// a run that stopped: the divider sits where it finished, over Claude's last message, and the fix sits under it (canvas XcbOptions, Routine)
|
|
119
125
|
const stopAt = R.stop && i === R.lastAgent;
|
|
120
|
-
|
|
126
|
+
const av = last && isClaude(R.role) ? adlerAvHtml(asking || ak.block ? 'needs-you' : stopAt ? 'honest' : running() ? 'thinking' : 'handled') : avHtml(R.role);
|
|
127
|
+
return (stopAt ? dividerHtml({ tone: R.stop.tone, text: R.stop.text }) : '') + `<div class="hm-a${asking ? ' ask' : ''}">${av}<div class="hm-ab"><p class="hm-who">${esc(R.role.name)} <span>${esc(hm(it.at))}</span></p>${rp.text ? mdHtml(rp.text) : ''}${goalBlockHtml(go.block, go)}${reportChipHtml(rp.block, it.mi)}${R.chips(it.mi)}`
|
|
121
128
|
+ (asking ? '' : `<div class="hm-tools" role="group" aria-label="Message actions"><button type="button" data-hm-copy="${i}">Copy</button>${last && !running() && !(stopAt && R.stop.actions.length) ? `<button type="button" data-hm-retry>Retry</button>` : ''}<button type="button" data-hm-wi="${i}">Make a work-item</button></div>`) + '</div></div>'
|
|
122
129
|
+ (stopAt && R.stop.actions.length ? `<div class="hm-fix" role="group" aria-label="What to do next">${R.stop.actions.map((a, k) => iconBtn({ icon: a.icon, label: a.label, attr: a.data, pri: k === 0 })).join('')}</div>` : '')
|
|
123
130
|
+ blockAskHtml(ak.block, it, R);
|
|
@@ -190,7 +197,8 @@ export function mountChat(el, host) {
|
|
|
190
197
|
html += GU.choiceHtml(); // /goal while a goal works here: In a new chat, or Here instead
|
|
191
198
|
if (C.th && C.th.working) html += `<p class="hm-note" role="status">The agent is answering. You can write again when it has.</p>`;
|
|
192
199
|
if (C.conv && C.conv.state === 'ended') html += '<p class="hm-note">This session has ended. Your conversation is kept here, and your next message picks it up.</p>';
|
|
193
|
-
|
|
200
|
+
// an empty chat: Adler resting, because nothing runs here yet (canvas AdH1)
|
|
201
|
+
if (!html) html = `<div class="hm-empty hm-empty-ad">${adler('resting', 'l', { id: 'chatempty' })}<p>${esc(t.empty || 'Ask anything. It works in a real Claude Code session.')}</p></div>`;
|
|
194
202
|
put(log, html);
|
|
195
203
|
C.items = items;
|
|
196
204
|
GU.afterDraw(log);
|