create-pmos 0.396.0 → 0.397.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -13
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/scripts/nine-stages.js +49 -20
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-adddoc-test.js +20 -40
- package/workspace/briefing-premium-board-test.js +145 -107
- package/workspace/briefing-premium-calendar-2-test.js +5 -2
- package/workspace/briefing-premium-calendar-3-test.js +13 -8
- package/workspace/briefing-premium-calendar-test.js +16 -5
- package/workspace/briefing-premium-initiative-test.js +50 -41
- package/workspace/briefing-premium-insights-test.js +104 -85
- package/workspace/briefing-premium-metrics-test.js +11 -32
- package/workspace/briefing-premium-sources-test.js +42 -21
- package/workspace/briefing-premium-test.js +112 -98
- package/workspace/briefing-premium-work-test.js +78 -64
- package/workspace/changelog.json +12 -0
- package/workspace/fixtures/board-premium-facts.js +2 -1
- package/workspace/fixtures/board-premium-jira.js +28 -0
- package/workspace/fixtures/initiative-premium-facts.js +2 -1
- package/workspace/fixtures/initiatives-api/list.json +30 -42
- package/workspace/fixtures/initiatives-api/roadmap.json +40 -56
- package/workspace/fixtures/initiatives-api/sheet.json +10 -14
- package/workspace/fixtures/insights-premium-facts.js +11 -2
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/lifecycle.md +51 -0
- package/workspace/home-shot.js +38 -0
- package/workspace/lib/board-premium.js +92 -1
- package/workspace/lib/engine/boards.js +15 -14
- package/workspace/lib/engine/nine-stages.js +49 -20
- package/workspace/lib/engine/signals/detectors.js +13 -11
- package/workspace/lib/insights-premium.js +78 -1
- package/workspace/lib/routes-board-premium.js +3 -2
- package/workspace/lib/routes-initiatives.js +1 -1
- package/workspace/lib/routes-insights-premium.js +8 -1
- package/workspace/lib/vendor/scripts/nine-stages.js +49 -20
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-agreed-viewer-shots.js +76 -0
- package/workspace/premium-board-actions-test.js +2 -0
- package/workspace/premium-chat-chart-tab-test.js +6 -5
- package/workspace/premium-chat-context-test.js +8 -6
- package/workspace/premium-chat-goal-view-test.js +9 -7
- package/workspace/premium-chat-notes-test.js +3 -2
- package/workspace/premium-chat-report-tab-test.js +8 -2
- package/workspace/premium-chat-term-test.js +3 -1
- package/workspace/premium-chat-viewer-test.js +23 -17
- package/workspace/premium-core-doc-issue-test.js +2 -0
- package/workspace/premium-html-viewer-test.js +4 -2
- package/workspace/premium-phone-card-test.js +1 -0
- package/workspace/premium-phone-room-test.js +16 -11
- package/workspace/premium-report-read-test.js +1 -1
- package/workspace/premium-vw-backlog-test.js +2 -0
- package/workspace/premium-vw-cal-test.js +9 -4
- package/workspace/premium-vw-doc-test.js +1 -1
- package/workspace/premium-vw-item-test.js +1 -0
- package/workspace/premium-vw-jira-test.js +4 -1
- package/workspace/premium-vw-notes-test.js +2 -1
- package/workspace/premium-vw-rec-test.js +3 -2
- package/workspace/premium-vw-slides-test.js +2 -2
- package/workspace/premium-work-depth-test.js +7 -3
- package/workspace/public/pm/bd-span.js +120 -0
- package/workspace/public/pm/bd-stages.js +33 -0
- package/workspace/public/pm/cozy-board.css +373 -0
- package/workspace/public/pm/cozy-home.css +152 -0
- package/workspace/public/pm/cozy-home.js +170 -0
- package/workspace/public/pm/cozy-initiative.css +138 -0
- package/workspace/public/pm/cozy-insights.css +292 -0
- package/workspace/public/pm/cozy-nav.js +54 -0
- package/workspace/public/pm/cozy-viewer.css +143 -0
- package/workspace/public/pm/cozy.css +172 -0
- package/workspace/public/pm/lifecycle-lens-model.js +45 -27
- package/workspace/public/pm/lifecycle-lens.js +22 -11
- package/workspace/public/pm/premium-board.js +329 -67
- package/workspace/public/pm/premium-brief.js +1 -1
- package/workspace/public/pm/premium-chat.js +17 -10
- package/workspace/public/pm/premium-initiative-head.js +138 -0
- package/workspace/public/pm/premium-initiative.js +28 -4
- package/workspace/public/pm/premium-insights.js +530 -244
- package/workspace/public/pm/premium-shell.js +40 -10
- package/workspace/public/pm/premium-viewer.js +5 -0
- package/workspace/public/pm/premium-vw-jira-model.js +22 -5
- package/workspace/public/pm/premium-vw-jira.css +11 -0
- package/workspace/public/pm/premium-vw-jira.js +11 -4
- package/workspace/public/pm/premium-vw-rec.js +5 -2
- package/workspace/public/pm/premium-work.js +18 -8
- package/workspace/public/pm/premium.js +19 -6
- package/workspace/public/premium-board.html +82 -47
- package/workspace/public/premium-chat.html +7 -33
- package/workspace/public/premium-initiative.html +15 -8
- package/workspace/public/premium-insights.html +82 -43
- package/workspace/public/premium-work.html +6 -72
- package/workspace/public/premium.html +61 -15
- package/workspace/public/vendor/nunito-var.woff2 +0 -0
- package/workspace/server.js +7 -0
- package/workspace/test-lists/premium-agreed-viewer.json +9 -0
- package/workspace/third-party/README.md +1 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* cozy-nav.js — the floating place menu of the Agreed design (initiative premium-agreed-design).
|
|
3
|
+
*
|
|
4
|
+
* One button, bottom left on desktop and bottom right on a phone, opens Home, Board, Insights and Settings.
|
|
5
|
+
* It replaces the rail on screen; the rail stays in the markup (hidden by cozy.css) so premium-shell.js keeps its wiring.
|
|
6
|
+
* Settings presses the shell's own Settings button when the page has one, and opens the console's settings otherwise.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export const PLACES = [
|
|
10
|
+
{ key: 'home', label: 'Home', href: '/premium.html', d: 'M4 11l8-7 8 7v9h-5v-6h-6v6H4z' },
|
|
11
|
+
{ key: 'board', label: 'Board', href: '/premium-board.html', d: 'M12 3 3 8l9 5 9-5zM3 13l9 5 9-5' },
|
|
12
|
+
{ key: 'insights', label: 'Insights', href: '/premium-insights.html', d: 'M4 20V10M10 20V4M16 20v-8M22 20H2' },
|
|
13
|
+
];
|
|
14
|
+
const MENU = 'M4 7h16M4 12h16M4 17h16';
|
|
15
|
+
const CLOSE = 'M6 6l12 12M18 6L6 18';
|
|
16
|
+
const GEAR = 'M12 9a3 3 0 1 0 0 6a3 3 0 1 0 0-6M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M16.9 16.9l2.1 2.1M4.9 19.1l2.1-2.1M16.9 7.1l2.1-2.1';
|
|
17
|
+
const svg = (d) => `<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
18
|
+
|
|
19
|
+
/** The label the button reads: "Open the menu. You are in Board". */
|
|
20
|
+
export function fabLabel(here, open) {
|
|
21
|
+
const p = PLACES.find((x) => x.key === here);
|
|
22
|
+
return open ? 'Close the menu' : 'Open the menu. You are in ' + (p ? p.label : 'PMOS');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** The menu's markup for one place; pure, so a unit test can read it. */
|
|
26
|
+
export function menuHtml(here) {
|
|
27
|
+
return PLACES.map((p) => `<a href="${p.href}"${p.key === here ? ' aria-current="page"' : ''}>${svg(p.d)}<span>${p.label}</span></a>`).join('')
|
|
28
|
+
+ `<button type="button" class="cz-set" data-cz-settings>${svg(GEAR)}<span>Settings</span></button>`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Mount the menu once. `here` is home | board | insights. Returns the wrapper. */
|
|
32
|
+
export function mountNav(here, doc = document) {
|
|
33
|
+
const old = doc.getElementById('czNav'); if (old) return old;
|
|
34
|
+
doc.body.classList.add('cz');
|
|
35
|
+
const w = doc.createElement('div'); w.className = 'cz-fabw'; w.id = 'czNav';
|
|
36
|
+
w.innerHTML = `<nav class="cz-fabm" id="czMenu" aria-label="Places" hidden>${menuHtml(here)}</nav>`
|
|
37
|
+
+ `<button type="button" class="cz-fab" id="czFab" aria-controls="czMenu" aria-expanded="false" aria-label="${fabLabel(here, false)}">${svg(MENU)}</button>`;
|
|
38
|
+
doc.body.appendChild(w);
|
|
39
|
+
const fab = w.querySelector('#czFab'), menu = w.querySelector('#czMenu');
|
|
40
|
+
const set = (open) => {
|
|
41
|
+
menu.hidden = !open; fab.setAttribute('aria-expanded', String(open));
|
|
42
|
+
fab.setAttribute('aria-label', fabLabel(here, open)); fab.innerHTML = svg(open ? CLOSE : MENU);
|
|
43
|
+
};
|
|
44
|
+
fab.addEventListener('click', () => set(menu.hidden));
|
|
45
|
+
doc.addEventListener('keydown', (e) => { if (e.key === 'Escape' && !menu.hidden) { set(false); fab.focus(); } });
|
|
46
|
+
// set() redraws the button's icon, so the pressed icon may be gone from the page by now: only a press still on the page closes the menu
|
|
47
|
+
doc.addEventListener('click', (e) => { if (!menu.hidden && e.target.isConnected && !w.contains(e.target)) set(false); });
|
|
48
|
+
menu.querySelector('[data-cz-settings]').addEventListener('click', () => {
|
|
49
|
+
set(false);
|
|
50
|
+
const b = doc.getElementById('settingsBtn');
|
|
51
|
+
if (b) b.click(); else location.assign('/console.html?tab=settings');
|
|
52
|
+
});
|
|
53
|
+
return w;
|
|
54
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* pm/cozy-viewer.css — the Agreed design's look for the shared dialog and the Viewer (initiative premium-agreed-design, area viewer).
|
|
2
|
+
* premium-viewer.js loads it once (it is not a premium-vw-* sheet: the Agreed design's Nunito and weights are not the console's type). It changes nothing on a page without <body class="cz"> (cozy-nav.js mountNav adds the class).
|
|
3
|
+
* The Viewer frame of the design (Viewer.dc.html) re-points the premium tokens (--ink, --ember, --spot, --solid ...) to the cozy palette;
|
|
4
|
+
* this file does the same for the dialog, its Viewer tabs, its menus and the toast, so every view (doc, slides, Jira, meeting, notes,
|
|
5
|
+
* calendar, report) takes the cozy look from the tokens it already reads. Motion: only the cz-dot levels move (cozy.css). */
|
|
6
|
+
|
|
7
|
+
.cz .dlg, .cz .veil, .cz .toast, .cz .vmenu, .cz .crmenu, .cz .tbmenu, .cz .czi-tok {
|
|
8
|
+
--sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;
|
|
9
|
+
--ink: var(--cz-c-2a2e35); --ink-2: var(--cz-c-4a4f58); --ink-3: var(--cz-c-646a74);
|
|
10
|
+
--card: var(--cz-c-ffffff); --card-solid: var(--cz-c-ffffff); --well: var(--cz-c-f4f3f0); --hair: rgba(42,46,53,.1);
|
|
11
|
+
--ember: var(--cz-c-4894ea); --ember-ink: var(--cz-c-2f5fb3); --solid: var(--cz-c-2f5fb3); --on-solid: var(--cz-c-ffffff); --spot: var(--cz-c-eef5fc);
|
|
12
|
+
--ok: var(--cz-c-1e6b45); --bad: var(--cz-c-a8322a); --warn: var(--cz-c-8a5a00); --warn-bg: var(--cz-c-fbf3e4); --ok-bg: var(--cz-c-e7f4ec); --live: var(--cz-c-9a3412); --live-bg: var(--cz-c-fdeee6);
|
|
13
|
+
--b3: rgba(42,46,53,.16);
|
|
14
|
+
--card-shadow: 0 1px 3px rgba(42,46,53,.08);
|
|
15
|
+
--glass: var(--cz-c-ffffff); --glass-edge: rgba(42,46,53,.08); --glass-shadow: 0 14px 34px -12px rgba(42,46,53,.35);
|
|
16
|
+
--r-card: 24px; --r-in: 16px;
|
|
17
|
+
font-family: var(--sans);
|
|
18
|
+
}
|
|
19
|
+
:root[data-theme="dark"] .cz .dlg, :root[data-theme="dark"] .cz .veil, :root[data-theme="dark"] .cz .toast, :root[data-theme="dark"] .cz .vmenu,
|
|
20
|
+
:root[data-theme="dark"] .cz .crmenu, :root[data-theme="dark"] .cz .tbmenu, :root[data-theme="dark"] .cz .czi-tok {
|
|
21
|
+
--ink: var(--cz-c-eceef1); --ink-2: var(--cz-c-c5c9d0); --ink-3: var(--cz-c-9ea4ad); --card: var(--cz-c-24262b); --card-solid: var(--cz-c-24262b); --well: var(--cz-c-1b1d21); --hair: rgba(236,238,241,.1);
|
|
22
|
+
--ember: var(--cz-c-6aaaf0); --ember-ink: var(--cz-c-9bc7f4); --solid: var(--cz-c-6aaaf0); --on-solid: var(--cz-c-17191c); --spot: rgba(106,170,240,.14);
|
|
23
|
+
--ok: var(--cz-c-7fc79a); --bad: var(--cz-c-f2948c); --warn: var(--cz-c-e8c27a); --warn-bg: rgba(212,161,58,.14); --ok-bg: rgba(94,156,106,.16); --live: var(--cz-c-f2a27a); --live-bg: rgba(217,119,63,.16);
|
|
24
|
+
--b3: rgba(236,238,241,.16); --glass: var(--cz-c-24262b); --glass-edge: rgba(236,238,241,.08); --card-shadow: 0 1px 3px rgba(0,0,0,.4);
|
|
25
|
+
}
|
|
26
|
+
@media (prefers-color-scheme: dark) {
|
|
27
|
+
:root:not([data-theme="light"]) .cz .dlg, :root:not([data-theme="light"]) .cz .veil, :root:not([data-theme="light"]) .cz .toast, :root:not([data-theme="light"]) .cz .vmenu,
|
|
28
|
+
:root:not([data-theme="light"]) .cz .crmenu, :root:not([data-theme="light"]) .cz .tbmenu, :root:not([data-theme="light"]) .cz .czi-tok {
|
|
29
|
+
--ink: var(--cz-c-eceef1); --ink-2: var(--cz-c-c5c9d0); --ink-3: var(--cz-c-9ea4ad); --card: var(--cz-c-24262b); --card-solid: var(--cz-c-24262b); --well: var(--cz-c-1b1d21); --hair: rgba(236,238,241,.1);
|
|
30
|
+
--ember: var(--cz-c-6aaaf0); --ember-ink: var(--cz-c-9bc7f4); --solid: var(--cz-c-6aaaf0); --on-solid: var(--cz-c-17191c); --spot: rgba(106,170,240,.14);
|
|
31
|
+
--ok: var(--cz-c-7fc79a); --bad: var(--cz-c-f2948c); --warn: var(--cz-c-e8c27a); --warn-bg: rgba(212,161,58,.14); --ok-bg: rgba(94,156,106,.16); --live: var(--cz-c-f2a27a); --live-bg: rgba(217,119,63,.16);
|
|
32
|
+
--b3: rgba(236,238,241,.16); --glass: var(--cz-c-24262b); --glass-edge: rgba(236,238,241,.08); --card-shadow: 0 1px 3px rgba(0,0,0,.4);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* ── the dialog: one soft white panel, no glass, no blur ── */
|
|
37
|
+
.cz .veil { background: rgba(42,46,53,.22); -webkit-backdrop-filter: none; backdrop-filter: none; }
|
|
38
|
+
.cz .dlg { background: var(--card-solid); border: 1px solid var(--hair); border-radius: 28px; box-shadow: 0 30px 70px -36px rgba(42,46,53,.28), 0 2px 6px rgba(42,46,53,.06);
|
|
39
|
+
-webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink); }
|
|
40
|
+
.cz .dlg .dhead h2 { font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
|
|
41
|
+
.cz .dlg .dsub { font-size: 12px; color: var(--ink-3); }
|
|
42
|
+
.cz .dlg .label, .cz .dlg #dEye { font: 700 12px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
|
|
43
|
+
.cz .dlg .dx2 { background: transparent; border-radius: 999px; color: var(--ink-2); }
|
|
44
|
+
.cz .dlg .dx2:hover { background: var(--well); }
|
|
45
|
+
.cz .dlg .dx2[aria-pressed="true"] { background: var(--spot); color: var(--ember-ink); }
|
|
46
|
+
.cz .dlg .p-out { background: var(--well); border-radius: 20px; }
|
|
47
|
+
.cz .dlg .otop { background: var(--well); }
|
|
48
|
+
.cz .dlg .ol { font-weight: 800; }
|
|
49
|
+
.cz .dlg .paper.doc { background: var(--card-solid); border: 1px solid var(--hair); border-radius: 16px; box-shadow: none; }
|
|
50
|
+
.cz .dlg .note, .cz .dlg .xn { color: var(--ink-3); }
|
|
51
|
+
.cz .dlg .lede { color: var(--ink-2); }
|
|
52
|
+
|
|
53
|
+
/* the Viewer tabs: the design's tab strip on the well, the current tab a white pill */
|
|
54
|
+
.cz .vtab { height: 34px; border-radius: 12px 12px 0 0; font-weight: 700; color: var(--ink-3); }
|
|
55
|
+
.cz .vtab:hover { background: var(--card-solid); }
|
|
56
|
+
.cz .vtab[aria-selected="true"] { background: var(--card-solid); color: var(--ink); font-weight: 800; box-shadow: none; }
|
|
57
|
+
.cz .vtab .vx { border-radius: 999px; }
|
|
58
|
+
/* a phone: every tab is a 44 px press (premium-viewer R7) */
|
|
59
|
+
@media (max-width: 640px) { .cz .vtab { height: 44px; } }
|
|
60
|
+
.cz .vmore { border-radius: 999px; font-weight: 800; }
|
|
61
|
+
.cz .vmenu, .cz .crmenu, .cz .tbmenu { background: var(--card-solid); border: 1px solid var(--hair); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45);
|
|
62
|
+
-webkit-backdrop-filter: none; backdrop-filter: none; font-family: var(--sans); }
|
|
63
|
+
|
|
64
|
+
/* presses: solid blue for the one primary, quiet wells for the rest; no lift on hover */
|
|
65
|
+
.cz .dlg .cta, .cz .dlg .btn { background: var(--solid); color: var(--on-solid); font-weight: 800; border-radius: 999px; }
|
|
66
|
+
.cz .dlg .cta.alt, .cz .dlg .btn.sec { background: var(--card-solid); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
|
|
67
|
+
.cz .dlg .cta:hover, .cz .dlg .round:hover, .cz .dlg .lift:hover { transform: none; }
|
|
68
|
+
.cz .dlg .seg { background: var(--well); }
|
|
69
|
+
.cz .dlg .seg .pill { background: var(--card-solid); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
|
|
70
|
+
.cz .dlg .seg button { font-weight: 700; color: var(--ink-3); }
|
|
71
|
+
.cz .dlg .seg button[aria-pressed="true"] { color: var(--ink); }
|
|
72
|
+
.cz .dlg input, .cz .dlg select, .cz .dlg textarea { font-family: var(--sans); }
|
|
73
|
+
.cz .dlg .vcf { border-radius: 16px; background: var(--spot); }
|
|
74
|
+
|
|
75
|
+
/* the toast: a white pill */
|
|
76
|
+
.cz .toast { background: var(--card-solid); color: var(--ink); border: 1px solid var(--hair); box-shadow: 0 14px 34px -12px rgba(42,46,53,.35); font-weight: 700;
|
|
77
|
+
-webkit-backdrop-filter: none; backdrop-filter: none; }
|
|
78
|
+
|
|
79
|
+
/* motion signals importance only: nothing in the dialog rises, blurs or springs */
|
|
80
|
+
.cz .dlg .rise { animation: none; opacity: 1; transform: none; filter: none; }
|
|
81
|
+
.cz .dlg *, .cz .dlg { transition-property: opacity, background-color, color, box-shadow; }
|
|
82
|
+
|
|
83
|
+
/* the dialog is modal: the floating place menu steps aside while it is open, so it never covers the chat box or the Viewer */
|
|
84
|
+
/* Home's docked chat (body.cz-dock) is not modal: it is always on, and the menu keeps its corner beside the left column (premium-agreed-design) */
|
|
85
|
+
.cz:not(.cz-dock):has(.dlg.on) .cz-fabw { display: none; }
|
|
86
|
+
|
|
87
|
+
/* ── the views: what the tokens cannot say (weights, radii) ── */
|
|
88
|
+
/* Jira ticket and sprint (premium-vw-jira) */
|
|
89
|
+
.cz .jbar{border-radius:14px}
|
|
90
|
+
.cz .jbtn{border-radius:999px;font-weight:700}
|
|
91
|
+
.cz .jtk{border-radius:20px;box-shadow:none}
|
|
92
|
+
.cz .jtk h1{font-size:19px;font-weight:800;letter-spacing:-.01em}
|
|
93
|
+
.cz .jtk h3{font-weight:800}
|
|
94
|
+
.cz .jst{border-radius:999px;text-transform:none;letter-spacing:0;font-weight:800;font-size:11.5px}
|
|
95
|
+
.cz .jst.doing{background:var(--spot);color:var(--ember-ink)}
|
|
96
|
+
.cz .jchip{border-radius:999px;font-weight:700}
|
|
97
|
+
.cz .jpts{border-radius:999px}
|
|
98
|
+
.cz .jempty{border-radius:16px}
|
|
99
|
+
.cz .jcrd{border-radius:14px}
|
|
100
|
+
.cz .jcol{border-radius:16px}
|
|
101
|
+
|
|
102
|
+
.cz .jfd dt { font-size: 11px; font-weight: 800; }
|
|
103
|
+
.cz .jfd dd { font-size: 13.5px; font-weight: 700; }
|
|
104
|
+
|
|
105
|
+
/* Every view: Nunito headings at 800, bold at 700, as Viewer.dc.html, Meeting.dc.html and ReportPanel.dc.html set them */
|
|
106
|
+
.cz .dlg .obody h1, .cz .dlg .obody h2, .cz .dlg .obody h3, .cz .dlg .obody h4 { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
|
|
107
|
+
.cz .dlg .obody b, .cz .dlg .obody strong { font-weight: 700; }
|
|
108
|
+
|
|
109
|
+
/* the small caps labels of the views read as the design's 12px labels, not mono capitals (times, keys and code stay mono) */
|
|
110
|
+
.cz .vm .vm-cap, .cz .vm .vm-ser, .cz .vm .vm-st, .cz .vm .vm-tg, .cz .vm .vm-tb th, .cz .vm .vm-shots figcaption,
|
|
111
|
+
.cz .vn-g h4, .cz .vn-t small, .cz .vc .vc-cap, .cz .vc .vc-mh span, .cz .vc .vc-more, .cz .vc .vc-none, .cz .vc .vc-hrs,
|
|
112
|
+
.cz .rt-eye, .cz .rt-tag, .cz .vwi .vwi-l, .cz .vwcl, .cz .vwlab, .cz .vwsh, .cz .lz {
|
|
113
|
+
font-family: var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 800; }
|
|
114
|
+
/* the calendar (AgCalendar): day heads, hours and event times in Nunito */
|
|
115
|
+
.cz .vc .vc-dn b, .cz .vc .vc-dn i, .cz .vc .vc-dl b, .cz .vc .vc-db, .cz .vc .vc-adl, .cz .vc .vc-gut i, .cz .vc .vc-ev small, .cz .vc .vc-ar time, .cz .vc .vc-me time {
|
|
116
|
+
font-family: var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; }
|
|
117
|
+
.cz .vc .vc-dn b { font-weight: 800; }
|
|
118
|
+
/* the dialog takes focus when it opens; its own frame shows no ring (its first control does when tabbed to) */
|
|
119
|
+
.cz .dlg:focus, .cz .dlg:focus-visible { outline: none; }
|
|
120
|
+
|
|
121
|
+
/* soft rounded parts: buttons and chips are pills, boxes are 12 to 16px */
|
|
122
|
+
.cz .vm .vm-ib, .cz .vc .vc-ib, .cz .vwib, .cz .vn-x { border-radius: 999px; }
|
|
123
|
+
.cz .vm .vm-lk, .cz .vm .vm-pill, .cz .vm .vm-k, .cz .vn-tg, .cz .vn-k, .cz .rt-chip, .cz .rt-tag, .cz .vwchip, .cz .vc .vc-tdy, .cz .rt .btn, .cz .vwbtn, .cz .vc-open, .cz .vn-open, .cz .rvask, .cz .vwask, .cz .rt-ask { border-radius: 999px; }
|
|
124
|
+
.cz .vm .vm-seg, .cz .vc .vc-seg, .cz .rt .rt-seg, .cz .sl-seg, .cz .vwseg, .cz .vwsg { border-radius: 999px; background: var(--well); }
|
|
125
|
+
.cz .vc .vc-seg button, .cz .sl-seg button, .cz .rt-seg .btn, .cz .vm .vm-mn button { border-radius: 999px; }
|
|
126
|
+
.cz .vm .vm-bx, .cz .vm .vm-none, .cz .vm .vm-part > summary.vm-sh, .cz .vn-q, .cz .vn-l, .cz .rvh, .cz .rvb, .cz .rvta, .cz .vc .vc-w, .cz .vc .vc-db, .cz .vc .vc-md, .cz .vc .vc-dn,
|
|
127
|
+
.cz .rt-msg, .cz .rt-secs, .cz .rt-frame, .cz .rt-cyc li, .cz .sl-ctx, .cz .sl-b, .cz .sl-msg, .cz .sl-stage, .cz .sl-pbox, .cz .vwi .vwi-r, .cz .vbl .bl-s, .cz .vbl .bl-st,
|
|
128
|
+
.cz .vwfnone, .cz .vwag, .cz .vwbefore, .cz .cf, .cz .pnl, .cz .dt, .cz .chk, .cz .xp, .cz .cb, .cz .vwmd, .cz .vwframe, .cz .vwshp, .cz .cpv-bar, .cz .cpv-empty, .cz .cpv-page { border-radius: 14px; }
|
|
129
|
+
.cz .ntmenu, .cz .recm, .cz .rt-menu, .cz .sl-pop, .cz .vwpop { border-radius: 16px; background: var(--card-solid); border: 1px solid var(--hair); box-shadow: 0 24px 60px -24px rgba(42,46,53,.45); }
|
|
130
|
+
.cz .ntmenu button, .cz .recm [role="menuitem"], .cz .rt-menu > button, .cz .sl-pop [role="menuitem"], .cz .vwpop button { border-radius: 10px; }
|
|
131
|
+
.cz .vm .vm-agl i, .cz .vn-k, .cz .vbl .bl-p { border-radius: 999px; }
|
|
132
|
+
|
|
133
|
+
/* the report panel (ReportPanel.dc.html): the paper is a white card on the well, the issue checks are soft wells */
|
|
134
|
+
.cz .rt-frame { box-shadow: none; border: 1px solid var(--hair); }
|
|
135
|
+
.cz .rt-cyc li { background: var(--well); border: 0; }
|
|
136
|
+
/* ReportPanel.dc.html: the primary and secondary presses are 12px rounded, the segmented control 12/9px, the menus 18px */
|
|
137
|
+
.cz .rt .btn, .cz .obody:has(> .rt) > .vcf .btn { border-radius: 12px; font-weight: 700; }
|
|
138
|
+
.cz .rt .rt-seg { border-radius: 12px; }
|
|
139
|
+
.cz .rt-seg .btn { border-radius: 9px; }
|
|
140
|
+
.cz .rt-menu { border-radius: 18px; padding: 8px; }
|
|
141
|
+
.cz .rt-menu > button { border-radius: 10px; min-height: 40px; }
|
|
142
|
+
.cz .rt-chip { font-weight: 700; }
|
|
143
|
+
/* the recording dot (.rvdot) keeps its pulse: a live recording is the critical level of motion (cozy.css m-crit) */
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* cozy.css — the Agreed design's shared layer (initiative premium-agreed-design).
|
|
2
|
+
* Tokens, the floating place menu, the phone top bar, and the small parts every page shares.
|
|
3
|
+
* A page opts in with <body class="cz"> and this file after premium.css. Every class here starts with cz-, so nothing
|
|
4
|
+
* collides with premium.css. Page CSS (cozy-home.css, cozy-board.css, cozy-insights.css) builds on these tokens only. */
|
|
5
|
+
|
|
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
|
+
|
|
8
|
+
:root{
|
|
9
|
+
/* The Agreed design's palette (premium-agreed-design): every colour the cozy sheets use, one token each, defined only here.
|
|
10
|
+
The light and dark .cz blocks and the page sheets (cozy-board, -home, -initiative, -viewer, bd-span.js) name these. */
|
|
11
|
+
--cz-c-17191c: #17191C;
|
|
12
|
+
--cz-c-1b1d21: #1B1D21;
|
|
13
|
+
--cz-c-1c2430: #1C2430;
|
|
14
|
+
--cz-c-1e6b45: #1E6B45;
|
|
15
|
+
--cz-c-24262b: #24262B;
|
|
16
|
+
--cz-c-2a2d33: #2A2D33;
|
|
17
|
+
--cz-c-2a2e35: #2A2E35;
|
|
18
|
+
--cz-c-2f5fb3: #2F5FB3;
|
|
19
|
+
--cz-c-33363c: #33363C;
|
|
20
|
+
--cz-c-34445c: #34445C;
|
|
21
|
+
--cz-c-3a3d44: #3A3D44;
|
|
22
|
+
--cz-c-3e6e49: #3E6E49;
|
|
23
|
+
--cz-c-4894ea: #4894EA;
|
|
24
|
+
--cz-c-4a4f58: #4A4F58;
|
|
25
|
+
--cz-c-4c6487: #4C6487;
|
|
26
|
+
--cz-c-5e9c6a: #5E9C6A;
|
|
27
|
+
--cz-c-646a74: #646A74;
|
|
28
|
+
--cz-c-6aaaf0: #6AAAF0;
|
|
29
|
+
--cz-c-6e747d: #6E747D;
|
|
30
|
+
--cz-c-7fc79a: #7FC79A;
|
|
31
|
+
--cz-c-8a5a00: #8A5A00;
|
|
32
|
+
--cz-c-8c929b: #8C929B;
|
|
33
|
+
--cz-c-8cc79a: #8CC79A;
|
|
34
|
+
--cz-c-9a3412: #9A3412;
|
|
35
|
+
--cz-c-9aa1ab: #9AA1AB;
|
|
36
|
+
--cz-c-9bc7f4: #9BC7F4;
|
|
37
|
+
--cz-c-9da3ac: #9DA3AC;
|
|
38
|
+
--cz-c-9ea4ad: #9EA4AD;
|
|
39
|
+
--cz-c-a4461a: #A4461A;
|
|
40
|
+
--cz-c-a8322a: #A8322A;
|
|
41
|
+
--cz-c-a9aeb6: #A9AEB6;
|
|
42
|
+
--cz-c-b07cc6: #B07CC6;
|
|
43
|
+
--cz-c-b6c6dc: #B6C6DC;
|
|
44
|
+
--cz-c-b9bdc4: #B9BDC4;
|
|
45
|
+
--cz-c-c5c9d0: #C5C9D0;
|
|
46
|
+
--cz-c-d0473e: #D0473E;
|
|
47
|
+
--cz-c-d3deec: #D3DEEC;
|
|
48
|
+
--cz-c-d4a13a: #D4A13A;
|
|
49
|
+
--cz-c-d9773f: #D9773F;
|
|
50
|
+
--cz-c-d97757: #D97757;
|
|
51
|
+
--cz-c-d9dce1: #D9DCE1;
|
|
52
|
+
--cz-c-dedbd5: #DEDBD5;
|
|
53
|
+
--cz-c-e4eef9: #E4EEF9;
|
|
54
|
+
--cz-c-e7f4ec: #E7F4EC;
|
|
55
|
+
--cz-c-e8c26e: #E8C26E;
|
|
56
|
+
--cz-c-e8c27a: #E8C27A;
|
|
57
|
+
--cz-c-eceae6: #ECEAE6;
|
|
58
|
+
--cz-c-eceef1: #ECEEF1;
|
|
59
|
+
--cz-c-edf5ee: #EDF5EE;
|
|
60
|
+
--cz-c-eef5fc: #EEF5FC;
|
|
61
|
+
--cz-c-efede9: #EFEDE9;
|
|
62
|
+
--cz-c-f09088: #F09088;
|
|
63
|
+
--cz-c-f0a27a: #F0A27A;
|
|
64
|
+
--cz-c-f2948c: #F2948C;
|
|
65
|
+
--cz-c-f2a27a: #F2A27A;
|
|
66
|
+
--cz-c-f2f4f7: #F2F4F7;
|
|
67
|
+
--cz-c-f4f3f0: #F4F3F0;
|
|
68
|
+
--cz-c-faf9f7: #FAF9F7;
|
|
69
|
+
--cz-c-fbdccb: #FBDCCB;
|
|
70
|
+
--cz-c-fbedec: #FBEDEC;
|
|
71
|
+
--cz-c-fbf0ea: #FBF0EA;
|
|
72
|
+
--cz-c-fbf3e4: #FBF3E4;
|
|
73
|
+
--cz-c-fbf4e4: #FBF4E4;
|
|
74
|
+
--cz-c-fbfaf8: #FBFAF8;
|
|
75
|
+
--cz-c-fdeee6: #FDEEE6;
|
|
76
|
+
--cz-c-ffffff: #FFFFFF;
|
|
77
|
+
}
|
|
78
|
+
.cz {
|
|
79
|
+
--cz-ink: var(--cz-c-2a2e35); --cz-ink2: var(--cz-c-4a4f58); --cz-ink3: var(--cz-c-646a74);
|
|
80
|
+
--cz-card: var(--cz-c-ffffff); --cz-well: var(--cz-c-f4f3f0); --cz-well2: var(--cz-c-efede9); --cz-hair: rgba(42,46,53,.08);
|
|
81
|
+
--cz-blue: var(--cz-c-4894ea); --cz-blueink: var(--cz-c-2f5fb3); --cz-bluebg: var(--cz-c-eef5fc);
|
|
82
|
+
--cz-late: var(--cz-c-a4461a); --cz-latebg: var(--cz-c-fbf0ea); --cz-risk: var(--cz-c-8a5a00); --cz-riskbg: var(--cz-c-fbf4e4);
|
|
83
|
+
--cz-red: var(--cz-c-a8322a); --cz-redbg: var(--cz-c-fbedec); --cz-ok: var(--cz-c-3e6e49); --cz-okbg: var(--cz-c-edf5ee);
|
|
84
|
+
--cz-dot-late: var(--cz-c-d9773f); --cz-dot-risk: var(--cz-c-d4a13a); --cz-dot-red: var(--cz-c-d0473e); --cz-dot-ok: var(--cz-c-5e9c6a); --cz-dot-q: var(--cz-c-b9bdc4);
|
|
85
|
+
--cz-ground: linear-gradient(170deg, var(--cz-c-faf9f7) 0%, var(--cz-c-f2f4f7) 60%, var(--cz-c-e4eef9) 100%);
|
|
86
|
+
--cz-lift: 0 30px 70px -36px rgba(42,46,53,.28);
|
|
87
|
+
--cz-float: 0 14px 34px -12px rgba(42,46,53,.35);
|
|
88
|
+
--cz-sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;
|
|
89
|
+
--cz-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
|
|
90
|
+
}
|
|
91
|
+
.cz.dark, html.dark .cz, :root[data-theme="dark"] .cz {
|
|
92
|
+
--cz-ink: var(--cz-c-eceef1); --cz-ink2: var(--cz-c-c5c9d0); --cz-ink3: var(--cz-c-9ea4ad);
|
|
93
|
+
--cz-card: var(--cz-c-24262b); --cz-well: var(--cz-c-1b1d21); --cz-well2: var(--cz-c-2a2d33); --cz-hair: rgba(236,238,241,.08);
|
|
94
|
+
--cz-blue: var(--cz-c-6aaaf0); --cz-blueink: var(--cz-c-9bc7f4); --cz-bluebg: rgba(106,170,240,.14);
|
|
95
|
+
--cz-ground: linear-gradient(170deg, var(--cz-c-17191c) 0%, var(--cz-c-1b1d21) 60%, var(--cz-c-1c2430) 100%);
|
|
96
|
+
}
|
|
97
|
+
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: 14px; }
|
|
98
|
+
.cz .sky { display: none; }
|
|
99
|
+
/* The old rail stays in the markup so premium-shell.js keeps working; the floating menu replaces it on screen. */
|
|
100
|
+
.cz nav.rail { display: none !important; }
|
|
101
|
+
.cz :focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
102
|
+
|
|
103
|
+
/* ── The floating place menu (desktop: bottom left; phone: bottom right) ── */
|
|
104
|
+
.cz-fabw { position: fixed; z-index: 60; left: 36px; bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
|
|
105
|
+
.cz-fab { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cz-card); color: var(--cz-ink); border: 1px solid var(--cz-hair); box-shadow: var(--cz-float); cursor: pointer; padding: 0; }
|
|
106
|
+
.cz-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
107
|
+
.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); }
|
|
108
|
+
.cz-fabm[hidden] { display: none; }
|
|
109
|
+
.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: 14px; color: var(--cz-ink2); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
|
|
110
|
+
.cz-fabm a:hover, .cz-fabm button:hover { background: var(--cz-well); }
|
|
111
|
+
.cz-fabm [aria-current="page"] { background: var(--cz-bluebg); color: var(--cz-ink); font-weight: 700; }
|
|
112
|
+
.cz-fabm .cz-set { border-top: 1px solid var(--cz-hair); margin-top: 4px; border-radius: 0 0 14px 14px; }
|
|
113
|
+
.cz-fabm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
|
|
114
|
+
|
|
115
|
+
/* ── Page panel: no page header on desktop; the panel starts at the top ── */
|
|
116
|
+
.cz-panel { box-sizing: border-box; margin: 16px; min-height: calc(100vh - 32px); background: var(--cz-card); border-radius: 28px; box-shadow: var(--cz-lift); padding: 16px 24px 18px; display: flex; flex-direction: column; gap: 12px; }
|
|
117
|
+
.cz-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
118
|
+
.cz-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
|
|
119
|
+
/* Phone: one-line top bar, the floating menu moves to the bottom right */
|
|
120
|
+
.cz-top { display: none; }
|
|
121
|
+
@media (max-width: 720px) {
|
|
122
|
+
.cz-fabw { left: auto; right: 18px; bottom: 24px; align-items: flex-end; }
|
|
123
|
+
.cz-panel { margin: 0; border-radius: 0; min-height: 100vh; padding: 12px 12px 96px; box-shadow: none; }
|
|
124
|
+
.cz-top { display: flex; align-items: center; gap: 6px; min-height: 48px; }
|
|
125
|
+
.cz-top .cz-title { font-weight: 800; font-size: 16px; margin-left: 4px; margin-right: auto; }
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* ── Shared parts ── */
|
|
129
|
+
.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: 13.5px; font-weight: 800; color: var(--cz-ink); border: 0; cursor: pointer; }
|
|
130
|
+
.cz-tabs { display: flex; gap: 2px; }
|
|
131
|
+
.cz-tab { height: 34px; padding: 0 13px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: var(--cz-ink3); display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
|
|
132
|
+
.cz-tab[aria-selected="true"] { background: var(--cz-well); color: var(--cz-ink); }
|
|
133
|
+
.cz-tab .n { font-weight: 600; color: var(--cz-ink3); font-size: 12.5px; }
|
|
134
|
+
.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; }
|
|
135
|
+
.cz-ib:hover { background: var(--cz-well); }
|
|
136
|
+
.cz-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
137
|
+
.cz-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
138
|
+
.cz-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cz-well); gap: 2px; }
|
|
139
|
+
.cz-seg button { height: 30px; min-width: 34px; padding: 0 11px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--cz-ink3); background: none; border: 0; cursor: pointer; }
|
|
140
|
+
.cz-seg button[aria-pressed="true"] { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
|
|
141
|
+
.cz-vr { width: 1px; height: 20px; background: var(--cz-hair); margin: 0 4px; flex: none; }
|
|
142
|
+
.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: 12.5px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; cursor: pointer; }
|
|
143
|
+
.cz-chip:hover { background: var(--cz-well); }
|
|
144
|
+
.cz-chip.gh { border-color: transparent; background: transparent; padding: 0 8px; }
|
|
145
|
+
.cz-chip.on { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
146
|
+
.cz-chip b { font-weight: 800; color: var(--cz-ink); }
|
|
147
|
+
.cz-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
|
|
148
|
+
.cz-pill.late { background: var(--cz-latebg); color: var(--cz-late); } .cz-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
149
|
+
.cz-pill.q { background: var(--cz-well); color: var(--cz-ink3); } .cz-pill.you { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
150
|
+
.cz-pill.red { background: var(--cz-redbg); color: var(--cz-red); } .cz-pill.risk { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
151
|
+
.cz-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; position: relative; }
|
|
152
|
+
.cz-dot.you { background: var(--cz-blue); } .cz-dot.late { background: var(--cz-dot-late); } .cz-dot.risk { background: var(--cz-dot-risk); }
|
|
153
|
+
.cz-dot.red { background: var(--cz-dot-red); } .cz-dot.ok { background: var(--cz-dot-ok); } .cz-dot.q { background: var(--cz-dot-q); }
|
|
154
|
+
|
|
155
|
+
/* ── Motion signals importance only, by level. Nothing else moves. ── */
|
|
156
|
+
.cz-dot.m-info::after, .cz-dot.m-warn::after, .cz-dot.m-crit::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; }
|
|
157
|
+
.cz-dot.m-info::after { animation: cz-info 6s ease-out infinite; }
|
|
158
|
+
.cz-dot.m-warn::after { animation: cz-warn 3.2s ease-out infinite; }
|
|
159
|
+
.cz-dot.m-crit::after { animation: cz-crit 1.6s ease-out infinite; }
|
|
160
|
+
@keyframes cz-info { 0% { transform: scale(1); opacity: .25 } 35%, 100% { transform: scale(1.9); opacity: 0 } }
|
|
161
|
+
@keyframes cz-warn { 0% { transform: scale(1); opacity: .35 } 60%, 100% { transform: scale(2.2); opacity: 0 } }
|
|
162
|
+
@keyframes cz-crit { 0% { transform: scale(1); opacity: .45 } 70%, 100% { transform: scale(2.4); opacity: 0 } }
|
|
163
|
+
@media (prefers-reduced-motion: reduce) { .cz *, .cz *::after { animation: none !important; transition: none !important; } }
|
|
164
|
+
|
|
165
|
+
/* ── The lifecycle: six stages and two milestones (◆) ── */
|
|
166
|
+
.cz-ladder { display: flex; gap: 3px; }
|
|
167
|
+
.cz-ladder i { flex: 1; height: 6px; border-radius: 3px; background: var(--cz-c-eceae6); }
|
|
168
|
+
.cz-ladder i.done { background: var(--cz-c-9da3ac); } .cz-ladder i.now { background: var(--cz-ink); }
|
|
169
|
+
.cz-ladder i.ms { flex: 0 0 8px; height: 8px; border-radius: 1.5px; transform: rotate(45deg); margin: -1px 2px 0; }
|
|
170
|
+
/* The milestone mark (◆) and the done mark, drawn as shapes rather than glyphs (conformance R28-13) */
|
|
171
|
+
.cz-ms { display: inline-block; width: 7px; height: 7px; border-radius: 1.5px; background: currentColor; transform: rotate(45deg); margin: 0 6px 1px 2px; vertical-align: middle; }
|
|
172
|
+
.cz-ck { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
|
|
@@ -8,29 +8,45 @@
|
|
|
8
8
|
* `nine_stages`, that wins and the mirror is not used.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
export const
|
|
11
|
+
// Six stages and two milestones (premium-agreed-design L1): Ideate folded into Discover, Strategize into Prioritize.
|
|
12
|
+
export const STAGES = ['triage', 'discover', 'plan', 'prioritize', 'build', 'deliver', 'monitor', 'evaluate'];
|
|
13
|
+
export const LABELS = { triage: 'Triage', discover: 'Discover', plan: 'Plan', prioritize: 'Prioritize', build: 'Build', deliver: 'Deliver', monitor: 'Monitor', evaluate: 'Evaluate' };
|
|
14
|
+
/** Deliver and Evaluate are milestones (a diamond), not stages with duration. */
|
|
15
|
+
export const MILESTONES = new Set(['deliver', 'evaluate']);
|
|
16
|
+
/** A removed stage key read from anywhere (a stored payload, a URL) maps to its new key. Read-time only. */
|
|
17
|
+
const LEGACY = { ideate: 'discover', strategize: 'prioritize' };
|
|
18
|
+
export const stageKey = (k) => (k == null ? k : LEGACY[k] || k);
|
|
13
19
|
// Mirror of scripts/nine-stages.js LANE_STAGES and SIGNALLED.
|
|
14
20
|
const LANE_STAGES = {
|
|
15
21
|
feature: STAGES,
|
|
16
|
-
discovery: ['
|
|
17
|
-
chore: ['plan', 'build', 'evaluate'],
|
|
22
|
+
discovery: ['triage', 'discover', 'prioritize', 'evaluate'],
|
|
23
|
+
chore: ['plan', 'build', 'deliver', 'evaluate'],
|
|
18
24
|
incident: ['build', 'deliver', 'monitor', 'evaluate'],
|
|
19
|
-
content: ['
|
|
20
|
-
prototype: ['
|
|
25
|
+
content: ['discover', 'plan', 'build', 'deliver'],
|
|
26
|
+
prototype: ['triage', 'discover', 'evaluate'],
|
|
21
27
|
};
|
|
22
|
-
const SIGNALLED = new Set(['discover', 'plan', 'build', 'evaluate']);
|
|
28
|
+
const SIGNALLED = new Set(['triage', 'discover', 'plan', 'build', 'evaluate']);
|
|
23
29
|
// The plan-tree group id of a row's stage, as an engine rung rank (nine-stages.js RANK). Unknown groups read intake.
|
|
24
30
|
const GROUP_RANK = { intake: 0, spec: 1, brief: 1, draft: 1, contract: 2, build: 3, evaluate: 4, handoff: 4 };
|
|
25
31
|
|
|
26
|
-
/** The
|
|
32
|
+
/** The stage statuses of one row: its own `nine_stages` when the server sent them (an old payload's removed keys mapped, a repeated key
|
|
33
|
+
* kept once), else the mirror. */
|
|
27
34
|
export function nineOf(row) {
|
|
28
|
-
if (row && Array.isArray(row.nine_stages) && row.nine_stages.length)
|
|
35
|
+
if (row && Array.isArray(row.nine_stages) && row.nine_stages.length) {
|
|
36
|
+
const seen = new Set(); const out = [];
|
|
37
|
+
for (const s of row.nine_stages) {
|
|
38
|
+
const key = stageKey(s && s.key);
|
|
39
|
+
if (!key || seen.has(key)) continue;
|
|
40
|
+
seen.add(key);
|
|
41
|
+
out.push(key === (s && s.key) ? s : { ...s, key, label: LABELS[key] || s.label });
|
|
42
|
+
}
|
|
43
|
+
return out;
|
|
44
|
+
}
|
|
29
45
|
const lane = row && row.lane;
|
|
30
46
|
const laneSet = new Set(LANE_STAGES[lane] || STAGES);
|
|
31
47
|
const gid = row && row.stage && row.stage.id;
|
|
32
48
|
const rank = GROUP_RANK[gid] ?? 0;
|
|
33
|
-
const done = { discover: rank >= 1, plan: rank >= 2, build: rank >= 3, evaluate: rank >= 4 };
|
|
49
|
+
const done = { triage: rank >= 1, discover: rank >= 1, plan: rank >= 2, build: rank >= 3, evaluate: rank >= 4 };
|
|
34
50
|
let cur = false;
|
|
35
51
|
return STAGES.map((key) => {
|
|
36
52
|
let status;
|
|
@@ -39,7 +55,7 @@ export function nineOf(row) {
|
|
|
39
55
|
else if (done[key]) status = 'done';
|
|
40
56
|
else status = 'pending';
|
|
41
57
|
if (status === 'pending' && !cur) { status = 'current'; cur = true; }
|
|
42
|
-
return { key, label: LABELS[key], status };
|
|
58
|
+
return MILESTONES.has(key) ? { key, label: LABELS[key], status, milestone: true } : { key, label: LABELS[key], status };
|
|
43
59
|
});
|
|
44
60
|
}
|
|
45
61
|
|
|
@@ -75,34 +91,36 @@ export function stageNote(key, rows, scope) {
|
|
|
75
91
|
}
|
|
76
92
|
|
|
77
93
|
/* ── what each stage needs (console3.html C3.REQ, line 4687): the requirement rows of the lens, each with who does it ── */
|
|
94
|
+
// Eight steps (premium-agreed-design L1). Ideate's options moved to Discover; Strategize's bet moved to Prioritize; the Commit gate is in Plan
|
|
95
|
+
// (it pushes the tickets to Jira). Engineers build outside PMOS: Build reads the Jira tickets, never a PMOS builder.
|
|
78
96
|
export const REQ = {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
prioritize: [['
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
evaluate: [['verd', 'Verdict: what we learned, next bet seeded', 'pm']],
|
|
97
|
+
triage: [['brief', 'BRD: the problem, who has it, the anchor', 'agent'], ['cont', 'Take it on or park it', 'pm']],
|
|
98
|
+
discover: [['evidence', 'Evidence from 3 or more sources', 'agent'], ['opts', 'Two or more options, one recommended', 'agent'], ['prd', 'PRD with done criteria', 'agent']],
|
|
99
|
+
plan: [['rub', 'Rubric and pre-run contract', 'agent'], ['plan', 'Scope, timeline and work breakdown reviewed', 'pm'], ['commit', 'Commit: the tickets go to Jira', 'pm']],
|
|
100
|
+
prioritize: [['bet', 'Bet statement tied to the anchor', 'agent'], ['rank', 'Ranked on the roadmap', 'pm']],
|
|
101
|
+
build: [['tix', 'Features delivered: the Jira tickets are done', 'jira'], ['rev', 'Review against the rubric', 'agent']],
|
|
102
|
+
deliver: [['rel', 'Release shipped, your sign-off', 'pm']],
|
|
103
|
+
monitor: [['out', 'Outcome report after 2 weeks', 'agent']],
|
|
104
|
+
evaluate: [['verd', 'Verdict: keep, iterate or stop', 'pm']],
|
|
88
105
|
};
|
|
89
|
-
/** Who does a requirement: [icon, word]. */
|
|
90
|
-
export const reqWho = (w) => (w === 'pm' ? ['user', 'you'] : w === 'factory' ? ['branch', '
|
|
106
|
+
/** Who does a requirement: [icon, word]. Build work is the engineers', tracked in Jira. */
|
|
107
|
+
export const reqWho = (w) => (w === 'pm' ? ['user', 'you'] : w === 'jira' || w === 'factory' ? ['branch', 'engineers (Jira)'] : ['spark', 'agent']);
|
|
91
108
|
/** The agent's or factory's requirements of the same stage that are not done yet: a PM decision waits for them (c3prevPending). `isDone(key)` says what is done. */
|
|
92
109
|
export const prevPending = (stage, key, isDone) => (REQ[stage] || []).filter((r) => r[2] !== 'pm' && r[0] !== key && !isDone(r[0]));
|
|
93
110
|
/** What the agent is asked to draft, per requirement: [the offer, what it is]. */
|
|
94
111
|
export const DRAFT_TEXT = {
|
|
95
|
-
brief: ['Draft the
|
|
112
|
+
brief: ['Draft the BRD', 'A one-page business requirement with a stop rule'], evidence: ['Gather the evidence', 'Three or more sources, each cited'], opts: ['Draft the options', 'Two or more, one recommended, with the cost of each'],
|
|
96
113
|
bet: ['Draft the bet statement', 'Tied to the anchor'], prd: ['Draft the PRD', 'Done criteria first'], rub: ['Draft the rubric and pre-run contract', 'The rubric is the spec; the contract is agreed before any build'],
|
|
97
114
|
rev: ['Review the build against the rubric', 'Outcome only, weighted, against the threshold'], out: ['Run the outcome check', 'Two weeks after release, from the data'],
|
|
98
115
|
};
|
|
99
116
|
/** The PM's decision per requirement: [yes label, yes effect], [no label, no effect], the sentence. */
|
|
100
117
|
export const DECIDE_TEXT = {
|
|
101
|
-
cont: [['
|
|
102
|
-
commit: [['Commit
|
|
118
|
+
cont: [['Take it on', 'It moves to Discover; the stop rule stays in force'], ['Park it, reason recorded', 'Frees the discovery slot'], 'The stop rule is the test. Read the BRD and decide: a close call is a reason to ask for more, not to guess.'],
|
|
119
|
+
commit: [['Commit the plan', 'The tickets go to Jira'], ['Keep it in Plan', 'Nothing goes to Jira yet'], 'Commit pushes the work breakdown to Jira as tickets. Check scope and dates first.'],
|
|
120
|
+
rank: [['Rank it on the roadmap', 'It takes its place in Now, Next or Later'], ['Keep it unranked', 'Waits for capacity'], 'Now has a limit. The least sure bet goes back if it fills.'],
|
|
103
121
|
plan: [['Approve the plan', 'Breakdown, owners and dates are agreed'], ['Send the breakdown back', 'The agent revises it'], 'Check that every work item has an owner before you approve.'],
|
|
104
|
-
rel: [['
|
|
105
|
-
verd: [['Record the verdict: iterate', 'The next bet is seeded from the lesson'], ['Record the verdict: stop', 'Frees the capacity'], '
|
|
122
|
+
rel: [['Sign off the release', 'The release is recorded as shipped by your slide'], ['Hold it', 'The date moves; promises are re-told'], 'Release needs its readiness checks and an outside change in Jira, which needs its own slide.'],
|
|
123
|
+
verd: [['Record the verdict: iterate', 'The next bet is seeded from the lesson'], ['Record the verdict: stop', 'Frees the capacity'], 'Keep, iterate or stop is a human judgement; the agent only drafts the evidence.'],
|
|
106
124
|
};
|
|
107
125
|
/** The stages a lane uses, in order (the lane's own list). */
|
|
108
126
|
export const laneStages = (lane) => LANE_STAGES[lane] || STAGES;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* pm/lifecycle-lens.js — the Lifecycle lens of Initiatives (console3 wave B1; R4b: on the console3 mockup's own markup and CSS).
|
|
2
2
|
*
|
|
3
|
-
* The mockup (prototype/pmos-console-handoff/mockups/console3.html) is the UI. Lifted: the view bar `.calbar` with the
|
|
3
|
+
* The mockup (prototype/pmos-console-handoff/mockups/console3.html) is the UI. Lifted: the view bar `.calbar` with the eight steps (six stages, two milestones)
|
|
4
4
|
* as `.seg` buttons (icon, label, `.bdg.g` count) and the scope as `.chips2` pills (iniHead, line 3576); the lens header `.lh`
|
|
5
5
|
* (iniLensHead, line 3579); `.calwrap > .calbody > .brief.sbb > .bcols > .bcol.l/.r` (vIni, line 3600); the card deck `.cdeck >
|
|
6
6
|
* .deck > .fc` with the dots `.dk .dkd` (iniDeck, line 3580); the lifecycle line `.lc` for one initiative (lifecycle, line 3487;
|
|
7
|
-
* the mockup's seven columns are
|
|
7
|
+
* the mockup's seven columns are eight here: six stages and two milestones, premium-agreed-design L1); and the stage's list as
|
|
8
8
|
* `section.card.sect > .sh2 + ul.list > li.nrow` with a case file in `.xp > .xi` (c3needs, line 4714). Styles: pm/console3.css.
|
|
9
9
|
*
|
|
10
|
-
* What is real: the rows of the Initiatives view ctx (the roadmap horizons rows) and the
|
|
10
|
+
* What is real: the rows of the Initiatives view ctx (the roadmap horizons rows) and the eight steps derived from them
|
|
11
11
|
* (lifecycle-lens-model.js). Stage is derived, never set; a stage with no signal reads "no signal yet", never done or pending;
|
|
12
12
|
* a stage the lane skips reads skipped. Park (on hold) and Kill (cancelled) go through setLifecycle with a reason, as the sheet's
|
|
13
13
|
* lifecycle menu does. `nine_stages` is not in that payload yet, so the model mirrors scripts/nine-stages.js; the page says so.
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* Self-registers as the 'lifecycle' Initiatives view, like Timeline and Releases.
|
|
23
23
|
*/
|
|
24
24
|
import { el } from './dom.js';
|
|
25
|
-
import { ensureComponentsCss } from './primitives.js';
|
|
25
|
+
import { ensureComponentsCss, button } from './primitives.js';
|
|
26
26
|
import { registerInitiativesView } from './registry.js';
|
|
27
27
|
import { setLifecycle } from './initiatives-api.js';
|
|
28
28
|
import { STAGES, LABELS, bucketRows, stageNote, nineOf, REQ, reqWho, prevPending, DRAFT_TEXT, DECIDE_TEXT } from './lifecycle-lens-model.js';
|
|
@@ -35,7 +35,7 @@ import { ensureC3Css, c3ic, c3ring, c3Phone } from './pm-work-view.js';
|
|
|
35
35
|
const views = new WeakMap();
|
|
36
36
|
const PILLS = 7; // the mockup's scope row has five initiatives; a repository has hundreds, so the row shows the first few and says so
|
|
37
37
|
const LIST_MAX = 20; // a stage's list shows this many rows, then "Show all"
|
|
38
|
-
const ICON = {
|
|
38
|
+
const ICON = { triage: 'spark', discover: 'search', prioritize: 'scale', plan: 'tree', build: 'branch', deliver: 'out', monitor: 'report', evaluate: 'check' }; // ILI, lines 3437 and 4686
|
|
39
39
|
const short = (t, n) => { t = String(t || ''); return t.length > n ? t.slice(0, n - 1) + '…' : t; };
|
|
40
40
|
|
|
41
41
|
/* ── the mockup's Strategize lens (console3.html nsChart line 2833, sigCard 2883, matCard 2894), drawn only when ctx.strategy is given. The
|
|
@@ -86,7 +86,7 @@ function deckCard(V, row, i, n) {
|
|
|
86
86
|
|
|
87
87
|
/* ── what a stage needs: one row per requirement, each with a case file (console3.html c3needs, line 4713; C3.cases.rq line 4719) ── */
|
|
88
88
|
const isDemo = () => !!window.__c3demo;
|
|
89
|
-
/** Is a requirement done for an initiative at this stage? The
|
|
89
|
+
/** Is a requirement done for an initiative at this stage? The lifecycle rule says a stage that is done has all its requirements; at the current stage nothing is
|
|
90
90
|
* recorded per requirement, so none is shown done unless the PM's slide has just recorded it (the demo also carries the mockup's own table). */
|
|
91
91
|
function reqDone(V, row, L, key) {
|
|
92
92
|
const st = (nineOf(row).find((x) => x.key === L) || {}).status;
|
|
@@ -162,9 +162,12 @@ function render(V) {
|
|
|
162
162
|
const scope = V.scope;
|
|
163
163
|
const { buckets, unplaced } = bucketRows(rows, scope);
|
|
164
164
|
const ST = V.ctx.strategy || null; // optional (demo): the mockup's Strategize lens content; the lens opens on it
|
|
165
|
-
|
|
165
|
+
// Strategize folded into Prioritize (premium-agreed-design L1): its strategy panels are the Prioritize lens's second view, opened by its toggle.
|
|
166
|
+
if (V.lens === 'strategize') { V.lens = 'prioritize'; V.strat = true; }
|
|
167
|
+
if (V.lens === 'ideate') { V.lens = 'discover'; V.ideas = true; }
|
|
168
|
+
if (!V.lens) { V.lens = ST ? 'prioritize' : STAGES.find((k) => buckets[k].length) || 'triage'; if (ST) V.strat = true; }
|
|
166
169
|
const lens = V.lens;
|
|
167
|
-
const stratOn = lens === '
|
|
170
|
+
const stratOn = lens === 'prioritize' && !!V.strat; // the Calendar's strategy panels (c3-strategy-panels.js), as the mockup draws them under Strategize (iniLeft 3586, iniRight 3595)
|
|
168
171
|
const list = buckets[lens];
|
|
169
172
|
const note = stageNote(lens, rows, scope);
|
|
170
173
|
|
|
@@ -178,8 +181,16 @@ function render(V) {
|
|
|
178
181
|
...rows.slice(0, PILLS).map((r) => el('button', { type: 'button', class: 'pill', 'aria-pressed': String(scope === r.id), 'data-lc-pill': r.id, title: r.title, onClick: () => { V.scope = r.id; V.lens = null; render(V); } }, short(r.title, 14))),
|
|
179
182
|
rows.length > PILLS ? el('span', { class: 'dim mono', style: 'font-size:var(--fs-2)', 'data-lc-more': '' }, '+' + (rows.length - PILLS) + ' more in the list') : null);
|
|
180
183
|
|
|
184
|
+
// Ideate folded into Discover: its ideas panels are Discover's second view, as the strategy panels are Prioritize's.
|
|
185
|
+
const ideasOn = lens === 'discover' && !!V.ideas;
|
|
186
|
+
const subBar = lens === 'prioritize' ? el('div', { class: 'seg', role: 'group', 'aria-label': 'Prioritize view', 'data-lc-prio': '' },
|
|
187
|
+
button({ label: 'Ranking', variant: 'ghost', size: 'sm', attrs: { 'aria-pressed': String(!stratOn), 'data-lc-prio-view': 'rank' }, onClick: () => { V.strat = false; render(V); } }),
|
|
188
|
+
button({ label: 'Strategy', variant: 'ghost', size: 'sm', attrs: { 'aria-pressed': String(stratOn), 'data-lc-prio-view': 'strategy' }, onClick: () => { V.strat = true; render(V); } }))
|
|
189
|
+
: lens === 'discover' ? el('div', { class: 'seg', role: 'group', 'aria-label': 'Discover view', 'data-lc-disc': '' },
|
|
190
|
+
button({ label: 'Evidence', variant: 'ghost', size: 'sm', attrs: { 'aria-pressed': String(!ideasOn), 'data-lc-disc-view': 'evidence' }, onClick: () => { V.ideas = false; render(V); } }),
|
|
191
|
+
button({ label: 'Ideas', variant: 'ghost', size: 'sm', attrs: { 'aria-pressed': String(ideasOn), 'data-lc-disc-view': 'ideas' }, onClick: () => { V.ideas = true; render(V); } })) : null;
|
|
181
192
|
const placed = STAGES.reduce((n, k) => n + buckets[k].length, 0);
|
|
182
|
-
const PN = stratOn ? null : lensPanels(V, lens, scope); // the panels the mockup draws for this stage (c3-lifecycle-panels.js)
|
|
193
|
+
const PN = stratOn ? null : lensPanels(V, ideasOn ? 'ideate' : lens, scope); // the panels the mockup draws for this stage (c3-lifecycle-panels.js)
|
|
183
194
|
const HD = PN && PN.head;
|
|
184
195
|
const head = stratOn && ST ? el('div', { class: 'lh', 'data-lc-derived': '' }, el('span', { class: 'ki' }, c3ic('flag')), el('div', { style: 'min-width:0' }, el('b', null, ST.head.h), el('div', { class: 'dim' }, ST.head.s)), c3ring(ST.head.ring[0], ST.head.ring[1], 44, ST.head.ring[0] + '/' + ST.head.ring[1]))
|
|
185
196
|
: HD ? el('div', { class: 'lh', 'data-lc-derived': '', 'data-lc-head': lens }, el('span', { class: 'ki' }, c3ic(HD.icon)), el('div', { style: 'min-width:0' }, el('b', null, HD.h), el('div', { class: 'dim' }, HD.s)), c3ring(HD.ring[0], Math.max(1, HD.ring[1]), 44, HD.ring[0] + '/' + HD.ring[1]))
|
|
@@ -221,7 +232,7 @@ function render(V) {
|
|
|
221
232
|
const right = [
|
|
222
233
|
...(PN && PN.right.length ? [...PN.right, ...(lens === 'monitor' && ST && ST.signals ? [signalsCard(ST.signals.slice(0, 3))] : [])] : lens === 'monitor' && ST && ST.signals ? [signalsCard(ST.signals.slice(0, 3))] : [el('section', { class: 'card' }, el('h3', null, c3ic('info'), 'How the stage is derived'),
|
|
223
234
|
el('ul', { class: 'chgl' },
|
|
224
|
-
el('li', null, c3ic('check', 'sm'), el('span', null, 'Discover, Plan, Build and Evaluate read from the records.')),
|
|
235
|
+
el('li', null, c3ic('check', 'sm'), el('span', null, 'Triage, Discover, Plan, Build and Evaluate read from the records. Deliver and Evaluate are milestones.')),
|
|
225
236
|
el('li', null, c3ic('clock', 'sm'), el('span', null, 'The other stages have no signal yet, so none is shown done or pending.')),
|
|
226
237
|
el('li', null, c3ic('moon', 'sm'), el('span', null, 'A stage the lane skips reads skipped.'))))]),
|
|
227
238
|
unplaced.length ? el('section', { class: 'card', 'data-lc-unplaced': '' }, el('h3', null, c3ic('alert'), 'No stage shown yet'),
|
|
@@ -230,7 +241,7 @@ function render(V) {
|
|
|
230
241
|
|
|
231
242
|
V.root.replaceChildren(el('div', { class: 'calwrap' },
|
|
232
243
|
el('div', { class: 'calbar' }, pills),
|
|
233
|
-
el('div', { class: 'calbar'
|
|
244
|
+
el('div', { class: 'calbar' }, seg, subBar),
|
|
234
245
|
el('div', { class: 'calbody' },
|
|
235
246
|
head, V.ctx.links || null,
|
|
236
247
|
V.notice ? el('div', { class: 'fold w', role: 'alert' }, c3ic('alert', 'sm'), V.notice) : null,
|