create-pmos 0.399.0 → 0.400.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.
Files changed (421) hide show
  1. package/package.json +18 -13
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-adddoc-test.js +2 -2
  7. package/workspace/briefing-premium-board-test.js +2 -2
  8. package/workspace/briefing-premium-doc-edit-test.js +2 -8
  9. package/workspace/briefing-premium-test.js +3 -2
  10. package/workspace/briefing-premium-work-test.js +9 -4
  11. package/workspace/c3-capture-test.js +0 -17
  12. package/workspace/changelog.json +17 -0
  13. package/workspace/guide/briefing-premium.md +2 -2
  14. package/workspace/guide/home.md +20 -2
  15. package/workspace/guide/layout.md +2 -2
  16. package/workspace/guide/notes.md +2 -2
  17. package/workspace/guide/phone-companion.md +1 -1
  18. package/workspace/lib/route-modules.js +1 -9
  19. package/workspace/lib/routes-phone-day.js +18 -9
  20. package/workspace/lib/routes-slash.js +95 -0
  21. package/workspace/package-lock.json +2 -2
  22. package/workspace/package.json +1 -2
  23. package/workspace/premium-chat-goal-view-test.js +1 -1
  24. package/workspace/premium-chat-term-test.js +0 -10
  25. package/workspace/premium-menu-rows-test.js +1 -1
  26. package/workspace/premium-phone-card-test.js +2 -2
  27. package/workspace/premium-vw-doc-test.js +1 -8
  28. package/workspace/premium-work-depth-test.js +2 -3
  29. package/workspace/public/capture.html +23 -0
  30. package/workspace/public/pm/c3-base.js +47 -0
  31. package/workspace/public/pm/c3-capture.js +1 -1
  32. package/workspace/public/pm/c3-ini-ui.js +1 -1
  33. package/workspace/public/pm/c3-sheet.js +1 -1
  34. package/workspace/public/pm/c3-toast.js +1 -1
  35. package/workspace/public/pm/console3.css +3 -0
  36. package/workspace/public/pm/cozy-home.css +20 -5
  37. package/workspace/public/pm/cozy-today.css +5 -2
  38. package/workspace/public/pm/cozy-viewer.js +4 -2
  39. package/workspace/public/pm/cozy.css +9 -0
  40. package/workspace/public/pm/goal-chat.js +5 -1
  41. package/workspace/public/pm/home-app.js +47 -26
  42. package/workspace/public/pm/home-chat.js +10 -4
  43. package/workspace/public/pm/home-data.js +3 -1
  44. package/workspace/public/pm/home-dictate.js +7 -4
  45. package/workspace/public/pm/home-ini.js +12 -2
  46. package/workspace/public/pm/home-list.js +20 -7
  47. package/workspace/public/pm/home-more.js +2 -2
  48. package/workspace/public/pm/home-phone-card.js +9 -4
  49. package/workspace/public/pm/home-review.js +2 -3
  50. package/workspace/public/pm/home-today.js +10 -6
  51. package/workspace/public/pm/home-work.js +15 -8
  52. package/workspace/public/pm/note-dock.js +1 -2
  53. package/workspace/public/pm/notes-links.js +1 -2
  54. package/workspace/public/pm/notes-task.js +3 -4
  55. package/workspace/public/pm/premium-board.js +1 -1
  56. package/workspace/public/pm/premium-initiative-head.js +3 -3
  57. package/workspace/public/pm/premium-vw-doc.css +20 -2
  58. package/workspace/public/pm/premium-vw-doc.js +22 -7
  59. package/workspace/public/pm/view-notes.js +2 -2
  60. package/workspace/replaced-tests.json +435 -0
  61. package/workspace/run-tests.js +323 -28
  62. package/workspace/server.js +15 -10
  63. package/workspace/test-files.json +3 -140
  64. package/workspace/test-lists/base.json +1 -2
  65. package/workspace/test-lists/c3-desktop-light-load.json +1 -2
  66. package/workspace/test-lists/c3-initiative-boards.json +1 -2
  67. package/workspace/test-lists/c3-meeting-focus.json +2 -12
  68. package/workspace/test-lists/c3-work-agent.json +1 -2
  69. package/workspace/test-lists/calendar-tidy-up.json +1 -2
  70. package/workspace/test-lists/console3-reports.json +1 -2
  71. package/workspace/test-lists/docs-three-way-sync.json +1 -2
  72. package/workspace/test-lists/extension-capture.json +5 -0
  73. package/workspace/test-lists/jira-wbs.json +1 -2
  74. package/workspace/test-lists/legacy-cleanup-a.json +9 -0
  75. package/workspace/test-lists/meeting-material.json +1 -2
  76. package/workspace/test-lists/meeting-notes.json +2 -36
  77. package/workspace/test-lists/meeting-replay.json +1 -2
  78. package/workspace/test-lists/mm-capture.json +2 -12
  79. package/workspace/test-lists/my-work.json +2 -10
  80. package/workspace/test-lists/onboarding-firstrun.json +2 -12
  81. package/workspace/test-lists/people-directory.json +1 -2
  82. package/workspace/test-lists/run2-a.json +1 -2
  83. package/workspace/test-lists/run2-d.json +2 -19
  84. package/workspace/test-lists/run3-b.json +1 -2
  85. package/workspace/test-lists/run3-c.json +2 -12
  86. package/workspace/test-lists/run4-b.json +1 -2
  87. package/workspace/test-lists/run4-d.json +1 -5
  88. package/workspace/test-lists/run5-c.json +1 -11
  89. package/workspace/test-lists/run6.json +1 -5
  90. package/workspace/test-lists/workspace-launch-flags.json +2 -12
  91. package/workspace/test-lists/workspace-profile-detection.json +2 -10
  92. package/workspace/test-timings.json +242 -123
  93. package/workspace/c3-briefing-test.js +0 -136
  94. package/workspace/c3-core-docs-test.js +0 -170
  95. package/workspace/c3-driver-fixture.js +0 -64
  96. package/workspace/c3-driver-test.js +0 -169
  97. package/workspace/c3-foundation-test.js +0 -163
  98. package/workspace/c3-ib-items-test.js +0 -114
  99. package/workspace/c3-ib-more-test.js +0 -146
  100. package/workspace/c3-ib-triage-backlog-test.js +0 -128
  101. package/workspace/c3-ini-harness.js +0 -66
  102. package/workspace/c3-ini-life-test.js +0 -167
  103. package/workspace/c3-initiatives-test.js +0 -186
  104. package/workspace/c3-light-load-test.js +0 -112
  105. package/workspace/c3-one-home-test.js +0 -149
  106. package/workspace/c3-phone-test.js +0 -289
  107. package/workspace/c3-quiet-test.js +0 -157
  108. package/workspace/c3-report-design-real-test.js +0 -264
  109. package/workspace/c3-report-design-test.js +0 -442
  110. package/workspace/c3-report-setup-test.js +0 -192
  111. package/workspace/c3-report-structure-real-test.js +0 -248
  112. package/workspace/c3-report-structure-test.js +0 -397
  113. package/workspace/c3-reports-test.js +0 -288
  114. package/workspace/c3-scan-test.js +0 -517
  115. package/workspace/c3-sessions-panel-test.js +0 -365
  116. package/workspace/c3-settings-test.js +0 -204
  117. package/workspace/c3-updates-test.js +0 -131
  118. package/workspace/c3-work-test.js +0 -260
  119. package/workspace/cut-stub.js +0 -40
  120. package/workspace/first-paint-audit.js +0 -160
  121. package/workspace/lib/c3-full-console.js +0 -15
  122. package/workspace/lib/engine/derived/trust.js +0 -3
  123. package/workspace/lib/engine/plan-forecast.js +0 -342
  124. package/workspace/lib/engine/report-families.js +0 -175
  125. package/workspace/lib/engine/truth-table.js +0 -57
  126. package/workspace/lib/routes-c3-init.js +0 -54
  127. package/workspace/lib/routes-c3-life.js +0 -120
  128. package/workspace/lib/routes-c3-timeline.js +0 -192
  129. package/workspace/lib/routes-forecast.js +0 -86
  130. package/workspace/lib/routes-releases.js +0 -130
  131. package/workspace/lib/routes-report-facts.js +0 -85
  132. package/workspace/lib/routes-report-families.js +0 -33
  133. package/workspace/lib/routes-signals.js +0 -51
  134. package/workspace/lib/routes-timeline.js +0 -197
  135. package/workspace/public/c3.html +0 -35
  136. package/workspace/public/index.html +0 -156
  137. package/workspace/public/pm/app.js +0 -831
  138. package/workspace/public/pm/bd-board.js +0 -159
  139. package/workspace/public/pm/bd-drag.js +0 -59
  140. package/workspace/public/pm/bd-model.js +0 -152
  141. package/workspace/public/pm/bd-timeline.js +0 -233
  142. package/workspace/public/pm/bd-tree.js +0 -244
  143. package/workspace/public/pm/board-copy.js +0 -59
  144. package/workspace/public/pm/board-read.js +0 -38
  145. package/workspace/public/pm/branches-sheet.js +0 -56
  146. package/workspace/public/pm/breakdown-api.js +0 -58
  147. package/workspace/public/pm/breakdown-copy.js +0 -138
  148. package/workspace/public/pm/briefing-deck.js +0 -441
  149. package/workspace/public/pm/briefing-model.js +0 -251
  150. package/workspace/public/pm/c3-ambient.js +0 -100
  151. package/workspace/public/pm/c3-audience-link.js +0 -21
  152. package/workspace/public/pm/c3-audience.js +0 -46
  153. package/workspace/public/pm/c3-boot.js +0 -13
  154. package/workspace/public/pm/c3-breakdown.js +0 -240
  155. package/workspace/public/pm/c3-brief-data.js +0 -11
  156. package/workspace/public/pm/c3-brief-mentions.js +0 -137
  157. package/workspace/public/pm/c3-brief-needs.js +0 -288
  158. package/workspace/public/pm/c3-brief-pulse.js +0 -112
  159. package/workspace/public/pm/c3-brief-summary.js +0 -139
  160. package/workspace/public/pm/c3-brief-today.js +0 -79
  161. package/workspace/public/pm/c3-brief.js +0 -279
  162. package/workspace/public/pm/c3-cal-strategy.js +0 -529
  163. package/workspace/public/pm/c3-calendar.js +0 -965
  164. package/workspace/public/pm/c3-calpop.js +0 -111
  165. package/workspace/public/pm/c3-case.js +0 -196
  166. package/workspace/public/pm/c3-core-docs.css +0 -18
  167. package/workspace/public/pm/c3-core-docs.js +0 -236
  168. package/workspace/public/pm/c3-daypart.js +0 -176
  169. package/workspace/public/pm/c3-demo-boards.js +0 -764
  170. package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
  171. package/workspace/public/pm/c3-demo-brief-page.js +0 -70
  172. package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
  173. package/workspace/public/pm/c3-demo-cal2.js +0 -66
  174. package/workspace/public/pm/c3-demo-cal3.js +0 -173
  175. package/workspace/public/pm/c3-demo-cal4.js +0 -169
  176. package/workspace/public/pm/c3-demo-cal5.js +0 -52
  177. package/workspace/public/pm/c3-demo-coredocs.js +0 -221
  178. package/workspace/public/pm/c3-demo-data.js +0 -552
  179. package/workspace/public/pm/c3-demo-focus.js +0 -181
  180. package/workspace/public/pm/c3-demo-init.js +0 -430
  181. package/workspace/public/pm/c3-demo-life.js +0 -77
  182. package/workspace/public/pm/c3-demo-material.js +0 -58
  183. package/workspace/public/pm/c3-demo-misc2.js +0 -34
  184. package/workspace/public/pm/c3-demo-phone.js +0 -48
  185. package/workspace/public/pm/c3-demo-plan2.js +0 -30
  186. package/workspace/public/pm/c3-demo-rd.js +0 -432
  187. package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
  188. package/workspace/public/pm/c3-demo-rep2.js +0 -130
  189. package/workspace/public/pm/c3-demo-rep3.js +0 -138
  190. package/workspace/public/pm/c3-demo-rs.js +0 -287
  191. package/workspace/public/pm/c3-demo-term.js +0 -153
  192. package/workspace/public/pm/c3-demo-time.js +0 -49
  193. package/workspace/public/pm/c3-demo-work-ix.js +0 -32
  194. package/workspace/public/pm/c3-demo.js +0 -131
  195. package/workspace/public/pm/c3-design-studio.js +0 -369
  196. package/workspace/public/pm/c3-doc-formats.js +0 -153
  197. package/workspace/public/pm/c3-doc-sheet.js +0 -1230
  198. package/workspace/public/pm/c3-dock.js +0 -206
  199. package/workspace/public/pm/c3-docs.js +0 -291
  200. package/workspace/public/pm/c3-driver-work.js +0 -110
  201. package/workspace/public/pm/c3-driver.css +0 -18
  202. package/workspace/public/pm/c3-driver.js +0 -298
  203. package/workspace/public/pm/c3-focus.css +0 -304
  204. package/workspace/public/pm/c3-focus.js +0 -983
  205. package/workspace/public/pm/c3-ib-docs.js +0 -92
  206. package/workspace/public/pm/c3-ib-initiatives.js +0 -201
  207. package/workspace/public/pm/c3-ib-items.js +0 -210
  208. package/workspace/public/pm/c3-ib-releases.js +0 -48
  209. package/workspace/public/pm/c3-ib-sprints.js +0 -201
  210. package/workspace/public/pm/c3-ib-triage.js +0 -177
  211. package/workspace/public/pm/c3-ii-tabs.js +0 -252
  212. package/workspace/public/pm/c3-ini-life.css +0 -34
  213. package/workspace/public/pm/c3-ini-life.js +0 -379
  214. package/workspace/public/pm/c3-ini-records.js +0 -197
  215. package/workspace/public/pm/c3-ini-timeline.js +0 -278
  216. package/workspace/public/pm/c3-ini-work.js +0 -139
  217. package/workspace/public/pm/c3-init-extras.js +0 -170
  218. package/workspace/public/pm/c3-initiatives.js +0 -852
  219. package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
  220. package/workspace/public/pm/c3-look.js +0 -27
  221. package/workspace/public/pm/c3-material.css +0 -22
  222. package/workspace/public/pm/c3-material.js +0 -321
  223. package/workspace/public/pm/c3-md.js +0 -3
  224. package/workspace/public/pm/c3-misc-panels.js +0 -89
  225. package/workspace/public/pm/c3-new-session.js +0 -110
  226. package/workspace/public/pm/c3-notes.js +0 -751
  227. package/workspace/public/pm/c3-phone-boot.js +0 -47
  228. package/workspace/public/pm/c3-phone-detail.js +0 -97
  229. package/workspace/public/pm/c3-phone-model.js +0 -3
  230. package/workspace/public/pm/c3-phone.css +0 -66
  231. package/workspace/public/pm/c3-phone.js +0 -444
  232. package/workspace/public/pm/c3-plan-panels.js +0 -163
  233. package/workspace/public/pm/c3-plan.js +0 -193
  234. package/workspace/public/pm/c3-quiet.css +0 -113
  235. package/workspace/public/pm/c3-quiet.js +0 -177
  236. package/workspace/public/pm/c3-replay.css +0 -133
  237. package/workspace/public/pm/c3-replay.js +0 -429
  238. package/workspace/public/pm/c3-report-deck.css +0 -163
  239. package/workspace/public/pm/c3-report-deck.js +0 -598
  240. package/workspace/public/pm/c3-report-frame.css +0 -20
  241. package/workspace/public/pm/c3-report-print.css +0 -20
  242. package/workspace/public/pm/c3-report-setup.css +0 -67
  243. package/workspace/public/pm/c3-report-setup.js +0 -298
  244. package/workspace/public/pm/c3-report-store.js +0 -244
  245. package/workspace/public/pm/c3-report-structure.css +0 -44
  246. package/workspace/public/pm/c3-report-structure.js +0 -473
  247. package/workspace/public/pm/c3-reports.css +0 -68
  248. package/workspace/public/pm/c3-reports.js +0 -377
  249. package/workspace/public/pm/c3-roadmap.js +0 -249
  250. package/workspace/public/pm/c3-scan-api.js +0 -167
  251. package/workspace/public/pm/c3-scan-next.js +0 -248
  252. package/workspace/public/pm/c3-scan-setup.js +0 -313
  253. package/workspace/public/pm/c3-scan-words.js +0 -41
  254. package/workspace/public/pm/c3-scan.css +0 -74
  255. package/workspace/public/pm/c3-scan.js +0 -93
  256. package/workspace/public/pm/c3-session-chat.js +0 -103
  257. package/workspace/public/pm/c3-session-conv.js +0 -165
  258. package/workspace/public/pm/c3-session-term.js +0 -216
  259. package/workspace/public/pm/c3-settings.css +0 -85
  260. package/workspace/public/pm/c3-settings.js +0 -1045
  261. package/workspace/public/pm/c3-shell.js +0 -628
  262. package/workspace/public/pm/c3-signals.js +0 -196
  263. package/workspace/public/pm/c3-strategy-panels.js +0 -45
  264. package/workspace/public/pm/c3-swipe.js +0 -230
  265. package/workspace/public/pm/c3-terminal-data.js +0 -48
  266. package/workspace/public/pm/c3-terminal-edge.js +0 -91
  267. package/workspace/public/pm/c3-terminal-icons.js +0 -40
  268. package/workspace/public/pm/c3-terminal-results.js +0 -141
  269. package/workspace/public/pm/c3-terminal.js +0 -52
  270. package/workspace/public/pm/c3-tickets.js +0 -163
  271. package/workspace/public/pm/c3-timeline.js +0 -201
  272. package/workspace/public/pm/calendar-views.js +0 -1049
  273. package/workspace/public/pm/console3-lift.md +0 -220
  274. package/workspace/public/pm/cozy-home.js +0 -172
  275. package/workspace/public/pm/cozy-initiative.css +0 -138
  276. package/workspace/public/pm/cycle-review.js +0 -125
  277. package/workspace/public/pm/data.js +0 -1577
  278. package/workspace/public/pm/dest-board.js +0 -444
  279. package/workspace/public/pm/dest-docs.js +0 -530
  280. package/workspace/public/pm/dest-initiatives.js +0 -162
  281. package/workspace/public/pm/dest-mywork.js +0 -307
  282. package/workspace/public/pm/dest-notes.js +0 -537
  283. package/workspace/public/pm/dest-people.js +0 -449
  284. package/workspace/public/pm/dest-reports.js +0 -383
  285. package/workspace/public/pm/dest-settings.js +0 -601
  286. package/workspace/public/pm/dest-today.js +0 -267
  287. package/workspace/public/pm/display-word.js +0 -56
  288. package/workspace/public/pm/doc-editor.js +0 -473
  289. package/workspace/public/pm/doc-graph.js +0 -272
  290. package/workspace/public/pm/doc-health-panel.js +0 -110
  291. package/workspace/public/pm/doc-rail.js +0 -167
  292. package/workspace/public/pm/doc-remote.js +0 -180
  293. package/workspace/public/pm/dock-sessions.js +0 -472
  294. package/workspace/public/pm/dock.js +0 -216
  295. package/workspace/public/pm/fixture.js +0 -821
  296. package/workspace/public/pm/flag-picker.js +0 -104
  297. package/workspace/public/pm/frame-copy.js +0 -278
  298. package/workspace/public/pm/freshness-line.js +0 -149
  299. package/workspace/public/pm/handoff-box.js +0 -82
  300. package/workspace/public/pm/initiative-list.js +0 -235
  301. package/workspace/public/pm/initiative-sheet.js +0 -331
  302. package/workspace/public/pm/initiatives-api.js +0 -95
  303. package/workspace/public/pm/initiatives-copy.js +0 -287
  304. package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
  305. package/workspace/public/pm/initiatives-timeline.js +0 -410
  306. package/workspace/public/pm/initiatives-ui.js +0 -291
  307. package/workspace/public/pm/item-sheet.js +0 -268
  308. package/workspace/public/pm/keep-card.js +0 -204
  309. package/workspace/public/pm/lifecycle-lens-model.js +0 -246
  310. package/workspace/public/pm/lifecycle-lens.js +0 -276
  311. package/workspace/public/pm/lifecycle.js +0 -111
  312. package/workspace/public/pm/mobile.css +0 -366
  313. package/workspace/public/pm/mobile.js +0 -581
  314. package/workspace/public/pm/modes-live.js +0 -453
  315. package/workspace/public/pm/modes.js +0 -147
  316. package/workspace/public/pm/my-work-card.js +0 -51
  317. package/workspace/public/pm/my-work-data.js +0 -36
  318. package/workspace/public/pm/new-initiative-sheet.js +0 -169
  319. package/workspace/public/pm/next-step-ui.js +0 -190
  320. package/workspace/public/pm/outbox-panel.js +0 -125
  321. package/workspace/public/pm/palette-copy.js +0 -55
  322. package/workspace/public/pm/palette.js +0 -343
  323. package/workspace/public/pm/panel-breakdown.js +0 -702
  324. package/workspace/public/pm/panel-cockpit.js +0 -425
  325. package/workspace/public/pm/panel-detail.js +0 -1513
  326. package/workspace/public/pm/panel-initiatives.js +0 -929
  327. package/workspace/public/pm/panel-newsess.js +0 -709
  328. package/workspace/public/pm/panel-repos.js +0 -741
  329. package/workspace/public/pm/panel-tabs.js +0 -1506
  330. package/workspace/public/pm/panel-trees.js +0 -204
  331. package/workspace/public/pm/people-link.js +0 -106
  332. package/workspace/public/pm/phone-deck.js +0 -167
  333. package/workspace/public/pm/pm-work-view.js +0 -1533
  334. package/workspace/public/pm/portfolio-report.js +0 -61
  335. package/workspace/public/pm/premium-acts.js +0 -280
  336. package/workspace/public/pm/premium-brief.js +0 -111
  337. package/workspace/public/pm/premium-chat.js +0 -22
  338. package/workspace/public/pm/premium-doc-sheet.js +0 -312
  339. package/workspace/public/pm/premium-initiative.js +0 -324
  340. package/workspace/public/pm/premium-insights.css +0 -228
  341. package/workspace/public/pm/premium-metric-tiles.js +0 -68
  342. package/workspace/public/pm/premium-report-brief.js +0 -132
  343. package/workspace/public/pm/premium-vw-rec.js +0 -67
  344. package/workspace/public/pm/premium-wide.css +0 -30
  345. package/workspace/public/pm/print.css +0 -44
  346. package/workspace/public/pm/provider-cards.js +0 -136
  347. package/workspace/public/pm/registry.js +0 -203
  348. package/workspace/public/pm/release-card.js +0 -110
  349. package/workspace/public/pm/releases-view.js +0 -248
  350. package/workspace/public/pm/report-families-view.js +0 -505
  351. package/workspace/public/pm/report-slides.js +0 -438
  352. package/workspace/public/pm/report-tab.js +0 -33
  353. package/workspace/public/pm/report-view.js +0 -337
  354. package/workspace/public/pm/reports-copy.js +0 -134
  355. package/workspace/public/pm/roadmap.js +0 -294
  356. package/workspace/public/pm/run-card.js +0 -260
  357. package/workspace/public/pm/sessions-panel.js +0 -219
  358. package/workspace/public/pm/sheet-jira.js +0 -353
  359. package/workspace/public/pm/shell-bell.js +0 -163
  360. package/workspace/public/pm/shell-model.js +0 -83
  361. package/workspace/public/pm/shell-phone.js +0 -124
  362. package/workspace/public/pm/shell-readaloud.js +0 -53
  363. package/workspace/public/pm/shell-recording.js +0 -274
  364. package/workspace/public/pm/shell-ticker.js +0 -90
  365. package/workspace/public/pm/sig-watch.js +0 -41
  366. package/workspace/public/pm/slide-confirm.js +0 -163
  367. package/workspace/public/pm/slides-copy.js +0 -52
  368. package/workspace/public/pm/status-banner.js +0 -95
  369. package/workspace/public/pm/tab-doc.js +0 -859
  370. package/workspace/public/pm/tab-gone.js +0 -21
  371. package/workspace/public/pm/tab-term.js +0 -1210
  372. package/workspace/public/pm/tab-web.js +0 -90
  373. package/workspace/public/pm/timeline-copy.js +0 -48
  374. package/workspace/public/pm/timeline-forecast-view.js +0 -164
  375. package/workspace/public/pm/today-agenda.js +0 -331
  376. package/workspace/public/pm/today-cards.js +0 -244
  377. package/workspace/public/pm/today-copy.js +0 -506
  378. package/workspace/public/pm/today-day.js +0 -1371
  379. package/workspace/public/pm/today-goals.js +0 -297
  380. package/workspace/public/pm/today-jobs.js +0 -84
  381. package/workspace/public/pm/today-mentions.js +0 -50
  382. package/workspace/public/pm/topbar.js +0 -202
  383. package/workspace/public/pm/triage-card.js +0 -60
  384. package/workspace/public/pm/undo-hold.js +0 -103
  385. package/workspace/public/pm/view-addrepo.js +0 -208
  386. package/workspace/public/pm/view-files.js +0 -197
  387. package/workspace/public/pm/view-livenotes.js +0 -399
  388. package/workspace/public/pm/view-today.js +0 -13
  389. package/workspace/public/pm/view-validate.js +0 -171
  390. package/workspace/public/pm/welcome.js +0 -391
  391. package/workspace/public/pm/work-place.js +0 -68
  392. package/workspace/public/pm/xlsx-read.js +0 -117
  393. package/workspace/public/welcome.html +0 -22
  394. package/workspace/test-lists/browser-suites-green.json +0 -5
  395. package/workspace/test-lists/c3-core-docs.json +0 -9
  396. package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
  397. package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
  398. package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
  399. package/workspace/test-lists/c3-ib-items.json +0 -9
  400. package/workspace/test-lists/c3-ib-more.json +0 -9
  401. package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
  402. package/workspace/test-lists/c3-ini-life.json +0 -9
  403. package/workspace/test-lists/c3-meeting-board.json +0 -5
  404. package/workspace/test-lists/c3-meeting-card.json +0 -5
  405. package/workspace/test-lists/c3-notes-place.json +0 -5
  406. package/workspace/test-lists/c3-notes-series.json +0 -5
  407. package/workspace/test-lists/calendar-time-page.json +0 -5
  408. package/workspace/test-lists/calpop.json +0 -4
  409. package/workspace/test-lists/console3-briefing.json +0 -9
  410. package/workspace/test-lists/console3-foundation.json +0 -9
  411. package/workspace/test-lists/console3-work-page.json +0 -9
  412. package/workspace/test-lists/premium-brief-parity.json +0 -9
  413. package/workspace/test-lists/report-design-studio-ui.json +0 -5
  414. package/workspace/test-lists/report-structure-ui.json +0 -11
  415. package/workspace/test-lists/report-workspace-ui.json +0 -5
  416. package/workspace/test-lists/run3-a.json +0 -5
  417. package/workspace/test-lists/run3-d.json +0 -6
  418. package/workspace/test-lists/run4-c.json +0 -13
  419. package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
  420. package/workspace/test-lists/today-mentions-cards.json +0 -5
  421. package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
@@ -1,66 +0,0 @@
1
- /* pm/c3-demo-cal2.js — DEMO fixtures for the Calendar's After notes, the Week time grid and the "Progress and timing" card on
2
- * /c3.html?demo=1. The content is the console3 mockup's own: DECS and ACT (console3.html lines 1492 and 1493), notesView (1494),
3
- * MT and MS (1517 and 1518: the meetings and the markers of each day), commits() (2705: the dated promises and tasks) and PCT (2703).
4
- * c3-demo.js imports this file for its side effect: it sets window.__c3cal2, which calendar-views.js reads when it is present.
5
- * Real mode never loads this file, so a real calendar draws only what the calendar memory holds. Nothing here reaches the server. */
6
-
7
- const MT = { // Oct 2026, by day of the month: [start, end, title]
8
- 5: [[9.5, 10, 'Standup'], [11, 12, 'Roadmap review'], [14, 15.5, 'Design critique']],
9
- 6: [[9.5, 10, 'Standup'], [13, 14, 'Customer call'], [15, 16, '1:1 Dara'], [16, 17, 'Discovery sync']],
10
- 7: [[9.5, 10, 'Standup'], [10, 12, 'Checkout workshop'], [14, 15, 'Leadership prep'], [15.5, 16.5, 'Sales sync']],
11
- 9: [[9.5, 10, 'Standup'], [11, 12, 'Design review'], [14, 15, '1:1 Priya']],
12
- 12: [[9.5, 10, 'Standup'], [10.5, 11.5, 'SSO freeze'], [14, 15, 'Interview 4'], [15.5, 16, '1:1 Lee']],
13
- 13: [[9.5, 10, 'Standup'], [13, 14, 'Interview 5'], [15, 16, 'Roadmap sync']],
14
- 14: [[9.5, 10, 'Standup'], [10, 11, 'SSO release check'], [14, 15, 'Leadership prep']],
15
- 15: [[9.5, 10, 'Standup'], [11, 12, 'Design review']],
16
- 16: [[9.5, 10, 'Standup'], [12, 13, 'Leadership weekly'], [14, 15, '1:1 Dara']],
17
- };
18
- /* Thursday 8 Oct is the page's own day: the five meetings of the mockup's S.meetings (id, start, end, title) */
19
- const TODAY_MEET = [['m1', 9.5, 10, 'Standup'], ['m2', 10.5, 11.25, 'Checkout sync'], ['m3', 13, 14, 'Customer interview'], ['m4', 14, 15, 'Sprint planning'], ['m5', 16.5, 17, 'Leadership update']];
20
- const MS = { // markers by date: [kind, title]
21
- '2026-10-09': [['copy', 'Copy freeze']], '2026-10-12': [['promise', 'SSO date to Marta']], '2026-10-13': [['learn', 'Interview 5: review the stop rule']],
22
- '2026-10-14': [['ship', 'SSO release']], '2026-10-16': [['report', 'Leadership weekly']], '2026-10-21': [['risk', 'A11y slot, if scope is cut']],
23
- '2026-10-23': [['report', 'Leadership weekly']], '2026-10-24': [['promise', 'Checkout v2 promised']], '2026-10-28': [['risk', 'A11y slot, full scope']],
24
- '2026-10-30': [['report', 'Leadership weekly']], '2026-10-31': [['forecast', 'Checkout v2, full scope']], '2026-11-06': [['promise', 'Search relevance promised']],
25
- };
26
- const ROUTINE = /^(Standup|1:1|Sync$)/;
27
-
28
- /** The meetings and markers of one day, as the mockup's dayMeetings and marks draw them. Weekends are empty. */
29
- function day(date) {
30
- const [y, m, d] = date.split('-').map(Number);
31
- const w = new Date(Date.UTC(y, m - 1, d)).getUTCDay();
32
- const mk = MS[date] || [];
33
- if (w === 0 || w === 6) return { ms: [], mk };
34
- if (date === '2026-10-08') return { ms: TODAY_MEET.map(([id, s, e, t]) => ({ id: id + '@' + date, s, e, t, hot: id === 'm4', rt: t === 'Standup' })), mk };
35
- const a = (m === 10 && MT[d]) || [[9.5, 10, 'Standup'], [14, 15, 'Sync']];
36
- return { ms: a.map(([s, e, t]) => ({ s, e, t, rt: ROUTINE.test(t) })), mk };
37
- }
38
-
39
- const NOTES = {
40
- title: 'Checkout workshop', when: 'Wed 7 Oct · 41 min', who: ['Dara', 'Lee', 'Sam'],
41
- diff: 'live capture says "cut to three flows"; final note says "hold 24 Oct"',
42
- decisions: [{ id: 'x1', t: 'Defer saved cards to v2.1', rej: 'Keep in v2' }, { id: 'x2', t: 'Hold the 24 Oct date until the scope cut is decided', rej: 'Move the date now' }],
43
- actions: [{ id: 'a1', t: 'Send the revised scope to design', o: 'You', d: 'Fri' }, { id: 'a2', t: 'Book the a11y audit before 28 Oct', o: '', d: 'Fri' },
44
- { id: 'a3', t: 'Confirm sandbox keys with the vendor', o: 'Dara', d: 'Fri' }, { id: 'a4', t: 'Share returns insights with sales', o: '', d: 'next Tue' }],
45
- owners: ['', 'You', 'Dara', 'Lee', 'Marta'], dues: ['Fri', 'next Tue', 'no date'],
46
- told: ['Dara', 'Lee', 'Sam'], notTold: ['Priya'], flag: '24 Oct is conditional',
47
- live: 'Dara: the keys are the real blocker, not the scope.\nYou: then we cut to three flows and keep 24 Oct.\n[highlight] decision: cut to three flows\n[caught] action: Dara confirms sandbox keys',
48
- };
49
-
50
- /* the mockup's commits() tasks (line 2705): dates are 2026 and days are absolute, so they hold when the page's own day is 8 Oct */
51
- const TASKS = [
52
- { id: 't-keys', n: 'Sandbox keys from the vendor', due: '2026-10-06', st: 'over', late: 2, why: 'Asked Tue. No reply in 2 days. Blocks 24 Oct.' },
53
- { id: 't-num', n: '1 Oct numbers to Priya', due: '2026-10-08', st: 'ok', why: 'Priya asked at 07:58. Due 10:30.' },
54
- { id: 't-wk', n: 'Weekly status to leadership', due: '2026-10-09', st: 'risk', why: 'The draft waits for the 14:00 decision.' },
55
- { id: 't-sso', n: 'SSO date to Marta', due: '2026-10-12', st: 'ok', why: "Promised after Monday's freeze." },
56
- { id: 't-int5', n: 'Interview 5: review the stop rule', due: '2026-10-13', st: 'ok', why: 'Decides whether returns discovery continues.' },
57
- { id: 't-a11y', n: 'A11y audit slot', due: '2026-10-21', st: 'risk', why: 'No slot before 28 Oct unless scope is cut.' },
58
- { id: 't-prd', n: 'PRD v5 sent to Dara', due: '2026-10-07', st: 'done', why: 'Sent Wed.' },
59
- { id: 't-ssob', n: 'SSO beta live', due: '2026-10-06', st: 'done', why: '3 customers, 0 incidents.' },
60
- { id: 't-srch', n: 'Search fix merged', due: '2026-10-06', st: 'done', why: 'p95 420 to 300 ms.' },
61
- ];
62
- const PCT = { checkout: 0.5, returns: 0.4, sso: 0.75, search: 0.38, onb: 0.2 }; // the mockup's PCT (line 2703)
63
-
64
- const STAT = { sso: 'risk' }; // the mockup's amber SSO (its rag), where the shared demo row says on time
65
-
66
- window.__c3cal2 = { day, NOTES, TASKS, PCT, STAT };
@@ -1,173 +0,0 @@
1
- /* pm/c3-demo-cal3.js — DEMO fixtures for the Calendar's Quarter and Year panes on /c3.html?demo=1 (c3-cal-strategy.js reads them).
2
- * The content is the console3 mockup's own (console3.html: NSA/nsPlan line 2824, KRS 2857, SIGS 2861 and 3713, SIGC 2872 and 3714, SYNM 2887,
3
- * MATP 2892, BETS 2910, stratCase 2919, CALC 2999 to 3015, calCards 3143, commits 2706). It answers GET /api/c3-strategy in the shape of
4
- * workspace/lib/routes-c3-strategy.js, plus the demo-only extras the real route has no source for: `head` (the lens line), `deck` (the six cards of each
5
- * zoom), `delivery` (the commitments of progSVG, initiatives and tasks), `direction` (the case file of the direction card) and `maturity`.
6
- *
7
- * Wiring: c3-demo.js imports this file for its side effect (one line). The import runs before c3-demo.js reads window.fetch, so the fetch wrapper
8
- * installed here sits UNDER c3-demo.js's own: a path this file does not answer falls through to whatever was there. Real mode never loads it. */
9
-
10
- const MNS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
11
- const mlab = (i) => MNS[(i + 9) % 12] + " '" + (25 + Math.floor((i + 9) / 12));
12
- const key = (i) => { const t = 2025 * 12 + 9 + i; return Math.floor(t / 12) + '-' + String((t % 12) + 1).padStart(2, '0'); };
13
- const NSA = [9.4, 9.8, 10.2, 10.5, 10.9, 11.2, 11.5, 11.7, 11.9, 12.1, 12.15, 12.28, 12.4];
14
- const plan = (i) => (i <= 12 ? 9.4 + (12.9 - 9.4) * (i / 12) : 12.9 + (18 - 12.9) * ((i - 12) / 11));
15
- const slope = (NSA[12] - NSA[9]) / 3;
16
- const proj = (i) => NSA[12] + slope * (i - 12);
17
- const cross = (f) => { for (let i = 13; i <= 23; i++) if (proj(i) < plan(i) * f) return i; return -1; };
18
- const nsVar = () => Math.round((NSA[12] / plan(12) - 1) * 100);
19
- const LEAVE = mlab(cross(0.92)); const PIVOT = mlab(cross(0.85)); const VAR = Math.abs(nsVar());
20
-
21
- const NORTH = { label: 'Weekly active accounts', unit: 'k', now: key(12), by: '2027-09-30',
22
- axis: { quarter: { min: 11, max: 16, ticks: [12, 14, 16] }, year: { min: 8, max: 19, ticks: [10, 14, 18] } },
23
- points: Array.from({ length: 24 }, (_, i) => ({ at: key(i), actual: i <= 12 ? NSA[i] : null, plan: Math.round(plan(i) * 100) / 100, proj: i >= 12 ? Math.round(proj(i) * 100) / 100 : null })) };
24
-
25
- const OUTCOMES = [
26
- { id: 'kr-conv', name: 'Conversion', pillar: 'Convert', unit: '%', start: 3.5, target: 4.0, now: 3.1, expected: 3.75, forecast: 2.9, status: 'off', lead: 'Down 6 weeks in a row. The address step loses 45%.', by: '2026-12-31', pivot: false, n_readings: 7 },
27
- { id: 'kr-ent', name: 'Enterprise design partners', pillar: 'Enterprise', unit: '', start: 0, target: 5, now: 3, expected: 3, forecast: 5, status: 'ok', lead: 'Two more are asking for SCIM early.', by: '2026-12-31', pivot: false, n_readings: 7 },
28
- { id: 'kr-ret', name: 'Retention, day 30', pillar: 'Retain', unit: '%', start: 40, target: 45, now: 41.5, expected: 42.9, forecast: 43, status: 'drift', lead: 'Flat. Label printing is the top pain.', by: '2026-12-31', pivot: false, n_readings: 7 },
29
- { id: 'kr-disc', name: 'Returns discovery decided', pillar: 'Retain', unit: ' of 5', start: 0, target: 5, now: 2, expected: 2.5, forecast: 5, status: 'ok', lead: 'Interview 5 on 13 Oct decides park or continue.', by: '2026-12-31', pivot: false, n_readings: 3 },
30
- ];
31
-
32
- /* ── cases: the mockup's SIGC, stratCase and CALC, in the shape c3-case.js reads ── */
33
- const O = (id, l, rec, msg, fx) => ({ id, l, rec: rec ? 1 : 0, msg, fx: fx || [] });
34
- const CASE = {
35
- conv: { sit: 'At this slope conversion ends the quarter at 2.9% against 4.0%. The pivot line is 3.0% for two weeks.', conf: 71, cta: 'Slide to confirm',
36
- chg: [['clock', 'Down 6 weeks in a row', 'Analytics', 'bad'], ['alert', 'Cart to address loses 45%', 'funnel', 'bad'], ['scale', 'Scope change may be the cause', 'Jira', 'warn']],
37
- opts: [O('x', 'Run the address-step experiment, freeze scope', 1, "Experiment brief is drafting. Scope freeze goes into today's decision.", [['check', 'Tests the cause before pivoting', 'ok'], ['clock', 'Result in 2 weeks']]),
38
- O('w', 'Wait two more weeks', 0, 'Watching. The agent re-checks in 2 weeks.', [['alert', 'Reaches the pivot line unprepared', 'warn']]),
39
- O('p', 'Pivot the checkout bet now', 0, 'Pivot review requested for the Quarterly review.', [['alert', 'Trigger not crossed yet', 'bad']])], unsure: 'One quarter of data. A seasonal dip is not ruled out.' },
40
- ret: { sit: 'Retention has not moved all quarter, while the clearest customer pain sits in returns.', conf: 66, cta: 'Slide to confirm',
41
- chg: [['clock', 'Day 30 at 41.5% against 45%', 'Analytics', 'warn'], ['notes', '3 of 3 calls name label printing', 'Notes', 'ok'], ['cal', 'Interview 5 on 13 Oct', 'Calendar']],
42
- opts: [O('f', 'Pull Returns forward a quarter if interview 5 agrees', 1, 'Conditional change drafted for the Q1 plan.', [['check', 'Moves effort to the strongest signal', 'ok']]), O('k', 'Keep the plan', 0, 'Plan unchanged.', [['clock', 'Returns waits until Q1', 'warn']])] },
43
- slip: { sit: 'The sandbox keys and the accessibility slot sit on the critical path. Cutting scope pulls the slot to 21 Oct and holds the date.', conf: 78, cta: 'Slide to confirm',
44
- chg: [['clock', 'Keys 2 days late, slot not before 28 Oct', 'Jira', 'bad'], ['scale', 'Cut to 3 flows frees the 21 Oct slot', 'Calendar', 'ok'], ['out', 'Leadership was told 24 Oct', 'Slack', 'warn']],
45
- opts: [O('c', 'Cut to 3 flows and hold 24 Oct', 1, 'Scenario set to the cut. The timeline and the Calendar follow.', [['check', 'Holds 24 Oct', 'ok']]), O('w', 'Warn leadership now with a new date', 0, 'Draft to Priya is in Review.', [['out', '31 Oct, with the cause', 'ok']]), O('h', 'Hold and watch', 0, 'No change.', [['alert', 'Crosses the 5-day line', 'warn']])], unsure: 'The vendor may deliver the keys sooner.' },
46
- churn: { sit: 'Three scope changes in four weeks make any date a guess.', conf: 74, cta: 'Slide to confirm', chg: [['scale', '3 changes in 4 weeks', 'Jira', 'warn'], ['doc', 'PRD at v5', 'Confluence']],
47
- opts: [O('z', "Freeze scope after today's decision", 1, 'Scope freeze added to the decision follow-ups.', [['check', 'Makes the date believable', 'ok']]), O('o', 'Stay flexible', 0, 'No freeze.', [['alert', 'Date stays a guess', 'warn']])] },
48
- dep: { sit: 'The same vendor delay holds up two bets, so it is a portfolio risk and not a task risk.', conf: 82, cta: 'Slide to confirm', chg: [['alert', 'Sandbox keys 2 days overdue', 'Jira', 'bad'], ['init', 'Blocks Checkout v2 and SSO billing', 'Initiatives', 'warn']],
49
- opts: [O('e', 'Escalate to the vendor lead today', 1, 'Escalation drafted for you to send.', [['check', 'Unblocks both bets', 'ok']]), O('w', 'Wait until Friday', 0, 'Waiting.', [['clock', 'Crosses 5 days', 'bad']])] },
50
- rel: { sit: 'Dates have lost trust. Ranges tell leadership the truth about uncertainty.', conf: 69, cta: 'Slide to confirm', chg: [['report', '62% of dated promises kept', 'Reports', 'warn'], ['out', 'Next update to leadership: Fri 16 Oct', 'Calendar']],
51
- opts: [O('r', 'Switch to ranges for estimates', 1, 'Ranges will be used in the next update.', [['check', 'Rebuilds trust', 'ok']]), O('d', 'Keep dates', 0, 'No change.', [['alert', 'Risks another miss', 'warn']])] },
52
- gate: { sit: 'Build is far ahead of the evidence. A rubric draft exists but has no weights from you.', conf: 80, cta: 'Slide to confirm', chg: [['shield', 'Spec and rubric exist as drafts', 'gates', 'warn'], ['alert', 'No quality evidence yet', 'CI', 'warn']],
53
- opts: [O('w', 'Set the rubric weights today', 1, 'Weights opened in Review.', [['check', 'Review can score the build', 'ok']]), O('l', 'Let the agent propose weights', 0, 'Agent proposal drafted.', [['clock', 'You still confirm them']])] },
54
- ent: { sit: 'Customers are pulling Enterprise forward faster than the plan assumes.', conf: 77, cta: 'Slide to confirm', chg: [['user', '3 design partners live', 'Jira', 'ok'], ['mail', '2 asked for SCIM early', 'Gmail', 'ok'], ['target', '5 partners by Dec is the goal', 'OKR']],
55
- opts: [O('q', 'Add Enterprise as a Q1 bet', 1, 'Q1 bet drafted for the Quarterly review.', [['check', 'Follows the pull', 'ok'], ['alert', 'Needs capacity from Retain', 'warn']]), O('h', 'Hold the plan', 0, 'No change.', [['alert', 'May lose the window', 'warn']])] },
56
- };
57
- const SIGNALS = [
58
- { id: 'conv', sev: 'drift', t: 'Conversion has fallen six weeks in a row', ev: '3.5% to 3.1%. The address step loses 45% of carts.', thr: 'Below 3.0% for 2 weeks: pivot the checkout bet', ttt: 'about 2 weeks', sp: [3.5, 3.4, 3.4, 3.3, 3.3, 3.2, 3.1] },
59
- { id: 'ret', sev: 'drift', t: 'Retention is flat while the top pain is returns', ev: 'Day 30 at 41.5% against 45%. 3 of 3 calls name label printing.', thr: 'No lift after interview 5: pull Returns forward', ttt: '5 days', sp: [41, 41.2, 41.4, 41.3, 41.5, 41.4, 41.5] },
60
- { id: 'slip', sev: 'drift', t: 'Checkout v2 critical path is 7 days late', ev: 'Sandbox keys and the a11y slot move the ship date from 24 to 31 Oct.', thr: 'More than 5 days late: warn leadership', ttt: 'tripped', sp: [0, 0, 2, 4, 7, 7] },
61
- { id: 'churn', sev: 'watch', t: 'Scope keeps changing on Checkout v2', ev: 'Scope changed 3 times in 4 weeks.', thr: 'A fourth change: re-baseline the plan', ttt: 'next change', sp: [1, 1, 2, 2, 3, 3, 3] },
62
- { id: 'dep', sev: 'watch', t: 'One vendor blocks two bets', ev: 'Sandbox keys hold up Checkout v2 and SSO billing.', thr: 'More than 5 days overdue: escalate to the sponsor', ttt: '3 days', sp: [0, 0, 0, 1, 1, 2, 2] },
63
- { id: 'rel', sev: 'watch', t: 'Dated promises are slipping more often', ev: '62% of dated promises kept this quarter against 80%.', thr: 'Below 55%: give ranges, not dates', ttt: '2 to 3 weeks', sp: [85, 80, 78, 72, 68, 65, 62] },
64
- { id: 'gate', sev: 'watch', t: 'Search relevance has no quality evidence yet', ev: 'Build is 70% done. Quality, review and acceptance are all open.', thr: 'Build without a rubric: block the merge', ttt: '3 days', sp: [0, 0, 0, 1, 1, 2] },
65
- { id: 'ent', sev: 'up', t: 'Enterprise pull is stronger than planned', ev: '3 design partners live. 2 more asked for SCIM early.', thr: '5 partners by Dec: make Enterprise a Q1 bet', ttt: 'on course', sp: [0, 0, 1, 1, 2, 3, 3] },
66
- ].map((s) => ({ ...s, case: CASE[s.id], source: 'demo' }));
67
-
68
- const SYNERGY = { unit: 'pillars',
69
- columns: [{ id: 'convert', n: 'Convert', icon: 'target' }, { id: 'retain', n: 'Retain', icon: 'repo' }, { id: 'onboard', n: 'Onboard', icon: 'user' }, { id: 'enterprise', n: 'Enterprise', icon: 'shield' }],
70
- rows: [{ id: 'checkout', title: 'Checkout v2', weights: [3, 0, 1, 0], parked: false, initiative: 'checkout' }, { id: 'returns', title: 'Returns experience', weights: [1, 3, 0, 0], parked: false, initiative: 'returns' },
71
- { id: 'sso', title: 'SSO', weights: [1, 0, 0, 3], parked: false, initiative: 'sso' }, { id: 'search', title: 'Search relevance', weights: [1, 2, 0, 0], parked: false, initiative: 'search' },
72
- { id: 'onb', title: 'Self-serve onboarding', weights: [0, 0, 3, 0], parked: true, initiative: 'onb' }],
73
- notes: [{ icon: 'plus', tone: 'ok', text: 'SSO and Checkout v2 share billing code. Build them together and save about 2 weeks.' }, { icon: 'alert', tone: 'bad', text: 'Returns and Search relevance both need the platform team in November. Capacity clash.' },
74
- { icon: 'out', tone: '', text: 'Returns findings feed the Q1 onboarding design.' }, { icon: 'user', tone: 'warn', text: 'Dara carries 4 items across 3 bets.' }] };
75
-
76
- const MATURITY = { stages: ['Discover', 'Prove', 'Repeat', 'Scale', 'Lead'], target_label: "Sep '27", pillars: [
77
- { n: 'Convert', now: 2, tgt: 4, proj: 3, ev: '3 of 7 criteria met', nx: 'Conversion at 3.8% or more for 4 weeks' }, { n: 'Retain', now: 2, tgt: 3, proj: 3, ev: '2 of 6 criteria met', nx: 'Returns contact rate at 0.5' },
78
- { n: 'Onboard', now: 1, tgt: 2, proj: 1, ev: '0 of 5 criteria met', nx: 'a revived onboarding bet' }, { n: 'Enterprise', now: 2, tgt: 3, proj: 3, ev: '4 of 6 criteria met', nx: '5 design partners live' }] };
79
-
80
- const TIMELINE = { quarters: ["Q4 '26", "Q1 '27", "Q2 '27", "Q3 '27"],
81
- rows: [{ id: 'checkout', title: 'Checkout v2', sub: 'Convert', cells: ['c', 'c', '', ''], st: 'late', initiative: 'checkout' }, { id: 'search', title: 'Search relevance', sub: 'Convert', cells: ['c', '', '', ''], st: 'risk', initiative: 'search' },
82
- { id: 'returns', title: 'Returns experience', sub: 'Retain', cells: ['c', 'c', '', ''], st: 'ok', initiative: 'returns' }, { id: 'sso', title: 'SSO and SCIM', sub: 'Enterprise', cells: ['c', 'c', 'c', ''], st: 'ok', initiative: 'sso' },
83
- { id: 'onb', title: 'Self-serve onboarding', sub: 'Onboard', cells: ['', 'p', '', ''], st: 'park', initiative: 'onb' }, { id: 'audit', title: 'Enterprise audit logs', sub: 'Enterprise', cells: ['', 'a', '', ''], st: 'prop', initiative: null }],
84
- checkpoints: [{ q: 0, f: 0.62, label: 'Returns on 13 Oct' }, { q: 0, f: 0.95, label: 'Quarterly review on 20 Dec' }, { q: 1, f: 0.7, label: 'Mid-quarter check in Feb' }] };
85
-
86
- /* the commitments of the mockup's progSVG: initiatives (promised and forecast) and the PM's own tasks, as days of the quarter from 1 Oct */
87
- const dn = (n) => new Date(Date.UTC(2026, 9, n)).toISOString().slice(0, 10);
88
- const INIT = (id, n, start, due, fc, pct, st, why) => ({ id, n, kind: 'init', start: dn(start), due: dn(due), fc: dn(fc), pct, st, why, go: id });
89
- const TASK = (id, n, due, st, why, late) => ({ id, n, kind: 'task', due: dn(due), st, why, late: late || 0 });
90
- const DELIVERY = { rows: [
91
- INIT('checkout', 'Checkout v2', 1, 24, 31, 0.5, 'late', 'Sandbox keys and the a11y slot move the ship date.'), INIT('returns', 'Returns experience', 1, 20, 20, 0.4, 'ok', 'Discovery, interview 3 of 5.'),
92
- INIT('sso', 'SSO', 1, 14, 14, 0.75, 'risk', 'Three release gates still open.'), INIT('onb', 'Self-serve onboarding', 1, -1, -1, 0.2, 'park', 'No movement in 9 days. Continue or park?'), INIT('search', 'Search relevance', 1, 37, 37, 0.38, 'risk', 'EN-418 blocked on platform, no reply since Tue.'),
93
- TASK('t-keys', 'Sandbox keys from the vendor', 6, 'over', 'Asked Tue. No reply in 2 days. Blocks 24 Oct.', 2), TASK('t-num', '1 Oct numbers to Priya', 8, 'ok', 'Priya asked at 07:58. Due 10:30.'), TASK('t-wk', 'Weekly status to leadership', 9, 'risk', 'The draft waits for the 14:00 decision.'),
94
- TASK('t-sso', 'SSO date to Marta', 12, 'ok', "Promised after Monday's freeze."), TASK('t-int5', 'Interview 5: review the stop rule', 13, 'ok', 'Decides whether returns discovery continues.'), TASK('t-a11y', 'A11y audit slot', 21, 'risk', 'No slot before 28 Oct unless scope is cut.'),
95
- TASK('t-prd', 'PRD v5 sent to Dara', 7, 'done', 'Sent Wed.'), TASK('t-ssob', 'SSO beta live', 6, 'done', '3 customers, 0 incidents.'), TASK('t-srch', 'Search fix merged', 6, 'done', 'p95 420 to 300 ms.')] };
96
-
97
- /* ── the direction card's case files (stratCase) and the other deck cards' ── */
98
- const DIR_Q = { tc: 'var(--warning)', sit: 'Conversion is off course and retention is flat, but the pivot line is not crossed. Fix the cause before changing the bet.', conf: 76, cta: 'Slide to adjust course',
99
- chg: [['clock', 'Conversion lands at 2.9% against 4.0%', 'forecast', 'bad'], ['up', 'Enterprise is ahead: 3 of 5 partners', 'OKR', 'ok'], ['alert', '2 signals drifting, 3 on watch', 'signals', 'warn']],
100
- opts: [O('adjust', 'Adjust: freeze scope, run the experiment, prepare Returns', 1, 'Course adjusted. Three follow-ups are in Review.', [['check', 'Tests the cause before pivoting', 'ok'], ['clock', 'Pivot review stays on 20 Dec']]),
101
- O('persevere', 'Persevere: hold course', 0, 'Holding course. Signals stay on watch.', [['alert', 'Conversion keeps sliding', 'bad']]), O('pivot', 'Pivot the Convert bet', 0, 'Pivot review requested.', [['alert', 'Trigger is about 2 weeks away', 'bad']])],
102
- unsure: 'One quarter of data.', ign: 'The slope reaches the pivot line in March.' };
103
- const DIR_Y = { tc: 'var(--warning)', sit: 'The north star is ' + VAR + '% behind plan and the gap is widening. At this slope it leaves tolerance in ' + LEAVE + ' and reaches the pivot line in ' + PIVOT + '.', conf: 72, cta: 'Slide to rebalance',
104
- chg: [['clock', 'Growth slowed to 0.8% a month, plan needs 3%', 'Analytics', 'bad'], ['up', 'Enterprise pull is the strongest upside', 'Signals', 'ok'], ['flag', 'Convert is one stage short of target', 'Maturity', 'warn']],
105
- opts: [O('adjust', 'Adjust: shift effort to Enterprise and Retain', 1, 'Rebalance drafted for the Quarterly review.', [['check', 'Follows the strongest evidence', 'ok'], ['alert', 'Convert slows', 'warn']]),
106
- O('persevere', 'Persevere: hold the plan', 0, 'Holding the plan.', [['alert', 'Leaves tolerance in ' + LEAVE, 'bad']]), O('pivot', 'Pivot: Enterprise-first strategy', 0, 'Pivot study requested.', [['alert', 'Too little evidence yet', 'warn']])],
107
- unsure: 'Two quarters of Enterprise data.', ign: 'Pivot line reached in ' + PIVOT + '.' };
108
- const K = (sit, conf, chg, opts, cta) => ({ sit, conf, cta: cta || 'Slide to confirm', chg, opts });
109
- const CALC = {
110
- qkr: K('Two outcomes are on course. Conversion is off course and retention is drifting, so the quarter needs a recovery plan, not a new target.', 74,
111
- [['clock', 'Conversion lands at 2.9% against 4.0%', 'forecast', 'bad'], ['alert', 'Retention lands at 43% against 45%', 'forecast', 'warn'], ['check', 'Enterprise partners and discovery on course', 'OKR', 'ok']],
112
- [O('rec', 'Keep the targets and add a recovery plan', 1, 'Recovery plan drafted for Conversion and Retention.', [['check', 'Keeps the ambition honest', 'ok']]), O('rb', 'Re-baseline Conversion to 3.4%', 0, 'Re-baseline requested.', [['alert', 'Hides the problem', 'bad']]), O('drop', 'Drop the Retention outcome', 0, 'Drop requested.', [['alert', 'Loses a pillar', 'bad']])], 'Slide to plan recovery'),
113
- qsyn: K('Two bets share billing code and two others both need the platform team in November. Sequence them to save time and avoid a clash.', 73,
114
- [['plus', 'SSO and Checkout v2 share billing code', 'Synergy', 'ok'], ['alert', 'Returns and Search relevance both need the platform team in Nov', 'Capacity', 'bad']],
115
- [O('seq', 'Build the billing code once and move Search to December', 1, 'Sequence proposed for the Quarterly review.', [['check', 'Saves about 2 weeks', 'ok'], ['clock', 'Search slips a month', 'warn']]), O('as', 'Keep the plan', 0, 'No change.', [['alert', 'Clash in November', 'bad']])], 'Slide to sequence'),
116
- qns: K('The north star is ' + VAR + '% behind plan and grows about 0.8% a month. Plan needs 3%.', 72,
117
- [['clock', 'Leaves the tolerance band in ' + LEAVE, 'projection', 'warn'], ['alert', 'Reaches the pivot line in ' + PIVOT, 'projection', 'bad']],
118
- [O('path', 'Draft a recovery path that closes half the gap by March', 1, 'Recovery path drafted.', [['check', 'Gives the review something to decide', 'ok']]), O('tgt', 'Revisit the plan target', 0, 'Review requested.', [['alert', 'Moves the goal, not the work', 'warn']]), O('hold', 'Hold', 0, 'Holding.', [['alert', 'Gap keeps widening', 'bad']])], 'Slide to draft'),
119
- ymat: K('Two pillars are on course for September and two are one stage short. Convert and Onboard decide whether the year lands.', 70,
120
- [['flag', 'Convert is one stage short', 'Maturity', 'warn'], ['moon', 'Onboard has no active bet', 'Maturity', 'bad'], ['check', 'Retain and Enterprise are on course', 'Maturity', 'ok']],
121
- [O('b', 'Revive an Onboard bet in Q2 and focus Convert on the checkout fix', 1, 'Plan change drafted for the Quarterly review.', [['check', 'Closes both gaps', 'ok']]), O('k', 'Keep the plan', 0, 'No change.', [['alert', 'Two pillars stay short', 'warn']])], 'Slide to plan'),
122
- ybets: K('Every bet has a date to persevere or pivot. The next one is Returns on 13 Oct, then the Quarterly review on 20 Dec.', 78,
123
- [['flag', 'Returns review on 13 Oct', 'Checkpoint'], ['flag', 'Quarterly review on 20 Dec', 'Checkpoint'], ['spark', 'An agent-proposed Enterprise audit logs bet for Q1', 'Proposal', 'ok']],
124
- [O('p', 'Add the proposed Enterprise audit logs bet to Q1', 1, 'Bet added to the Q1 draft.', [['check', 'Follows the strongest pull', 'ok']]), O('n', 'Decline the proposal', 0, 'Declined.', [['moon', 'Stays in the log']])], 'Slide to add'),
125
- yopp: K('Customer pull for Enterprise is stronger than any other signal. An Enterprise-first strategy is worth a short study before the pivot line.', 62,
126
- [['user', '3 design partners live, 2 asking early', 'Signals', 'ok'], ['flag', 'Enterprise is on course for September', 'Maturity', 'ok'], ['alert', 'Needs capacity from Retain and Convert', 'Capacity', 'warn']],
127
- [O('st', 'Run a 6-week Enterprise-first study', 1, 'Study scoped as a draft brief.', [['check', 'Tests the pivot cheaply', 'ok']]), O('no', 'Stay with the four pillars', 0, 'No change.', [['clock', 'May miss the window', 'warn']])], 'Slide to scope the study'),
128
- };
129
-
130
- const FACTS_SIG = [['clock', '3 drifting'], ['eye', '4 on watch'], ['up', '1 upside']];
131
- const CONV_NUM = { kind: 'num', big: '2.9', unit: '%', delta: 'lands here at this slope', tone: 'var(--destructive)', arr: [3.5, 3.4, 3.4, 3.3, 3.3, 3.2, 3.1], target: 4 };
132
- const DECK = {
133
- quarter: [
134
- { k: 'qdir', ei: 'target', el: 'Quarter direction', h: 'Adjust course early', sub: '2 of 4 outcomes on course. Conversion is drifting. Enterprise is ahead.', hero: { kind: 'ns' }, facts: FACTS_SIG, case: DIR_Q, dir: true },
135
- { k: 'qkr', ei: 'target', el: 'Outcomes', h: '2 of 4 outcomes on course', sub: 'Conversion is off course. Retention is drifting.', hero: { kind: 'krs' }, facts: [['flag', 'Quarterly review 20 Dec']], case: CALC.qkr },
136
- { k: 'qsig', tag: 'critical', h: 'Conversion has fallen six weeks in a row', sub: 'Below 3.0% for 2 weeks is the pivot trigger.', hero: CONV_NUM, facts: [['clock', 'About 2 weeks to the trigger'], ['alert', 'Cart to address loses 45%']], case: CASE.conv },
137
- { k: 'qsyn', tag: 'opp', h: 'Build SSO and Checkout billing together', sub: 'Saves about 2 weeks. Returns and Search clash on the platform team.', hero: { kind: 'rows', rows: [['plus', 'SSO and Checkout share billing code', 'ok', '+2 wk'], ['alert', 'Returns and Search need the platform team', 'bad', 'clash']] }, facts: [['user', 'Dara carries 4 items']], case: CALC.qsyn },
138
- { k: 'qwin', tag: 'big', h: 'Enterprise is ahead: 3 of 5 partners', sub: 'Two more asked for SCIM early.', hero: { kind: 'ring', done: 3, total: 5, cap: '3 of 5 partners', sub: '2 more asking' }, facts: [['flag', 'First year-one milestone']], case: CASE.ent },
139
- { k: 'qns', ei: 'up', el: 'North star', h: 'North star is ' + VAR + '% behind plan', sub: 'Leaves tolerance in ' + LEAVE + ', pivot line in ' + PIVOT + '.', hero: { kind: 'ns' }, facts: [['clock', '0.8% a month, plan needs 3%']], case: CALC.qns },
140
- ],
141
- year: [
142
- { k: 'ydir', ei: 'target', el: 'Year direction', h: 'North star is ' + VAR + '% behind and widening', sub: 'It leaves tolerance in ' + LEAVE + ' and reaches the pivot line in ' + PIVOT + '.', hero: { kind: 'ns' }, facts: FACTS_SIG, case: DIR_Y, dir: true },
143
- { k: 'ymat', ei: 'flag', el: 'Maturity', h: 'Two pillars one stage short', sub: 'Convert and Onboard decide whether the year lands.', hero: { kind: 'ladder' }, facts: [['flag', 'Target: September 2027']], case: CALC.ymat },
144
- { k: 'yns', ei: 'up', el: 'North star', h: 'The gap is widening: ' + nsVar() + '% against plan', sub: 'Plan needs 3% a month. We are at 0.8%.', hero: { kind: 'ns' }, facts: [['alert', 'Pivot line in ' + PIVOT]], case: CALC.qns },
145
- { k: 'ybets', ei: 'flag', el: 'Bets and checkpoints', h: 'Every bet has a date to persevere or pivot', sub: 'Next: Returns on 13 Oct, then the Quarterly review on 20 Dec.', hero: { kind: 'rows', rows: [['flag', 'Returns review', '', '13 Oct'], ['flag', 'Quarterly review', '', '20 Dec'], ['spark', 'Enterprise audit logs proposed', 'ok', 'agent']] }, facts: [['target', '6 bets, 4 pillars']], case: CALC.ybets },
146
- { k: 'ysig', tag: 'critical', h: 'Conversion is the earliest warning', sub: 'Six weeks down. The pivot trigger is 2 weeks below 3.0%.', hero: { ...CONV_NUM, big: '3.1', delta: 'falling six weeks' }, facts: [['clock', '2 weeks to trigger']], case: CASE.conv },
147
- { k: 'yopp', tag: 'opp', h: 'An Enterprise-first strategy deserves a study', sub: 'Customer pull is the strongest signal we have.', hero: { kind: 'rows', rows: [['user', '3 design partners live', 'ok'], ['mail', '2 asking for SCIM early', 'ok'], ['alert', 'Needs capacity from Retain', 'warn']] }, facts: [['spark', '6-week study']], case: CALC.yopp },
148
- ],
149
- };
150
-
151
- export const STRATEGY = {
152
- ok: true, today: '2026-10-08', demo: true, north: NORTH, outcomes: OUTCOMES, signals: SIGNALS, synergy: SYNERGY, timeline: TIMELINE, maturity: MATURITY, delivery: DELIVERY, deck: DECK,
153
- head: { quarter: { i: 'target', h: 'Q4 is drifting: adjust early, before the pivot line', s: '2 of 4 outcomes on course. Conversion is off course and retention is flat. Enterprise is ahead.', ring: [2, 4] },
154
- year: { i: 'flag', h: 'North star ' + VAR + '% behind plan, gap widening', s: 'Leaves tolerance in ' + LEAVE + ', reaches the pivot line in ' + PIVOT + ". 2 of 4 pillars on course for Sep '27.", ring: [2, 4] } },
155
- direction: { state: 'adjust', next: 'Quarterly review, 20 Dec' },
156
- sources: { kr_metrics: 4, bets: 6, hypotheses: 3, signal_rules: 8 },
157
- };
158
-
159
- /* the answer for GET /api/c3-strategy; chained under c3-demo.js's fetch wrapper (see the header) */
160
- const realFetch = typeof window !== 'undefined' && window.fetch ? window.fetch.bind(window) : null;
161
- if (realFetch) {
162
- window.fetch = (input, init) => {
163
- try {
164
- const raw = typeof input === 'string' ? input : input instanceof URL ? input.href : input && input.url;
165
- const method = String((init && init.method) || (input && input.method) || 'GET').toUpperCase();
166
- const u = new URL(raw, location.origin);
167
- if (method === 'GET' && u.origin === location.origin && u.pathname === '/api/c3-strategy') {
168
- return Promise.resolve(new Response(JSON.stringify(STRATEGY), { status: 200, headers: { 'content-type': 'application/json' } }));
169
- }
170
- } catch { /* an unreadable request goes on as it is */ }
171
- return realFetch(input, init);
172
- };
173
- }
@@ -1,169 +0,0 @@
1
- /* pm/c3-demo-cal4.js — DEMO fixtures for the Calendar page (initiative calendar-time-page) on /c3.html?demo=1.
2
- * c3-demo.js passes every GET /api/calendar-views answer through withCalendarPage(), which adds the three keys the page reads:
3
- * layers the dated items of the range (milestones and due dates, releases, report dates, my due items), each with its kind,
4
- * its layer, its tone and the reference to its home
5
- * free the free blocks of 90 minutes or more between 09:00 and 18:00 on the working days from today, each with a
6
- * suggested use or none
7
- * context for some meetings: what came out of a past one and what moved after it, or what is prepared and what to prepare
8
- * for a coming one. Every claim carries a pointer. One past meeting has nothing held, to show the honest state.
9
- * The content reuses the demo's initiatives (checkout, sso, search, returns), its people and its meetings and work items
10
- * (c3-demo-data.js). Real mode never loads this file. Nothing here reaches the server. */
11
- import * as D from './c3-demo-data.js';
12
- import { withCalendarTidy } from './c3-demo-cal5.js'; // the tidy-up suggestions and the one meeting they need
13
-
14
- const DAY = 86400000;
15
- const addDays = (iso, n) => new Date(Date.parse(iso + 'T00:00:00Z') + n * DAY).toISOString().slice(0, 10);
16
- const dow = (iso) => new Date(Date.parse(iso + 'T00:00:00Z')).getUTCDay();
17
- const pad = (n) => String(n).padStart(2, '0');
18
- const hm = (min) => pad(Math.floor(min / 60)) + ':' + pad(min % 60);
19
- const minOf = (at) => { const m = /T(\d{2}):(\d{2})/.exec(String(at || '')); return m ? Number(m[1]) * 60 + Number(m[2]) : null; };
20
-
21
- const init = (id) => ({ type: 'initiative', id });
22
- const item = (id) => ({ type: 'item', id });
23
-
24
- /* the dated items: [date, kind, layer, title, tone, ref, initiative] */
25
- const DATED = [
26
- ['2026-10-09', 'due', 'milestones', 'Copy freeze (Lee)', null, { type: 'plan-item', id: 'checkout-copy' }, 'checkout'],
27
- ['2026-10-12', 'milestone', 'milestones', 'SSO freeze', 'warn', init('sso'), 'sso'],
28
- ['2026-10-13', 'milestone', 'milestones', 'Interview 5: park or continue Returns', null, init('returns'), 'returns'],
29
- ['2026-10-24', 'milestone', 'milestones', 'Ship Checkout v2 (promised)', 'bad', init('checkout'), 'checkout'],
30
- ['2026-11-06', 'milestone', 'milestones', 'Search relevance beta', 'warn', init('search'), 'search'],
31
- ['2026-12-14', 'due', 'milestones', 'Board update review', null, { type: 'plan-item', id: 'board-update' }, 'checkout'],
32
- ['2026-10-14', 'release', 'releases', 'SSO general release', 'warn', { type: 'release', id: 'rel-sso-1' }, 'sso'],
33
- ['2026-10-31', 'release', 'releases', 'Checkout v2 on the full scope', 'bad', { type: 'release', id: 'rel-checkout-2' }, 'checkout'],
34
- ['2026-11-20', 'release', 'releases', 'Search relevance 1.0', null, { type: 'release', id: 'rel-search-1' }, 'search'],
35
- ['2026-12-20', 'report', 'reports', 'Quarterly board update', null, { type: 'report', id: 'board-quarterly' }, null],
36
- ['2026-10-06', 'own', 'mine', 'Payments sandbox keys', 'bad', item('item-demo018'), 'checkout'],
37
- ['2026-10-08', 'own', 'mine', 'Reply to Marta: SSO 14 Oct, SCIM in Nov', 'warn', item('item-demo011'), 'sso'],
38
- ['2026-10-12', 'own', 'mine', 'Confirm the SSO date to Marta', null, item('item-demo016'), 'sso'],
39
- ['2026-10-13', 'own', 'mine', 'Share returns insights with sales', null, item('item-demo017'), 'returns'],
40
- ['2026-11-16', 'own', 'mine', 'Write the Q1 discovery plan', null, item('item-demo020'), null],
41
- ];
42
- /* the weekly status to leadership is a report date every Friday: routine, so Month, Quarter and Year count it (calendar-highlights) */
43
- for (let d = '2026-09-04'; d <= '2026-12-25'; d = addDays(d, 7)) DATED.push([d, 'report', 'reports', 'Weekly status to leadership', null, { type: 'report', id: 'leadership-weekly' }, null, { cadence: 'weekly', routine: true }]);
44
-
45
- function layersIn(start, end) {
46
- return DATED.filter((x) => x[0] >= start && x[0] <= end).sort((a, b) => (a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0))
47
- .map(([date, kind, layer, title, tone, ref, initiative, extra], i) => ({ id: 'dated-' + date + '-' + i, date, kind, layer, title, tone, ref, ...(initiative ? { initiative } : {}), ...(extra || {}) }));
48
- }
49
-
50
- /* the suggested uses of a free block, from the demo's work items; a block past the first of a day gets none */
51
- const SUGGEST = [
52
- { text: 'Prep for Sprint planning at 14:00: settle the scope cut first', ref: item('item-demo010') },
53
- { text: 'Draft the weekly status for leadership, due Friday', ref: item('item-demo012') },
54
- { text: 'Confirm the SSO date to Marta before the freeze', ref: item('item-demo016') },
55
- { text: 'Write the Q1 discovery plan, due 16 Nov', ref: item('item-demo020') },
56
- ];
57
- const MIN = 90; const START = 9 * 60; const END = 18 * 60;
58
-
59
- function meetingsOn(date) {
60
- const day = withCalendarTidy(D.calendarViews('/api/calendar-views?view=day&date=' + date));
61
- return ((day.cells[0] && day.cells[0].events) || []).filter((e) => e.kind !== 'milestone')
62
- .map((e) => [minOf(e.at), minOf(e.end)]).filter((x) => x[0] !== null && x[1] !== null).sort((a, b) => a[0] - b[0]);
63
- }
64
-
65
- function freeIn(start, end) {
66
- const days = []; let n = 0; let k = 0;
67
- for (let d = start < D.TODAY ? D.TODAY : start; d <= end; d = addDays(d, 1)) {
68
- if (dow(d) === 0 || dow(d) === 6) continue;
69
- const blocks = []; let cur = START;
70
- for (const [s, e] of [...meetingsOn(d), [END, END]]) {
71
- const a = Math.max(cur, START); const b = Math.min(s, END);
72
- if (b - a >= MIN) blocks.push({ from: hm(a), to: hm(b), minutes: b - a, suggestion: blocks.length ? null : SUGGEST[k++ % SUGGEST.length] });
73
- cur = Math.max(cur, e);
74
- }
75
- n += blocks.length;
76
- if (blocks.length) days.push({ date: d, blocks });
77
- }
78
- return { min_minutes: MIN, day_start: hm(START), day_end: hm(END), days, count: n };
79
- }
80
-
81
- /* what PMOS holds about some meetings. The keys are the demo's event ids (base id @ date). */
82
- const CONTEXT = {
83
- 'm2@2026-10-07': { phase: 'past', held: true, items: [
84
- { kind: 'decision', text: 'Cut Checkout v2 to three core flows if the sandbox keys slip past Friday', ref: init('checkout'), at: '2026-10-07T11:15:00' },
85
- { kind: 'action', text: 'Dara confirms the payments sandbox keys', ref: item('item-demo018'), at: '2026-10-07T11:15:00' },
86
- { kind: 'action', text: 'Lee sends the annual-plan label', ref: item('item-demo019'), at: '2026-10-07T11:15:00' },
87
- { kind: 'moved', text: 'Payments sandbox keys moved to Waiting for Dara', ref: item('item-demo018'), at: '2026-10-07T14:10:00' },
88
- { kind: 'moved', text: 'The Checkout v2 forecast moved from 24 Oct to 31 Oct', ref: init('checkout'), at: '2026-10-07T16:40:00' },
89
- ] },
90
- 'm3@2026-10-06': { phase: 'past', held: false, items: [] },
91
- 'm1@2026-10-08': { phase: 'upcoming', held: true, items: [
92
- { kind: 'prepared', text: 'Async summary of the 3 open tickets', ref: init('search') },
93
- ],
94
- // a meeting about a board (initiative c3-meeting-board): the title names no board, so the PM linked it
95
- level: { kind: 'board', ws: D.WS_ID, id: 'idpf', name: 'IDPF', why: 'you linked it to the board', by: 'pm' },
96
- brief: {
97
- initiative: null,
98
- gist: ['A meeting of the IDPF board.', 'IDPF Sprint 42 has 11 of 20 tickets still open, and 2 are blocked.', 'On the board: 1 initiative at risk.', '1 new ask waits in triage.'],
99
- board: { ws: D.WS_ID, id: 'idpf', name: 'IDPF', health: 'warn', counts: { total: 3, open: 3, risk: 1, late: 0 }, next_release: null },
100
- sprint: { name: 'IDPF Sprint 42', start: '2026-10-05', end: '2026-10-16', counts: { todo: 5, doing: 6, done: 9 }, total: 20, open: 11, blocked: 2, read_at: '2026-10-08T08:10:00' },
101
- matters: [
102
- { tone: 'bad', tag: 'Blocked', text: 'IDPF-1190 QA test plan for the beta: QA capacity', meta: 'In Progress · flagged in Jira', ref: { type: 'jira', id: 'IDPF-1190', board: 'idpf', ws: D.WS_ID } },
103
- { tone: 'bad', tag: 'Blocked', text: 'IDPF-1204 Partner sandbox keys', meta: 'Blocked', ref: { type: 'jira', id: 'IDPF-1204', board: 'idpf', ws: D.WS_ID } },
104
- { tone: 'warn', tag: 'At risk', text: 'Self-serve onboarding v2', meta: 'initiative on this board · due 2026-10-26', ref: init('IDPF-12') },
105
- { tone: 'warn', tag: 'New ask', text: 'SSO for enterprise trials, from Lina Kusuma (Sales)', meta: 'waiting in triage', ref: { type: 'ask', id: 'ask-demo1', board: 'idpf', ws: D.WS_ID } },
106
- ],
107
- last: null, earlier: 0, purpose: null, prep: null, links: [], refs: [], planning: false,
108
- sources: ['the calendar', 'the IDPF board', 'its IDPF Sprint 42 tickets from Jira'],
109
- } },
110
- 'm2@2026-10-08': { phase: 'upcoming', held: true, items: [
111
- { kind: 'prepared', text: 'Agenda: scope cut, blockers, next steps', ref: init('checkout') },
112
- { kind: 'prepared', text: 'Pre-read: the Checkout v2 PRD with 2 open comments', ref: { type: 'plan-item', id: 'checkout-prd' } },
113
- { kind: 'todo', text: 'Confirm the 1 Oct numbers before the 10:30 update', ref: item('item-demo001') },
114
- ] },
115
- 'm3@2026-10-08': { phase: 'upcoming', held: true, items: [
116
- { kind: 'prepared', text: 'Interview guide, draft 2', ref: init('returns') },
117
- { kind: 'todo', text: 'Review the 13:00 interview guide', ref: item('item-demo004') },
118
- ] },
119
- 'm4@2026-10-08': { phase: 'upcoming', held: true, items: [
120
- { kind: 'prepared', text: 'Three scope options with their dates', ref: init('checkout') },
121
- { kind: 'todo', text: 'Cut Checkout v2 to 3 core flows to hold 24 Oct?', ref: item('item-demo010') },
122
- ],
123
- level: { kind: 'initiative', id: 'checkout', name: 'Checkout v2', why: "today's brief names the initiative", by: 'brief' },
124
- // the card before a meeting (initiative c3-meeting-card): what the server's briefOf puts together
125
- brief: {
126
- initiative: { id: 'checkout', title: 'Checkout v2', status: 'at risk' },
127
- gist: ['For Checkout v2, which is at risk.', '1 item blocked, 1 item due today.'],
128
- matters: [
129
- { tone: 'bad', tag: 'Blocked', text: 'Sprint scope: waiting on the scope decision', meta: 'Dara · due 2026-10-08', ref: { type: 'plan-item', id: 'checkout-scope', initiative: 'checkout' } },
130
- { tone: 'warn', tag: 'Due today', text: 'Confirm the 1 Oct numbers', meta: 'yours · due 2026-10-08', ref: item('item-demo001') },
131
- ],
132
- last: { id: 'note-demo-sp1', title: 'Sprint planning', at: '2026-10-01T14:00:00', private: false,
133
- overview: 'The team split the checkout flows into 3 core and 2 later. Dara asked for a scope decision before this sprint.',
134
- decisions: ['Payments stays in the first release.'], actions: [{ text: 'Send the 3 scope options', owner: 'You', due: 'Wed 7 Oct' }] },
135
- earlier: 3, purpose: null, prep: null, links: [], refs: [],
136
- sources: ['the calendar', '3 earlier notes of this meeting', 'the checkout plan', 'your items'],
137
- } },
138
- // a meeting about the Portfolio: the brief names no initiative and the PM linked it
139
- 'm5@2026-10-08': { phase: 'upcoming', held: false, items: [],
140
- level: { kind: 'portfolio', name: 'Portfolio', why: 'you linked it to the Portfolio', by: 'pm' },
141
- brief: {
142
- initiative: null,
143
- gist: ['A review of 5 boards.', 'Across the boards: 1 initiative late and 2 initiatives at risk.', '1 release in the next 14 days.'],
144
- boards: [
145
- { ws: D.WS_ID, id: 'idpf', name: 'IDPF', health: 'warn', line: '3 open initiatives · 1 at risk · 1 ask' },
146
- { ws: D.WS_ID, id: 'pay', name: 'Payments', health: 'ok', line: '2 open initiatives' },
147
- { ws: D.WS_ID, id: 'growth', name: 'Growth', health: 'ok', line: '2 open initiatives' },
148
- { ws: D.WS_ID, id: 'office', name: 'Office move', health: 'bad', line: '2 open initiatives · 1 late · 1 at risk' },
149
- { ws: D.WS_ID, id: 'hiring', name: 'Hiring Q4', health: 'ok', line: '1 open initiative' },
150
- ],
151
- matters: [
152
- { tone: 'bad', tag: 'Late', text: 'Fit-out contractor selection', meta: 'Office move · due 2026-10-06', ref: init('OFF-01') },
153
- { tone: 'warn', tag: 'At risk', text: 'Self-serve onboarding v2', meta: 'IDPF · due 2026-10-26', ref: init('IDPF-12') },
154
- { tone: 'ok', tag: 'Release', text: 'Tokenisation 1.4', meta: 'Payments · 2026-10-15', ref: { type: 'release', id: 'rel-pay-14' } },
155
- ],
156
- last: null, earlier: 0, purpose: null, prep: null, links: [], refs: [], planning: false,
157
- sources: ['the calendar', 'every board on the Portfolio'],
158
- } },
159
- };
160
-
161
- /* the boards a meeting can be linked to (routes-calendar-views.js link_boards), as c3-demo-boards.js names them */
162
- const LINK_BOARDS = [['idpf', 'IDPF'], ['pay', 'Payments'], ['growth', 'Growth'], ['office', 'Office move'], ['hiring', 'Hiring Q4']].map(([id, name]) => ({ ws: D.WS_ID, id, name }));
163
-
164
- /** The answer of GET /api/calendar-views with the Calendar page's keys added. */
165
- export function withCalendarPage(out) {
166
- if (!out || !out.range) return out;
167
- const { start, end } = out.range;
168
- return withCalendarTidy({ ...out, layers: layersIn(start, end), free: freeIn(start, end), context: CONTEXT, link_boards: LINK_BOARDS });
169
- }
@@ -1,52 +0,0 @@
1
- /* pm/c3-demo-cal5.js — DEMO fixtures for the Calendar tidy-up (initiative calendar-tidy-up) on /c3.html?demo=1.
2
- * c3-demo-cal4.js passes its answer through withCalendarTidy(), which adds:
3
- * one meeting "Checkout design review" on Thu 15 Oct, 09:45 to 10:30, about Checkout v2. It overlaps the Standup.
4
- * tidy the suggestions of the range, from the rules of lib/calendar-tidy.js applied by hand to the demo's
5
- * meetings and initiatives: one of each severity across the zooms, with an overlap and a review too early.
6
- * tidy_total, tidy_note
7
- * With &tidy=none on the page address the three tidy keys are left out, to show the state of a server that sends none;
8
- * with &tidy=unread the list is empty and tidy_note names a rule that could not run.
9
- * Each suggestion points at a demo meeting or initiative that the page draws. Real mode never loads this file. Nothing
10
- * here reaches the server, and nothing writes. */
11
-
12
- const REVIEW = { id: 'm6@2026-10-15', title: 'Checkout design review', at: '2026-10-15T09:45:00', end: '2026-10-15T10:30:00', kind: 'ready', initiative: 'checkout' };
13
-
14
- const ev = (id) => ({ type: 'event', id });
15
- const init = (id) => ({ type: 'initiative', id });
16
-
17
- /* [id, rule, severity, date, title, why, suggestion, refs] */
18
- const TIDY = [
19
- ['overlap:m1@2026-10-15+m6@2026-10-15', 'overlap', 'bad', '2026-10-15', 'Standup overlaps Checkout design review',
20
- 'Standup runs from 09:30 to 10:00 and Checkout design review starts at 09:45, so you cannot attend both in full.',
21
- 'Move Checkout design review to 10:00 or shorten Standup.', [ev('m1@2026-10-15'), ev('m6@2026-10-15')]],
22
- ['likely-delay:ini:checkout:promised', 'likely-delay', 'bad', '2026-10-24', 'The promised date of Checkout v2 is likely to slip',
23
- 'Checkout v2 is delayed, and the promised date of Checkout v2 is on 2026-10-24.',
24
- 'Agree a new date for the promised date with the people who depend on it, or cut its scope to keep 2026-10-24.', [init('checkout')]],
25
- ['no-buffer:m3@2026-10-08+m4@2026-10-08', 'no-buffer', 'warn', '2026-10-08', 'No break between Customer interview and Sprint planning',
26
- 'Sprint planning starts at 14:00, the minute Customer interview ends. You have no time to move, take notes or prepare.',
27
- 'Move Sprint planning to 14:10 or end Customer interview 10 minutes earlier.', [ev('m3@2026-10-08'), ev('m4@2026-10-08')]],
28
- ['prep-risk:m4@2026-10-08', 'prep-risk', 'warn', '2026-10-08', 'Little time to prepare for Sprint planning',
29
- 'Sprint planning has 1 prep step left, and only 0 minutes of free working time remain before it. Each step needs about 30 minutes.',
30
- 'Block time before Sprint planning for the prep, or move Sprint planning to a later day.', [ev('m4@2026-10-08')]],
31
- ['likely-delay:ini:search:promised', 'likely-delay', 'warn', '2026-10-30', 'The promised date of Search relevance is likely to slip',
32
- 'Search relevance is at risk, and the promised date of Search relevance is on 2026-10-30.',
33
- 'Agree a new date for the promised date with the people who depend on it, or cut its scope to keep 2026-10-30.', [init('search')]],
34
- ['review-early:m6@2026-10-15', 'review-early', 'info', '2026-10-15', 'Checkout design review comes before what it reviews',
35
- 'Checkout design review is on 2026-10-15, but the promised date of Checkout v2 is on 2026-10-24 and is not done yet.',
36
- 'Move Checkout design review to 2026-10-24 or later, or keep it as a progress check and say so in the invite.', [ev('m6@2026-10-15'), init('checkout')]],
37
- ].map(([id, rule, severity, date, title, why, suggestion, refs]) => ({ id, rule, severity, date, title, why, suggestion, refs }));
38
-
39
- /** The calendar-views answer with the extra meeting in its day cell and the tidy-up keys of its range. */
40
- export function withCalendarTidy(out) {
41
- if (!out || !out.range) return out;
42
- const { start, end } = out.range;
43
- const cells = (out.cells || []).map((c) => (c.start === c.end && c.start === REVIEW.at.slice(0, 10)
44
- ? { ...c, events: [...(c.events || []).filter((e) => e.id !== REVIEW.id), { ...REVIEW }] } : c));
45
- // /c3.html?demo=1&tidy=none shows the page of a server that sends no tidy-up list (the honest absent state)
46
- // and &tidy=unread the state of a server that could not read the initiatives (an empty list with the reason)
47
- let knob = ''; try { knob = new URLSearchParams(location.search).get('tidy') || ''; } catch { knob = ''; }
48
- if (knob === 'none') return { ...out, cells };
49
- if (knob === 'unread') return { ...out, cells, tidy: [], tidy_total: 0, tidy_note: { 'likely-delay': 'no initiative status was read, so initiatives cannot be checked' } };
50
- const tidy = TIDY.filter((s) => s.date >= start && s.date <= end).map((s) => ({ ...s, refs: s.refs.map((r) => ({ ...r })) }));
51
- return { ...out, cells, tidy, tidy_total: tidy.length, tidy_note: {} };
52
- }