create-pmos 0.399.0 → 0.401.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 (425) hide show
  1. package/package.json +30 -25
  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 +3 -3
  8. package/workspace/briefing-premium-doc-edit-test.js +2 -8
  9. package/workspace/briefing-premium-sources-test.js +2 -0
  10. package/workspace/briefing-premium-test.js +6 -2
  11. package/workspace/briefing-premium-work-test.js +9 -4
  12. package/workspace/c3-capture-test.js +0 -17
  13. package/workspace/changelog.json +29 -0
  14. package/workspace/guide/briefing-premium.md +2 -2
  15. package/workspace/guide/home.md +24 -3
  16. package/workspace/guide/layout.md +2 -2
  17. package/workspace/guide/notes.md +2 -2
  18. package/workspace/guide/phone-companion.md +1 -1
  19. package/workspace/lib/core-docs.js +2 -2
  20. package/workspace/lib/route-modules.js +1 -9
  21. package/workspace/lib/routes-phone-day.js +18 -9
  22. package/workspace/lib/routes-slash.js +95 -0
  23. package/workspace/package-lock.json +2 -2
  24. package/workspace/package.json +1 -2
  25. package/workspace/premium-chat-goal-view-test.js +1 -1
  26. package/workspace/premium-chat-term-test.js +0 -10
  27. package/workspace/premium-menu-rows-test.js +1 -1
  28. package/workspace/premium-phone-card-test.js +8 -3
  29. package/workspace/premium-vw-cal-test.js +4 -1
  30. package/workspace/premium-vw-doc-test.js +1 -8
  31. package/workspace/premium-work-depth-test.js +2 -3
  32. package/workspace/public/capture.html +23 -0
  33. package/workspace/public/pm/c3-base.js +47 -0
  34. package/workspace/public/pm/c3-capture.js +1 -1
  35. package/workspace/public/pm/c3-ini-ui.js +1 -1
  36. package/workspace/public/pm/c3-sheet.js +1 -1
  37. package/workspace/public/pm/c3-toast.js +1 -1
  38. package/workspace/public/pm/console3.css +3 -0
  39. package/workspace/public/pm/cozy-home.css +21 -6
  40. package/workspace/public/pm/cozy-today.css +4 -3
  41. package/workspace/public/pm/cozy-viewer.js +4 -2
  42. package/workspace/public/pm/cozy.css +9 -0
  43. package/workspace/public/pm/goal-chat.js +5 -1
  44. package/workspace/public/pm/home-app.js +65 -33
  45. package/workspace/public/pm/home-chat.js +34 -29
  46. package/workspace/public/pm/home-data.js +10 -2
  47. package/workspace/public/pm/home-dictate.js +7 -4
  48. package/workspace/public/pm/home-ini.js +13 -3
  49. package/workspace/public/pm/home-list.js +18 -10
  50. package/workspace/public/pm/home-more.js +2 -2
  51. package/workspace/public/pm/home-phone-card.js +9 -4
  52. package/workspace/public/pm/home-review.js +2 -3
  53. package/workspace/public/pm/home-today.js +11 -8
  54. package/workspace/public/pm/home-work.js +13 -8
  55. package/workspace/public/pm/note-dock.js +1 -2
  56. package/workspace/public/pm/notes-links.js +1 -2
  57. package/workspace/public/pm/notes-task.js +3 -4
  58. package/workspace/public/pm/premium-board.js +1 -1
  59. package/workspace/public/pm/premium-initiative-head.js +3 -3
  60. package/workspace/public/pm/premium-vw-doc.css +20 -2
  61. package/workspace/public/pm/premium-vw-doc.js +22 -7
  62. package/workspace/public/pm/premium-vw-item.css +6 -0
  63. package/workspace/public/pm/view-notes.js +2 -2
  64. package/workspace/replaced-tests.json +435 -0
  65. package/workspace/run-tests.js +323 -28
  66. package/workspace/server.js +15 -10
  67. package/workspace/test-files.json +4 -140
  68. package/workspace/test-lists/base.json +1 -2
  69. package/workspace/test-lists/c3-desktop-light-load.json +1 -2
  70. package/workspace/test-lists/c3-initiative-boards.json +1 -2
  71. package/workspace/test-lists/c3-meeting-focus.json +2 -12
  72. package/workspace/test-lists/c3-work-agent.json +1 -2
  73. package/workspace/test-lists/calendar-tidy-up.json +1 -2
  74. package/workspace/test-lists/console3-reports.json +1 -2
  75. package/workspace/test-lists/docs-three-way-sync.json +1 -2
  76. package/workspace/test-lists/extension-capture.json +5 -0
  77. package/workspace/test-lists/jira-wbs.json +1 -2
  78. package/workspace/test-lists/legacy-cleanup-a.json +9 -0
  79. package/workspace/test-lists/meeting-material.json +1 -2
  80. package/workspace/test-lists/meeting-notes.json +2 -36
  81. package/workspace/test-lists/meeting-replay.json +1 -2
  82. package/workspace/test-lists/mm-capture.json +2 -12
  83. package/workspace/test-lists/my-work.json +2 -10
  84. package/workspace/test-lists/onboarding-firstrun.json +2 -12
  85. package/workspace/test-lists/people-directory.json +1 -2
  86. package/workspace/test-lists/run2-a.json +1 -2
  87. package/workspace/test-lists/run2-d.json +2 -19
  88. package/workspace/test-lists/run3-b.json +1 -2
  89. package/workspace/test-lists/run3-c.json +2 -12
  90. package/workspace/test-lists/run4-b.json +1 -2
  91. package/workspace/test-lists/run4-d.json +1 -5
  92. package/workspace/test-lists/run5-c.json +1 -11
  93. package/workspace/test-lists/run6.json +1 -5
  94. package/workspace/test-lists/workspace-launch-flags.json +2 -12
  95. package/workspace/test-lists/workspace-profile-detection.json +2 -10
  96. package/workspace/test-timings.json +242 -123
  97. package/workspace/c3-briefing-test.js +0 -136
  98. package/workspace/c3-core-docs-test.js +0 -170
  99. package/workspace/c3-driver-fixture.js +0 -64
  100. package/workspace/c3-driver-test.js +0 -169
  101. package/workspace/c3-foundation-test.js +0 -163
  102. package/workspace/c3-ib-items-test.js +0 -114
  103. package/workspace/c3-ib-more-test.js +0 -146
  104. package/workspace/c3-ib-triage-backlog-test.js +0 -128
  105. package/workspace/c3-ini-harness.js +0 -66
  106. package/workspace/c3-ini-life-test.js +0 -167
  107. package/workspace/c3-initiatives-test.js +0 -186
  108. package/workspace/c3-light-load-test.js +0 -112
  109. package/workspace/c3-one-home-test.js +0 -149
  110. package/workspace/c3-phone-test.js +0 -289
  111. package/workspace/c3-quiet-test.js +0 -157
  112. package/workspace/c3-report-design-real-test.js +0 -264
  113. package/workspace/c3-report-design-test.js +0 -442
  114. package/workspace/c3-report-setup-test.js +0 -192
  115. package/workspace/c3-report-structure-real-test.js +0 -248
  116. package/workspace/c3-report-structure-test.js +0 -397
  117. package/workspace/c3-reports-test.js +0 -288
  118. package/workspace/c3-scan-test.js +0 -517
  119. package/workspace/c3-sessions-panel-test.js +0 -365
  120. package/workspace/c3-settings-test.js +0 -204
  121. package/workspace/c3-updates-test.js +0 -131
  122. package/workspace/c3-work-test.js +0 -260
  123. package/workspace/cut-stub.js +0 -40
  124. package/workspace/first-paint-audit.js +0 -160
  125. package/workspace/lib/c3-full-console.js +0 -15
  126. package/workspace/lib/engine/derived/trust.js +0 -3
  127. package/workspace/lib/engine/plan-forecast.js +0 -342
  128. package/workspace/lib/engine/report-families.js +0 -175
  129. package/workspace/lib/engine/truth-table.js +0 -57
  130. package/workspace/lib/routes-c3-init.js +0 -54
  131. package/workspace/lib/routes-c3-life.js +0 -120
  132. package/workspace/lib/routes-c3-timeline.js +0 -192
  133. package/workspace/lib/routes-forecast.js +0 -86
  134. package/workspace/lib/routes-releases.js +0 -130
  135. package/workspace/lib/routes-report-facts.js +0 -85
  136. package/workspace/lib/routes-report-families.js +0 -33
  137. package/workspace/lib/routes-signals.js +0 -51
  138. package/workspace/lib/routes-timeline.js +0 -197
  139. package/workspace/public/c3.html +0 -35
  140. package/workspace/public/index.html +0 -156
  141. package/workspace/public/pm/app.js +0 -831
  142. package/workspace/public/pm/bd-board.js +0 -159
  143. package/workspace/public/pm/bd-drag.js +0 -59
  144. package/workspace/public/pm/bd-model.js +0 -152
  145. package/workspace/public/pm/bd-timeline.js +0 -233
  146. package/workspace/public/pm/bd-tree.js +0 -244
  147. package/workspace/public/pm/board-copy.js +0 -59
  148. package/workspace/public/pm/board-read.js +0 -38
  149. package/workspace/public/pm/branches-sheet.js +0 -56
  150. package/workspace/public/pm/breakdown-api.js +0 -58
  151. package/workspace/public/pm/breakdown-copy.js +0 -138
  152. package/workspace/public/pm/briefing-deck.js +0 -441
  153. package/workspace/public/pm/briefing-model.js +0 -251
  154. package/workspace/public/pm/c3-ambient.js +0 -100
  155. package/workspace/public/pm/c3-audience-link.js +0 -21
  156. package/workspace/public/pm/c3-audience.js +0 -46
  157. package/workspace/public/pm/c3-boot.js +0 -13
  158. package/workspace/public/pm/c3-breakdown.js +0 -240
  159. package/workspace/public/pm/c3-brief-data.js +0 -11
  160. package/workspace/public/pm/c3-brief-mentions.js +0 -137
  161. package/workspace/public/pm/c3-brief-needs.js +0 -288
  162. package/workspace/public/pm/c3-brief-pulse.js +0 -112
  163. package/workspace/public/pm/c3-brief-summary.js +0 -139
  164. package/workspace/public/pm/c3-brief-today.js +0 -79
  165. package/workspace/public/pm/c3-brief.js +0 -279
  166. package/workspace/public/pm/c3-cal-strategy.js +0 -529
  167. package/workspace/public/pm/c3-calendar.js +0 -965
  168. package/workspace/public/pm/c3-calpop.js +0 -111
  169. package/workspace/public/pm/c3-case.js +0 -196
  170. package/workspace/public/pm/c3-core-docs.css +0 -18
  171. package/workspace/public/pm/c3-core-docs.js +0 -236
  172. package/workspace/public/pm/c3-daypart.js +0 -176
  173. package/workspace/public/pm/c3-demo-boards.js +0 -764
  174. package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
  175. package/workspace/public/pm/c3-demo-brief-page.js +0 -70
  176. package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
  177. package/workspace/public/pm/c3-demo-cal2.js +0 -66
  178. package/workspace/public/pm/c3-demo-cal3.js +0 -173
  179. package/workspace/public/pm/c3-demo-cal4.js +0 -169
  180. package/workspace/public/pm/c3-demo-cal5.js +0 -52
  181. package/workspace/public/pm/c3-demo-coredocs.js +0 -221
  182. package/workspace/public/pm/c3-demo-data.js +0 -552
  183. package/workspace/public/pm/c3-demo-focus.js +0 -181
  184. package/workspace/public/pm/c3-demo-init.js +0 -430
  185. package/workspace/public/pm/c3-demo-life.js +0 -77
  186. package/workspace/public/pm/c3-demo-material.js +0 -58
  187. package/workspace/public/pm/c3-demo-misc2.js +0 -34
  188. package/workspace/public/pm/c3-demo-phone.js +0 -48
  189. package/workspace/public/pm/c3-demo-plan2.js +0 -30
  190. package/workspace/public/pm/c3-demo-rd.js +0 -432
  191. package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
  192. package/workspace/public/pm/c3-demo-rep2.js +0 -130
  193. package/workspace/public/pm/c3-demo-rep3.js +0 -138
  194. package/workspace/public/pm/c3-demo-rs.js +0 -287
  195. package/workspace/public/pm/c3-demo-term.js +0 -153
  196. package/workspace/public/pm/c3-demo-time.js +0 -49
  197. package/workspace/public/pm/c3-demo-work-ix.js +0 -32
  198. package/workspace/public/pm/c3-demo.js +0 -131
  199. package/workspace/public/pm/c3-design-studio.js +0 -369
  200. package/workspace/public/pm/c3-doc-formats.js +0 -153
  201. package/workspace/public/pm/c3-doc-sheet.js +0 -1230
  202. package/workspace/public/pm/c3-dock.js +0 -206
  203. package/workspace/public/pm/c3-docs.js +0 -291
  204. package/workspace/public/pm/c3-driver-work.js +0 -110
  205. package/workspace/public/pm/c3-driver.css +0 -18
  206. package/workspace/public/pm/c3-driver.js +0 -298
  207. package/workspace/public/pm/c3-focus.css +0 -304
  208. package/workspace/public/pm/c3-focus.js +0 -983
  209. package/workspace/public/pm/c3-ib-docs.js +0 -92
  210. package/workspace/public/pm/c3-ib-initiatives.js +0 -201
  211. package/workspace/public/pm/c3-ib-items.js +0 -210
  212. package/workspace/public/pm/c3-ib-releases.js +0 -48
  213. package/workspace/public/pm/c3-ib-sprints.js +0 -201
  214. package/workspace/public/pm/c3-ib-triage.js +0 -177
  215. package/workspace/public/pm/c3-ii-tabs.js +0 -252
  216. package/workspace/public/pm/c3-ini-life.css +0 -34
  217. package/workspace/public/pm/c3-ini-life.js +0 -379
  218. package/workspace/public/pm/c3-ini-records.js +0 -197
  219. package/workspace/public/pm/c3-ini-timeline.js +0 -278
  220. package/workspace/public/pm/c3-ini-work.js +0 -139
  221. package/workspace/public/pm/c3-init-extras.js +0 -170
  222. package/workspace/public/pm/c3-initiatives.js +0 -852
  223. package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
  224. package/workspace/public/pm/c3-look.js +0 -27
  225. package/workspace/public/pm/c3-material.css +0 -22
  226. package/workspace/public/pm/c3-material.js +0 -321
  227. package/workspace/public/pm/c3-md.js +0 -3
  228. package/workspace/public/pm/c3-misc-panels.js +0 -89
  229. package/workspace/public/pm/c3-new-session.js +0 -110
  230. package/workspace/public/pm/c3-notes.js +0 -751
  231. package/workspace/public/pm/c3-phone-boot.js +0 -47
  232. package/workspace/public/pm/c3-phone-detail.js +0 -97
  233. package/workspace/public/pm/c3-phone-model.js +0 -3
  234. package/workspace/public/pm/c3-phone.css +0 -66
  235. package/workspace/public/pm/c3-phone.js +0 -444
  236. package/workspace/public/pm/c3-plan-panels.js +0 -163
  237. package/workspace/public/pm/c3-plan.js +0 -193
  238. package/workspace/public/pm/c3-quiet.css +0 -113
  239. package/workspace/public/pm/c3-quiet.js +0 -177
  240. package/workspace/public/pm/c3-replay.css +0 -133
  241. package/workspace/public/pm/c3-replay.js +0 -429
  242. package/workspace/public/pm/c3-report-deck.css +0 -163
  243. package/workspace/public/pm/c3-report-deck.js +0 -598
  244. package/workspace/public/pm/c3-report-frame.css +0 -20
  245. package/workspace/public/pm/c3-report-print.css +0 -20
  246. package/workspace/public/pm/c3-report-setup.css +0 -67
  247. package/workspace/public/pm/c3-report-setup.js +0 -298
  248. package/workspace/public/pm/c3-report-store.js +0 -244
  249. package/workspace/public/pm/c3-report-structure.css +0 -44
  250. package/workspace/public/pm/c3-report-structure.js +0 -473
  251. package/workspace/public/pm/c3-reports.css +0 -68
  252. package/workspace/public/pm/c3-reports.js +0 -377
  253. package/workspace/public/pm/c3-roadmap.js +0 -249
  254. package/workspace/public/pm/c3-scan-api.js +0 -167
  255. package/workspace/public/pm/c3-scan-next.js +0 -248
  256. package/workspace/public/pm/c3-scan-setup.js +0 -313
  257. package/workspace/public/pm/c3-scan-words.js +0 -41
  258. package/workspace/public/pm/c3-scan.css +0 -74
  259. package/workspace/public/pm/c3-scan.js +0 -93
  260. package/workspace/public/pm/c3-session-chat.js +0 -103
  261. package/workspace/public/pm/c3-session-conv.js +0 -165
  262. package/workspace/public/pm/c3-session-term.js +0 -216
  263. package/workspace/public/pm/c3-settings.css +0 -85
  264. package/workspace/public/pm/c3-settings.js +0 -1045
  265. package/workspace/public/pm/c3-shell.js +0 -628
  266. package/workspace/public/pm/c3-signals.js +0 -196
  267. package/workspace/public/pm/c3-strategy-panels.js +0 -45
  268. package/workspace/public/pm/c3-swipe.js +0 -230
  269. package/workspace/public/pm/c3-terminal-data.js +0 -48
  270. package/workspace/public/pm/c3-terminal-edge.js +0 -91
  271. package/workspace/public/pm/c3-terminal-icons.js +0 -40
  272. package/workspace/public/pm/c3-terminal-results.js +0 -141
  273. package/workspace/public/pm/c3-terminal.js +0 -52
  274. package/workspace/public/pm/c3-tickets.js +0 -163
  275. package/workspace/public/pm/c3-timeline.js +0 -201
  276. package/workspace/public/pm/calendar-views.js +0 -1049
  277. package/workspace/public/pm/console3-lift.md +0 -220
  278. package/workspace/public/pm/cozy-home.js +0 -172
  279. package/workspace/public/pm/cozy-initiative.css +0 -138
  280. package/workspace/public/pm/cycle-review.js +0 -125
  281. package/workspace/public/pm/data.js +0 -1577
  282. package/workspace/public/pm/dest-board.js +0 -444
  283. package/workspace/public/pm/dest-docs.js +0 -530
  284. package/workspace/public/pm/dest-initiatives.js +0 -162
  285. package/workspace/public/pm/dest-mywork.js +0 -307
  286. package/workspace/public/pm/dest-notes.js +0 -537
  287. package/workspace/public/pm/dest-people.js +0 -449
  288. package/workspace/public/pm/dest-reports.js +0 -383
  289. package/workspace/public/pm/dest-settings.js +0 -601
  290. package/workspace/public/pm/dest-today.js +0 -267
  291. package/workspace/public/pm/display-word.js +0 -56
  292. package/workspace/public/pm/doc-editor.js +0 -473
  293. package/workspace/public/pm/doc-graph.js +0 -272
  294. package/workspace/public/pm/doc-health-panel.js +0 -110
  295. package/workspace/public/pm/doc-rail.js +0 -167
  296. package/workspace/public/pm/doc-remote.js +0 -180
  297. package/workspace/public/pm/dock-sessions.js +0 -472
  298. package/workspace/public/pm/dock.js +0 -216
  299. package/workspace/public/pm/fixture.js +0 -821
  300. package/workspace/public/pm/flag-picker.js +0 -104
  301. package/workspace/public/pm/frame-copy.js +0 -278
  302. package/workspace/public/pm/freshness-line.js +0 -149
  303. package/workspace/public/pm/handoff-box.js +0 -82
  304. package/workspace/public/pm/initiative-list.js +0 -235
  305. package/workspace/public/pm/initiative-sheet.js +0 -331
  306. package/workspace/public/pm/initiatives-api.js +0 -95
  307. package/workspace/public/pm/initiatives-copy.js +0 -287
  308. package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
  309. package/workspace/public/pm/initiatives-timeline.js +0 -410
  310. package/workspace/public/pm/initiatives-ui.js +0 -291
  311. package/workspace/public/pm/item-sheet.js +0 -268
  312. package/workspace/public/pm/keep-card.js +0 -204
  313. package/workspace/public/pm/lifecycle-lens-model.js +0 -246
  314. package/workspace/public/pm/lifecycle-lens.js +0 -276
  315. package/workspace/public/pm/lifecycle.js +0 -111
  316. package/workspace/public/pm/mobile.css +0 -366
  317. package/workspace/public/pm/mobile.js +0 -581
  318. package/workspace/public/pm/modes-live.js +0 -453
  319. package/workspace/public/pm/modes.js +0 -147
  320. package/workspace/public/pm/my-work-card.js +0 -51
  321. package/workspace/public/pm/my-work-data.js +0 -36
  322. package/workspace/public/pm/new-initiative-sheet.js +0 -169
  323. package/workspace/public/pm/next-step-ui.js +0 -190
  324. package/workspace/public/pm/outbox-panel.js +0 -125
  325. package/workspace/public/pm/palette-copy.js +0 -55
  326. package/workspace/public/pm/palette.js +0 -343
  327. package/workspace/public/pm/panel-breakdown.js +0 -702
  328. package/workspace/public/pm/panel-cockpit.js +0 -425
  329. package/workspace/public/pm/panel-detail.js +0 -1513
  330. package/workspace/public/pm/panel-initiatives.js +0 -929
  331. package/workspace/public/pm/panel-newsess.js +0 -709
  332. package/workspace/public/pm/panel-repos.js +0 -741
  333. package/workspace/public/pm/panel-tabs.js +0 -1506
  334. package/workspace/public/pm/panel-trees.js +0 -204
  335. package/workspace/public/pm/people-link.js +0 -106
  336. package/workspace/public/pm/phone-deck.js +0 -167
  337. package/workspace/public/pm/pm-work-view.js +0 -1533
  338. package/workspace/public/pm/portfolio-report.js +0 -61
  339. package/workspace/public/pm/premium-acts.js +0 -280
  340. package/workspace/public/pm/premium-brief.js +0 -111
  341. package/workspace/public/pm/premium-chat.js +0 -22
  342. package/workspace/public/pm/premium-doc-sheet.js +0 -312
  343. package/workspace/public/pm/premium-initiative.js +0 -324
  344. package/workspace/public/pm/premium-insights.css +0 -228
  345. package/workspace/public/pm/premium-metric-tiles.js +0 -68
  346. package/workspace/public/pm/premium-report-brief.js +0 -132
  347. package/workspace/public/pm/premium-vw-rec.js +0 -67
  348. package/workspace/public/pm/premium-wide.css +0 -30
  349. package/workspace/public/pm/print.css +0 -44
  350. package/workspace/public/pm/provider-cards.js +0 -136
  351. package/workspace/public/pm/registry.js +0 -203
  352. package/workspace/public/pm/release-card.js +0 -110
  353. package/workspace/public/pm/releases-view.js +0 -248
  354. package/workspace/public/pm/report-families-view.js +0 -505
  355. package/workspace/public/pm/report-slides.js +0 -438
  356. package/workspace/public/pm/report-tab.js +0 -33
  357. package/workspace/public/pm/report-view.js +0 -337
  358. package/workspace/public/pm/reports-copy.js +0 -134
  359. package/workspace/public/pm/roadmap.js +0 -294
  360. package/workspace/public/pm/run-card.js +0 -260
  361. package/workspace/public/pm/sessions-panel.js +0 -219
  362. package/workspace/public/pm/sheet-jira.js +0 -353
  363. package/workspace/public/pm/shell-bell.js +0 -163
  364. package/workspace/public/pm/shell-model.js +0 -83
  365. package/workspace/public/pm/shell-phone.js +0 -124
  366. package/workspace/public/pm/shell-readaloud.js +0 -53
  367. package/workspace/public/pm/shell-recording.js +0 -274
  368. package/workspace/public/pm/shell-ticker.js +0 -90
  369. package/workspace/public/pm/sig-watch.js +0 -41
  370. package/workspace/public/pm/slide-confirm.js +0 -163
  371. package/workspace/public/pm/slides-copy.js +0 -52
  372. package/workspace/public/pm/status-banner.js +0 -95
  373. package/workspace/public/pm/tab-doc.js +0 -859
  374. package/workspace/public/pm/tab-gone.js +0 -21
  375. package/workspace/public/pm/tab-term.js +0 -1210
  376. package/workspace/public/pm/tab-web.js +0 -90
  377. package/workspace/public/pm/timeline-copy.js +0 -48
  378. package/workspace/public/pm/timeline-forecast-view.js +0 -164
  379. package/workspace/public/pm/today-agenda.js +0 -331
  380. package/workspace/public/pm/today-cards.js +0 -244
  381. package/workspace/public/pm/today-copy.js +0 -506
  382. package/workspace/public/pm/today-day.js +0 -1371
  383. package/workspace/public/pm/today-goals.js +0 -297
  384. package/workspace/public/pm/today-jobs.js +0 -84
  385. package/workspace/public/pm/today-mentions.js +0 -50
  386. package/workspace/public/pm/topbar.js +0 -202
  387. package/workspace/public/pm/triage-card.js +0 -60
  388. package/workspace/public/pm/undo-hold.js +0 -103
  389. package/workspace/public/pm/view-addrepo.js +0 -208
  390. package/workspace/public/pm/view-files.js +0 -197
  391. package/workspace/public/pm/view-livenotes.js +0 -399
  392. package/workspace/public/pm/view-today.js +0 -13
  393. package/workspace/public/pm/view-validate.js +0 -171
  394. package/workspace/public/pm/welcome.js +0 -391
  395. package/workspace/public/pm/work-place.js +0 -68
  396. package/workspace/public/pm/xlsx-read.js +0 -117
  397. package/workspace/public/welcome.html +0 -22
  398. package/workspace/test-lists/browser-suites-green.json +0 -5
  399. package/workspace/test-lists/c3-core-docs.json +0 -9
  400. package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
  401. package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
  402. package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
  403. package/workspace/test-lists/c3-ib-items.json +0 -9
  404. package/workspace/test-lists/c3-ib-more.json +0 -9
  405. package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
  406. package/workspace/test-lists/c3-ini-life.json +0 -9
  407. package/workspace/test-lists/c3-meeting-board.json +0 -5
  408. package/workspace/test-lists/c3-meeting-card.json +0 -5
  409. package/workspace/test-lists/c3-notes-place.json +0 -5
  410. package/workspace/test-lists/c3-notes-series.json +0 -5
  411. package/workspace/test-lists/calendar-time-page.json +0 -5
  412. package/workspace/test-lists/calpop.json +0 -4
  413. package/workspace/test-lists/console3-briefing.json +0 -9
  414. package/workspace/test-lists/console3-foundation.json +0 -9
  415. package/workspace/test-lists/console3-work-page.json +0 -9
  416. package/workspace/test-lists/premium-brief-parity.json +0 -9
  417. package/workspace/test-lists/report-design-studio-ui.json +0 -5
  418. package/workspace/test-lists/report-structure-ui.json +0 -11
  419. package/workspace/test-lists/report-workspace-ui.json +0 -5
  420. package/workspace/test-lists/run3-a.json +0 -5
  421. package/workspace/test-lists/run3-d.json +0 -6
  422. package/workspace/test-lists/run4-c.json +0 -13
  423. package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
  424. package/workspace/test-lists/today-mentions-cards.json +0 -5
  425. package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
@@ -1,442 +0,0 @@
1
- #!/usr/bin/env node
2
- 'use strict';
3
- /* c3-report-design-test.js — the report design studio and the deck of a cycle, UI slice (initiative report-design-studio; mockup 42-reportdeck).
4
- * DEMO mode: a real server and a real Chromium drive /console.html?demo=1&tab=rep; c3-demo-rd.js answers the design and notes routes.
5
- *
6
- * studio Design how it looks on a set-up row; the conversation (samples with a thumbnail and what PMOS took, turns, version links);
7
- * add a sample by upload, link and past document; a describe then a turn on a report with no design; the running state
8
- * while the job runs; an error line; point and say (markers go with the turn); Compare two with What changed; Go back;
9
- * the Deck / Document switch; This is it; the Design brief (#design, #design-point, #design-compare, #design-doc, #design-saved)
10
- * deck the Read tab of a designed cycle: every frame is sandbox="allow-same-origin" with no allow-scripts; the strip and prev/next;
11
- * data-value, data-src, data-more, data-initiative and data-from wired from the page; MORE THAN SLIDES; the copy notice;
12
- * Differs from the design with Keep for this cycle, Make it part of the design, Match the design and Show the slide; Matches the design
13
- * notes speaker notes save and carry forward (Keep, Clear); pins: yours blue, PMOS dashed purple, Keep the note, a new pin, the Edit log,
14
- * Edit this opens the Edit tab at its section
15
- * present the presenter view (slide, note, next, timer, n / N, Jump to) and the audience view (a window of its own that follows the presenter; the full-screen view in the page when the window is blocked): arrows, Page keys, Space, Home, End,
16
- * swipe, Escape
17
- * print Print / PDF writes the slides only: no speaker note and no pin; Download .pptx reads the existing export
18
- * document a report designed as a document reads as an interactive document (pmos-sec) with its notes keyed by section
19
- * output the output choice reads Slide deck; a Slides report says its Google Slides copy is optional
20
- * phone at 400 wide the deck, the studio and the presenter view do not scroll sideways
21
- * Set RD_SHOTS=<dir> to save screenshots. No script error may be raised. */
22
- const fs = require('fs');
23
- const path = require('path');
24
- const { spawn } = require('child_process');
25
- const { findBrowser } = require('./lib/find-browser');
26
- const T = require('./test-run').configure({ name: 'c3-report-design' });
27
-
28
- const BASE = T.BASE;
29
- const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
30
- const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { const v = await fn(); if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
31
- const results = [];
32
- const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 400) : ''}`); };
33
- let srv = null; let browser = null;
34
- const finish = async (code) => {
35
- if (browser) await browser.close().catch(() => {});
36
- if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
37
- T.killTmux();
38
- const bad = results.filter((x) => !x.cond).length;
39
- console.log(`\n${results.length - bad}/${results.length} c3-report-design assertions passed`);
40
- process.exit(code !== undefined ? code : (bad ? 1 : 0));
41
- };
42
- process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
43
-
44
- const DOC = 'planning/reports/rs1/2026-10-21.md';
45
- (async () => {
46
- const exe = findBrowser();
47
- if (!exe) { console.log('· no Chrome/Chromium on this machine, c3-report-design suite skipped'); process.exit(0); }
48
- let chromium;
49
- try { ({ chromium } = require('playwright-core')); } catch { console.log('· playwright-core not installed, c3-report-design suite skipped'); process.exit(0); }
50
- srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
51
- await T.waitForServer(BASE);
52
- browser = await chromium.launch({ executablePath: exe });
53
- require('./lib/c3-full-console').fullConsole(browser); // the desktop layout at phone width (c3-phone-companion)
54
- const shots = process.env.RD_SHOTS || ''; if (shots) fs.mkdirSync(shots, { recursive: true });
55
-
56
- const errors = [];
57
- /* two reads of other initiatives (Horizon scan, Settings) have no demo answer: a 404 on them is not this suite's */
58
- const watch = (pg) => {
59
- pg.on('pageerror', (e) => errors.push('pageerror: ' + String((e && e.message) || e)));
60
- pg.on('response', (r) => { if (r.status() >= 400 && !/\/api\/(scan\/(?:today|portfolio)|settings)\b/.test(r.url())) errors.push('http ' + r.status() + ' ' + r.url()); });
61
- pg.on('dialog', (d) => d.dismiss().catch(() => {}));
62
- };
63
- const posts = []; const gets = [];
64
- /* demo answers never reach the network, so the posts are counted by a wrapper over the page's fetch (installed after the demo's) */
65
- const spy = (pg) => pg.evaluate(() => { if (window.__rdspy) return; window.__rdspy = 1; const f = window.fetch; window.fetch = (i, init) => { const u = new URL(typeof i === 'string' ? i : i.url, location.origin); if (String((init && init.method) || 'GET').toUpperCase() === 'POST') window.__rdPost(u.pathname, String((init && init.body) || '{}')); else window.__rdGet(u.pathname + u.search); return f(i, init); }; });
66
- const sent = (p) => posts.filter((x) => x.path === p);
67
- const newPage = async (ctx) => {
68
- const pg = await ctx.newPage(); watch(pg);
69
- await pg.exposeFunction('__rdPost', (p, b) => { let j = null; try { j = JSON.parse(b || '{}'); } catch { j = null; } posts.push({ path: p, body: j }); });
70
- await pg.exposeFunction('__rdGet', (p) => { gets.push(p); });
71
- return pg;
72
- };
73
- /* the Reports tab with rs1 (a saved deck design, D3) and rs3 (a document design, not saved) set up from their findings */
74
- const goReports = async (pg) => {
75
- await pg.goto(BASE + '/console.html?demo=1&tab=rep'); await pg.waitForSelector('[data-rp3]'); await pg.click('[data-rp3-tab="reports"]'); await pg.waitForSelector('[data-rs-row]'); await spy(pg);
76
- await pg.click('[data-rs-row="rs1"] [data-rs-act="setup"]'); await pg.waitForSelector('[data-rs-reg="rs1"]');
77
- await pg.click('[data-rs-row="rs3"] [data-rs-act="setup"]'); await pg.waitForSelector('[data-rs-reg="rs3"]');
78
- };
79
- const openDoc = async (pg, p) => { await pg.click('[data-rs-doc="' + p + '"] [data-rs-act="opendoc"] >> nth=0'); await pg.waitForSelector('[data-rd-deck] [data-rd-big] iframe, [data-rd-deck] .rd-docf iframe'); await sleep(300); };
80
- const closeAll = async (pg) => { for (let i = 0; i < 3 && await pg.$('.sheet'); i++) { await pg.keyboard.press('Escape'); await sleep(250); } };
81
- const shot = async (pg, n) => { if (shots) await pg.screenshot({ path: path.join(shots, n + '.png') }); };
82
- const ctx = await browser.newContext({ viewport: { width: 1440, height: 1000 } });
83
- const page = await newPage(ctx);
84
- const text = (sel, pg = page) => pg.textContent(sel).catch(() => '');
85
- const bigFrame = async (pg = page) => { const h = await pg.$('[data-rd-big] iframe'); return h ? h.contentFrame() : null; };
86
- const clickAt = async (sel, fx, fy, pg = page) => { await pg.$eval(sel, (n) => n.scrollIntoView({ block: 'center' })); await sleep(150); const b = await (await pg.$(sel)).boundingBox(); await pg.mouse.click(b.x + b.width * fx, b.y + b.height * fy); };
87
- /* a click inside a frame lands only once the frame has loaded and been wired: under load, click again until the answer shows */
88
- const clickUntil = async (sel, fx, fy, want, pg = page) => { for (let i = 0; i < 6; i++) { await clickAt(sel, fx, fy, pg); if (await until(() => pg.$(want), 1500)) return true; } return false; };
89
-
90
- /* ── output choice and the entry points ── */
91
- await page.goto(BASE + '/console.html?demo=1&tab=rep'); await page.waitForSelector('[data-rp3]'); await page.click('[data-rp3-tab="reports"]'); await page.waitForSelector('[data-rs-row]'); await spy(page);
92
- await page.click('[data-rs-row="rs1"] .tt');
93
- await page.waitForSelector('[data-rs-sheet]');
94
- ok('the output choice says Slide deck where it said Google Slides', /Slide deck/.test(await text('[data-rs-sheet]')) && !(await page.$$eval('[data-rs-sheet] .seg button', (a) => a.some((b) => /^\s*Google Slides\s*$/.test(b.textContent)))));
95
- await closeAll(page);
96
- await page.click('[data-rs-row="rs1"] [data-rs-act="setup"]'); await page.waitForSelector('[data-rs-reg="rs1"]');
97
- await page.click('[data-rs-row="rs3"] [data-rs-act="setup"]'); await page.waitForSelector('[data-rs-reg="rs3"]');
98
- ok('a set-up row built from your work has Design how it looks', !!(await page.$('[data-rs-reg="rs1"] [data-rs-act="design"]')) && /Design how it looks/.test(await text('[data-rs-reg="rs1"] [data-rs-act="design"]')));
99
-
100
- /* ── studio: a saved deck design (#design) ── */
101
- await page.click('[data-rs-reg="rs1"] [data-rs-act="design"]');
102
- await page.waitForSelector('[data-rd-studio] [data-rd-v]');
103
- ok('the studio opens on the saved design: Deck selected, Saved design: D3, This is it and Design brief',
104
- await page.getAttribute('[data-rd-fmt="deck"]', 'aria-pressed') === 'true' && /Saved design: D3/.test(await text('[data-rd-saved]')) && !!(await page.$('[data-rd-act="accept"]')) && !!(await page.$('[data-rd-act="brief"]')));
105
- ok('the versions D1 to D3, with D3 current', (await page.$$('[data-rd-v]')).length === 3 && await page.getAttribute('[data-rd-v="3"]', 'aria-pressed') === 'true');
106
- const logKinds = await page.$$eval('[data-rd-log]', (a) => a.map((b) => b.getAttribute('data-rd-log')));
107
- ok('the conversation holds your description, the samples, your turns and PMOS versions', ['describe', 'sample', 'turn', 'version'].every((k) => logKinds.includes(k)), logKinds.join(','));
108
- ok('a sample chip shows a thumbnail and what PMOS took', !!(await page.$('[data-rd-chat] .rd-dks-smp .rd-dks-thumb')) && /PMOS took:/.test(await text('[data-rd-chat]')));
109
- ok('a version line links to its version', (await page.$$('[data-rd-chat] [data-rd-ver]')).length >= 2);
110
- await page.click('[data-rd-chat] [data-rd-ver="1"] >> nth=0');
111
- ok('a version link shows that version in the preview', !!(await until(async () => await page.getAttribute('[data-rd-v="1"]', 'aria-pressed') === 'true')));
112
- await page.click('[data-rd-v="3"]');
113
- const sb = await until(() => page.$('[data-rd-sbig] iframe'));
114
- ok('the preview is a sandboxed frame with no scripts', !!sb && await sb.getAttribute('sandbox') === 'allow-same-origin');
115
- await shot(page, 'design-1440');
116
-
117
- /* add samples: upload, link and a past PMOS document */
118
- await page.click('[data-rd-act="panel"]');
119
- await page.waitForSelector('[data-rd-panel]');
120
- ok('Add a sample offers an upload, a link and a past PMOS document', !!(await page.$('[data-rd-smp="file"]')) && !!(await page.$('[data-rd-smp="link"]')) && !!(await page.$('[data-rd-smp="doc"]')));
121
- await page.setInputFiles('[data-rd-file]', { name: 'Biweekly update, 9 Apr.pdf', mimeType: 'application/pdf', buffer: Buffer.from('%PDF-1.4 a small sample') });
122
- const up = await until(() => sent('/api/report-design/sample')[0]);
123
- ok('an upload posts the file as base64 with its name and kind', !!up && up.body.name === 'Biweekly update, 9 Apr.pdf' && up.body.kind === 'pdf' && Buffer.from(up.body.data || '', 'base64').toString().startsWith('%PDF'), JSON.stringify(up && { ...up.body, data: String(up.body.data).slice(0, 12) }));
124
- ok('the uploaded sample shows in the conversation', !!(await until(async () => /9 Apr\.pdf/.test(await text('[data-rd-chat]')))));
125
- await page.click('[data-rd-act="panel"]'); await page.waitForSelector('[data-rd-link]');
126
- await page.fill('[data-rd-link]', 'https://acme.atlassian.net/wiki/spaces/IDPF/pages/decisions');
127
- await page.click('[data-rd-smp="link"]');
128
- ok('a link posts {link}', !!(await until(() => sent('/api/report-design/sample').length === 2)) && /decisions$/.test(sent('/api/report-design/sample')[1].body.link || ''));
129
- await page.click('[data-rd-act="panel"]'); await page.waitForSelector('[data-rd-smp="doc"]');
130
- await page.click('[data-rd-smp="doc"] >> nth=0');
131
- ok('a past PMOS document posts {doc} with its path', !!(await until(() => sent('/api/report-design/sample').length === 3)) && /^planning\/reports\//.test(sent('/api/report-design/sample')[2].body.doc || ''));
132
-
133
- /* point and say (#design-point), then a turn with the marker, the running state, the new version */
134
- await until(() => page.$('[data-rd-sbig] iframe'));
135
- await clickUntil('[data-rd-sbig]', 0.5, 0.45, '[data-rd-mkdraft]');
136
- ok('clicking the preview places a marker and asks what to change there', !!(await until(() => page.$('[data-rd-mkdraft]'))));
137
- await page.fill('[data-rd-mkdraft]', 'Make this title smaller');
138
- await page.click('[data-rd-act="mksave"]');
139
- ok('the marker is numbered on the preview and listed under Point and say', !!(await until(() => page.$('[data-rd-mk]'))) && (await page.$$('[data-rd-mkrow]')).length === 1 && /Make this title smaller/.test(await text('[data-rd-point]')));
140
- await shot(page, 'design-point-1440');
141
- /* the slide and its thumbnails are not rebuilt by a paint: a frame put back in the page loads again, and that was the flicker */
142
- const tagFrames = () => page.$$eval('[data-rd-preview] iframe', (fs) => fs.forEach((f) => { f.__kept = 1; }));
143
- const framesKept = () => page.$$eval('[data-rd-preview] iframe', (fs) => fs.length > 2 && fs.every((f) => f.__kept === 1));
144
- await tagFrames();
145
- await page.fill('[data-rd-in]', 'Make it dense');
146
- await page.click('[data-rd-act="send"]');
147
- const turn = await until(() => sent('/api/report-design/turn')[0]);
148
- ok('a turn posts the words and the markers as points', !!turn && turn.body.text === 'Make it dense' && Array.isArray(turn.body.points) && turn.body.points.length === 1 && turn.body.points[0].text === 'Make this title smaller' && turn.body.points[0].n === 1 && typeof turn.body.points[0].slide === 'string', JSON.stringify(turn && turn.body));
149
- ok('while the job runs the conversation shows PMOS working', !!(await until(() => page.$('[data-rd-running]'), 3000)));
150
- await page.$eval('[data-rd-in]', (t) => { t.__kept = 1; });
151
- await page.type('[data-rd-in]', 'next');
152
- await sleep(3200);
153
- ok('while the job runs the slide and its thumbnails stay in place: the reads of the design rebuild no frame', await framesKept());
154
- ok('while the job runs the box you type in is not rebuilt and keeps your words', await page.$eval('[data-rd-in]', (t) => t.__kept === 1 && t.value === 'next'));
155
- await page.fill('[data-rd-in]', '');
156
- ok('the job lands D4 as the current version, with its PMOS line', !!(await until(async () => await page.getAttribute('[data-rd-v="4"]', 'aria-pressed') === 'true', 15000)) && /D4:/.test(await text('[data-rd-chat]')));
157
- ok('the markers are cleared after the turn', (await page.$$('[data-rd-mkrow]')).length === 0);
158
- await until(() => page.$('[data-rd-sstrip] [data-rd-sgo="1"]'));
159
- await tagFrames();
160
- const bigBefore = await page.getAttribute('[data-rd-sbig]', 'data-rd-sbig');
161
- await page.click('[data-rd-sstrip] [data-rd-sgo="1"]');
162
- ok('picking a thumbnail changes the slide and keeps the thumbnails as they were', !!(await until(async () => (await page.getAttribute('[data-rd-sbig]', 'data-rd-sbig')) !== bigBefore))
163
- && await page.getAttribute('[data-rd-sgo="1"]', 'aria-current') === 'true' && await page.$$eval('[data-rd-sstrip] iframe', (fs) => fs.length > 1 && fs.every((f) => f.__kept === 1)));
164
- await page.click('[data-rd-sstrip] [data-rd-sgo="0"]');
165
- await page.fill('[data-rd-in]', 'This turn should fail');
166
- await page.click('[data-rd-act="send"]');
167
- ok('a failed job shows an error line and makes no version', !!(await until(() => page.$('[data-rd-log="error"]'), 15000)) && (await page.$$('[data-rd-v]')).length === 4);
168
-
169
- /* compare (#design-compare) */
170
- await page.click('[data-rd-act="cmp"]');
171
- ok('Compare two shows two versions side by side, the one before by default', !!(await until(() => page.$('[data-rd-compare]'))) && await page.getAttribute('[data-rd-a="3"]', 'aria-pressed') === 'true'
172
- && (await until(async () => (await page.$$('[data-rd-compare] iframe')).length >= 2)));
173
- ok('What changed lists the change between them', /What changed from D3 to D4/i.test(await text('[data-rd-changed]')));
174
- await page.click('[data-rd-a="1"]');
175
- ok('another A version can be picked', !!(await until(async () => /What changed from D1 to D4/i.test(await text('[data-rd-changed]')))));
176
- await shot(page, 'design-compare-1440');
177
- await page.click('[data-rd-act="cmp"]');
178
-
179
- /* revert */
180
- await page.click('[data-rd-v="2"]');
181
- await until(() => page.$('[data-rd-act="revert"]'));
182
- await page.click('[data-rd-act="revert"]');
183
- ok('Go back posts the version and the next turn builds on it', !!(await until(() => sent('/api/report-design/revert').length === 1)) && sent('/api/report-design/revert')[0].body.n === 2
184
- && !!(await until(async () => /Back to D2/.test(await text('[data-rd-chat]')))));
185
-
186
- /* the design brief (#design-saved) */
187
- await page.click('[data-rd-act="brief"]');
188
- await page.waitForSelector('[data-rd-brief]');
189
- ok('the Design brief shows the design, your description, your samples and the reference version', /Design D3/.test(await text('[data-rd-design]')) && /progress session/.test(await text('[data-rd-desc]')) && (await page.$$('[data-rd-sample]')).length >= 2 && !!(await page.$('[data-rd-ref] iframe')));
190
- ok('What PMOS learned: the same each cycle, changes each cycle, learned from your turns', !!(await page.$('[data-rd-rule="same"]')) && !!(await page.$('[data-rd-rule="changes"]')) && !!(await page.$('[data-rd-rule="learned"]')));
191
- ok('the brief lists the cycles drawn with the design', !!(await page.$('[data-rd-briefcycles]')));
192
- await shot(page, 'design-saved-1440');
193
- ok('the studio posted no accept on its own', sent('/api/report-design/accept').length === 0);
194
- await closeAll(page);
195
-
196
- /* a report with no design: describe, then the first turn */
197
- await page.click('[data-rs-reg="rg0"] [data-rs-act="design"]');
198
- await page.waitForSelector('[data-rd-studio]');
199
- ok('a report with no design has no version yet and no brief', !!(await until(() => page.$('[data-rd-noversion]'))) && !(await page.$('[data-rd-act="brief"]')));
200
- await page.click('[data-rd-fmt="deck"]');
201
- await page.fill('[data-rd-in]', 'The PMOS biweekly for the team, decisions first');
202
- await page.click('[data-rd-act="send"]');
203
- const desc = await until(() => sent('/api/report-design/describe')[0]);
204
- ok('the first words are posted as the description with the format, then a turn', !!desc && desc.body.id === 'rg0' && /decisions first/.test(desc.body.text) && desc.body.format === 'deck' && !!(await until(() => sent('/api/report-design/turn').some((t) => t.body.id === 'rg0'))));
205
- ok('D1 arrives', !!(await until(() => page.$('[data-rd-v="1"]'), 15000)));
206
- await closeAll(page);
207
-
208
- /* a document design (#design-doc), then This is it */
209
- await page.click('[data-rs-reg="rs3"] [data-rs-act="design"]');
210
- await page.waitForSelector('[data-rd-studio] [data-rd-v]');
211
- ok('a document design opens with Document selected and Not saved yet', await page.getAttribute('[data-rd-fmt="doc"]', 'aria-pressed') === 'true' && /Not saved yet/.test(await text('[data-rd-studio]')));
212
- await shot(page, 'design-doc-1440');
213
- await page.click('[data-rd-act="accept"]');
214
- ok('This is it posts accept with the current version', !!(await until(() => sent('/api/report-design/accept').length === 1)) && sent('/api/report-design/accept')[0].body.id === 'rs3' && sent('/api/report-design/accept')[0].body.n === 2);
215
- ok('the saved chip shows the saved version', !!(await until(async () => /Saved design: D2/.test(await text('[data-rd-saved]')))));
216
- await closeAll(page);
217
-
218
- /* ── the designed document of rs3 (pmos-sec) ── */
219
- await openDoc(page, 'planning/reports/rs3/2026-10-01.md');
220
- const df = await page.$('.rd-docf iframe');
221
- ok('a document design reads as an interactive document in a sandboxed frame', !!df && await df.getAttribute('sandbox') === 'allow-same-origin' && (await (await df.contentFrame()).$$('section.pmos-sec')).length >= 3);
222
- ok('the document says Notes on the document', /Add a note on the document/.test(await text('[data-rd-notes]')));
223
- await closeAll(page);
224
-
225
- /* ── the deck of rs1, Wed 21 Oct (#deck) ── */
226
- await openDoc(page, DOC);
227
- const sb2 = await page.$$eval('.sheet iframe', (a) => a.map((f) => f.getAttribute('sandbox')));
228
- ok('every frame of the deck is sandbox="allow-same-origin" and none allows scripts', sb2.length >= 6 && sb2.every((s) => s === 'allow-same-origin'), JSON.stringify(sb2.slice(0, 4)));
229
- ok('the bar shows the design, the slides, the difference, Present, Audience view, Refine the design, Print / PDF and Download .pptx',
230
- /Design D3/.test(await text('[data-rd-deck]')) && /11 slides/.test(await text('[data-rd-deck]')) && !!(await page.$('[data-rd-act="present"]')) && !!(await page.$('[data-rd-act="audience"]')) && !!(await page.$('[data-rd-act="studio"]')) && !!(await page.$('[data-rd-act="print"]')) && !!(await page.$('[data-rd-act="pptx"]')));
231
- ok('MORE THAN SLIDES lists what the deck does', /MORE THAN SLIDES/i.test(await text('[data-rd-caps]')) && /Presenter view with your notes/.test(await text('[data-rd-caps]')));
232
- ok('a Slides report says the Google Slides copy is optional', /Google Slides copy of this report is optional/.test(await text('[data-rd-copynote]')));
233
- ok('the strip has 11 slides and the first one is current', (await page.$$('[data-rd-go]')).length === 11 && await page.getAttribute('[data-rd-go="0"]', 'aria-current') === 'true' && /Slide 1 of 11/.test(await text('[data-rd-cap]')));
234
- await page.click('[data-rd-act="next"]');
235
- ok('next moves to slide 2', !!(await until(async () => /Slide 2 of 11/.test(await text('[data-rd-cap]')))));
236
- await page.click('[data-rd-act="prev"]');
237
- ok('prev moves back to slide 1', !!(await until(async () => /Slide 1 of 11/.test(await text('[data-rd-cap]')))));
238
- await shot(page, 'deck-1440');
239
-
240
- /* side by side with the last cycle (#deck-cycles) */
241
- await page.click('[data-rd-act="mode"][data-v="cmp"]');
242
- ok('Side by side shows the last cycle and this one, each with its state against the design', !!(await until(async () => (await page.$$('[data-rd-cmp] iframe')).length === 2))
243
- && /Wed 7 Oct/.test(await text('[data-rd-cmp]')) && /Matches the design/.test(await text('[data-rd-cmp]')) && /difference from the design/.test(await text('[data-rd-cmp]')));
244
- await shot(page, 'deck-cycles-1440');
245
- await page.click('[data-rd-act="mode"][data-v="deck"]');
246
- await until(() => page.$('[data-rd-big] iframe'));
247
-
248
- /* the data attributes, wired from the page */
249
- await page.click('[data-rd-go="1"]'); await until(async () => /Slide 2 of 11/.test(await text('[data-rd-cap]')));
250
- let bf = await until(() => bigFrame());
251
- await until(async () => (await bf.$$('[data-value]')).length > 0);
252
- await (await bf.$('[data-value]')).hover();
253
- ok('data-value: the detail shows on hover', !!(await until(async () => /Login success/.test(await text('.rd-tip:not([hidden])')))));
254
- await (await bf.$('[data-src]')).click();
255
- ok('data-src: a click shows where the value comes from', !!(await until(async () => /comes from/.test(await text('[data-rd-src]')))));
256
- await page.click('[data-rd-act="chg"]');
257
- bf = await bigFrame();
258
- ok('data-from: Show what changed adds the value of the last cycle', !!(await until(async () => { const f = await bigFrame(); return f && (await f.$$('.pmos-was')).length > 0; })));
259
- await page.click('[data-rd-act="chg"]');
260
- let moreAt = -1; let iniAt = -1;
261
- for (let i = 0; i < 11 && (moreAt < 0 || iniAt < 0); i++) {
262
- await page.click('[data-rd-go="' + i + '"]'); await until(async () => new RegExp('Slide ' + (i + 1) + ' of').test(await text('[data-rd-cap]')));
263
- const f = await until(() => bigFrame()); await until(async () => (await f.$$('section')).length > 0, 3000);
264
- if (moreAt < 0 && await f.$('[data-more]')) moreAt = i;
265
- if (iniAt < 0 && await f.$('[data-initiative]')) iniAt = i;
266
- }
267
- ok('the deck has a part that expands and a live initiative link', moreAt >= 0 && iniAt >= 0, moreAt + ' / ' + iniAt);
268
- if (moreAt >= 0) {
269
- await page.click('[data-rd-go="' + moreAt + '"]'); await sleep(300); bf = await bigFrame();
270
- const m = await bf.$('[data-more]'); await m.click();
271
- ok('data-more: a click opens the part', !!(await until(async () => (await (await bigFrame()).$$('[data-more][data-open], details[data-more][open]')).length > 0)));
272
- }
273
- await page.click('[data-rd-go="0"]');
274
-
275
- /* Differs from the design */
276
- ok('Differs from the design names the extra slide and offers the three choices and Show the slide',
277
- /one slide more than the design/.test(await text('[data-rd-diff]')) && !!(await page.$('[data-rd-decide="keep"]')) && !!(await page.$('[data-rd-decide="adopt"]')) && !!(await page.$('[data-rd-decide="match"]')) && !!(await page.$('[data-rd-diff] [data-rd-act="showslide"]')));
278
- await page.click('[data-rd-diff] [data-rd-act="showslide"]');
279
- ok('Show the slide moves to the extra slide', !!(await until(async () => /Slide 8 of 11/.test(await text('[data-rd-cap]')))));
280
- await page.click('[data-rd-decide="keep"]');
281
- const kd = await until(() => sent('/api/report-design/cycle-decision')[0]);
282
- ok('Keep for this cycle posts keep with the difference', !!kd && kd.body.choice === 'keep' && kd.body.diff === 'added:init-idpf-21' && kd.body.path === DOC);
283
- ok('the deck then says it was kept for this cycle', !!(await until(() => page.$('[data-rd-kept]'))) && !(await page.$('[data-rd-decide]')));
284
-
285
- /* notes on the slide (#deck-pin) */
286
- await page.click('[data-rd-go="1"]'); await until(async () => /Slide 2 of 11/.test(await text('[data-rd-cap]')));
287
- ok('your pin is blue and the PMOS pin is a dashed purple proposal', !!(await until(() => page.$('[data-rd-big] [data-rd-pin="n1"]'))) && /\bh\b/.test(await page.getAttribute('[data-rd-pin="n1"]', 'class')) && /\ba\b.*\bprop\b/.test(await page.getAttribute('[data-rd-pin="n2"]', 'class')));
288
- await page.click('[data-rd-big] [data-rd-pin="n2"]');
289
- ok('a PMOS proposal offers Keep the note, Dismiss and Edit this', !!(await until(() => page.$('[data-rd-pinrow="n2"] [data-rd-pinact="keep"]'))) && !!(await page.$('[data-rd-pinrow="n2"] [data-rd-pinact="dismiss"]')) && !!(await page.$('[data-rd-pinrow="n2"] [data-rd-pinact="editthis"]')));
290
- await shot(page, 'deck-pin-1440');
291
- await page.click('[data-rd-pinrow="n2"] [data-rd-pinact="keep"]');
292
- ok('Keep the note posts keep and the pin is no longer a proposal', !!(await until(() => sent('/api/report-notes/pin').some((p) => p.body.op === 'keep' && p.body.id === 'n2'))) && !!(await until(async () => !/\bprop\b/.test(await page.getAttribute('[data-rd-pin="n2"]', 'class') || 'prop'))));
293
- await page.click('[data-rd-act="place"]');
294
- await until(() => page.$('[data-rd-placing]'));
295
- await clickUntil('[data-rd-big]', 0.3, 0.7, '[data-rd-pindraft]');
296
- ok('Add a note: a click on the slide asks for the note', !!(await until(() => page.$('[data-rd-pindraft]'))));
297
- await page.fill('[data-rd-pindraft]', 'Say the outage lasted 40 minutes.');
298
- await page.click('[data-rd-act="pinsave"]');
299
- const padd = await until(() => sent('/api/report-notes/pin').find((p) => p.body.op === 'add'));
300
- ok('the note posts add with the slide and its place in percent', !!padd && padd.body.slide === 'headline' && padd.body.x > 0 && padd.body.x < 100 && padd.body.y > 0 && padd.body.y < 100 && /40 minutes/.test(padd.body.text), JSON.stringify(padd && padd.body));
301
- ok('the new pin shows on the slide', !!(await until(async () => (await page.$$('[data-rd-big] [data-rd-pin]')).length === 3)));
302
-
303
- /* speaker notes (#deck-speaker) */
304
- ok('the speaker note of the slide is in its box, private', /Lead with sandbox keys/.test(await page.$eval('[data-rd-spk]', (x) => x.value)) && /Only you see speaker notes/.test(await text('[data-rd-spksec]')));
305
- await page.fill('[data-rd-spk]', 'Lead with sandbox keys. Then the beta date.');
306
- ok('a speaker note saves by itself', !!(await until(() => sent('/api/report-notes/speaker').some((p) => p.body.slide === 'headline' && p.body.text === 'Lead with sandbox keys. Then the beta date.'), 4000)));
307
- await page.click('[data-rd-go="2"]'); await until(async () => /Slide 3 of 11/.test(await text('[data-rd-cap]')));
308
- ok('a slide with no note shows the note of the last cycle with Keep and Clear', !!(await until(() => page.$('[data-rd-carry]'))) && /Wed 7 Oct/i.test(await text('[data-rd-carry]')) && !!(await page.$('[data-rd-carry] [data-rd-act="keep"]')) && !!(await page.$('[data-rd-carry] [data-rd-act="clear"]')));
309
- await page.click('[data-rd-carry] [data-rd-act="keep"]');
310
- ok('Keep posts keep:true and the note carries forward', !!(await until(() => sent('/api/report-notes/speaker').some((p) => p.body.slide === 'release' && p.body.keep === true))) && !!(await until(async () => /headers work/.test(await page.$eval('[data-rd-spk]', (x) => x.value).catch(() => '')))) && !(await page.$('[data-rd-carry]')));
311
- let clearAt = -1;
312
- for (let i = 3; i < 11 && clearAt < 0; i++) { await page.click('[data-rd-go="' + i + '"]'); await sleep(250); if (await page.$('[data-rd-carry]')) clearAt = i; }
313
- if (clearAt >= 0) {
314
- await page.click('[data-rd-carry] [data-rd-act="clear"]');
315
- ok('Clear posts an empty note and the suggestion goes', !!(await until(() => sent('/api/report-notes/speaker').some((p) => p.body.text === '' && !p.body.keep))) && !!(await until(async () => !(await page.$('[data-rd-carry]')))));
316
- } else ok('Clear posts an empty note and the suggestion goes', false, 'no second suggestion found');
317
- await shot(page, 'deck-speaker-1440');
318
-
319
- /* present (#deck-present, #deck-audience) */
320
- await page.click('[data-rd-go="1"]'); await until(async () => /Slide 2 of 11/.test(await text('[data-rd-cap]')));
321
- await page.click('[data-rd-act="present"]');
322
- await page.waitForSelector('[data-rd-ov]');
323
- ok('Present opens the presenter view: the slide, your note, the next slide, a timer, n / N and Jump to',
324
- !!(await page.$('[data-rd-ov] [data-rd-ovslide] iframe')) && /Lead with sandbox keys/.test(await text('[data-rd-ovnote]')) && !!(await page.$('[data-rd-ovnext]')) && /\d\d:\d\d/.test(await text('[data-rd-timer]')) && /2 \/ 11/.test(await text('[data-rd-pn]')) && (await page.$$('[data-rd-jump]')).length === 11);
325
- ok('the presenter view frames are sandboxed too', (await page.$$eval('[data-rd-ov] iframe', (a) => a.every((f) => f.getAttribute('sandbox') === 'allow-same-origin'))));
326
- await shot(page, 'deck-present-1440');
327
- const pn = () => text('[data-rd-pn]');
328
- await page.keyboard.press('ArrowRight'); ok('ArrowRight goes to the next slide', !!(await until(async () => /3 \/ 11/.test(await pn()))));
329
- await page.keyboard.press('ArrowLeft'); ok('ArrowLeft goes back', !!(await until(async () => /2 \/ 11/.test(await pn()))));
330
- await page.keyboard.press('PageDown'); ok('PageDown goes on', !!(await until(async () => /3 \/ 11/.test(await pn()))));
331
- await page.keyboard.press('End'); ok('End goes to the last slide', !!(await until(async () => /11 \/ 11/.test(await pn()))));
332
- await page.keyboard.press('Home'); ok('Home goes to the first slide', !!(await until(async () => /1 \/ 11/.test(await pn()))));
333
- await page.click('[data-rd-jump="4"]'); ok('Jump to goes to that slide', !!(await until(async () => /5 \/ 11/.test(await pn()))));
334
- /* Audience view opens a window of its own (initiative meeting-material-replay-gaps). This page is in demo mode, whose sample state lives in this page's memory, so the new window
335
- * cannot read the deck here: it says so. What the window shows, follows and closes with is tested against a real deck in pm-c3-meeting-material-test.js. */
336
- const popening = page.waitForEvent('popup');
337
- await page.click('[data-rd-ovact="aud"]');
338
- const pop = await popening;
339
- await pop.waitForSelector('[data-aud="message"]', { timeout: 30000 });
340
- const pu = new URL(pop.url());
341
- ok('Audience view opens a window of its own: the audience page, the report path, the slide the presenter is on, and a title that names the deck',
342
- pu.pathname === '/console.html' && pu.searchParams.get('audience') === '1' && /rs1\/[\d-]+\.md$/.test(pu.searchParams.get('path') || '') && pu.searchParams.get('start') === '4' && /^PMOS · Audience view · /.test(await pop.title()) && !!(await page.$('[data-rd-ov]')), pop.url());
343
- ok('the presenter view stays on this page while the window is open', !!(await page.$('[data-rd-ov].rd-pres')));
344
- await page.bringToFront(); await page.keyboard.press('Escape');
345
- ok('closing the presenter view closes the audience window', !!(await until(async () => pop.isClosed())) && !(await page.$('[data-rd-ov]')));
346
- /* a browser that blocks the window: a notice that says so, and the full-screen view in this window */
347
- await page.evaluate(() => { window.__open = window.open; window.open = () => null; });
348
- await page.click('[data-rd-act="present"]'); await page.waitForSelector('[data-rd-ov]');
349
- await page.click('[data-rd-ovact="aud"]');
350
- ok('a blocked window says so and offers the full-screen view here', !!(await until(async () => /The audience window was blocked/.test(await text('[data-c3-toast]') || ''))) && /Full-screen view here/.test(await text('[data-c3-toast]')));
351
- await page.click('[data-c3-toast-action]');
352
- ok('Audience view shows only the slide and n / N', !!(await until(() => page.$('[data-rd-ov].rd-aud, [data-rd-ov] [data-rd-count]'))) && !(await page.$('[data-rd-ovnote]')) && /5 \/ 11/.test(await text('[data-rd-count]')));
353
- await shot(page, 'deck-audience-1440');
354
- await page.keyboard.press(' '); ok('Space goes on', !!(await until(async () => /6 \/ 11/.test(await text('[data-rd-count]')))));
355
- await page.evaluate(() => { const o = document.querySelector('[data-rd-ov]'); const mk = (type, x) => { const t = new Touch({ identifier: 1, target: o, clientX: x, clientY: 300 }); o.dispatchEvent(new TouchEvent(type, { changedTouches: [t], touches: type === 'touchend' ? [] : [t], bubbles: true })); }; mk('touchstart', 600); mk('touchend', 300); });
356
- ok('a swipe to the left goes on', !!(await until(async () => /7 \/ 11/.test(await text('[data-rd-count]')))));
357
- await page.keyboard.press('Escape');
358
- ok('Escape closes the view and leaves the document open', !!(await until(async () => !(await page.$('[data-rd-ov]')))) && !!(await page.$('[data-rd-big]')));
359
- await page.evaluate(() => { window.open = window.__open; });
360
- const popening2 = page.waitForEvent('popup');
361
- await page.click('[data-rd-act="audience"]');
362
- const pop2 = await popening2;
363
- await pop2.waitForSelector('[data-aud="message"]', { timeout: 30000 });
364
- ok('Audience view opens straight from the bar, in a window of its own, and not as an overlay on this page', /audience=1/.test(pop2.url()) && !(await page.$('[data-rd-ov]')));
365
- await pop2.close();
366
- ok('the audience window can be closed', !!(await until(async () => pop2.isClosed())));
367
-
368
- /* print and download */
369
- await page.evaluate(() => { window.__printed = []; window.__printCalls = 0; window.open = () => ({ document: { open() {}, write(h) { window.__printed.push(h); }, close() {} }, focus() {}, print() { window.__printCalls++; }, close() {}, addEventListener() {}, onload: null }); });
370
- await page.click('[data-rd-act="print"]');
371
- const printed = await until(() => page.evaluate(() => (window.__printed || []).join('')));
372
- const nSlides = (printed.match(/<section[^>]*class="pmos-slide/g) || []).length;
373
- ok('Print / PDF writes the slides, one per page', nSlides === 11 && /pmos-print-deck/.test(printed), nSlides + ' slides');
374
- ok('the print holds no speaker note and no pin', !/Lead with sandbox keys|headers work|rd-pindot|outage on the login service|40 minutes/.test(printed));
375
- await page.click('[data-rd-act="pptx"]');
376
- ok('Download .pptx uses the existing export', !!(await until(() => gets.some((g) => /\/api\/report-export\?.*fmt=pptx/.test(g)) || gets.some((g) => /\/api\/report-export/.test(g) && /pptx/.test(g)))), gets.filter((g) => /export/.test(g)).join(' '));
377
-
378
- /* the Edit log has the pin and the decision; Edit this opens the Edit tab at its section */
379
- await page.click('[data-dmode="hist"]');
380
- ok('the Edit log lists the pinned note and the design decision', !!(await until(async () => /Note pinned on the slide/.test(await text('.sheet')))) && /40 minutes/.test(await text('.sheet')) && /Kept the extra slide/.test(await text('.sheet')));
381
- await page.click('[data-dmode="read"]');
382
- await until(() => page.$('[data-rd-big]'));
383
- await page.click('[data-rd-go="1"]'); await until(() => page.$('[data-rd-big] [data-rd-pin="n2"]'));
384
- await page.click('[data-rd-big] [data-rd-pin="n2"]');
385
- await until(() => page.$('[data-rd-pinrow="n2"] [data-rd-pinact="editthis"]'));
386
- await page.click('[data-rd-pinrow="n2"] [data-rd-pinact="editthis"]');
387
- ok('Edit this opens the Edit tab at the section of the note', !!(await until(() => page.$('[data-doc-editat]'))) && await page.getAttribute('[data-dmode="edit"]', 'aria-pressed') !== 'false');
388
- await page.click('[data-dmode="read"]');
389
- await until(() => page.$('[data-rd-big]'));
390
-
391
- /* Refine the design from the document; an initiative link opens Initiatives */
392
- await page.click('[data-rd-act="studio"]');
393
- ok('Refine the design opens the studio', !!(await until(() => page.$('[data-rd-studio]'))));
394
- await page.keyboard.press('Escape');
395
- ok('closing the studio opens the document again', !!(await until(() => page.$('[data-rd-deck] [data-rd-big] iframe'))) && !(await page.$('[data-rd-studio]')));
396
- await page.evaluate(() => { window.__ini = []; window.addEventListener('pmos:ini-go', (e) => window.__ini.push(e.detail)); });
397
- if (iniAt >= 0) {
398
- await page.click('[data-rd-go="' + iniAt + '"]'); await sleep(300); bf = await bigFrame();
399
- const want = await (await bf.$('[data-initiative]')).getAttribute('data-initiative');
400
- await (await bf.$('[data-initiative]')).click();
401
- ok('data-initiative: a click shows the initiative with Open the initiative', !!(await until(() => page.$('[data-rd-src] [data-rd-act="openini"]'))) && (await text('[data-rd-src]')).includes(want));
402
- await page.click('[data-rd-src] [data-rd-act="openini"]');
403
- ok('Open the initiative opens it on the Initiatives page', !!(await until(() => page.evaluate((w) => (window.__ini || []).some((d) => d && d.id === w), want))), want);
404
- } else ok('data-initiative: a click opens that initiative', false, 'no initiative link');
405
-
406
- /* ── a matching cycle and the other two choices, each on a fresh demo ── */
407
- await goReports(page);
408
- await openDoc(page, 'planning/reports/rs1/2026-10-07.md');
409
- ok('a cycle that follows the design shows Matches the design and no difference box', /Matches the design/.test(await text('[data-rd-match="yes"]')) && !(await page.$('[data-rd-diff]')));
410
- await closeAll(page);
411
- await openDoc(page, DOC);
412
- await page.click('[data-rd-decide="adopt"]');
413
- ok('Make it part of the design posts adopt', !!(await until(() => sent('/api/report-design/cycle-decision').some((p) => p.body.choice === 'adopt'))));
414
- ok('then the deck matches the new design version', !!(await until(() => page.$('[data-rd-match="yes"]'))) && /Design D4/.test(await text('[data-rd-deck]')) && !(await page.$('[data-rd-diff]')));
415
- await shot(page, 'deck-adopted-1440');
416
- await goReports(page);
417
- await openDoc(page, DOC);
418
- await page.click('[data-rd-decide="match"]');
419
- ok('Match the design posts match and PMOS draws the cycle again', !!(await until(() => sent('/api/report-design/cycle-decision').some((p) => p.body.choice === 'match'))) && !!(await until(() => page.$('[data-rd-rendering]'))));
420
- ok('when it is drawn the deck matches the design with 10 slides', !!(await until(() => page.$('[data-rd-match="yes"]'), 8000)) && (await page.$$('[data-rd-go]')).length === 10);
421
-
422
- /* ── phone ── */
423
- const ph = await browser.newContext({ viewport: { width: 400, height: 860 }, hasTouch: true, isMobile: true });
424
- const pp = await newPage(ph);
425
- const noScroll = () => pp.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1);
426
- await goReports(pp);
427
- await openDoc(pp, DOC);
428
- ok('400px: the deck has no horizontal scroll', await noScroll());
429
- await shot(pp, 'deck-400');
430
- await pp.click('[data-rd-act="present"]'); await pp.waitForSelector('[data-rd-ov]');
431
- ok('400px: the presenter view has no horizontal scroll', await noScroll());
432
- await pp.keyboard.press('Escape'); await until(async () => !(await pp.$('[data-rd-ov]')));
433
- await closeAll(pp);
434
- await pp.click('[data-rs-reg="rs1"] [data-rs-act="design"]'); await pp.waitForSelector('[data-rd-studio] [data-rd-v]');
435
- ok('400px: the studio has no horizontal scroll', await noScroll());
436
- await shot(pp, 'design-400');
437
- await ph.close();
438
-
439
- await sleep(300);
440
- ok('no script error and no failed request', errors.length === 0, errors.slice(0, 4).join(' | '));
441
- return finish();
442
- })();