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
|
@@ -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) {
|
|
@@ -6,6 +6,9 @@
|
|
|
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
8
|
:root{
|
|
9
|
+
/* 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
|
|
10
|
+
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. */
|
|
11
|
+
--fs-1: 11px; --fs-2: 12px; --fs-3: 14px; --fs-4: 16px; --fs-5: 20px; --fs-6: 28px;
|
|
9
12
|
/* The Agreed design's palette (premium-agreed-design): every colour the cozy sheets use, one token each, defined only here.
|
|
10
13
|
The light and dark .cz blocks and the page sheets (cozy-board, -home, -initiative, -viewer, bd-span.js) name these. */
|
|
11
14
|
--cz-c-17191c: #17191C;
|
|
@@ -131,7 +134,7 @@
|
|
|
131
134
|
--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
135
|
--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
136
|
}
|
|
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:
|
|
137
|
+
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
138
|
.cz .sky { display: none; }
|
|
136
139
|
/* 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
140
|
.cz nav.rail { display: none !important; }
|
|
@@ -143,7 +146,7 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
143
146
|
.cz-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
144
147
|
.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
148
|
.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:
|
|
149
|
+
.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
150
|
.cz-fabm a:hover, .cz-fabm button:hover { background: var(--cz-well); }
|
|
148
151
|
.cz-fabm [aria-current="page"] { background: var(--cz-bluebg); color: var(--cz-ink); font-weight: 700; }
|
|
149
152
|
.cz-fabm .cz-set { border-top: 1px solid var(--cz-hair); margin-top: 4px; border-radius: 0 0 14px 14px; }
|
|
@@ -161,29 +164,29 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
161
164
|
.cz-fabw { left: auto; right: 18px; bottom: 24px; align-items: flex-end; }
|
|
162
165
|
.cz-panel { margin: 0; border-radius: 0; min-height: 100vh; padding: 12px 12px 96px; box-shadow: none; }
|
|
163
166
|
.cz-top { display: flex; align-items: center; gap: 6px; min-height: 48px; }
|
|
164
|
-
.cz-top .cz-title { font-weight: 800; font-size:
|
|
167
|
+
.cz-top .cz-title { font-weight: 800; font-size: var(--fs-4); margin-left: 4px; margin-right: auto; }
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
/* ── 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:
|
|
171
|
+
.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
172
|
.cz-tabs { display: flex; gap: 2px; }
|
|
170
|
-
.cz-tab { height: 34px; padding: 0 13px; border-radius: 999px; font: inherit; font-size:
|
|
173
|
+
.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
174
|
.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:
|
|
175
|
+
.cz-tab .n { font-weight: 600; color: var(--cz-ink3); font-size: var(--fs-2); }
|
|
173
176
|
.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
177
|
.cz-ib:hover { background: var(--cz-well); }
|
|
175
178
|
.cz-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
176
179
|
.cz-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
177
180
|
.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:
|
|
181
|
+
.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
182
|
.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
183
|
.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:
|
|
184
|
+
.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
185
|
.cz-chip:hover { background: var(--cz-well); }
|
|
183
186
|
.cz-chip.gh { border-color: transparent; background: transparent; padding: 0 8px; }
|
|
184
187
|
.cz-chip.on { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
185
188
|
.cz-chip b { font-weight: 800; color: var(--cz-ink); }
|
|
186
|
-
.cz-pill { display: inline-flex; align-items: center; gap: 5px; font-size:
|
|
189
|
+
.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
190
|
.cz-pill.late { background: var(--cz-latebg); color: var(--cz-late); } .cz-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
188
191
|
.cz-pill.q { background: var(--cz-well); color: var(--cz-ink3); } .cz-pill.you { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
189
192
|
.cz-pill.red { background: var(--cz-redbg); color: var(--cz-red); } .cz-pill.risk { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
@@ -226,9 +229,9 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
226
229
|
.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
230
|
.cz-vw-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
228
231
|
.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:
|
|
232
|
+
.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
233
|
.cz-vw-kind:empty { display: none; }
|
|
231
|
-
.cz-vw-title { margin: 0; min-width: 0; font-size:
|
|
234
|
+
.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
235
|
.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
236
|
.cz-vw-ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
234
237
|
.cz-vw-ib[data-cz-vw="close"] svg { stroke-width: 2; }
|
|
@@ -248,8 +251,8 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
248
251
|
.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
252
|
.cz-ph-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
250
253
|
.cz-ph-t { min-width: 0; }
|
|
251
|
-
.cz-ph-l { margin: 0; font-size:
|
|
252
|
-
.cz-ph-n { margin: 2px 0 0; font-size:
|
|
254
|
+
.cz-ph-l { margin: 0; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink2); }
|
|
255
|
+
.cz-ph-n { margin: 2px 0 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
253
256
|
|
|
254
257
|
/* ── slide editor on the cozy pages (moved from premium-vw-slides.css, which stays on the console type scale) ── */
|
|
255
258
|
/* ── the cozy pages (premium-agreed-design, area viewer): the console tokens this sheet names, mapped to the cozy tokens of cozy.css,
|
|
@@ -257,12 +260,12 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
257
260
|
.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
261
|
--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
262
|
/* 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:
|
|
263
|
+
.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
264
|
|
|
262
265
|
/* 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
266
|
the keyboard open. On a touch screen every field is at least 16 px. */
|
|
264
267
|
@media (hover: none) and (pointer: coarse) {
|
|
265
|
-
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size:
|
|
268
|
+
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: var(--fs-4) !important; }
|
|
266
269
|
}
|
|
267
270
|
/* testing fixes: nothing may widen the page on a phone (a menu past the right edge made the whole page zoom out) */
|
|
268
271
|
/* 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 */
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
* 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
|
+
/* 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: 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
|
+
.hi-btn svg { flex: none; }
|
|
6
|
+
.hi-btn.sm { height: 30px; padding: 0 11px; font-size: var(--fs-2); }
|
|
7
|
+
.hi-btn.dark { background: var(--cz-ink); border-color: transparent; color: var(--cz-card); }
|
|
8
|
+
.hi-btn.ghost { border-color: transparent; background: transparent; color: var(--cz-ink2); }
|
|
9
|
+
.hi-btn.ghost:hover { background: var(--cz-well); }
|
|
10
|
+
.hi-btn:disabled { opacity: .45; cursor: default; }
|
|
11
|
+
.hi-ib { width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; background: none; color: var(--cz-ink2); cursor: pointer; }
|
|
12
|
+
.hi-ib:hover { background: var(--cz-well2); }
|
|
13
|
+
.hi-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
14
|
+
.hi-ib.sm { width: 28px; height: 28px; }
|
|
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: var(--fs-3); box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); }
|
|
17
|
+
.hi-pop.menu { width: 290px; padding: 8px; gap: 2px; }
|
|
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
|
+
.hi-pop.sheet .hi-btn { height: 48px; justify-content: center; }
|
|
20
|
+
.hi-pop.sheet .hi-acts { flex-direction: column; align-items: stretch; }
|
|
21
|
+
.hi-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--cz-c-d9dce1); align-self: center; margin-bottom: 4px; }
|
|
22
|
+
.hi-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(42,46,53,.18); }
|
|
23
|
+
.hi-pop p { margin: 0; }
|
|
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
|
+
.hi-field { display: flex; flex-direction: column; gap: 6px; }
|
|
29
|
+
.hi-field > span { font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink2); }
|
|
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: var(--fs-3); padding: 10px 14px; outline: 0; }
|
|
32
|
+
.hi-field input { height: 42px; }
|
|
33
|
+
.hi-field textarea { min-height: 56px; resize: vertical; }
|
|
34
|
+
.hi-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
35
|
+
.hi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
36
|
+
.hi-chips .cz-chip[aria-pressed="true"] { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
37
|
+
.hi-cks { display: flex; flex-direction: column; gap: 4px; }
|
|
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: var(--fs-2); color: var(--cz-ink2); padding: 2px 0; }
|
|
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
|
+
.hi-ck.on i { background: var(--cz-ink); border-color: var(--cz-ink); }
|
|
42
|
+
.hi-mlbl { margin: 0; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); padding: 8px 12px 4px; }
|
|
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: var(--fs-3); font-weight: 600; color: var(--cz-ink); width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
|
|
45
|
+
.hi-mi:hover, .hi-mi.on { background: var(--cz-well); }
|
|
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: var(--fs-2); color: var(--cz-ink3); font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
48
|
+
.hi-mi:disabled { opacity: .45; cursor: default; }
|
|
49
|
+
.hi-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
50
|
+
|
|
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: var(--fs-3); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
|
|
53
|
+
.hi-toast[hidden] { display: none; }
|
|
54
|
+
.hi-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
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; }
|
|
56
|
+
.hi-pop.wide:not(.sheet) { width: 560px; }
|
|
57
|
+
.hi-pop.menu .hi-mi .wfi { margin-left: -2px; }
|
|
58
|
+
.hi-wfpad { padding: 4px 12px 6px; }
|
|
59
|
+
.hi-wfchain { line-height: 1.5; }
|
|
60
|
+
.hi-mut { color: var(--cz-ink3); }
|
|
61
|
+
.hi-wfh { display: flex; align-items: center; gap: 8px; }
|
|
62
|
+
.hi-wfh .hi-h3 { flex: 1; min-width: 0; }
|
|
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: var(--fs-3); }
|
|
65
|
+
.hi-wfrow:first-child { border-top: 0; }
|
|
66
|
+
.hi-wfrow span { min-width: 0; }
|
|
67
|
+
.hi-wfrow em { display: block; font-style: normal; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
68
|
+
.hi-wfland { display: flex; align-items: center; gap: 8px; }
|
|
69
|
+
.hi-wfland span { flex: 1; }
|
|
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
|
+
.hi-end p { margin: 0; flex: 1; min-width: 0; color: var(--cz-ink2); }
|
|
73
|
+
.hi-endi { display: inline-flex; color: var(--cz-ink3); }
|
|
74
|
+
@media (max-width: 760px) {
|
|
75
|
+
.hi-wfrow { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); }
|
|
76
|
+
.hi-wfrow > .hi-small { grid-column: 1 / -1; }
|
|
77
|
+
.hi-end { flex-wrap: wrap; }
|
|
78
|
+
}
|
|
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
|
+
.hi-pop .wfi svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
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: var(--fs-3); color: var(--cz-ink); }
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* pm/hi-pop.js — the initiative's small popovers and the toast with Undo, the same on Home and the Board (feedback batch 14 item 5).
|
|
2
|
+
* Home's initiative page drew them first (home-ini.js); the one ⋯ menu (pm/ini-more.js) opens them on the Board too, so they live here.
|
|
3
|
+
*
|
|
4
|
+
* ensureCss() adds hi-pop.css once, before home-ini.css, so Home's phone rules still win
|
|
5
|
+
* openPop(anchor, kind, html, onClick, o?) a dialog (or o.menu: a menu) under the button that opened it; a sheet on a phone.
|
|
6
|
+
* o: { menu, wide, role, label, focus, sheetFocus }. → the popover element
|
|
7
|
+
* closePop() · popEl() the open popover, or null
|
|
8
|
+
* undoToast(text, undo) the dark toast with Undo, for 9 seconds */
|
|
9
|
+
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
10
|
+
const PHONE = 760;
|
|
11
|
+
const isPhone = () => innerWidth <= PHONE;
|
|
12
|
+
const P = { pop: null, toastT: 0 };
|
|
13
|
+
|
|
14
|
+
export function ensureCss() {
|
|
15
|
+
if (typeof document === 'undefined' || document.querySelector('link[data-hi-pop-css]')) return;
|
|
16
|
+
const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./hi-pop.css', import.meta.url).href; l.dataset.hiPopCss = '';
|
|
17
|
+
const home = document.querySelector('link[data-hi-css]');
|
|
18
|
+
if (home) home.before(l); else document.head.appendChild(l);
|
|
19
|
+
}
|
|
20
|
+
export const popEl = () => (P.pop ? P.pop.el : null);
|
|
21
|
+
export function closePop() {
|
|
22
|
+
if (!P.pop) return;
|
|
23
|
+
const a = P.pop.anchor; P.pop.el.remove(); if (P.pop.scrim) P.pop.scrim.remove(); P.pop = null;
|
|
24
|
+
if (a && a.isConnected) { a.setAttribute('aria-expanded', 'false'); try { a.focus(); } catch { /* gone */ } }
|
|
25
|
+
}
|
|
26
|
+
export function openPop(anchor, kind, html, onClick, o = {}) {
|
|
27
|
+
ensureCss();
|
|
28
|
+
closePop();
|
|
29
|
+
const el = document.createElement('div');
|
|
30
|
+
const sheet = isPhone() && !o.menu;
|
|
31
|
+
el.className = 'cz hi-pop' + (sheet ? ' sheet' : '') + (o.menu ? ' menu' : '') + (o.wide ? ' wide' : '');
|
|
32
|
+
el.setAttribute('role', o.role || (o.menu ? 'menu' : 'dialog')); el.setAttribute('aria-label', o.label || ''); el.setAttribute('data-esc-layer', '');
|
|
33
|
+
el.innerHTML = (sheet ? '<div class="hi-grab" aria-hidden="true"></div>' : '') + html;
|
|
34
|
+
let scrim = null;
|
|
35
|
+
if (sheet) { scrim = document.createElement('div'); scrim.className = 'hi-scrim'; scrim.onclick = closePop; document.body.appendChild(scrim); }
|
|
36
|
+
document.body.appendChild(el);
|
|
37
|
+
if (!sheet) { // under the button that opened it, kept inside the window: run-time geometry, set as two custom properties
|
|
38
|
+
const r = anchor.getBoundingClientRect(), w = el.offsetWidth, hh = el.offsetHeight;
|
|
39
|
+
const col = !o.menu && anchor.closest('#hmList'); // a dialog from the list column opens beside the column (InStage), not over it
|
|
40
|
+
let x, y;
|
|
41
|
+
if (col) { const c = col.getBoundingClientRect(); x = c.right + 12; y = Math.min(innerHeight - hh - 12, Math.max(12, r.top - 60)); }
|
|
42
|
+
else { x = r.left + w > innerWidth - 12 ? r.right - w : r.left; y = r.bottom + 8 + hh > innerHeight - 12 ? r.top - hh - 8 : r.bottom + 8; }
|
|
43
|
+
x = Math.max(12, Math.min(innerWidth - w - 12, x)); y = Math.max(12, y);
|
|
44
|
+
el.style.setProperty('--hi-x', Math.round(x) + 'px'); el.style.setProperty('--hi-y', Math.round(y) + 'px');
|
|
45
|
+
}
|
|
46
|
+
anchor.setAttribute('aria-expanded', 'true');
|
|
47
|
+
P.pop = { el, scrim, anchor, kind };
|
|
48
|
+
el.addEventListener('click', (e) => { const b = e.target.closest('button'); if (b && !b.disabled) onClick(b, el); });
|
|
49
|
+
el.addEventListener('keydown', (e) => { if (e.key === 'Escape') { e.stopPropagation(); e.preventDefault(); closePop(); } });
|
|
50
|
+
const f = el.querySelector((sheet && o.sheetFocus) || o.focus || 'input, textarea, button:not([disabled])'); if (f) setTimeout(() => f.focus(), 0);
|
|
51
|
+
return el;
|
|
52
|
+
}
|
|
53
|
+
export function undoToast(text, undo) {
|
|
54
|
+
ensureCss();
|
|
55
|
+
let el = document.getElementById('hiToast');
|
|
56
|
+
if (!el) { el = document.createElement('div'); el.id = 'hiToast'; el.className = 'hi-toast'; el.setAttribute('role', 'status'); el.setAttribute('aria-live', 'polite'); document.body.appendChild(el); }
|
|
57
|
+
el.innerHTML = `<span>${esc(text)}</span><button type="button" data-hi-undo>Undo</button>`;
|
|
58
|
+
el.hidden = false; el.classList.add('on');
|
|
59
|
+
el.querySelector('[data-hi-undo]').onclick = () => { hide(); undo(); };
|
|
60
|
+
const hide = () => { el.classList.remove('on'); el.hidden = true; };
|
|
61
|
+
clearTimeout(P.toastT); P.toastT = setTimeout(hide, 9000);
|
|
62
|
+
}
|
|
63
|
+
// Escape closes the popover first: on window in the capture phase, so the page's own Escape (the phone's list sheet, the Viewer) waits for the next press
|
|
64
|
+
if (typeof window !== 'undefined' && typeof window.addEventListener === 'function') window.addEventListener('keydown', (e) => { if (e.key === 'Escape' && P.pop) { e.stopPropagation(); e.preventDefault(); closePop(); } }, true);
|
|
65
|
+
if (typeof document !== 'undefined') document.addEventListener('mousedown', (e) => { if (P.pop && !P.pop.el.contains(e.target) && !(P.pop.anchor && P.pop.anchor.contains(e.target)) && !(P.pop.scrim && P.pop.scrim === e.target)) closePop(); }, true);
|
|
@@ -45,6 +45,7 @@ import { mountSesName } from './home-ses-name.js'; // session names A: tap the
|
|
|
45
45
|
import * as SM from './split-merge.js'; // split one initiative in two, or merge two: Claude suggests, the PM approves (batch 11 item 14)
|
|
46
46
|
import * as PM from './prog-move.js'; // move an initiative out of its program, or to another (canvas LpA1More, LpA2Other, LpA4Phone)
|
|
47
47
|
import * as CW from './ctx-wedge.js'; // how full a session's context is, and Claude's ✦ Compact (batch 13 item 8, XctxA1Desk)
|
|
48
|
+
import * as SO from './sort-order.js'; // the sort button and ONE order with the Board (batch 14 item 8, canvas SoAHomePhone)
|
|
48
49
|
import * as PO from './prog-order.js'; // a program's order on Home: the grip, hold-then-drag on a phone, ✦ Claude's order from the dates (canvas RoAPhone)
|
|
49
50
|
import * as LPV from './loose-props.js'; // Claude's clean-up of "Not in an initiative": the ✦ on its header and the Viewer (batch 13 item 3)
|
|
50
51
|
import { initiativeRename, taskRename } from './rename-press.js'; // tap the title to rename (canvas RnATask, RnASaved) // the pinned recording row above it (XvARecHome)
|
|
@@ -160,7 +161,7 @@ async function load() {
|
|
|
160
161
|
const [brief, board, ses, desk, today, sch, work, day, rev, progs, , pick] = await Promise.all([
|
|
161
162
|
getRetry('/api/briefing-premium' + wsQ()), getRetry('/api/board-premium' + wsQ() + boardQ(WS ? '&' : '?')), pmGet('/api/sessions'), pmGet('/api/home-desk' + wsQ()),
|
|
162
163
|
pmGet('/api/brief-page' + wsQ()), pmGet('/api/schedules' + wsQ()), pmGet('/api/my-work-premium' + wsQ()), pmGet('/api/phone-day'), pmGet('/api/home-review' + wsQ()),
|
|
163
|
-
pmGet('/api/programs'), MEN.load(menCtx()), PP.readPick(),
|
|
164
|
+
pmGet('/api/programs'), MEN.load(menCtx()), PP.readPick(), SO.load(),
|
|
164
165
|
]);
|
|
165
166
|
const D = S.D;
|
|
166
167
|
D.brief = brief && brief.ok && brief.model ? brief.model : null;
|
|
@@ -173,6 +174,7 @@ async function load() {
|
|
|
173
174
|
D.phoneDay = day && day.ok ? day : null; // what finished today, the recap and tomorrow (the end-of-day card, the Done filter)
|
|
174
175
|
D.review = rev && rev.ok ? rev : null; // this week's review (GET /api/home-review)
|
|
175
176
|
D.programs = progs && progs.ok ? progs.programs : []; // programs above initiatives, across products (GET /api/programs)
|
|
177
|
+
D.order = SO.layout(); // the PM's sort and own order, shared with the Board (batch 14 item 8)
|
|
176
178
|
D.pick = pick || D.pick || null; // the one product pick (the chip): which products are on Home and read
|
|
177
179
|
if (D.pick && WS) D.pick = { ...D.pick, products: D.pick.products.map((p) => ({ ...p, on: p.ws === WS })) }; // ?ws= is a one-off view of that product
|
|
178
180
|
D.now = Date.now();
|
|
@@ -292,14 +294,18 @@ function homeListHtml() {
|
|
|
292
294
|
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 }) : '',
|
|
293
295
|
});
|
|
294
296
|
}
|
|
295
|
-
/** Your day (XvAPhDay, was the HvAOpen sheet): "Good morning" opens it in the Viewer,
|
|
296
|
-
*
|
|
297
|
+
/** Your day (XvAPhDay, was the HvAOpen sheet), a phone only: "Good morning" opens it in the Viewer, full screen; the moment card (TfPhone) is
|
|
298
|
+
* its Now section, and the calendar is under ⋯. On a desktop "Good morning" opens the calendar (batch 14 item 4). */
|
|
297
299
|
function dayHtml() { return ''; }
|
|
298
300
|
function day(on) {
|
|
299
301
|
S.day = !!on;
|
|
300
302
|
if (!on) { const c = VW.current(); if (c && c.id === 'day') VW.close(); return; }
|
|
301
303
|
if (!S.M) return;
|
|
302
|
-
|
|
304
|
+
// a desktop has no Your day any more (batch 14 item 4): the greeting opens the calendar in the Viewer; the list already holds every next step.
|
|
305
|
+
// A phone keeps Your day: its moment card (TfPhone) lives there
|
|
306
|
+
if (!isPhone()) { S.day = false; openCalendar(); return; }
|
|
307
|
+
const Y = YD.dayModel(S.M, S.D, L.reviewModel(S.D, NOW()), NOW(), { delightOk: delightOk() });
|
|
308
|
+
if (Y.mood === 'delighted') { try { localStorage.setItem(DELIGHT_KEY, new Date(NOW()).toDateString()); } catch { /* the face still shows */ } }
|
|
303
309
|
const ph = isPhone() && PHC;
|
|
304
310
|
const P = YD.dayParts(Y, { moment: !!ph });
|
|
305
311
|
VW.open({ id: 'day', kind: 'Your day', title: 'Your day', icon: YD.DAY_ICON, more: [{ label: 'Open the calendar', on: () => openCalendar() }],
|
|
@@ -309,11 +315,36 @@ function day(on) {
|
|
|
309
315
|
body.onclick = (e) => { // the rows are the list's own rows: the same presses open them
|
|
310
316
|
const b = e.target.closest('button'); if (!b) return;
|
|
311
317
|
if (b.dataset.hmSel) { select(b.dataset.hmSel); return; }
|
|
318
|
+
if (b.dataset.yd === 'sel') { const c = b.closest('.yd-call'); if (c) select(c.dataset.id); return; }
|
|
319
|
+
if (b.dataset.yd === 'retry' || b.dataset.yd === 'prep') { dayAct(b); return; }
|
|
312
320
|
if ('hmReview' in b.dataset) { openReviewVw(); return; }
|
|
313
321
|
if ('hdMeet' in b.dataset && Y.next) openMeeting(Y.next.meeting);
|
|
314
322
|
};
|
|
315
323
|
} });
|
|
316
324
|
}
|
|
325
|
+
/* 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. */
|
|
326
|
+
const DELIGHT_KEY = 'pmos-yd-delight';
|
|
327
|
+
function delightOk() {
|
|
328
|
+
let last = null; try { last = localStorage.getItem(DELIGHT_KEY); } catch { return true; }
|
|
329
|
+
if (!last) return true;
|
|
330
|
+
const d = new Date(last), n = new Date(NOW());
|
|
331
|
+
if (Number.isNaN(d.getTime()) || d.toDateString() === n.toDateString()) return true;
|
|
332
|
+
const monday = (x) => { const y = new Date(x.getFullYear(), x.getMonth(), x.getDate()); y.setDate(y.getDate() - ((y.getDay() + 6) % 7)); return y.getTime(); };
|
|
333
|
+
return monday(d) !== monday(n);
|
|
334
|
+
}
|
|
335
|
+
/** 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
|
|
336
|
+
* today yet" is Prepare my day (POST /api/proactive/goals/plan). Then the day is read again and Your day redrawn. */
|
|
337
|
+
async function dayAct(b) {
|
|
338
|
+
if (b.disabled) return;
|
|
339
|
+
b.disabled = true;
|
|
340
|
+
const prep = b.dataset.yd === 'prep';
|
|
341
|
+
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);
|
|
342
|
+
if (!r || r.ok === false) { b.disabled = false; toast('That did not go through' + (r && r.error ? ': ' + r.error : '.')); return; }
|
|
343
|
+
toast(prep ? 'I’m on it. Your day fills in as I finish.' : 'Running it again.');
|
|
344
|
+
const pd = await pmGet('/api/phone-day').catch(() => null);
|
|
345
|
+
if (pd && pd.ok) S.D.phoneDay = pd;
|
|
346
|
+
if (S.day) { const c = VW.current(); if (c && c.id === 'day') day(true); }
|
|
347
|
+
}
|
|
317
348
|
/* the list's filter (HvACDesk): Today, Kept or Done, behind the icon in the list's top bar */
|
|
318
349
|
function filterMenu(b) {
|
|
319
350
|
const M = S.M || L.homeList(S.D, { now: NOW() });
|
|
@@ -694,12 +725,24 @@ function productTarget() {
|
|
|
694
725
|
context: 'Product ' + name + '. ' + C.of + (C.items.length ? ': ' + C.items.map((x) => x.label).join('; ') : '') + '.', also: null };
|
|
695
726
|
}
|
|
696
727
|
/** The list's key of the board's own product group ('p:<key>'): its heading shows as selected while the product's page is open. */
|
|
728
|
+
/** Tap the product's name in its page's header to rename it (batch 14 item 9, the rename press RnA* agreed for programs, initiatives and
|
|
729
|
+
* tasks): POST /api/workspaces/rename keeps the PM's name for the repository (its id does not move), so Home, the Board and the pick
|
|
730
|
+
* show it. Undo puts the old name back. A product with no workspace id has no press. */
|
|
731
|
+
const productRename = (ws, name, vid) => (ws ? { value: name, max: 80, save: async (t) => {
|
|
732
|
+
let r = null; try { r = await pmPost('/api/workspaces/rename', { id: ws, name: t }); } catch { r = null; }
|
|
733
|
+
if (!r || !r.ok) return { ok: false, error: (r && r.error) || 'The name could not be saved.' };
|
|
734
|
+
toastUndo('Renamed', async () => { let u = null; try { u = await pmPost('/api/workspaces/rename', { id: ws, name }); } catch { u = null; } if (u && u.ok) { VW.retitle(vid, name); load(); } return u && u.ok ? { ok: true } : { ok: false, error: 'The old name could not be put back.' }; });
|
|
735
|
+
load();
|
|
736
|
+
return { ok: true, title: t };
|
|
737
|
+
} } : null);
|
|
738
|
+
/** The name Home shows for the board's own product: its group's name (the PM's name for the repository wins), else the board's. */
|
|
739
|
+
const ownProductName = () => { const g = ((S.M && S.M.groups) || []).find((x) => x.kind === 'product' && x.primary); return (g && g.name) || H.productName(S.D); };
|
|
697
740
|
const productKey = () => { const g = ((S.M && S.M.groups) || []).find((x) => x.kind === 'product' && x.primary); return g ? g.key : null; };
|
|
698
741
|
/** The product's page in the Viewer (HbCProduct): Goals, the KRs and budgets with what is at risk, and This week, the weekly update and the
|
|
699
742
|
* metrics review. A press opens that one; ← comes back to the page. */
|
|
700
743
|
function openProductPage() {
|
|
701
|
-
const name =
|
|
702
|
-
VW.open({ id: 'product', kind: 'Product', title: name, icon: 'chart',
|
|
744
|
+
const name = ownProductName();
|
|
745
|
+
VW.open({ id: 'product', kind: 'Product', title: name, icon: 'chart', rename: productRename(boardWs(), name, 'product'),
|
|
703
746
|
render: (b) => {
|
|
704
747
|
const C = H.productCard(S.D, S.D.now), U = H.weeklyUpdate(S.D, S.D.now), sent = (U.sent || []).some((x) => x.week === U.week.iso);
|
|
705
748
|
const goals = C.items.map((x) => itemHtml({ kind: x.kind === 'ok' ? 'done' : 'risk', label: x.label })).join('') || '<p class="hm-none">No KR or budget is anchored on this board.</p>';
|
|
@@ -818,11 +861,12 @@ async function goIni(id, o = {}) {
|
|
|
818
861
|
S.ini = id; S.sel = null; S.head = id === 'product' ? productKey() : null; S.doneOpen = false; S.stepsMore = false;
|
|
819
862
|
if (was !== id) { S.IM = null; S.IMid = null; }
|
|
820
863
|
if (isPhone()) sheet(false);
|
|
821
|
-
syncUrl();
|
|
822
864
|
drawList();
|
|
823
|
-
|
|
865
|
+
// the address follows the page, so the entry before it (the trail's start, batch 14 item 7) keeps Home's own address
|
|
866
|
+
if (id === 'product') { openTarget(productTarget()); if (o.page !== false) { pushPage(); openProductPage(); } syncUrl(); return; }
|
|
824
867
|
openTarget(iniTarget(id));
|
|
825
868
|
if (o.page !== false) { pushPage(); iniPage(); }
|
|
869
|
+
syncUrl();
|
|
826
870
|
await loadIni();
|
|
827
871
|
if (S.ini !== id) return;
|
|
828
872
|
drawList(); openTarget(iniTarget(id));
|
|
@@ -841,7 +885,7 @@ function goOtherProduct(g) {
|
|
|
841
885
|
openTarget(t);
|
|
842
886
|
pushPage();
|
|
843
887
|
const own = '/premium.html?ws=' + encodeURIComponent(ws) + '&ini=product';
|
|
844
|
-
VW.open({ id: 'product:' + ws, kind: 'Product', title: name, icon: 'chart',
|
|
888
|
+
VW.open({ id: 'product:' + ws, kind: 'Product', title: name, icon: 'chart', rename: productRename(ws, name, 'product:' + ws),
|
|
845
889
|
render: (b) => {
|
|
846
890
|
const goals = C.items.map((x) => itemHtml({ kind: x.kind === 'ok' ? 'done' : 'risk', label: x.label })).join('') || '<p class="hm-none">No KR or budget is anchored on this board.</p>';
|
|
847
891
|
b.innerHTML = `<div class="hi-v hi-page"><section class="hi-pg" aria-label="Goals"><div class="hi-pgh"><b>Goals</b><span class="hi-n">${esc(C.of)}</span></div>${goals}</section>`
|
|
@@ -862,12 +906,11 @@ function goProgram(id) {
|
|
|
862
906
|
programPanel().then(() => { if (S.head === 'g:' + id) document.dispatchEvent(new CustomEvent('bd:program', { detail: { id } })); }).catch(() => toast('The program could not open.'));
|
|
863
907
|
}
|
|
864
908
|
function goHome() { S.ini = null; S.sel = null; S.IM = null; S.head = null; S.phoneChat = false; syncUrl(); drawList(); openTarget(homeTarget()); }
|
|
865
|
-
/* The browser's Back closes the page a name opened (HbC)
|
|
866
|
-
* was. Close (×, Escape) takes the
|
|
867
|
-
let
|
|
868
|
-
function pushPage() {
|
|
869
|
-
|
|
870
|
-
VW.onChange((d) => { if (!d.open && pushed) { pushed = false; history.back(); } });
|
|
909
|
+
/* The browser's Back closes the page a name opened (HbC). The Viewer keeps the one trail and its history entries (batch 14 item 7): Back
|
|
910
|
+
* at the trail's first item closes it, and Home is then as it was. Close (×, Escape) takes the entries off and keeps the initiative's chat. */
|
|
911
|
+
let paged = false;
|
|
912
|
+
function pushPage() { paged = true; }
|
|
913
|
+
VW.onChange((d) => { if (!d.open && paged) { paged = false; if (d.via === 'history') goHome(); } }); // × keeps the initiative's chat
|
|
871
914
|
function syncUrl() {
|
|
872
915
|
const q = new URLSearchParams(location.search);
|
|
873
916
|
['ini', 'open', 'item', 'session', 'ask', 'say', 'q', 'about', 'label', 'meeting', 'id', 'view', 'vk', 'vid'].forEach((k) => { if (!(k === 'open' && /^(report|chart|dashboard):/.test(q.get('open') || ''))) q.delete(k); });
|
|
@@ -876,7 +919,7 @@ function syncUrl() {
|
|
|
876
919
|
if (r && r.kind === 'ptask') q.set('item', r.id); // a program task: pt:<program>:<key>, the link the program panel makes
|
|
877
920
|
else if (r && r.key && r.kind !== 'session') q.set('open', r.key); else if (r && r.sid) q.set('session', r.sid);
|
|
878
921
|
const s = q.toString();
|
|
879
|
-
|
|
922
|
+
VW.replaceUrl(location.pathname + (s ? '?' + s : '')); // after the history settles, so it lands on the entry Home shows
|
|
880
923
|
}
|
|
881
924
|
|
|
882
925
|
/* ── the one list's own views: a task, a mention, finished work, the weekly review (premium-uncovered-features) ── */
|
|
@@ -920,7 +963,7 @@ function openReviewVw() {
|
|
|
920
963
|
},
|
|
921
964
|
}));
|
|
922
965
|
}
|
|
923
|
-
/* New →
|
|
966
|
+
/* New → Task: in the open initiative, else the PM names the initiative. An initiative's task is added in its page's Tasks field, the cursor in it (XtaA4NewTask);
|
|
924
967
|
* "Not in an initiative" opens the capture box in the list, on the PM's own list (POST /api/pm-items/add). The box is not on Home otherwise. */
|
|
925
968
|
async function addTaskIn(id) {
|
|
926
969
|
if (!id) { S.cap = true; drawList(); const i = $('#hmCap'); if (i) i.focus(); return; }
|
|
@@ -970,7 +1013,7 @@ function pickProduct(chip) {
|
|
|
970
1013
|
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); } });
|
|
971
1014
|
}
|
|
972
1015
|
// a saved pick (from this chip or Settings): Home shows and reads the ticked products
|
|
973
|
-
addEventListener('pp:changed', (e) => { if (WS) { location.assign('/premium.html'); return; } S.D.pick = e.detail; drawList(); toast('Saved. Home, Board and
|
|
1016
|
+
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(); });
|
|
974
1017
|
|
|
975
1018
|
/* ── the Viewer: needs rows, the weekly update, the overview, files, people, routines ── */
|
|
976
1019
|
let lastViewer = null;
|
|
@@ -1321,21 +1364,32 @@ function recLive() {
|
|
|
1321
1364
|
}
|
|
1322
1365
|
|
|
1323
1366
|
/* ── New, end, kids ── */
|
|
1367
|
+
/* New (batch 14 item 10, canvas PmA*): four kinds, an icon and one word each, the Board's New in the same look. Each lands where the PM is:
|
|
1368
|
+
* the open initiative, else the open product's chat, else Home (a task asks where, "Not in an initiative" first; a chat is loose, linked
|
|
1369
|
+
* later). The place shows on the right, quiet. Quick ask and "Next step of an initiative" went: Home's chat box is always there, and the
|
|
1370
|
+
* list's rows already open where a next step waits. Initiative opens the Board's New initiative panel (?new=initiative), in that product. */
|
|
1371
|
+
const NEW_ICON = { task: 'M5 5h14v14H5zM9 12l2 2 4-4', ini: 'M12 4a8 8 0 1 0 0 16a8 8 0 1 0 0-16M12 9a3 3 0 1 0 0 6a3 3 0 1 0 0-6' };
|
|
1324
1372
|
function newItems() {
|
|
1325
1373
|
const here = S.ini && S.ini !== 'product' ? S.ini : null;
|
|
1326
1374
|
const inis = H.boardRows(S.D);
|
|
1327
1375
|
const cur = chat.current(), prod = !here && cur && /^chat:product/.test(cur.key || '') && cur.newChat ? cur : null; // a product's chat is open: its own new session
|
|
1376
|
+
const where = here ? iniTitle(here) : prod ? prod.about : '';
|
|
1377
|
+
const pickTask = (b) => menu(b, [{ label: 'Not in an initiative', icon: NEW_ICON.task, go: () => addTaskIn(null) }, { sep: true }]
|
|
1378
|
+
.concat(inis.filter(H.OPEN).map((r) => ({ label: r.title, sub: r.stage, go: () => addTaskIn(r.id) }))), 'Task in');
|
|
1379
|
+
const ws = here ? iniWsOf(here) : prod ? prod.ws : boardWs();
|
|
1328
1380
|
return [
|
|
1329
|
-
{ label: '
|
|
1330
|
-
|
|
1331
|
-
{ label: '
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
{ label: 'Quick ask', sub: 'Your own chat, about all work', go: () => { goHome(); chat.focus(); } },
|
|
1335
|
-
{ label: 'Something unrelated', sub: 'A loose chat; link it later', go: () => newLoose() },
|
|
1336
|
-
{ label: 'Record a note now', sub: 'A conversation that is not on the calendar', go: () => MORE.openRecorder().then(() => drawList()) },
|
|
1381
|
+
{ label: 'Task', icon: NEW_ICON.task, k: here ? where : '', go: (b) => (here ? addTaskIn(here) : pickTask(b)) },
|
|
1382
|
+
{ label: 'Chat', icon: TD.P.chat, k: where, go: () => (here ? newIn(here) : prod ? prod.newChat() : newLoose()) },
|
|
1383
|
+
{ label: 'Recording', icon: TD.P.mic, go: () => MORE.openRecorder().then(() => drawList()) },
|
|
1384
|
+
{ sep: true },
|
|
1385
|
+
{ label: 'Initiative', icon: NEW_ICON.ini, k: prod ? where : '', go: () => { location.href = '/premium-board.html?new=initiative' + (ws ? '&ws=' + encodeURIComponent(ws) : ''); } },
|
|
1337
1386
|
];
|
|
1338
1387
|
}
|
|
1388
|
+
/** The initiative's conversation with a question typed in the box, not sent (the ⋯ menu's Change the plan dates, as the Board's ?ask=&q=). */
|
|
1389
|
+
function askIn(id, q) {
|
|
1390
|
+
S.phoneChat = isPhone(); openTarget(iniTarget(id));
|
|
1391
|
+
setTimeout(() => { const ta = $('#hmIn'); if (ta) { ta.value = q; ta.dispatchEvent(new Event('input', { bubbles: true })); ta.focus(); ta.setSelectionRange(q.length, q.length); } }, 0);
|
|
1392
|
+
}
|
|
1339
1393
|
function newIn(id) {
|
|
1340
1394
|
const used = new Set(S.D.sessions.map((s) => H.keyOfSession(s)).filter(Boolean));
|
|
1341
1395
|
let n = 2; while (used.has('init:' + id + ':' + n)) n++;
|
|
@@ -1489,7 +1543,7 @@ $('#hmList').onclick = (e) => { // delegated: every press on the list is a <bu
|
|
|
1489
1543
|
if (d.hmEnd) { endRow(d.hmEnd); return; }
|
|
1490
1544
|
if (d.hmGroup) { if (S.shut.has(d.hmGroup)) S.shut.delete(d.hmGroup); else S.shut.add(d.hmGroup); store.set('pmos.home.shut', JSON.stringify([...S.shut])); drawList(); return; }
|
|
1491
1545
|
if ('hmAllneeds' in d) { S.allNeeds = !S.allNeeds; drawList(); return; }
|
|
1492
|
-
if ('hmNew' in d) { menu(b, newItems(), '
|
|
1546
|
+
if ('hmNew' in d) { menu(b, newItems(), 'New'); return; }
|
|
1493
1547
|
if ('hmFold' in d) { S.folded = true; store.set('pmos.home.fold', '1'); drawList(); return; }
|
|
1494
1548
|
if ('hmMeet' in d) { const m = H.meetLineOf(S.D.today); if (m) openMeeting(m.meeting); return; }
|
|
1495
1549
|
if ('hmCal' in d) { openCalendar(); return; }
|
|
@@ -1586,7 +1640,7 @@ function cta() {
|
|
|
1586
1640
|
mountIni({ S, VW, pmGet, pmPost, toast, rowOf: (id) => iniRowOf(id), renameIni: (id, pre) => iniRenameOf(id, pre), renameTask: (t) => taskRenameOf(t), load: () => load(), loadIni: () => loadIni(), openFile: (f) => openFile(f), iniTitle: (id) => iniTitle(id), drawList: () => drawList(), wait: MORE.WAIT,
|
|
1587
1641
|
// the initiative's page (HbCDesk): its card, its header and its ⋯
|
|
1588
1642
|
openBoardTask: (t) => openBoardTask(t),
|
|
1589
|
-
cardHtml: (id, o) => cardHtml(id, o), kindOf: (id) => kindOf(id), cta: () => cta(), overviewAsk: (id) => overviewAsk(id), newIn: (id) => newIn(id), addPerson: () => addPerson(), turnProgram: (id) => turnProgram(id), moveItems: (id, openList) => moveItems(id, openList), smItems: (id, openList) => smItems(id, openList), smPress: (id, act) => SM.press(smCtx(id), act), goIni: (id) => goIni(id), talk: () => talk(), view: (id) => iniViewOf(id), head: (id) => (S.H = headOf(id)), goProgram: (id) => goProgram(id),
|
|
1643
|
+
cardHtml: (id, o) => cardHtml(id, o), kindOf: (id) => kindOf(id), cta: () => cta(), overviewAsk: (id) => overviewAsk(id), newIn: (id) => newIn(id), askIn: (id, q) => askIn(id, q), addPerson: () => addPerson(), turnProgram: (id) => turnProgram(id), moveItems: (id, openList) => moveItems(id, openList), smItems: (id, openList) => smItems(id, openList), smPress: (id, act) => SM.press(smCtx(id), act), goIni: (id) => goIni(id), talk: () => talk(), view: (id) => iniViewOf(id), head: (id) => (S.H = headOf(id)), goProgram: (id) => goProgram(id),
|
|
1590
1644
|
foldCard: () => { S.cardFold = !S.cardFold; store.set('pmos.home.cardfold', S.cardFold ? '1' : null); } });
|
|
1591
1645
|
/* The program panel in Home's Viewer (HbCProg): Home's board model and programs; an initiative of it opens here, with ← back to the program.
|
|
1592
1646
|
* Read on the first program press, never at start: the panel's modules load premium-shell.js, whose start reads ?session= for the old dialog. */
|
|
@@ -1595,6 +1649,7 @@ const programPanel = () => progPanel || (progPanel = import('./bd-prog-panel.js'
|
|
|
1595
1649
|
PO.mount({ programs: () => S.D.programs || [], stateOf: (p) => (((S.M && S.M.groups) || []).find((g) => g.kind === 'program' && g.program.id === p.id) || {}).st || null,
|
|
1596
1650
|
saved: (p) => { const L2 = S.D.programs || [], i = L2.findIndex((x) => x.id === p.id); if (i >= 0) L2[i] = { ...L2[i], ...p }; drawList(); },
|
|
1597
1651
|
say: (m, undo) => (undo ? toastUndo(m, undo) : toast(m)), openIni: (id) => goIni(id) });
|
|
1652
|
+
SO.mount({ redraw: () => { S.D.order = SO.layout(); drawList(); }, say: (m, undo) => (undo ? toastUndo(m, undo) : toast(m)) });
|
|
1598
1653
|
mountNav('home', document, { more: () => moreMenu, settings: () => MORE.openSettings(), here: () => { if (VW.isOpen()) VW.close(); goHome(); } });
|
|
1599
1654
|
// the Live pill (batch 6 item 2): on Home a row opens in place, the session's chat (with its Viewer page) or the meeting; the open one is tinted
|
|
1600
1655
|
mountLivePill(document, {
|