create-pmos 0.396.0 → 0.398.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +25 -25
- package/payload/KIT-VERSION +2 -2
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/scripts/nine-stages.js +49 -20
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/briefing-premium-adddoc-test.js +103 -74
- package/workspace/briefing-premium-board-test.js +316 -154
- package/workspace/briefing-premium-calendar-2-test.js +135 -195
- package/workspace/briefing-premium-calendar-3-test.js +143 -413
- package/workspace/briefing-premium-calendar-test.js +86 -185
- package/workspace/briefing-premium-doc-edit-test.js +95 -83
- package/workspace/briefing-premium-initiative-test.js +166 -294
- package/workspace/briefing-premium-insights-test.js +351 -214
- package/workspace/briefing-premium-metrics-test.js +53 -118
- package/workspace/briefing-premium-products-test.js +40 -27
- package/workspace/briefing-premium-sources-test.js +91 -52
- package/workspace/briefing-premium-test.js +150 -633
- package/workspace/briefing-premium-work-test.js +88 -269
- package/workspace/changelog.json +24 -0
- package/workspace/fixtures/board-premium-facts.js +2 -1
- package/workspace/fixtures/board-premium-jira.js +28 -0
- package/workspace/fixtures/board-premium-trail.js +32 -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/fixtures/premium-viewer-fixtures.js +182 -0
- package/workspace/guide/briefing-premium.md +3 -1
- package/workspace/guide/home.md +47 -0
- package/workspace/guide/index.md +2 -0
- package/workspace/guide/lifecycle.md +51 -0
- package/workspace/home-shot.js +38 -0
- package/workspace/lib/agent-roles.js +71 -0
- package/workspace/lib/board-premium.js +160 -3
- package/workspace/lib/board-trail.js +223 -0
- 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/home-work-item.js +58 -0
- package/workspace/lib/insights-goals.js +196 -0
- package/workspace/lib/insights-premium.js +126 -1
- package/workspace/lib/insights-records.js +101 -0
- package/workspace/lib/jira-tickets.js +1 -1
- package/workspace/lib/route-modules.js +4 -0
- package/workspace/lib/routes-board-premium.js +3 -2
- package/workspace/lib/routes-board-trail.js +33 -0
- package/workspace/lib/routes-home-desk.js +176 -0
- package/workspace/lib/routes-initiatives.js +1 -1
- package/workspace/lib/routes-insights-premium.js +19 -3
- package/workspace/lib/routes-insights-records.js +129 -0
- package/workspace/lib/routes-notes.js +1 -0
- package/workspace/lib/routes-viewer.js +108 -0
- package/workspace/lib/transcript-steps.js +123 -0
- package/workspace/lib/vendor/scripts/nine-stages.js +49 -20
- package/workspace/lib/viewer-meeting.js +205 -0
- package/workspace/lib/viewer-report.js +89 -0
- 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 +85 -73
- package/workspace/premium-briefing-depth-test.js +66 -53
- package/workspace/premium-chat-attach-test.js +54 -63
- package/workspace/premium-chat-chart-tab-test.js +35 -36
- package/workspace/premium-chat-context-test.js +22 -19
- package/workspace/premium-chat-goal-view-test.js +28 -26
- package/workspace/premium-chat-notes-test.js +29 -33
- package/workspace/premium-chat-report-tab-test.js +35 -25
- package/workspace/premium-chat-term-test.js +16 -14
- package/workspace/premium-chat-viewer-test.js +60 -53
- package/workspace/premium-core-doc-issue-test.js +50 -41
- package/workspace/premium-html-viewer-test.js +17 -18
- package/workspace/premium-phone-card-test.js +8 -2
- package/workspace/premium-phone-room-test.js +42 -31
- package/workspace/premium-report-read-test.js +115 -197
- package/workspace/premium-viewer-download-test.js +19 -22
- package/workspace/premium-viewer-flicker-test.js +11 -16
- package/workspace/premium-viewer-share-test.js +6 -9
- package/workspace/premium-viewer-test.js +41 -60
- package/workspace/premium-vw-backlog-test.js +53 -31
- package/workspace/premium-vw-cal-test.js +82 -123
- package/workspace/premium-vw-copy-test.js +17 -33
- package/workspace/premium-vw-doc-test.js +12 -11
- package/workspace/premium-vw-item-test.js +50 -48
- package/workspace/premium-vw-jira-test.js +55 -26
- package/workspace/premium-vw-meet-test.js +118 -187
- package/workspace/premium-vw-notes-test.js +85 -107
- package/workspace/premium-vw-rec-test.js +72 -193
- package/workspace/premium-vw-slides-test.js +46 -50
- package/workspace/premium-welcome-test.js +3 -2
- package/workspace/premium-work-depth-test.js +63 -51
- package/workspace/public/pm/bd-acts.js +305 -0
- package/workspace/public/pm/bd-span.js +224 -0
- package/workspace/public/pm/bd-stages.js +47 -0
- package/workspace/public/pm/c3-doc-sheet.js +1 -1
- package/workspace/public/pm/c3-md.js +3 -395
- package/workspace/public/pm/c3-phone-detail.js +1 -1
- package/workspace/public/pm/c3-phone-model.js +3 -68
- package/workspace/public/pm/chat-term.js +3 -3
- package/workspace/public/pm/cozy-board.css +640 -0
- package/workspace/public/pm/cozy-home.css +580 -0
- package/workspace/public/pm/cozy-home.js +172 -0
- package/workspace/public/pm/cozy-initiative.css +138 -0
- package/workspace/public/pm/cozy-insights.css +421 -0
- package/workspace/public/pm/cozy-md.js +396 -0
- package/workspace/public/pm/cozy-nav.js +65 -0
- package/workspace/public/pm/cozy-placeholder.js +26 -0
- package/workspace/public/pm/cozy-viewer.css +143 -0
- package/workspace/public/pm/cozy-viewer.js +144 -0
- package/workspace/public/pm/cozy-vw.css +485 -0
- package/workspace/public/pm/cozy.css +254 -0
- package/workspace/public/pm/home-adddoc.js +48 -0
- package/workspace/public/pm/home-app.js +905 -0
- package/workspace/public/pm/home-around.js +515 -0
- package/workspace/public/pm/home-chat.js +459 -0
- package/workspace/public/pm/home-data.js +312 -0
- package/workspace/public/pm/home-draft.js +68 -0
- package/workspace/public/pm/home-more.js +249 -0
- package/workspace/public/pm/home-phone-card.js +109 -0
- package/workspace/public/pm/home-work.js +519 -0
- package/workspace/public/pm/lifecycle-lens-model.js +45 -27
- package/workspace/public/pm/lifecycle-lens.js +22 -11
- package/workspace/public/pm/phone-moment.js +69 -0
- package/workspace/public/pm/pm-work-view.js +1 -1
- package/workspace/public/pm/premium-attach.js +4 -0
- package/workspace/public/pm/premium-board.js +544 -253
- package/workspace/public/pm/premium-brief.js +1 -1
- package/workspace/public/pm/premium-chart-tab.js +110 -62
- package/workspace/public/pm/premium-chat.js +17 -10
- package/workspace/public/pm/premium-deck.js +3 -3
- package/workspace/public/pm/premium-first.js +25 -21
- 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 +950 -440
- package/workspace/public/pm/premium-meeting.js +61 -549
- package/workspace/public/pm/premium-notes.js +1 -1
- package/workspace/public/pm/premium-report-frame.css +20 -0
- package/workspace/public/pm/premium-report-read.js +509 -480
- package/workspace/public/pm/premium-report-tab.js +87 -63
- package/workspace/public/pm/premium-shell.js +107 -124
- package/workspace/public/pm/premium-viewer.js +27 -1
- package/workspace/public/pm/premium-vw-cal.js +187 -48
- package/workspace/public/pm/premium-vw-doc.css +6 -0
- package/workspace/public/pm/premium-vw-doc.js +40 -2
- package/workspace/public/pm/premium-vw-file.js +2 -2
- 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-meet.js +6 -83
- package/workspace/public/pm/premium-vw-mtg.js +731 -0
- package/workspace/public/pm/premium-vw-notes.js +56 -69
- package/workspace/public/pm/premium-vw-open.js +35 -0
- package/workspace/public/pm/premium-vw-page.js +16 -0
- package/workspace/public/pm/premium-vw-rec.js +11 -215
- package/workspace/public/pm/premium-vw-slides.css +5 -0
- package/workspace/public/pm/premium-vw-slides.js +44 -8
- package/workspace/public/pm/term-view.js +22 -0
- package/workspace/public/premium-board.html +57 -64
- package/workspace/public/premium-chat.html +7 -33
- package/workspace/public/premium-initiative.html +8 -41
- package/workspace/public/premium-insights.html +63 -62
- package/workspace/public/premium-viewer.html +20 -0
- package/workspace/public/premium-work.html +6 -72
- package/workspace/public/premium.html +21 -66
- package/workspace/public/vendor/nunito-var.woff2 +0 -0
- package/workspace/server.js +25 -3
- package/workspace/test-files.json +1 -0
- package/workspace/test-lists/home-libs.json +9 -0
- package/workspace/test-lists/premium-agreed-viewer.json +9 -0
- package/workspace/test-lists/premium-report-read.json +1 -1
- package/workspace/test-lists/premium-vw-agreed.json +9 -0
- package/workspace/test-lists/premium-vw-notes.json +1 -1
- package/workspace/third-party/README.md +1 -0
- package/workspace/public/pm/premium-work.js +0 -719
- package/workspace/public/pm/premium.js +0 -1133
|
@@ -0,0 +1,254 @@
|
|
|
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
|
+
/* Home (premium-agreed-design): the done mark of the ladder (#1E449B), the PM's bubble, and the agent avatar tints (AGENT_TINT) */
|
|
78
|
+
--cz-c-1e449b: #1E449B;
|
|
79
|
+
--cz-c-e8f1fb: #E8F1FB;
|
|
80
|
+
--cz-c-eef1f8: #EEF1F8;
|
|
81
|
+
--cz-c-34508a: #34508A;
|
|
82
|
+
--cz-c-faf0e4: #FAF0E4;
|
|
83
|
+
--cz-c-8a5212: #8A5212;
|
|
84
|
+
--cz-c-e9f4ee: #E9F4EE;
|
|
85
|
+
--cz-c-2e6e48: #2E6E48;
|
|
86
|
+
--cz-c-faecef: #FAECEF;
|
|
87
|
+
--cz-c-9a3b55: #9A3B55;
|
|
88
|
+
--cz-c-f1ecf8: #F1ECF8;
|
|
89
|
+
--cz-c-6b4fa3: #6B4FA3;
|
|
90
|
+
--cz-c-eaf4f6: #EAF4F6;
|
|
91
|
+
--cz-c-2b6672: #2B6672;
|
|
92
|
+
--cz-c-eef1f3: #EEF1F3;
|
|
93
|
+
--cz-c-4a5a66: #4A5A66;
|
|
94
|
+
--cz-c-f6f1e4: #F6F1E4;
|
|
95
|
+
--cz-c-7a6420: #7A6420;
|
|
96
|
+
--cz-c-f4eee6: #F4EEE6;
|
|
97
|
+
--cz-c-7a5a2e: #7A5A2E;
|
|
98
|
+
--cz-c-edeff7: #EDEFF7;
|
|
99
|
+
--cz-c-3e4e86: #3E4E86;
|
|
100
|
+
--cz-c-ecf3ee: #ECF3EE;
|
|
101
|
+
--cz-c-3b6b4b: #3B6B4B;
|
|
102
|
+
/* dark tones of the status pills: background, then ink */
|
|
103
|
+
--cz-c-3a2418: #3A2418; --cz-c-e8a07a: #E8A07A; --cz-c-1f3324: #1F3324; --cz-c-8fcf9c: #8FCF9C;
|
|
104
|
+
--cz-c-3a3018: #3A3018; --cz-c-e3c46a: #E3C46A; --cz-c-3a1f1d: #3A1F1D; --cz-c-f09a92: #F09A92;
|
|
105
|
+
/* the report's title slide (ReportPanel.dc.html): its gradient and the accent of its second line */
|
|
106
|
+
--cz-c-2546b8: #2546B8; --cz-c-1b3a9e: #1B3A9E; --cz-c-cfe88a: #CFE88A; --cz-c-9ab53c: #9AB53C;
|
|
107
|
+
}
|
|
108
|
+
.cz {
|
|
109
|
+
--cz-ink: var(--cz-c-2a2e35); --cz-ink2: var(--cz-c-4a4f58); --cz-ink3: var(--cz-c-646a74);
|
|
110
|
+
--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);
|
|
111
|
+
--cz-blue: var(--cz-c-4894ea); --cz-blueink: var(--cz-c-2f5fb3); --cz-bluebg: var(--cz-c-eef5fc);
|
|
112
|
+
--cz-late: var(--cz-c-a4461a); --cz-latebg: var(--cz-c-fbf0ea); --cz-risk: var(--cz-c-8a5a00); --cz-riskbg: var(--cz-c-fbf4e4);
|
|
113
|
+
--cz-red: var(--cz-c-a8322a); --cz-redbg: var(--cz-c-fbedec); --cz-ok: var(--cz-c-3e6e49); --cz-okbg: var(--cz-c-edf5ee);
|
|
114
|
+
--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);
|
|
115
|
+
--cz-ground: linear-gradient(170deg, var(--cz-c-faf9f7) 0%, var(--cz-c-f2f4f7) 60%, var(--cz-c-e4eef9) 100%);
|
|
116
|
+
--cz-lift: 0 30px 70px -36px rgba(42,46,53,.28);
|
|
117
|
+
--cz-float: 0 14px 34px -12px rgba(42,46,53,.35);
|
|
118
|
+
--cz-vlift: 0 6px 18px -8px rgba(42,46,53,.2);
|
|
119
|
+
--cz-sheet: 0 24px 60px -24px rgba(42,46,53,.3);
|
|
120
|
+
--cz-sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;
|
|
121
|
+
--cz-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
|
|
122
|
+
--cz-done: var(--cz-c-1e449b); --cz-bubble: var(--cz-c-e8f1fb); --cz-solid: var(--cz-c-2f5fb3); --cz-onsolid: var(--cz-c-ffffff);
|
|
123
|
+
}
|
|
124
|
+
.cz.dark, html.dark .cz, :root[data-theme="dark"] .cz {
|
|
125
|
+
--cz-ink: var(--cz-c-eceef1); --cz-ink2: var(--cz-c-c5c9d0); --cz-ink3: var(--cz-c-9ea4ad);
|
|
126
|
+
--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);
|
|
127
|
+
--cz-blue: var(--cz-c-6aaaf0); --cz-blueink: var(--cz-c-9bc7f4); --cz-bluebg: rgba(106,170,240,.14);
|
|
128
|
+
--cz-ground: linear-gradient(170deg, var(--cz-c-17191c) 0%, var(--cz-c-1b1d21) 60%, var(--cz-c-1c2430) 100%);
|
|
129
|
+
--cz-vlift: 0 6px 18px -8px rgba(0,0,0,.5); --cz-sheet: 0 24px 60px -24px rgba(0,0,0,.6);
|
|
130
|
+
--cz-done: var(--cz-c-9bc7f4); --cz-bubble: rgba(106,170,240,.14); --cz-solid: var(--cz-c-4894ea); --cz-onsolid: var(--cz-c-ffffff);
|
|
131
|
+
--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
|
+
--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
|
+
}
|
|
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: 14px; }
|
|
135
|
+
.cz .sky { display: none; }
|
|
136
|
+
/* 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
|
+
.cz nav.rail { display: none !important; }
|
|
138
|
+
.cz :focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
139
|
+
|
|
140
|
+
/* ── The floating place menu (desktop: bottom left; phone: bottom right) ── */
|
|
141
|
+
.cz-fabw { position: fixed; z-index: 60; left: 36px; bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
|
|
142
|
+
.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; }
|
|
143
|
+
.cz-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
144
|
+
.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
|
+
.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: 14px; color: var(--cz-ink2); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
|
|
147
|
+
.cz-fabm a:hover, .cz-fabm button:hover { background: var(--cz-well); }
|
|
148
|
+
.cz-fabm [aria-current="page"] { background: var(--cz-bluebg); color: var(--cz-ink); font-weight: 700; }
|
|
149
|
+
.cz-fabm .cz-set { border-top: 1px solid var(--cz-hair); margin-top: 4px; border-radius: 0 0 14px 14px; }
|
|
150
|
+
.cz-fabm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
|
|
151
|
+
|
|
152
|
+
/* ── Page panel: no page header on desktop; the panel starts at the top ── */
|
|
153
|
+
.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; }
|
|
154
|
+
.cz-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
155
|
+
.cz-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
|
|
156
|
+
/* Desktop: the place menu floats over the panel's bottom-left corner (mockup), so a page panel keeps that corner clear of content */
|
|
157
|
+
@media (min-width: 721px) { body.cz main.cz-panel.stage { padding-bottom: 96px; } }
|
|
158
|
+
/* Phone: one-line top bar, the floating menu moves to the bottom right */
|
|
159
|
+
.cz-top { display: none; }
|
|
160
|
+
@media (max-width: 720px) {
|
|
161
|
+
.cz-fabw { left: auto; right: 18px; bottom: 24px; align-items: flex-end; }
|
|
162
|
+
.cz-panel { margin: 0; border-radius: 0; min-height: 100vh; padding: 12px 12px 96px; box-shadow: none; }
|
|
163
|
+
.cz-top { display: flex; align-items: center; gap: 6px; min-height: 48px; }
|
|
164
|
+
.cz-top .cz-title { font-weight: 800; font-size: 16px; margin-left: 4px; margin-right: auto; }
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* ── 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: 13.5px; font-weight: 800; color: var(--cz-ink); border: 0; cursor: pointer; }
|
|
169
|
+
.cz-tabs { display: flex; gap: 2px; }
|
|
170
|
+
.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; }
|
|
171
|
+
.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: 12.5px; }
|
|
173
|
+
.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
|
+
.cz-ib:hover { background: var(--cz-well); }
|
|
175
|
+
.cz-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
176
|
+
.cz-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
177
|
+
.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: 12.5px; font-weight: 700; color: var(--cz-ink3); background: none; border: 0; cursor: pointer; }
|
|
179
|
+
.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
|
+
.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: 12.5px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; cursor: pointer; }
|
|
182
|
+
.cz-chip:hover { background: var(--cz-well); }
|
|
183
|
+
.cz-chip.gh { border-color: transparent; background: transparent; padding: 0 8px; }
|
|
184
|
+
.cz-chip.on { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
185
|
+
.cz-chip b { font-weight: 800; color: var(--cz-ink); }
|
|
186
|
+
.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; }
|
|
187
|
+
.cz-pill.late { background: var(--cz-latebg); color: var(--cz-late); } .cz-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
188
|
+
.cz-pill.q { background: var(--cz-well); color: var(--cz-ink3); } .cz-pill.you { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
189
|
+
.cz-pill.red { background: var(--cz-redbg); color: var(--cz-red); } .cz-pill.risk { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
190
|
+
.cz-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; position: relative; }
|
|
191
|
+
.cz-dot.you { background: var(--cz-blue); } .cz-dot.late { background: var(--cz-dot-late); } .cz-dot.risk { background: var(--cz-dot-risk); }
|
|
192
|
+
.cz-dot.red { background: var(--cz-dot-red); } .cz-dot.ok { background: var(--cz-dot-ok); } .cz-dot.q { background: var(--cz-dot-q); }
|
|
193
|
+
|
|
194
|
+
/* ── Motion signals importance only, by level. Nothing else moves. ── */
|
|
195
|
+
.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; }
|
|
196
|
+
.cz-dot.m-info::after { animation: cz-info 6s ease-out infinite; }
|
|
197
|
+
.cz-dot.m-warn::after { animation: cz-warn 3.2s ease-out infinite; }
|
|
198
|
+
.cz-dot.m-crit::after { animation: cz-crit 1.6s ease-out infinite; }
|
|
199
|
+
@keyframes cz-info { 0% { transform: scale(1); opacity: .25 } 35%, 100% { transform: scale(1.9); opacity: 0 } }
|
|
200
|
+
@keyframes cz-warn { 0% { transform: scale(1); opacity: .35 } 60%, 100% { transform: scale(2.2); opacity: 0 } }
|
|
201
|
+
@keyframes cz-crit { 0% { transform: scale(1); opacity: .45 } 70%, 100% { transform: scale(2.4); opacity: 0 } }
|
|
202
|
+
@media (prefers-reduced-motion: reduce) { .cz *, .cz *::after { animation: none !important; transition: none !important; } }
|
|
203
|
+
|
|
204
|
+
/* ── The lifecycle: six stages and two milestones (◆) ── */
|
|
205
|
+
.cz-ladder { display: flex; gap: 3px; }
|
|
206
|
+
.cz-ladder i { flex: 1; height: 6px; border-radius: 3px; background: var(--cz-c-eceae6); }
|
|
207
|
+
.cz-ladder i.done { background: var(--cz-c-9da3ac); } .cz-ladder i.now { background: var(--cz-ink); }
|
|
208
|
+
.cz-ladder i.ms { flex: 0 0 8px; height: 8px; border-radius: 1.5px; transform: rotate(45deg); margin: -1px 2px 0; }
|
|
209
|
+
/* The milestone mark (◆) and the done mark, drawn as shapes rather than glyphs (conformance R28-13) */
|
|
210
|
+
.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; }
|
|
211
|
+
.cz-ck { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
|
|
212
|
+
|
|
213
|
+
/* ── The Viewer (cozy-viewer.js; Main.dc.html section.viewer): one card, one item at a time ── */
|
|
214
|
+
.cz-vw { box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; overflow: hidden; flex: 0 0 500px; width: 500px; max-width: 100%;
|
|
215
|
+
background: var(--cz-card); color: var(--cz-ink); border: 1px solid var(--cz-hair); border-radius: 24px; box-shadow: var(--cz-vlift); font-family: var(--cz-sans); }
|
|
216
|
+
.cz-vw[hidden] { display: none; }
|
|
217
|
+
.cz-vw:focus { outline: none; }
|
|
218
|
+
.cz-vw.cz-vw-float { position: fixed; z-index: 70; top: 16px; right: 16px; bottom: 16px; width: min(500px, calc(100vw - 32px)); }
|
|
219
|
+
.cz-vw-hd { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--cz-hair); flex: none; }
|
|
220
|
+
.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; }
|
|
221
|
+
.cz-vw-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
222
|
+
.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) */
|
|
223
|
+
.cz-vw-kind { margin: 0; flex: none; max-width: 45%; font-size: 12px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
224
|
+
.cz-vw-kind:empty { display: none; }
|
|
225
|
+
.cz-vw-title { margin: 0; min-width: 0; font-size: 15px; font-weight: 700; color: var(--cz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
226
|
+
.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; }
|
|
227
|
+
.cz-vw-ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
228
|
+
.cz-vw-ib[data-cz-vw="close"] svg { stroke-width: 2; }
|
|
229
|
+
.cz-vw-ib:hover:not(:disabled) { background: var(--cz-well); }
|
|
230
|
+
.cz-vw-ib:disabled { color: var(--cz-ink3); opacity: .45; cursor: not-allowed; }
|
|
231
|
+
@media (max-width: 760px) { .cz-vw-ib { width: 44px; height: 44px; } } /* 44 px targets on a phone */
|
|
232
|
+
.cz-vw-body { flex: 1; min-height: 0; overflow: auto; }
|
|
233
|
+
.cz-vw-body > .cz-ph { margin: 16px; }
|
|
234
|
+
/* a phone: the Viewer is the whole screen, and the place menu steps aside while it is open */
|
|
235
|
+
@media (max-width: 760px) {
|
|
236
|
+
.cz-vw, .cz-vw.cz-vw-float { position: fixed; inset: 0; z-index: 70; width: auto; max-width: none; border: 0; border-radius: 0; box-shadow: var(--cz-sheet); }
|
|
237
|
+
.cz-vw-on .cz-fabw { display: none; }
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* ── A feature the design does not draw yet (cozy-placeholder.js): one small calm card ── */
|
|
241
|
+
.cz-ph { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--cz-well); color: var(--cz-ink2); font-family: var(--cz-sans); }
|
|
242
|
+
.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; }
|
|
243
|
+
.cz-ph-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
244
|
+
.cz-ph-t { min-width: 0; }
|
|
245
|
+
.cz-ph-l { margin: 0; font-size: 14px; font-weight: 700; color: var(--cz-ink2); }
|
|
246
|
+
.cz-ph-n { margin: 2px 0 0; font-size: 12px; color: var(--cz-ink3); }
|
|
247
|
+
|
|
248
|
+
/* ── slide editor on the cozy pages (moved from premium-vw-slides.css, which stays on the console type scale) ── */
|
|
249
|
+
/* ── the cozy pages (premium-agreed-design, area viewer): the console tokens this sheet names, mapped to the cozy tokens of cozy.css,
|
|
250
|
+
* so the editor and the presenter view draw the same on a page that does not load premium.css ── */
|
|
251
|
+
.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);
|
|
252
|
+
--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)}
|
|
253
|
+
/* the report slide kicker (ReportPanel.dc.html): 20px, 700 */
|
|
254
|
+
.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:20px;font-weight:700;letter-spacing:.06em}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* home-adddoc.js — Add a document, in Home's Viewer (premium-agreed-design; initiative briefing-premium-adddoc).
|
|
2
|
+
* The Agreed design draws no Add a document form, so this is the minimal version, marked Waiting for design. It is the form the old
|
|
3
|
+
* dialog had (title, phase, who writes it, where it lives, the address) and its one press posts to POST /api/custom-docs/add, nothing else.
|
|
4
|
+
*
|
|
5
|
+
* openAddDocVw({ VW, pmPost, toast, wait, ws, scope, phases, title, back, onAdded })
|
|
6
|
+
* VW the Home Viewer host (cozy-viewer): open({ id, kind, title, icon, render }) gives the body to draw in
|
|
7
|
+
* ws the workspace the record is written in; scope 'initiative:<id>' or 'board:<id>'
|
|
8
|
+
* phases the stages a phase can name (an initiative only); back() reopens what the form came from (Cancel)
|
|
9
|
+
* onAdded awaited after the route answers ok
|
|
10
|
+
*/
|
|
11
|
+
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
12
|
+
const KINDS = ['Confluence', 'Google Docs', 'Google Slides'];
|
|
13
|
+
|
|
14
|
+
export function openAddDocVw(o) {
|
|
15
|
+
const ini = String(o.scope).startsWith('initiative:');
|
|
16
|
+
const phases = (o.phases && o.phases.length ? o.phases : ['Discover', 'Plan', 'Build', 'Evaluate']);
|
|
17
|
+
let who = 'drafts';
|
|
18
|
+
const draw = (b) => {
|
|
19
|
+
b.innerHTML = (o.wait || '') + `<div class="hx-sec hm-adf">`
|
|
20
|
+
+ `<p class="hx-n" data-ad-note>Add a document the core set does not cover, for example a research plan, a UAT plan or a contract. It is saved on the ${ini ? 'initiative' : 'board'}'s record with the address of a copy that lives in Confluence or Google Docs. PMOS does not read or sync that page.</p>`
|
|
21
|
+
+ `<label class="hv-why"><span>Title</span><input id="adT" maxlength="80" placeholder="For example: UAT plan" autocomplete="off"></label>`
|
|
22
|
+
+ (ini ? `<label class="hv-why"><span>Phase</span><select id="adPh">${phases.map((k) => `<option>${esc(k)}</option>`).join('')}</select></label>` : '')
|
|
23
|
+
+ `<div class="hv-why"><span>Who writes it</span><div class="hx-tabs" id="adW" role="group" aria-label="Who writes it"><button type="button" data-w="drafts" aria-pressed="true">PMOS drafts it</button><button type="button" data-w="you" aria-pressed="false">I write it</button></div></div>`
|
|
24
|
+
+ `<label class="hv-why"><span>Where it lives</span><select id="adK"><option value="">In PMOS</option>${KINDS.map((k) => `<option>${k}</option>`).join('')}</select></label>`
|
|
25
|
+
+ `<label class="hv-why"><span>Page address</span><input id="adU" maxlength="300" placeholder="Paste the page address" disabled autocomplete="off"></label>`
|
|
26
|
+
+ `<p class="hx-n" id="adM" role="status"></p>`
|
|
27
|
+
+ `<div class="hv-acts"><button type="button" class="hx-b pri" id="adGo">Add document</button><button type="button" class="hx-b" id="adNo">Cancel</button></div></div>`;
|
|
28
|
+
};
|
|
29
|
+
const body = o.VW.open({ id: 'adddoc:' + o.scope, kind: 'New document', title: 'Add a document' + (o.title ? ' · ' + o.title : ''), icon: 'doc', render: draw });
|
|
30
|
+
const $ = (s) => body.querySelector(s);
|
|
31
|
+
body.onchange = (e) => { if (e.target.id === 'adK') { $('#adU').disabled = !e.target.value; if (e.target.value) $('#adU').focus(); } };
|
|
32
|
+
body.onclick = async (e) => {
|
|
33
|
+
const w = e.target.closest('[data-w]');
|
|
34
|
+
if (w) { who = w.dataset.w; body.querySelectorAll('#adW button').forEach((x) => x.setAttribute('aria-pressed', String(x === w))); return; }
|
|
35
|
+
if (e.target.closest('#adNo')) { if (o.back) o.back(); return; }
|
|
36
|
+
if (!e.target.closest('#adGo')) return;
|
|
37
|
+
const title = $('#adT').value.trim(), m = $('#adM'), kind = $('#adK').value, url = ($('#adU').value || '').trim();
|
|
38
|
+
if (!title) { m.textContent = 'Give the document a title.'; $('#adT').focus(); return; }
|
|
39
|
+
if (kind && !url) { m.textContent = 'Paste the address of the ' + kind + ' page, or choose In PMOS.'; $('#adU').focus(); return; }
|
|
40
|
+
const go = $('#adGo'); go.disabled = true;
|
|
41
|
+
const res = await o.pmPost('/api/custom-docs/add', { ws: o.ws, scope: o.scope, title, writer: who, phase: ini ? $('#adPh').value : undefined, kind: kind || undefined, url: kind ? url : undefined });
|
|
42
|
+
if (!res || res.ok !== true) { go.disabled = false; m.textContent = (res && res.error) || 'The document could not be added.'; return; }
|
|
43
|
+
o.toast('Document added. It is saved on the record.');
|
|
44
|
+
if (o.onAdded) await o.onAdded();
|
|
45
|
+
};
|
|
46
|
+
const t = $('#adT'); if (t) t.focus();
|
|
47
|
+
return body;
|
|
48
|
+
}
|