create-pmos 0.398.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 (515) 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 +19 -15
  7. package/workspace/briefing-premium-board-test.js +82 -50
  8. package/workspace/briefing-premium-calendar-2-test.js +36 -36
  9. package/workspace/briefing-premium-calendar-3-test.js +39 -39
  10. package/workspace/briefing-premium-calendar-test.js +23 -24
  11. package/workspace/briefing-premium-doc-edit-test.js +8 -10
  12. package/workspace/briefing-premium-initiative-test.js +38 -16
  13. package/workspace/briefing-premium-insights-test.js +114 -37
  14. package/workspace/briefing-premium-metrics-test.js +6 -4
  15. package/workspace/briefing-premium-products-test.js +10 -7
  16. package/workspace/briefing-premium-sources-test.js +25 -22
  17. package/workspace/briefing-premium-test.js +48 -43
  18. package/workspace/briefing-premium-work-test.js +16 -11
  19. package/workspace/c3-capture-test.js +0 -17
  20. package/workspace/changelog.json +29 -0
  21. package/workspace/ev-everywhere-test.js +210 -0
  22. package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
  23. package/workspace/guide/briefing-premium.md +2 -2
  24. package/workspace/guide/home.md +58 -19
  25. package/workspace/guide/index.md +1 -1
  26. package/workspace/guide/layout.md +2 -2
  27. package/workspace/guide/notes.md +2 -2
  28. package/workspace/guide/phone-companion.md +1 -1
  29. package/workspace/lib/board-grill.js +63 -0
  30. package/workspace/lib/board-premium.js +36 -5
  31. package/workspace/lib/initiative-layout.js +77 -0
  32. package/workspace/lib/insights-premium.js +3 -2
  33. package/workspace/lib/insights-records.js +21 -7
  34. package/workspace/lib/meeting-points.js +52 -0
  35. package/workspace/lib/news-for-you.js +88 -0
  36. package/workspace/lib/notes-series.js +29 -6
  37. package/workspace/lib/report-confirm.js +48 -0
  38. package/workspace/lib/route-modules.js +9 -9
  39. package/workspace/lib/routes-board-docs.js +46 -0
  40. package/workspace/lib/routes-board-grill.js +90 -0
  41. package/workspace/lib/routes-home-review.js +108 -0
  42. package/workspace/lib/routes-initiative-layout.js +57 -0
  43. package/workspace/lib/routes-insights-premium.js +4 -1
  44. package/workspace/lib/routes-insights-records.js +8 -4
  45. package/workspace/lib/routes-meeting-points.js +37 -0
  46. package/workspace/lib/routes-news.js +57 -0
  47. package/workspace/lib/routes-notes.js +2 -1
  48. package/workspace/lib/routes-phone-day.js +18 -9
  49. package/workspace/lib/routes-report-confirm.js +31 -0
  50. package/workspace/lib/routes-search.js +38 -0
  51. package/workspace/lib/routes-slash.js +95 -0
  52. package/workspace/lib/search-index.js +176 -0
  53. package/workspace/package-lock.json +2 -2
  54. package/workspace/package.json +1 -2
  55. package/workspace/premium-board-actions-test.js +86 -50
  56. package/workspace/premium-briefing-depth-test.js +55 -54
  57. package/workspace/premium-chat-chart-tab-test.js +4 -2
  58. package/workspace/premium-chat-goal-view-test.js +1 -1
  59. package/workspace/premium-chat-report-tab-test.js +16 -2
  60. package/workspace/premium-chat-term-test.js +0 -10
  61. package/workspace/premium-core-doc-issue-test.js +15 -13
  62. package/workspace/premium-menu-rows-test.js +1 -1
  63. package/workspace/premium-phone-card-test.js +7 -5
  64. package/workspace/premium-report-read-test.js +55 -18
  65. package/workspace/premium-vw-backlog-test.js +2 -2
  66. package/workspace/premium-vw-cal-test.js +50 -35
  67. package/workspace/premium-vw-doc-test.js +10 -11
  68. package/workspace/premium-vw-item-test.js +1 -1
  69. package/workspace/premium-vw-jira-test.js +2 -2
  70. package/workspace/premium-vw-meet-test.js +37 -40
  71. package/workspace/premium-vw-notes-test.js +21 -19
  72. package/workspace/premium-vw-rec-test.js +11 -12
  73. package/workspace/premium-welcome-test.js +3 -3
  74. package/workspace/premium-work-depth-test.js +5 -6
  75. package/workspace/public/capture.html +23 -0
  76. package/workspace/public/pm/bd-acts.js +303 -225
  77. package/workspace/public/pm/bd-asks.js +261 -0
  78. package/workspace/public/pm/bd-pop.js +59 -0
  79. package/workspace/public/pm/bd-span.js +49 -13
  80. package/workspace/public/pm/bd-views.js +169 -0
  81. package/workspace/public/pm/c3-base.js +47 -0
  82. package/workspace/public/pm/c3-capture.js +1 -1
  83. package/workspace/public/pm/c3-ini-ui.js +1 -1
  84. package/workspace/public/pm/c3-sheet.js +1 -1
  85. package/workspace/public/pm/c3-toast.js +1 -1
  86. package/workspace/public/pm/console3.css +3 -0
  87. package/workspace/public/pm/cozy-board.css +301 -0
  88. package/workspace/public/pm/cozy-ev.css +228 -0
  89. package/workspace/public/pm/cozy-evmodel.js +106 -0
  90. package/workspace/public/pm/cozy-evui.js +47 -0
  91. package/workspace/public/pm/cozy-home.css +20 -5
  92. package/workspace/public/pm/cozy-insights.css +148 -10
  93. package/workspace/public/pm/cozy-nav.js +103 -39
  94. package/workspace/public/pm/cozy-news.js +140 -0
  95. package/workspace/public/pm/cozy-search.js +203 -0
  96. package/workspace/public/pm/cozy-settings.js +198 -0
  97. package/workspace/public/pm/cozy-sources.js +89 -0
  98. package/workspace/public/pm/cozy-today.css +220 -0
  99. package/workspace/public/pm/cozy-viewer.js +5 -2
  100. package/workspace/public/pm/cozy-vw-mtg.css +350 -0
  101. package/workspace/public/pm/cozy-vw-rp.css +152 -0
  102. package/workspace/public/pm/cozy.css +9 -0
  103. package/workspace/public/pm/goal-chat.js +5 -1
  104. package/workspace/public/pm/home-adddoc.js +5 -5
  105. package/workspace/public/pm/home-app.js +365 -70
  106. package/workspace/public/pm/home-around.js +24 -126
  107. package/workspace/public/pm/home-chat.js +77 -18
  108. package/workspace/public/pm/home-data.js +9 -7
  109. package/workspace/public/pm/home-dictate.js +57 -0
  110. package/workspace/public/pm/home-draft.js +6 -6
  111. package/workspace/public/pm/home-ini-model.js +190 -0
  112. package/workspace/public/pm/home-ini.css +171 -0
  113. package/workspace/public/pm/home-ini.js +466 -0
  114. package/workspace/public/pm/home-list.js +289 -0
  115. package/workspace/public/pm/home-more.js +18 -135
  116. package/workspace/public/pm/home-phone-card.js +13 -8
  117. package/workspace/public/pm/home-review.js +103 -0
  118. package/workspace/public/pm/home-task.js +67 -0
  119. package/workspace/public/pm/home-today.js +148 -0
  120. package/workspace/public/pm/home-work.js +63 -28
  121. package/workspace/public/pm/note-dock.js +1 -2
  122. package/workspace/public/pm/notes-links.js +1 -2
  123. package/workspace/public/pm/notes-task.js +3 -4
  124. package/workspace/public/pm/premium-board.js +164 -40
  125. package/workspace/public/pm/premium-chart-tab.js +4 -5
  126. package/workspace/public/pm/premium-first.js +5 -7
  127. package/workspace/public/pm/premium-initiative-head.js +3 -3
  128. package/workspace/public/pm/premium-insights.js +499 -202
  129. package/workspace/public/pm/premium-mtg-present.js +138 -0
  130. package/workspace/public/pm/premium-mtg-replay.js +142 -0
  131. package/workspace/public/pm/premium-report-read.js +216 -52
  132. package/workspace/public/pm/premium-report-tab.js +44 -19
  133. package/workspace/public/pm/premium-shell.js +7 -7
  134. package/workspace/public/pm/premium-vw-cal.js +150 -60
  135. package/workspace/public/pm/premium-vw-doc.css +20 -2
  136. package/workspace/public/pm/premium-vw-doc.js +22 -7
  137. package/workspace/public/pm/premium-vw-mtg.js +488 -261
  138. package/workspace/public/pm/premium-vw-notes.js +61 -0
  139. package/workspace/public/pm/rp-parts.js +269 -0
  140. package/workspace/public/pm/view-notes.js +2 -2
  141. package/workspace/public/premium-board.html +4 -3
  142. package/workspace/public/premium-insights.html +10 -10
  143. package/workspace/public/premium.html +3 -1
  144. package/workspace/r/m1.png +0 -0
  145. package/workspace/r/m2.png +0 -0
  146. package/workspace/r/m3.png +0 -0
  147. package/workspace/r/nl.png +0 -0
  148. package/workspace/replaced-tests.json +435 -0
  149. package/workspace/run-tests.js +323 -28
  150. package/workspace/server.js +15 -10
  151. package/workspace/test-files.json +3 -140
  152. package/workspace/test-lists/base.json +1 -2
  153. package/workspace/test-lists/c3-desktop-light-load.json +1 -2
  154. package/workspace/test-lists/c3-initiative-boards.json +1 -2
  155. package/workspace/test-lists/c3-meeting-focus.json +2 -12
  156. package/workspace/test-lists/c3-work-agent.json +1 -2
  157. package/workspace/test-lists/calendar-tidy-up.json +1 -2
  158. package/workspace/test-lists/console3-reports.json +1 -2
  159. package/workspace/test-lists/docs-three-way-sync.json +1 -2
  160. package/workspace/test-lists/extension-capture.json +5 -0
  161. package/workspace/test-lists/initiative-layout.json +9 -0
  162. package/workspace/test-lists/jira-wbs.json +1 -2
  163. package/workspace/test-lists/legacy-cleanup-a.json +9 -0
  164. package/workspace/test-lists/meeting-material.json +1 -2
  165. package/workspace/test-lists/meeting-notes.json +2 -36
  166. package/workspace/test-lists/meeting-replay.json +1 -2
  167. package/workspace/test-lists/mm-capture.json +2 -12
  168. package/workspace/test-lists/my-work.json +2 -10
  169. package/workspace/test-lists/onboarding-firstrun.json +2 -12
  170. package/workspace/test-lists/people-directory.json +1 -2
  171. package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
  172. package/workspace/test-lists/premium-uncovered-reports.json +9 -0
  173. package/workspace/test-lists/run2-a.json +1 -2
  174. package/workspace/test-lists/run2-d.json +2 -19
  175. package/workspace/test-lists/run3-b.json +1 -2
  176. package/workspace/test-lists/run3-c.json +2 -12
  177. package/workspace/test-lists/run4-b.json +1 -2
  178. package/workspace/test-lists/run4-d.json +1 -5
  179. package/workspace/test-lists/run5-c.json +1 -11
  180. package/workspace/test-lists/run6.json +1 -5
  181. package/workspace/test-lists/uf-everywhere.json +15 -0
  182. package/workspace/test-lists/uf-home.json +9 -0
  183. package/workspace/test-lists/uncovered-board.json +9 -0
  184. package/workspace/test-lists/workspace-launch-flags.json +2 -12
  185. package/workspace/test-lists/workspace-profile-detection.json +2 -10
  186. package/workspace/test-timings.json +242 -123
  187. package/workspace/c3-briefing-test.js +0 -136
  188. package/workspace/c3-core-docs-test.js +0 -170
  189. package/workspace/c3-driver-fixture.js +0 -64
  190. package/workspace/c3-driver-test.js +0 -169
  191. package/workspace/c3-foundation-test.js +0 -163
  192. package/workspace/c3-ib-items-test.js +0 -114
  193. package/workspace/c3-ib-more-test.js +0 -146
  194. package/workspace/c3-ib-triage-backlog-test.js +0 -128
  195. package/workspace/c3-ini-harness.js +0 -66
  196. package/workspace/c3-ini-life-test.js +0 -167
  197. package/workspace/c3-initiatives-test.js +0 -186
  198. package/workspace/c3-light-load-test.js +0 -112
  199. package/workspace/c3-one-home-test.js +0 -149
  200. package/workspace/c3-phone-test.js +0 -289
  201. package/workspace/c3-quiet-test.js +0 -157
  202. package/workspace/c3-report-design-real-test.js +0 -264
  203. package/workspace/c3-report-design-test.js +0 -442
  204. package/workspace/c3-report-setup-test.js +0 -192
  205. package/workspace/c3-report-structure-real-test.js +0 -248
  206. package/workspace/c3-report-structure-test.js +0 -397
  207. package/workspace/c3-reports-test.js +0 -288
  208. package/workspace/c3-scan-test.js +0 -517
  209. package/workspace/c3-sessions-panel-test.js +0 -365
  210. package/workspace/c3-settings-test.js +0 -204
  211. package/workspace/c3-updates-test.js +0 -131
  212. package/workspace/c3-work-test.js +0 -260
  213. package/workspace/cut-stub.js +0 -40
  214. package/workspace/first-paint-audit.js +0 -160
  215. package/workspace/lib/c3-full-console.js +0 -15
  216. package/workspace/lib/engine/derived/trust.js +0 -3
  217. package/workspace/lib/engine/plan-forecast.js +0 -342
  218. package/workspace/lib/engine/report-families.js +0 -175
  219. package/workspace/lib/engine/truth-table.js +0 -57
  220. package/workspace/lib/routes-c3-init.js +0 -54
  221. package/workspace/lib/routes-c3-life.js +0 -120
  222. package/workspace/lib/routes-c3-timeline.js +0 -192
  223. package/workspace/lib/routes-forecast.js +0 -86
  224. package/workspace/lib/routes-releases.js +0 -130
  225. package/workspace/lib/routes-report-facts.js +0 -85
  226. package/workspace/lib/routes-report-families.js +0 -33
  227. package/workspace/lib/routes-signals.js +0 -51
  228. package/workspace/lib/routes-timeline.js +0 -197
  229. package/workspace/public/c3.html +0 -35
  230. package/workspace/public/index.html +0 -156
  231. package/workspace/public/pm/app.js +0 -831
  232. package/workspace/public/pm/bd-board.js +0 -159
  233. package/workspace/public/pm/bd-drag.js +0 -59
  234. package/workspace/public/pm/bd-model.js +0 -152
  235. package/workspace/public/pm/bd-timeline.js +0 -233
  236. package/workspace/public/pm/bd-tree.js +0 -244
  237. package/workspace/public/pm/board-copy.js +0 -59
  238. package/workspace/public/pm/board-read.js +0 -38
  239. package/workspace/public/pm/branches-sheet.js +0 -56
  240. package/workspace/public/pm/breakdown-api.js +0 -58
  241. package/workspace/public/pm/breakdown-copy.js +0 -138
  242. package/workspace/public/pm/briefing-deck.js +0 -441
  243. package/workspace/public/pm/briefing-model.js +0 -251
  244. package/workspace/public/pm/c3-ambient.js +0 -100
  245. package/workspace/public/pm/c3-audience-link.js +0 -21
  246. package/workspace/public/pm/c3-audience.js +0 -46
  247. package/workspace/public/pm/c3-boot.js +0 -13
  248. package/workspace/public/pm/c3-breakdown.js +0 -240
  249. package/workspace/public/pm/c3-brief-data.js +0 -11
  250. package/workspace/public/pm/c3-brief-mentions.js +0 -137
  251. package/workspace/public/pm/c3-brief-needs.js +0 -288
  252. package/workspace/public/pm/c3-brief-pulse.js +0 -112
  253. package/workspace/public/pm/c3-brief-summary.js +0 -139
  254. package/workspace/public/pm/c3-brief-today.js +0 -79
  255. package/workspace/public/pm/c3-brief.js +0 -279
  256. package/workspace/public/pm/c3-cal-strategy.js +0 -529
  257. package/workspace/public/pm/c3-calendar.js +0 -965
  258. package/workspace/public/pm/c3-calpop.js +0 -111
  259. package/workspace/public/pm/c3-case.js +0 -196
  260. package/workspace/public/pm/c3-core-docs.css +0 -18
  261. package/workspace/public/pm/c3-core-docs.js +0 -236
  262. package/workspace/public/pm/c3-daypart.js +0 -176
  263. package/workspace/public/pm/c3-demo-boards.js +0 -764
  264. package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
  265. package/workspace/public/pm/c3-demo-brief-page.js +0 -70
  266. package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
  267. package/workspace/public/pm/c3-demo-cal2.js +0 -66
  268. package/workspace/public/pm/c3-demo-cal3.js +0 -173
  269. package/workspace/public/pm/c3-demo-cal4.js +0 -169
  270. package/workspace/public/pm/c3-demo-cal5.js +0 -52
  271. package/workspace/public/pm/c3-demo-coredocs.js +0 -221
  272. package/workspace/public/pm/c3-demo-data.js +0 -552
  273. package/workspace/public/pm/c3-demo-focus.js +0 -181
  274. package/workspace/public/pm/c3-demo-init.js +0 -430
  275. package/workspace/public/pm/c3-demo-life.js +0 -77
  276. package/workspace/public/pm/c3-demo-material.js +0 -58
  277. package/workspace/public/pm/c3-demo-misc2.js +0 -34
  278. package/workspace/public/pm/c3-demo-phone.js +0 -48
  279. package/workspace/public/pm/c3-demo-plan2.js +0 -30
  280. package/workspace/public/pm/c3-demo-rd.js +0 -432
  281. package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
  282. package/workspace/public/pm/c3-demo-rep2.js +0 -130
  283. package/workspace/public/pm/c3-demo-rep3.js +0 -138
  284. package/workspace/public/pm/c3-demo-rs.js +0 -287
  285. package/workspace/public/pm/c3-demo-term.js +0 -153
  286. package/workspace/public/pm/c3-demo-time.js +0 -49
  287. package/workspace/public/pm/c3-demo-work-ix.js +0 -32
  288. package/workspace/public/pm/c3-demo.js +0 -131
  289. package/workspace/public/pm/c3-design-studio.js +0 -369
  290. package/workspace/public/pm/c3-doc-formats.js +0 -153
  291. package/workspace/public/pm/c3-doc-sheet.js +0 -1230
  292. package/workspace/public/pm/c3-dock.js +0 -206
  293. package/workspace/public/pm/c3-docs.js +0 -291
  294. package/workspace/public/pm/c3-driver-work.js +0 -110
  295. package/workspace/public/pm/c3-driver.css +0 -18
  296. package/workspace/public/pm/c3-driver.js +0 -298
  297. package/workspace/public/pm/c3-focus.css +0 -304
  298. package/workspace/public/pm/c3-focus.js +0 -983
  299. package/workspace/public/pm/c3-ib-docs.js +0 -92
  300. package/workspace/public/pm/c3-ib-initiatives.js +0 -201
  301. package/workspace/public/pm/c3-ib-items.js +0 -210
  302. package/workspace/public/pm/c3-ib-releases.js +0 -48
  303. package/workspace/public/pm/c3-ib-sprints.js +0 -201
  304. package/workspace/public/pm/c3-ib-triage.js +0 -177
  305. package/workspace/public/pm/c3-ii-tabs.js +0 -252
  306. package/workspace/public/pm/c3-ini-life.css +0 -34
  307. package/workspace/public/pm/c3-ini-life.js +0 -379
  308. package/workspace/public/pm/c3-ini-records.js +0 -197
  309. package/workspace/public/pm/c3-ini-timeline.js +0 -278
  310. package/workspace/public/pm/c3-ini-work.js +0 -139
  311. package/workspace/public/pm/c3-init-extras.js +0 -170
  312. package/workspace/public/pm/c3-initiatives.js +0 -852
  313. package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
  314. package/workspace/public/pm/c3-look.js +0 -27
  315. package/workspace/public/pm/c3-material.css +0 -22
  316. package/workspace/public/pm/c3-material.js +0 -321
  317. package/workspace/public/pm/c3-md.js +0 -3
  318. package/workspace/public/pm/c3-misc-panels.js +0 -89
  319. package/workspace/public/pm/c3-new-session.js +0 -110
  320. package/workspace/public/pm/c3-notes.js +0 -751
  321. package/workspace/public/pm/c3-phone-boot.js +0 -47
  322. package/workspace/public/pm/c3-phone-detail.js +0 -97
  323. package/workspace/public/pm/c3-phone-model.js +0 -3
  324. package/workspace/public/pm/c3-phone.css +0 -66
  325. package/workspace/public/pm/c3-phone.js +0 -444
  326. package/workspace/public/pm/c3-plan-panels.js +0 -163
  327. package/workspace/public/pm/c3-plan.js +0 -193
  328. package/workspace/public/pm/c3-quiet.css +0 -113
  329. package/workspace/public/pm/c3-quiet.js +0 -177
  330. package/workspace/public/pm/c3-replay.css +0 -133
  331. package/workspace/public/pm/c3-replay.js +0 -429
  332. package/workspace/public/pm/c3-report-deck.css +0 -163
  333. package/workspace/public/pm/c3-report-deck.js +0 -598
  334. package/workspace/public/pm/c3-report-frame.css +0 -20
  335. package/workspace/public/pm/c3-report-print.css +0 -20
  336. package/workspace/public/pm/c3-report-setup.css +0 -67
  337. package/workspace/public/pm/c3-report-setup.js +0 -298
  338. package/workspace/public/pm/c3-report-store.js +0 -244
  339. package/workspace/public/pm/c3-report-structure.css +0 -44
  340. package/workspace/public/pm/c3-report-structure.js +0 -473
  341. package/workspace/public/pm/c3-reports.css +0 -68
  342. package/workspace/public/pm/c3-reports.js +0 -377
  343. package/workspace/public/pm/c3-roadmap.js +0 -249
  344. package/workspace/public/pm/c3-scan-api.js +0 -167
  345. package/workspace/public/pm/c3-scan-next.js +0 -248
  346. package/workspace/public/pm/c3-scan-setup.js +0 -313
  347. package/workspace/public/pm/c3-scan-words.js +0 -41
  348. package/workspace/public/pm/c3-scan.css +0 -74
  349. package/workspace/public/pm/c3-scan.js +0 -93
  350. package/workspace/public/pm/c3-session-chat.js +0 -103
  351. package/workspace/public/pm/c3-session-conv.js +0 -165
  352. package/workspace/public/pm/c3-session-term.js +0 -216
  353. package/workspace/public/pm/c3-settings.css +0 -85
  354. package/workspace/public/pm/c3-settings.js +0 -1045
  355. package/workspace/public/pm/c3-shell.js +0 -628
  356. package/workspace/public/pm/c3-signals.js +0 -196
  357. package/workspace/public/pm/c3-strategy-panels.js +0 -45
  358. package/workspace/public/pm/c3-swipe.js +0 -230
  359. package/workspace/public/pm/c3-terminal-data.js +0 -48
  360. package/workspace/public/pm/c3-terminal-edge.js +0 -91
  361. package/workspace/public/pm/c3-terminal-icons.js +0 -40
  362. package/workspace/public/pm/c3-terminal-results.js +0 -141
  363. package/workspace/public/pm/c3-terminal.js +0 -52
  364. package/workspace/public/pm/c3-tickets.js +0 -163
  365. package/workspace/public/pm/c3-timeline.js +0 -201
  366. package/workspace/public/pm/calendar-views.js +0 -1049
  367. package/workspace/public/pm/console3-lift.md +0 -220
  368. package/workspace/public/pm/cozy-home.js +0 -172
  369. package/workspace/public/pm/cozy-initiative.css +0 -138
  370. package/workspace/public/pm/cycle-review.js +0 -125
  371. package/workspace/public/pm/data.js +0 -1577
  372. package/workspace/public/pm/dest-board.js +0 -444
  373. package/workspace/public/pm/dest-docs.js +0 -530
  374. package/workspace/public/pm/dest-initiatives.js +0 -162
  375. package/workspace/public/pm/dest-mywork.js +0 -307
  376. package/workspace/public/pm/dest-notes.js +0 -537
  377. package/workspace/public/pm/dest-people.js +0 -449
  378. package/workspace/public/pm/dest-reports.js +0 -383
  379. package/workspace/public/pm/dest-settings.js +0 -601
  380. package/workspace/public/pm/dest-today.js +0 -267
  381. package/workspace/public/pm/display-word.js +0 -56
  382. package/workspace/public/pm/doc-editor.js +0 -473
  383. package/workspace/public/pm/doc-graph.js +0 -272
  384. package/workspace/public/pm/doc-health-panel.js +0 -110
  385. package/workspace/public/pm/doc-rail.js +0 -167
  386. package/workspace/public/pm/doc-remote.js +0 -180
  387. package/workspace/public/pm/dock-sessions.js +0 -472
  388. package/workspace/public/pm/dock.js +0 -216
  389. package/workspace/public/pm/fixture.js +0 -821
  390. package/workspace/public/pm/flag-picker.js +0 -104
  391. package/workspace/public/pm/frame-copy.js +0 -278
  392. package/workspace/public/pm/freshness-line.js +0 -149
  393. package/workspace/public/pm/handoff-box.js +0 -82
  394. package/workspace/public/pm/initiative-list.js +0 -235
  395. package/workspace/public/pm/initiative-sheet.js +0 -331
  396. package/workspace/public/pm/initiatives-api.js +0 -95
  397. package/workspace/public/pm/initiatives-copy.js +0 -287
  398. package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
  399. package/workspace/public/pm/initiatives-timeline.js +0 -410
  400. package/workspace/public/pm/initiatives-ui.js +0 -291
  401. package/workspace/public/pm/item-sheet.js +0 -268
  402. package/workspace/public/pm/keep-card.js +0 -204
  403. package/workspace/public/pm/lifecycle-lens-model.js +0 -246
  404. package/workspace/public/pm/lifecycle-lens.js +0 -276
  405. package/workspace/public/pm/lifecycle.js +0 -111
  406. package/workspace/public/pm/mobile.css +0 -366
  407. package/workspace/public/pm/mobile.js +0 -581
  408. package/workspace/public/pm/modes-live.js +0 -453
  409. package/workspace/public/pm/modes.js +0 -147
  410. package/workspace/public/pm/my-work-card.js +0 -51
  411. package/workspace/public/pm/my-work-data.js +0 -36
  412. package/workspace/public/pm/new-initiative-sheet.js +0 -169
  413. package/workspace/public/pm/next-step-ui.js +0 -190
  414. package/workspace/public/pm/outbox-panel.js +0 -125
  415. package/workspace/public/pm/palette-copy.js +0 -55
  416. package/workspace/public/pm/palette.js +0 -343
  417. package/workspace/public/pm/panel-breakdown.js +0 -702
  418. package/workspace/public/pm/panel-cockpit.js +0 -425
  419. package/workspace/public/pm/panel-detail.js +0 -1513
  420. package/workspace/public/pm/panel-initiatives.js +0 -929
  421. package/workspace/public/pm/panel-newsess.js +0 -709
  422. package/workspace/public/pm/panel-repos.js +0 -741
  423. package/workspace/public/pm/panel-tabs.js +0 -1506
  424. package/workspace/public/pm/panel-trees.js +0 -204
  425. package/workspace/public/pm/people-link.js +0 -106
  426. package/workspace/public/pm/phone-deck.js +0 -167
  427. package/workspace/public/pm/pm-work-view.js +0 -1533
  428. package/workspace/public/pm/portfolio-report.js +0 -61
  429. package/workspace/public/pm/premium-acts.js +0 -280
  430. package/workspace/public/pm/premium-brief.js +0 -111
  431. package/workspace/public/pm/premium-chat.js +0 -22
  432. package/workspace/public/pm/premium-doc-sheet.js +0 -312
  433. package/workspace/public/pm/premium-initiative.js +0 -324
  434. package/workspace/public/pm/premium-insights.css +0 -228
  435. package/workspace/public/pm/premium-metric-tiles.js +0 -68
  436. package/workspace/public/pm/premium-report-brief.js +0 -132
  437. package/workspace/public/pm/premium-vw-rec.js +0 -67
  438. package/workspace/public/pm/premium-wide.css +0 -30
  439. package/workspace/public/pm/print.css +0 -44
  440. package/workspace/public/pm/provider-cards.js +0 -136
  441. package/workspace/public/pm/registry.js +0 -203
  442. package/workspace/public/pm/release-card.js +0 -110
  443. package/workspace/public/pm/releases-view.js +0 -248
  444. package/workspace/public/pm/report-families-view.js +0 -505
  445. package/workspace/public/pm/report-slides.js +0 -438
  446. package/workspace/public/pm/report-tab.js +0 -33
  447. package/workspace/public/pm/report-view.js +0 -337
  448. package/workspace/public/pm/reports-copy.js +0 -134
  449. package/workspace/public/pm/roadmap.js +0 -294
  450. package/workspace/public/pm/run-card.js +0 -260
  451. package/workspace/public/pm/sessions-panel.js +0 -219
  452. package/workspace/public/pm/sheet-jira.js +0 -353
  453. package/workspace/public/pm/shell-bell.js +0 -163
  454. package/workspace/public/pm/shell-model.js +0 -83
  455. package/workspace/public/pm/shell-phone.js +0 -124
  456. package/workspace/public/pm/shell-readaloud.js +0 -53
  457. package/workspace/public/pm/shell-recording.js +0 -274
  458. package/workspace/public/pm/shell-ticker.js +0 -90
  459. package/workspace/public/pm/sig-watch.js +0 -41
  460. package/workspace/public/pm/slide-confirm.js +0 -163
  461. package/workspace/public/pm/slides-copy.js +0 -52
  462. package/workspace/public/pm/status-banner.js +0 -95
  463. package/workspace/public/pm/tab-doc.js +0 -859
  464. package/workspace/public/pm/tab-gone.js +0 -21
  465. package/workspace/public/pm/tab-term.js +0 -1210
  466. package/workspace/public/pm/tab-web.js +0 -90
  467. package/workspace/public/pm/timeline-copy.js +0 -48
  468. package/workspace/public/pm/timeline-forecast-view.js +0 -164
  469. package/workspace/public/pm/today-agenda.js +0 -331
  470. package/workspace/public/pm/today-cards.js +0 -244
  471. package/workspace/public/pm/today-copy.js +0 -506
  472. package/workspace/public/pm/today-day.js +0 -1371
  473. package/workspace/public/pm/today-goals.js +0 -297
  474. package/workspace/public/pm/today-jobs.js +0 -84
  475. package/workspace/public/pm/today-mentions.js +0 -50
  476. package/workspace/public/pm/topbar.js +0 -202
  477. package/workspace/public/pm/triage-card.js +0 -60
  478. package/workspace/public/pm/undo-hold.js +0 -103
  479. package/workspace/public/pm/view-addrepo.js +0 -208
  480. package/workspace/public/pm/view-files.js +0 -197
  481. package/workspace/public/pm/view-livenotes.js +0 -399
  482. package/workspace/public/pm/view-today.js +0 -13
  483. package/workspace/public/pm/view-validate.js +0 -171
  484. package/workspace/public/pm/welcome.js +0 -391
  485. package/workspace/public/pm/work-place.js +0 -68
  486. package/workspace/public/pm/xlsx-read.js +0 -117
  487. package/workspace/public/welcome.html +0 -22
  488. package/workspace/test-lists/browser-suites-green.json +0 -5
  489. package/workspace/test-lists/c3-core-docs.json +0 -9
  490. package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
  491. package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
  492. package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
  493. package/workspace/test-lists/c3-ib-items.json +0 -9
  494. package/workspace/test-lists/c3-ib-more.json +0 -9
  495. package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
  496. package/workspace/test-lists/c3-ini-life.json +0 -9
  497. package/workspace/test-lists/c3-meeting-board.json +0 -5
  498. package/workspace/test-lists/c3-meeting-card.json +0 -5
  499. package/workspace/test-lists/c3-notes-place.json +0 -5
  500. package/workspace/test-lists/c3-notes-series.json +0 -5
  501. package/workspace/test-lists/calendar-time-page.json +0 -5
  502. package/workspace/test-lists/calpop.json +0 -4
  503. package/workspace/test-lists/console3-briefing.json +0 -9
  504. package/workspace/test-lists/console3-foundation.json +0 -9
  505. package/workspace/test-lists/console3-work-page.json +0 -9
  506. package/workspace/test-lists/premium-brief-parity.json +0 -9
  507. package/workspace/test-lists/report-design-studio-ui.json +0 -5
  508. package/workspace/test-lists/report-structure-ui.json +0 -11
  509. package/workspace/test-lists/report-workspace-ui.json +0 -5
  510. package/workspace/test-lists/run3-a.json +0 -5
  511. package/workspace/test-lists/run3-d.json +0 -6
  512. package/workspace/test-lists/run4-c.json +0 -13
  513. package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
  514. package/workspace/test-lists/today-mentions-cards.json +0 -5
  515. package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
@@ -7,8 +7,9 @@
7
7
  * fixture (fixtures/briefing-premium-facts.js), so the page is checked against known data.
8
8
  * R1 Home is the default page; the console stays at /console.html and nothing on Home links to it; the place menu; Settings and Ctrl K
9
9
  * R2 the list head: Today, New with its four choices, and the fold
10
- * R4 Needs you: the top three rows and "N more · Show", 30 px tiles, title and hint; the first row opens its chat and its Viewer
11
- * R8 the phone's "N need you" equals the Needs-you rows
10
+ * R4 the one list (premium-uncovered-features, canvas HmMyWork): no Needs you group and no Your list; each next step is a row of its
11
+ * group with its tile, title and hint, the greeting counts them; the first row opens its chat and its Viewer
12
+ * R8 on a phone the list is the page (canvas HmPhone) and its greeting counts the same next steps
12
13
  * R9 a page that cannot read the repository says so
13
14
  * R10 a page where nothing was pressed to record sends only GETs
14
15
  * W1-W8 record a decision, put a row off, start an agent; the POST answers are mocked here, the refusals are the real server's
@@ -39,7 +40,7 @@ const finish = async (code) => {
39
40
  };
40
41
  process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
41
42
  const MODEL = B.build(F.facts());
42
- const NEEDS = '#hmList .hm-g[aria-label="Needs you"] .hm-r';
43
+ const NEEDS = '#hmList .hm-r[data-id^="n:"]'; // the next steps: rows of the one list, in their product or under Not in an initiative
43
44
  const vw = () => { const v = document.querySelector('#czViewer:not([hidden])'); return v ? { kind: (v.querySelector('.cz-vw-kind') || {}).textContent || '', title: (v.querySelector('#czVwTitle') || {}).textContent || '', text: v.textContent } : null; };
44
45
 
45
46
  (async () => {
@@ -75,43 +76,46 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
75
76
  const p = A.page;
76
77
  { const def = await fetch(BASE + '/').then((r) => r.text());
77
78
  ok('R1 the premium Home is the default page', /class="cz cz-home"/.test(def) && !/id="c3-root"/.test(def));
78
- const con = await fetch(BASE + '/console.html').then((r) => r.text()); ok('R1 the console is served at /console.html', /id="c3-root"/.test(con));
79
+ const gone = await Promise.all(['/console.html', '/classic.html'].map((u) => fetch(BASE + u, { redirect: 'manual' })));
80
+ ok('R1 /console.html and /classic.html go to Home: the console and the classic page are deleted', gone.every((r) => r.status === 302 && /\/premium\.html$/.test(r.headers.get('location') || '')), gone.map((r) => r.status).join());
79
81
  const old = await fetch(BASE + '/c3.html', { redirect: 'manual' }); ok('R1 /c3.html with no query goes to Home', old.status === 302 && /\/premium\.html$/.test(old.headers.get('location') || ''));
80
82
  const rail = await p.evaluate(() => ({ gone: !document.querySelector('nav.rail, .rail [data-go], #dlg'), places: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent.trim() + '>' + a.getAttribute('href')), cur: (document.querySelector('#czMenu [aria-current="page"]') || {}).textContent || '' }));
81
83
  ok('R1 no old rail and no old dialog; the place menu names Home, Board and Insights and Home is current', rail.gone && rail.places.join() === 'Home>/premium.html,Board>/premium-board.html,Insights>/premium-insights.html' && /Home/.test(rail.cur), JSON.stringify(rail));
82
84
  ok('R1 nothing on Home links to the console', await p.evaluate(() => !document.querySelector('a[href*="console"], a[href*="c3.html"], [data-href*="console"]')));
85
+ // premium-uncovered-features (EvSettings): Settings is its own dialog, opened from the place menu
83
86
  await p.click('#czFab'); await p.click('[data-cz-settings]');
84
- const st = await until(async () => { const v = await p.evaluate(vw); return v && /Settings/.test(v.kind + v.title) ? v : null; }) || await p.evaluate(vw);
85
- ok('R1 Settings opens in the Viewer', !!st && /Settings/.test(st.kind + st.title), JSON.stringify(st));
87
+ const st = await until(() => p.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? d.getAttribute('aria-label') + ' ' + ((d.querySelector('h2') || {}).textContent || '') : null; }));
88
+ ok('R1 Settings opens its dialog', !!st && /Settings/.test(st), String(st));
86
89
  await p.keyboard.press('Escape');
87
- ok('R11 Escape closes the Viewer', !!(await until(() => p.evaluate(() => !document.querySelector('#czViewer:not([hidden])')))));
90
+ ok('R11 Escape closes Settings', !!(await until(() => p.evaluate(() => !document.querySelector('#evSettings:not([hidden])')))));
88
91
  await p.route('**/api/sessions', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ sessions: [{ id: 's1', name: 'Fix the footer', state: 'idle', shown: 'quiet' }] }) }));
89
92
  await p.keyboard.press('Control+k');
90
- ok('SB2 Ctrl K opens Search in the Viewer with the box focused', !!(await until(() => p.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) #hxQ') && document.activeElement && document.activeElement.id === 'hxQ'))), await p.evaluate(() => JSON.stringify({ vw: !!document.querySelector('#czViewer:not([hidden])'), q: !!document.querySelector('#hxQ'), act: document.activeElement && (document.activeElement.id || document.activeElement.tagName) })));
93
+ // premium-uncovered-features (EvSearch): Search is the palette over the page
94
+ ok('SB2 Ctrl K opens Search with the box focused', !!(await until(() => p.evaluate(() => !!document.querySelector('#evSearch:not([hidden]) #evQ') && document.activeElement && document.activeElement.id === 'evQ'))), await p.evaluate(() => JSON.stringify({ sp: !!document.querySelector('#evSearch:not([hidden])'), act: document.activeElement && (document.activeElement.id || document.activeElement.tagName) })));
91
95
  await p.keyboard.type('fix');
92
- ok('SB4 typing finds the session by its name', !!(await until(() => p.evaluate(() => [...document.querySelectorAll('#hxRes .hx-hit b')].some((b) => b.textContent === 'Fix the footer')))));
93
- await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
96
+ ok('SB4 typing finds the session by its name', !!(await until(() => p.evaluate(() => [...document.querySelectorAll('#evRes .ev-mi')].some((b) => /Fix the footer/.test(b.textContent))))));
97
+ await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#evSearch:not([hidden])')));
94
98
  }
95
99
 
96
100
  /* R2 */
97
101
  { await p.click('[data-hm-new]');
98
102
  const nw = await until(() => p.evaluate(() => { const m = document.querySelector('#hmMenu:not([hidden])'); return m ? [...m.querySelectorAll('[role=menuitem], button')].map((b) => b.textContent.trim()).filter(Boolean) : null; }));
99
- ok('R2 the list head reads Today, and New offers four choices', await p.evaluate(() => document.querySelector('#hmList .hm-hd h1').textContent === 'Today') && !!nw && nw.length === 4, JSON.stringify(nw));
103
+ ok('R2 the list head reads Today, and New offers its six choices (A task first since the testing fixes, Record a note now last)', await p.evaluate(() => document.querySelector('#hmList .hm-hd h1').textContent === 'Today') && !!nw && nw.length === 6 && /^A task/.test(nw[0]) && /^Record a note now/.test(nw[5]), JSON.stringify(nw));
100
104
  await p.keyboard.press('Escape');
101
- ok('R2 the fold button folds the list away and back', await p.evaluate(() => !!document.querySelector('[data-hm-fold]'))); }
105
+ ok('R2 the list head has no fold button (no header chrome, canvas HmMyWork)', await p.evaluate(() => !document.querySelector('[data-hm-fold]'))); }
102
106
 
103
107
  /* R4 */
104
108
  { const L = await p.evaluate((sel) => ({ rows: [...document.querySelectorAll(sel)].map((r) => ({ id: r.dataset.id, t: r.querySelector('.hm-rt b').textContent, h: r.querySelector('.hm-rt em').textContent, tile: Math.round((r.querySelector('.hm-tile, [class*="tile"]') || r).getBoundingClientRect().width) })), more: (document.querySelector('[data-hm-allneeds]') || {}).textContent || '', sel: (document.querySelector('.hm-r.sel') || {}).dataset ? document.querySelector('.hm-r.sel').dataset.id : null }), NEEDS);
105
- const all = MODEL.list.rows.length + 1; // the five rows of the model and nothing else from the fixture repository
106
- ok('R4 Needs you shows the top three rows and folds the rest into "N more · Show"', L.rows.length === 3 && /\d+ more · Show/.test(L.more), JSON.stringify(L));
107
- ok('R4 every row has a 30 px tile, its title and a hint', L.rows.every((r) => r.tile === 30 && r.t.length > 3), JSON.stringify(L.rows));
108
- ok('R4 on a desktop the first row is selected when Home opens', L.sel === L.rows[0].id, JSON.stringify(L));
109
- await p.click(`.hm-r[data-id="${L.rows[0].id}"] .hm-rm`); // Settings and Search took the Viewer above; selecting the row again opens its own
109
+ const G = await p.evaluate(() => ({ groups: [...document.querySelectorAll('#hmList [aria-label]')].map((g) => g.getAttribute('aria-label')), greet: (document.querySelector('#hmList .hm-tc .big') || {}).textContent || '' }));
110
+ ok('R4 Home has no Needs you group and no Your list; every next step of the model is a row of the one list', !G.groups.includes('Needs you') && !G.groups.includes('Your list') && MODEL.list.rows.every((m) => L.rows.some((r) => r.id === 'n:' + m.key)), JSON.stringify({ G, n: L.rows.length, want: MODEL.list.rows.length }));
111
+ ok('R4 every row has its tile, its title and a hint', L.rows.every((r) => r.tile >= 30 && r.t.length > 3), JSON.stringify(L.rows));
112
+ const gn = /(\d+) next steps? (?:is|are) yours/.exec(G.greet);
113
+ ok('R4 the greeting counts the next steps that are yours', !!gn && +gn[1] >= L.rows.length, G.greet);
114
+ ok('R4 on a desktop the first next step is selected when Home opens', !!L.sel && L.rows.some((r) => r.id === L.sel), JSON.stringify(L));
115
+ const r0 = L.rows.find((r) => r.id === 'n:waited:reviews') || L.rows[0];
116
+ await p.click(`.hm-r[data-id="${r0.id}"] .hm-rm`); // Settings and Search took the Viewer above; selecting the row again opens its own
110
117
  const v0 = await until(() => p.evaluate(vw));
111
- ok('R4 the selected row opens its Viewer beside its chat', !!v0 && v0.title === L.rows[0].t && await p.evaluate(() => !!document.querySelector('#hmLog')), JSON.stringify(v0));
112
- await p.click('[data-hm-allneeds]');
113
- const n2 = await p.evaluate((sel) => document.querySelectorAll(sel).length, NEEDS);
114
- ok('R4 Show lists every row that needs the PM', n2 >= MODEL.list.rows.length && n2 <= all + 1, String(n2));
118
+ ok('R4 the selected row opens its Viewer beside its chat', !!v0 && v0.title === r0.t && await p.evaluate(() => !!document.querySelector('#hmLog')), JSON.stringify(v0));
115
119
  const lift = await p.evaluate(() => getComputedStyle(document.querySelector('.hm-r.sel')).boxShadow);
116
120
  ok('R12 the selected row is a card with a lift shadow', lift && lift !== 'none', lift); }
117
121
 
@@ -121,28 +125,30 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
121
125
  /* W1-W7: record a decision */
122
126
  { const key = 'decision:KC5';
123
127
  await p.click(`.hm-r[data-id="n:${key}"] .hm-rm`);
124
- const v = await until(() => p.evaluate(() => { const x = document.querySelector('#czViewer:not([hidden])'); return x && x.querySelector('[data-hv-opt]') ? [...x.querySelectorAll('[data-hv-opt]')].map((b) => b.dataset.hvOpt) : null; }));
125
- ok('W1 the decision opens in the Viewer with its three choices', JSON.stringify(v) === JSON.stringify(['reshape', 'extend', 'retire']), JSON.stringify(v));
126
- const btn = () => p.evaluate(() => { const b = document.querySelector('[data-hv-rec]'); return { dis: b.disabled, h: b.getBoundingClientRect().height }; });
127
- ok('W1 before a choice the record button is off', (await btn()).dis);
128
- await p.click('[data-hv-opt="extend"]');
128
+ // premium-uncovered-features (canvas HmDecide): a decision is recorded on its card in the chat, under the agent's question
129
+ const v = await until(() => p.evaluate(() => { const x = document.querySelector('#hmLog .ut-dec'); return x && x.querySelector('[data-dc-opt]') ? [...x.querySelectorAll('[data-dc-opt]')].map((b) => b.dataset.dcOpt) : null; }));
130
+ ok('W1 the decision opens in the chat on its card with its three choices', JSON.stringify(v) === JSON.stringify(['reshape', 'extend', 'retire']), JSON.stringify(v));
131
+ const btn = () => p.evaluate(() => { const b = document.querySelector('#hmLog [data-dc-rec]'); return { dis: b.disabled, h: b.getBoundingClientRect().height }; });
132
+ const pick = (k) => p.click(`#hmLog [data-dc-opt="${k}"]`);
133
+ if (!(await p.evaluate(() => !!document.querySelector('#hmLog [data-dc-opt][aria-checked="true"]')))) ok('W1 before a choice the record button is off', (await btn()).dis);
134
+ await pick('extend');
129
135
  ok('W1 with a choice and no reason it is still off', (await btn()).dis);
130
- await p.fill('#hvWhy', 'ok');
136
+ await p.fill('#dcWhy', 'ok');
131
137
  ok('W1 a reason under three characters keeps it off', (await btn()).dis);
132
- await p.fill('#hvWhy', 'The partner needs two more weeks');
138
+ await p.fill('#dcWhy', 'The partner needs two more weeks');
133
139
  ok('W1 a choice and a reason turn it on', !(await btn()).dis);
134
- await p.click('[data-hv-rec]');
140
+ await p.click('#hmLog [data-dc-rec]');
135
141
  const post = await until(() => A.posts.find((x) => x.path === '/api/briefing-premium/decide'));
136
142
  ok('W6 the press posts the key, the choice and the reason, and no writer field', !!post && post.body.key === key && post.body.choice === 'extend' && post.body.why === 'The partner needs two more weeks' && !('by' in post.body), JSON.stringify(post && post.body));
137
- ok('W7 a recorded press closes the Viewer and says where it was recorded', !!(await until(() => p.evaluate(() => /pm-decisions\.md/.test(document.querySelector('#toast').textContent)))));
143
+ ok('W7 a recorded press says where it was recorded', !!(await until(() => p.evaluate(() => /pm-decisions\.md/.test(document.querySelector('#toast').textContent)))));
138
144
  /* W3 put off */
139
145
  const k2 = 'decision:premium-ux';
140
146
  await p.click(`.hm-r[data-id="n:${k2}"] .hm-rm`);
141
- await until(() => p.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hv-later]')));
142
- ok('W3 "Put off" is one quiet button, and its menu stays shut until pressed', await p.evaluate(() => document.querySelector('[data-hv-later] + .hv-lm').hidden));
143
- await p.click('[data-hv-later]');
144
- ok('W3 its menu has three live choices', await p.evaluate(() => [...document.querySelectorAll('[data-hv-until]')].map((b) => b.dataset.hvUntil).join() === 'later,tomorrow,nextweek'));
145
- await p.click('[data-hv-until="tomorrow"]');
147
+ await until(() => p.evaluate(() => !!document.querySelector('#hmLog [data-dc-later]')));
148
+ ok('W3 "Later" is one button on the decision card, and its menu stays shut until pressed', await p.evaluate(() => { const m = document.querySelector('#hmMenu'); return !m || m.hidden; }));
149
+ await p.click('#hmLog [data-dc-later]');
150
+ ok('W3 its menu has three live choices', await p.evaluate(() => [...document.querySelectorAll('#hmMenu:not([hidden]) [data-hm-mi] b')].map((b) => b.textContent).join() === 'Later today,Tomorrow,Next week'));
151
+ await p.locator('#hmMenu [data-hm-mi]').filter({ hasText: 'Tomorrow' }).first().click();
146
152
  ok('W3 "Tomorrow" posts the key and the time', !!(await until(() => A.posts.find((x) => x.path === '/api/briefing-premium/put-off' && x.body.key === k2 && x.body.until === 'tomorrow'))));
147
153
  /* the row's × puts it off until tomorrow */
148
154
  const k3 = 'blocked:onboarding-scan';
@@ -166,10 +172,10 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
166
172
  /* W6: a refused press keeps the Viewer and the typed reason */
167
173
  { const R = await open({ mock: false });
168
174
  await R.page.route('**/api/briefing-premium/decide*', (r) => r.fulfill({ status: 409, contentType: 'application/json', body: JSON.stringify({ ok: false, error: 'This decision is already on record.' }) }));
169
- await R.page.click('.hm-r[data-id="n:decision:KC5"] .hm-rm').catch(async () => { await R.page.click('[data-hm-allneeds]'); await R.page.click('.hm-r[data-id="n:decision:KC5"] .hm-rm'); });
170
- await until(() => R.page.evaluate(() => !!document.querySelector('[data-hv-opt]')));
171
- await R.page.click('[data-hv-opt="retire"]'); await R.page.fill('#hvWhy', 'No longer worth the date'); await R.page.click('[data-hv-rec]');
172
- ok('W6 a refused press shows the server reason, keeps the Viewer open and keeps the typed reason', !!(await until(() => R.page.evaluate(() => /already on record/.test((document.querySelector('#hvMsg') || {}).textContent || '') && document.querySelector('#hvWhy').value === 'No longer worth the date'))));
175
+ await R.page.click('.hm-r[data-id="n:decision:KC5"] .hm-rm');
176
+ await until(() => R.page.evaluate(() => !!document.querySelector('#hmLog [data-dc-opt]')));
177
+ await R.page.click('#hmLog [data-dc-opt="retire"]'); await R.page.fill('#dcWhy', 'No longer worth the date'); await R.page.click('#hmLog [data-dc-rec]');
178
+ ok('W6 a refused press shows the server reason, keeps the card and keeps the typed reason', !!(await until(() => R.page.evaluate(() => /already on record/.test((document.querySelector('#dcMsg') || {}).textContent || '') && document.querySelector('#dcWhy').value === 'No longer worth the date'))));
173
179
  await R.ctx.close(); }
174
180
 
175
181
  {
@@ -210,11 +216,10 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
210
216
  /* R8, R11, R12 on a phone, both themes */
211
217
  for (const theme of ['light', 'dark']) {
212
218
  const P = await open({ w: 390, h: 844, theme, touch: true });
213
- const top = await until(() => P.page.evaluate(() => { const n = document.querySelector('#hmNeedsN').textContent; return /need/.test(n) ? n : null; }));
214
- await P.page.click('#hmNeeds');
215
219
  const rows = await until(() => P.page.evaluate((sel) => { const l = document.querySelector('#hmList'); return l && getComputedStyle(l).display !== 'none' ? document.querySelectorAll(sel).length : 0; }, NEEDS));
216
- const needs = await P.page.evaluate(() => { const m = /(\d+) more/.exec((document.querySelector('[data-hm-allneeds]') || {}).textContent || ''); return m ? +m[1] : 0; });
217
- ok(`R8 (${theme}) the phone's "N need you" equals the Needs-you rows`, !!top && +top.match(/\d+/)[0] === rows + needs, JSON.stringify({ top, rows, needs }));
220
+ const top = await P.page.evaluate(() => (document.querySelector('#hmList .hm-tc .big') || {}).textContent || '');
221
+ const tn = /(\d+) next steps? (?:is|are) yours/.exec(top);
222
+ ok(`R8 (${theme}) on a phone the list is the page and its greeting counts the next steps it shows`, rows >= MODEL.list.rows.length && !!tn && +tn[1] >= rows && await P.page.evaluate(() => document.body.classList.contains('hm-plist')), JSON.stringify({ top, rows }));
218
223
  const small = await P.page.evaluate(() => [...document.querySelectorAll('#hmTop button, #hmList .hm-rm, #hmFoot button, #hmFoot label')].filter((b) => b.offsetParent !== null).map((b) => b.getBoundingClientRect()).filter((r) => r.height && r.height < 43.5).length);
219
224
  ok(`R11 (${theme}) every control on the phone's top bar, sheet and composer is 44 px`, small === 0, String(small));
220
225
  const ov = await P.page.evaluate(() => document.documentElement.scrollWidth - innerWidth);
@@ -2,8 +2,9 @@
2
2
  'use strict';
3
3
  /* briefing-premium-work-test.js — the premium My work page (initiative briefing-premium-work; planning/prd/briefing-premium-work-prd.md M1 to M12).
4
4
  * Re-pointed by premium-agreed-design: My work is no longer a page. /premium-work.html opens Home, and My work is a minimal view in the Viewer
5
- * (home-more.js openMyWork, from the place menu's More), marked "Waiting for design": four tabs (Your list, Waiting on others, Weekly review,
6
- * Untouched), Done on each of your rows, and one add box. The old page's hero, dialog fields (When, Waiting on, Keep, Drop), Undo and the
5
+ * (home-more.js openMyWork, from the place menu's More). Re-pointed again by premium-uncovered-features (canvas HmMyWork, HmReview): no
6
+ * "Waiting for design" marker; "My work" beside "Weekly review" at the top, the filters Open, Waiting, Untouched, Kept and Done, Done on each
7
+ * of your rows, and one add box. The old page's hero, dialog fields (When, Waiting on, Keep, Drop), Undo and the
7
8
  * per-item agent are not in the Agreed design and are not drawn; their routes stay and the last block still drives them for real.
8
9
  * Serves the real page from the real server. Most checks answer GET /api/my-work-premium with the model lib/my-work-premium.js builds from a
9
10
  * fixture (fixtures/my-work-premium-facts.js) and answer the presses themselves; the last block drives the real routes of a scratch state folder.
@@ -58,8 +59,7 @@ const view = () => { const v = document.querySelector('#czViewer:not([hidden])')
58
59
  await page.goto(BASE + '/premium-work.html?theme=' + theme);
59
60
  await until(() => page.evaluate(() => /\/premium\.html$/.test(location.pathname) && !!document.querySelector('#czFab')), 15000);
60
61
  await sleep(600);
61
- await page.click('#czFab'); await page.click('[data-cz-more]');
62
- await page.locator('#hmMenu button, #czViewer button').filter({ hasText: 'My work' }).first().click();
62
+ await page.evaluate(() => import('/pm/home-work.js').then((M) => { M.openMyWork(); })); // the page itself: Home no longer opens it (testing fixes); an item and Focus open alone
63
63
  const up = await until(() => page.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden])'); return !!v && /My work/.test(v.textContent) && !/Reading your list/.test(v.textContent); }), 15000);
64
64
  return { ctx, page, errors, posts, up, set: (a) => { answer = a; } };
65
65
  };
@@ -74,17 +74,22 @@ const view = () => { const v = document.querySelector('#czViewer:not([hidden])')
74
74
  ok('M1 the page is still served at /premium-work and /premium-work.html', (await fetch(BASE + '/premium-work', { redirect: 'manual' })).status === 302 && (await fetch(BASE + '/premium-work.html')).status === 200);
75
75
  /* M4 */
76
76
  const v0 = await p.evaluate(view);
77
- ok('M4 My work is a minimal view marked Waiting for design, with four tabs, on Your list', v0.kind === 'My work' && v0.wait && v0.tabs.join() === 'Your list,Waiting on others,Weekly review,Untouched' && v0.tab === 'Your list', JSON.stringify(v0));
77
+ ok('M4 My work has no Waiting for design marker; its filters are Open, Waiting, Untouched, Kept and Done, on Open', !v0.wait && /My work/.test(v0.text) && v0.tabs.map((t) => t.replace(/ \d+$/, '')).join() === 'Open,Waiting,Untouched,Kept,Done' && v0.tab === 'Open', JSON.stringify(v0));
78
78
  const mine = M.queue.tabs.filter((t) => t.key !== 'kept' && t.key !== 'done').flatMap((t) => t.groups.flatMap((g) => g.rows || []));
79
79
  ok('M4 Your list holds every row of the queue but Kept and Done, each with Done', mine.every((r) => v0.text.includes(r.title)) && v0.done === mine.length, JSON.stringify({ want: mine.length, done: v0.done }));
80
80
  ok('M4 no suggestion, no estimate and no demo label is drawn', !/Accept all|~\d+ min|demo|fold the laundry|on the shelf|composts/i.test(v0.text));
81
81
  /* M6 */
82
82
  await p.click(`${MW} [data-tab="waiting"]`);
83
83
  const v1 = await p.evaluate(view);
84
- ok('M6 Waiting on others lists who owes the PM, longest first', v1.tab === 'Waiting on others' && v1.text.indexOf(M.waiting.rows[0].title) >= 0 && v1.text.indexOf(M.waiting.rows[0].title) < v1.text.indexOf(M.waiting.rows[1].title), JSON.stringify(v1));
84
+ ok('M6 Waiting on others lists who owes the PM, longest first', /^Waiting/.test(v1.tab) && v1.text.indexOf(M.waiting.rows[0].title) >= 0 && v1.text.indexOf(M.waiting.rows[0].title) < v1.text.indexOf(M.waiting.rows[1].title), JSON.stringify(v1));
85
85
  /* M7 */
86
- await p.click(`${MW} [data-tab="review"]`);
87
- ok('M7 Weekly review says what the review holds', (await p.evaluate(view)).text.includes(M.friday.cap));
86
+ ok('M7 the card has no "My work" / "Weekly review" switch: the review opens from Home', await p.evaluate((V) => !document.querySelector(V + ' [data-ut-tab]'), MW));
87
+ ok('M8 Home has no "All of my work" row and the ⋯ menu has no My work', await p.evaluate(async () => {
88
+ if (document.querySelector('#hmList [data-hm-work], #hmList .hm-all') || /All of my work/.test(document.querySelector('#hmList').textContent)) return false;
89
+ document.querySelector('#czFab').click(); await new Promise((r) => setTimeout(r, 100)); const m = document.querySelector('[data-cz-more]'); if (m) m.click(); await new Promise((r) => setTimeout(r, 150));
90
+ const t = [...document.querySelectorAll('#hmMenu button')].map((b) => b.textContent).join('|'); document.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true }));
91
+ return !/My work/.test(t);
92
+ }));
88
93
  await p.click(`${MW} [data-tab="stale"]`);
89
94
  const v2 = await p.evaluate(view);
90
95
  ok('M7 Untouched counts the items from the review list and lists the ones the list holds', v2.text.includes(M.review.n + ' items have sat untouched for ' + M.review.days + ' days') && v2.done >= 1 && v2.done <= M.review.ids.length, JSON.stringify(v2));
@@ -111,7 +116,7 @@ const view = () => { const v = document.querySelector('#czViewer:not([hidden])')
111
116
 
112
117
  /* M10 */
113
118
  { const E = await open({ fail: true });
114
- ok('M10 a failed read says why and shows nothing instead of a guess', !!(await until(() => E.page.evaluate(() => /Your list could not be read: the list could not be read/.test(document.querySelector('#czViewer').textContent) && !document.querySelector('#czViewer [data-done]')))));
119
+ ok('M10 a failed read says why and shows nothing instead of a guess', !!(await until(() => E.page.evaluate(() => /My work could not be read: the list could not be read/.test(document.querySelector('#czViewer').textContent) && !document.querySelector('#czViewer [data-done]')))));
115
120
  await E.ctx.close(); }
116
121
 
117
122
  /* M12 floors at 390, both themes */
@@ -126,14 +131,14 @@ const view = () => { const v = document.querySelector('#czViewer:not([hidden])')
126
131
  /* the real routes, over a scratch state folder: add, read back, mark done, read back */
127
132
  {
128
133
  const R = await open({ real: true }), pg = R.page;
129
- ok('E1 on an empty scratch state the real view says the list is empty', !!(await until(() => pg.evaluate(() => /Nothing on your list/.test(document.querySelector('#czViewer').textContent)), 20000)));
134
+ ok('E1 on an empty scratch state the real view says the list is empty', !!(await until(() => pg.evaluate(() => /Nothing is open/.test(document.querySelector('#czViewer').textContent)), 20000)));
130
135
  await pg.fill('#hxLine', 'Reply to Rina about SSO !p1'); await pg.click(`${MW} [data-x="add"]`);
131
136
  ok('E2 an added line comes back through the real routes on Your list', !!(await until(() => pg.evaluate(() => /Reply to Rina about SSO/.test(document.querySelector('#czViewer').textContent) && !!document.querySelector('#czViewer [data-done]')), 20000)), await pg.evaluate(() => document.querySelector('#czViewer').textContent.slice(0, 300)));
132
137
  const api0 = await fetch(BASE + '/api/my-work-premium').then((r) => r.json());
133
138
  const all0 = api0.model.queue.tabs.flatMap((t) => t.groups.flatMap((g) => g.rows || []));
134
139
  ok('E3 the real model holds it with its priority', all0.some((r) => /Reply to Rina about SSO/.test(r.title) && /P1/i.test(JSON.stringify(r))), JSON.stringify(all0).slice(0, 400));
135
140
  await pg.locator(`${MW} [data-done]`).first().click();
136
- ok('E4 Done marks it done, and the list is empty again', !!(await until(() => pg.evaluate(() => /Nothing on your list/.test(document.querySelector('#czViewer').textContent)), 15000)));
141
+ ok('E4 Done marks it done, and the list is empty again', !!(await until(() => pg.evaluate(() => /Nothing is open/.test(document.querySelector('#czViewer').textContent)), 15000)));
137
142
  const api = await fetch(BASE + '/api/my-work-premium').then((r) => r.json());
138
143
  ok('E5 the model route answers ready with the list the view reads', api.ok && api.state === 'ready' && api.model.dock.needs === 0);
139
144
  const hdr = await T.pressHeaders(BASE);
@@ -9,10 +9,8 @@
9
9
  * list the page lists the report setups; the report whose studio was opened last is chosen, with the line that says so
10
10
  * pictures Add as a sample asks the parent, shows the progress, uploads the two pictures with its own press and says "Added to <report>"; the sample is
11
11
  * in the design (API) as kind pictures, from Chrome, "From Chrome, 2 page pictures"
12
- * studio a studio open in another tab (opened with ?studio=<id>) picks the sample up by itself, with its kind line and thumbnail
13
12
  * pdf a deck as a PDF: "From Chrome, PDF, 2 slides"; Open the studio asks the parent to open it
14
13
  * guards a 'data' message nobody asked for adds nothing; a parent on another origin is not answered; a sample over 20 MB says so plainly (413)
15
- * option the studio's Add a sample has "From Chrome" with its sub-line and a how-to that names `pmos extension`
16
14
  * No page error. Synthetic repositories only; nothing reaches the network. */
17
15
  const fs = require('fs');
18
16
  const path = require('path');
@@ -139,10 +137,6 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
139
137
  ok('choosing another report changes the choice and drops the "opened last" line when it is not that one', picked !== 'TSC digital input' ? !/opened last/.test(await ftext(A)) : true);
140
138
  await f1.selectOption('[data-cap-rep]', { label: 'TSC digital input' });
141
139
 
142
- /* a studio of B opened in another tab by the link the popup's Open the studio uses */
143
- const S = await ctx.newPage(); watch(S);
144
- await S.goto(BASE + '/console.html?studio=' + idB);
145
- ok('?studio=<id> opens that report\'s design studio', !!(await until(() => S.$('[data-rd-studio="' + idB + '"]'), 20000)));
146
140
 
147
141
  /* ── pictures ── */
148
142
  await f1.click('[data-cap="send"]');
@@ -153,7 +147,6 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
153
147
  ok('and not in the other report', (await samples(idA)).length === 0);
154
148
  const files = got ? fs.readdirSync(path.join(team, 'planning', 'reports', idB, 'design', 'samples')).filter((f) => f.startsWith(got.id + '-')).sort() : [];
155
149
  ok('two picture files are on disk', files.join() === got.id + '-1.jpg,' + got.id + '-2.jpg', files.join());
156
- ok('a studio that was already open in another tab picks the new sample up by itself, with its kind line and thumbnail', !!(await until(async () => /From Chrome, 2 page pictures/.test((await S.textContent('[data-rd-studio]').catch(() => '')) || '') && !!(await S.$('[data-rd-sample="' + (got && got.id) + '"] img.rd-dks-thumb')), 15000)));
157
150
 
158
151
  /* ── guards ── */
159
152
  await A.pg.evaluate((d) => window.sendData(d), { pmosCapture: 'data', kind: 'pictures', name: 'Nobody asked', url: WIKI, pictures: [JPG1] });
@@ -178,7 +171,6 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
178
171
  ok('a PDF is added: Added to TSC digital input, 2 slides as a PDF', !!(await until(async () => /Added to TSC digital input/.test(await ftext(B)) && /2 slides as a PDF/.test(await ftext(B)), 15000)), await ftext(B));
179
172
  const gp = await until(async () => (await samples(idB)).find((s) => s.kind === 'pdf'));
180
173
  ok('the sample reads "From Chrome, PDF, 2 slides"', !!gp && gp.line === 'From Chrome, PDF, 2 slides' && gp.via === 'chrome', JSON.stringify(gp));
181
- ok('the open studio shows it too', !!(await until(async () => /From Chrome, PDF, 2 slides/.test((await S.textContent('[data-rd-studio]').catch(() => '')) || ''), 15000)));
182
174
  await B.frame().click('[data-cap="studio"]');
183
175
  ok('Open the studio asks the popup to open this report\'s studio', !!(await until(async () => (await B.log()).some((m) => m === JSON.stringify({ pmosCapture: 'open', report: idB })))), (await B.log()).join(' '));
184
176
  await B.pg.close();
@@ -191,15 +183,6 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
191
183
  expectHttp.delete(413);
192
184
  await C.pg.close();
193
185
 
194
- /* ── the studio option ── */
195
- await S.click('[data-rd-act="panel"]').catch(() => {});
196
- await until(() => S.$('[data-rd-panel]'));
197
- const optTxt = (await S.textContent('[data-rd-smp="chrome"]').catch(() => '')) || '';
198
- ok('the studio\'s Add a sample has From Chrome with its sub-line', /From Chrome/.test(optTxt) && /Open any page in Chrome and press the PMOS button\. Decks come as a PDF, other pages as pictures\./.test(optTxt), optTxt);
199
- await S.click('[data-rd-smp="chrome"]');
200
- const how = (await S.textContent('[data-rd-chrome]').catch(() => '')) || '';
201
- ok('pressing it shows a short how-to that names `pmos extension` for the load steps', /press the PMOS button in the toolbar/.test(how) && /pmos extension/.test(how) && /Add as a sample/.test(how), how);
202
-
203
186
  await sleep(300);
204
187
  ok('no page error and no failed request', errors.length === 0, errors.slice(0, 6).join(' | '));
205
188
  return finish();
@@ -1,4 +1,33 @@
1
1
  [
2
+ {
3
+ "v": "0.400.0",
4
+ "at": "2026-10-23T13:50:38.397Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 1021,
9
+ "t": "Remove the classic shell and the console, and run only the tests a change reaches",
10
+ "s": "Remove the classic shell and the console, and run only the tests a change reaches"
11
+ },
12
+ {
13
+ "n": 1023,
14
+ "t": "Testing fixes from the iPhone run of create-pmos 0.399.0",
15
+ "s": "Testing fixes from the iPhone run of create-pmos 0.399.0"
16
+ }
17
+ ]
18
+ },
19
+ {
20
+ "v": "0.399.0",
21
+ "at": "2026-10-23T08:35:27.575Z",
22
+ "f": 2,
23
+ "prs": [
24
+ {
25
+ "n": 1019,
26
+ "t": "Build the uncovered features from the canvas review",
27
+ "s": "Build the uncovered features from the canvas review"
28
+ }
29
+ ]
30
+ },
2
31
  {
3
32
  "v": "0.398.0",
4
33
  "at": "2026-10-23T04:45:54.728Z",
@@ -0,0 +1,210 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ /* ev-everywhere-test.js — the Everywhere parts (initiative premium-uncovered-features, E1 to E4; canvas EvMenu, EvSearch, EvInbox, EvSources,
4
+ * EvSettings, EvStates, EvDark, EvPhone). The real server with one scratch product repository that has a worktree with a draft.
5
+ * U1 the place menu: Home, Board, Insights, then Search, New for you, Sources, Settings and Theme; More only on Home
6
+ * S1 Ctrl K opens Search over the page; typing finds a document on main and a draft on the worktree; the kind chips narrow; Escape closes
7
+ * S2 the worktree chip lists the worktree and leaving it out drops its draft; S3 a result opens in the Viewer
8
+ * N1 New for you opens in the Viewer, with the rows the old Around you held named under Where the rest went; nothing is posted on open
9
+ * R1 Sources lists each source with when it was read; R2 Settings opens on General with its sections, and Escape closes it
10
+ * B1 the Board's Settings and Sources open the same designed parts; B2 Ctrl K on Board opens the same Search
11
+ * D1 Theme Dark draws the page dark (data-theme), kept for the next page; P1 at 390 px Search fills the screen and nothing scrolls sideways
12
+ * Set EV_SHOTS=<dir> for screenshots at 1440x900 and 390x844, light and dark. Every wait polls the page; no fixed sleep stands in for a state. */
13
+ const fs = require('fs');
14
+ const os = require('os');
15
+ const path = require('path');
16
+ const { spawn, spawnSync } = require('child_process');
17
+ const { findBrowser } = require('./lib/find-browser');
18
+ const T = require('./test-run').configure({ name: 'ev-everywhere' });
19
+
20
+ const BASE = T.BASE;
21
+ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
22
+ const until = async (fn, ms = 15000, step = 120) => { const t0 = Date.now(); for (;;) { let v = null; try { v = await fn(); } catch { v = null; } if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
23
+ const results = [];
24
+ const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 400) : ''}`); };
25
+ let srv = null; let browser = null;
26
+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'pmos-ev-'));
27
+ const finish = async (code) => {
28
+ if (browser) await browser.close().catch(() => {});
29
+ if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
30
+ T.killTmux();
31
+ try { fs.rmSync(tmp, { recursive: true, force: true }); } catch { /* left for the OS */ }
32
+ const bad = results.filter((x) => !x.cond).length;
33
+ console.log(`\n${results.length - bad}/${results.length} ev-everywhere assertions passed`);
34
+ process.exit(code !== undefined ? code : (bad ? 1 : 0));
35
+ };
36
+ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
37
+ const sh = (cwd, args) => spawnSync('git', args, { cwd, encoding: 'utf8' });
38
+ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); fs.writeFileSync(path.join(root, rel), text); };
39
+
40
+ (async () => {
41
+ const exe = findBrowser();
42
+ if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the ev-everywhere suite cannot run'); return finish(1); }
43
+ let chromium;
44
+ try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed — the ev-everywhere suite cannot run'); return finish(1); }
45
+ const fakeBin = path.join(tmp, 'bin'); fs.mkdirSync(fakeBin);
46
+ fs.writeFileSync(path.join(fakeBin, 'claude'), '#!/bin/sh\nsleep 30\n', { mode: 0o755 });
47
+ /* the product: a PRD and a deck on main, and a worktree whose branch adds a draft of the billing spec */
48
+ const root = path.join(tmp, 'evprod');
49
+ fs.mkdirSync(root, { recursive: true });
50
+ put(root, 'AGENTS.md', '# a\n');
51
+ put(root, 'planning/prd/billing-prd.md', '---\ntype: PRD\ntitle: Usage billing PRD\n---\n# Usage billing PRD\n\nWe charge by usage from v2.5.\n');
52
+ put(root, 'planning/gtm/billing-deck.md', '# Billing launch deck\n\nThree slides on usage billing.\n');
53
+ sh(root, ['init', '-q', '-b', 'main']); sh(root, ['config', 'user.email', 't@t']); sh(root, ['config', 'user.name', 't']); sh(root, ['add', '-A']); sh(root, ['commit', '-q', '-m', 'initial']);
54
+ const wt = path.join(tmp, 'evprod-billing');
55
+ sh(root, ['worktree', 'add', '-q', '-b', 'billing-spec', wt]);
56
+ put(wt, 'planning/prd/billing-spec-draft.md', '# Billing spec draft\n\nUsage meters per seat.\n');
57
+ sh(wt, ['add', '-A']); sh(wt, ['commit', '-q', '-m', 'draft']);
58
+
59
+ srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PATH: fakeBin + path.delimiter + process.env.PATH }) });
60
+ await T.waitForServer(BASE);
61
+ const json = async (m, p, b, h) => { const res = await fetch(BASE + p, { method: m, headers: { 'content-type': 'application/json', ...(h || {}) }, body: b ? JSON.stringify(b) : undefined }); let j = null; try { j = await res.json(); } catch { j = null; } return { status: res.status, body: j }; };
62
+ const added = await json('POST', '/api/workspaces', { root, name: 'EVPROD', focus: false }, await T.pressHeaders(BASE));
63
+ const ws = added.body && added.body.workspace && added.body.workspace.id;
64
+ ok('U0 the product is registered', !!ws, JSON.stringify(added.body));
65
+ const api = (await json('GET', '/api/find?q=billing&ws=' + encodeURIComponent(ws))).body || {};
66
+ ok('S0 GET /api/find finds the PRD and the deck on main and the draft on the worktree', api.ok && Array.isArray(api.results) && api.results.some((r) => r.path === 'planning/prd/billing-prd.md' && !r.draft) && api.results.some((r) => r.kind === 'slides') && api.results.some((r) => r.draft && /billing-spec-draft/.test(r.path)), JSON.stringify(api).slice(0, 400));
67
+
68
+ browser = await chromium.launch({ executablePath: exe, headless: true, args: ['--no-sandbox'] });
69
+ const shot = process.env.EV_SHOTS || '';
70
+ const snap = async (pg, name) => { if (!shot) return; fs.mkdirSync(shot, { recursive: true }); await sleep(400); await pg.screenshot({ path: path.join(shot, name + '.png') }); };
71
+ const open = async ({ w = 1440, h = 900, page = 'premium.html', theme = '' } = {}) => {
72
+ const ctx = await browser.newContext({ viewport: { width: w, height: h } });
73
+ const pg = await ctx.newPage(); const errors = [], posts = [];
74
+ pg.on('pageerror', (e) => errors.push(String(e)));
75
+ pg.on('request', (r) => { if (r.method() === 'POST') posts.push(new URL(r.url()).pathname); });
76
+ await pg.goto(`${BASE}/${page}?ws=${encodeURIComponent(ws)}${theme ? '&theme=' + theme : ''}`);
77
+ await pg.waitForSelector('#czFab', { timeout: 30000 });
78
+ return { ctx, pg, errors, posts };
79
+ };
80
+ const menu = async (pg) => { if (await pg.isHidden('#czMenu')) await pg.click('#czFab'); await pg.waitForSelector('#czMenu:not([hidden])'); };
81
+
82
+ { /* U: the place menu on Home */
83
+ const { ctx, pg, errors, posts } = await open();
84
+ await menu(pg);
85
+ const m = await pg.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent.trim()), items: [...document.querySelectorAll('#czMenu .ev-mi')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), more: !!document.querySelector('#czMenu [data-cz-more]'), theme: [...document.querySelectorAll('#czMenu [data-ev-theme]')].map((b) => b.textContent) }));
86
+ ok('U1 the menu holds Home, Board, Insights, then Search, New for you, Sources and Settings, More (on Home) and Theme', m.links.join() === 'Home,Board,Insights' && /^Search/.test(m.items[0]) && /^New for you/.test(m.items[1]) && /^Sources/.test(m.items[2]) && /^Settings/.test(m.items[3]) && m.more && m.theme.join() === 'Light,Dark,Auto', JSON.stringify(m));
87
+ await snap(pg, 'menu-1440-light');
88
+ await pg.keyboard.press('Escape');
89
+ ok('U2 Escape closes the menu', await until(() => pg.isHidden('#czMenu')));
90
+
91
+ /* S: Search */
92
+ await pg.keyboard.press('Control+k');
93
+ ok('S1 Ctrl K opens Search with the box focused', await until(() => pg.evaluate(() => !!document.querySelector('#evSearch:not([hidden])') && document.activeElement && document.activeElement.id === 'evQ')));
94
+ await pg.keyboard.type('billing');
95
+ const res = await until(async () => { const r = await pg.evaluate(() => [...document.querySelectorAll('#evRes .ev-mi')].map((b) => b.textContent.replace(/\s+/g, ' ').trim())); return r.some((t) => /Usage billing PRD/.test(t)) && r.some((t) => /Billing spec draft/.test(t)) ? r : null; }, 20000);
96
+ ok('S1 typing finds the PRD on main and the draft on the worktree, and offers to ask Claude', !!res && res.some((t) => /Billing spec draft.*worktree billing-spec/.test(t)) && /Ask Claude about/.test(res[res.length - 1]), JSON.stringify(res));
97
+ await snap(pg, 'search-1440-light');
98
+ await pg.click('#evChips [data-ev-kind="slides"]');
99
+ const sl = await until(async () => { const r = await pg.evaluate(() => [...document.querySelectorAll('#evRes .ev-mi[data-ev-i]')].map((b) => b.textContent)); return r.length && !r.some((t) => /Usage billing PRD/.test(t)) ? r : null; });
100
+ ok('S1 the Slides chip keeps only the deck', !!sl && sl.some((t) => /Billing launch deck/.test(t)), JSON.stringify(sl));
101
+ await pg.click('#evChips [data-ev-kind="all"]');
102
+ await pg.click('[data-ev-wt]');
103
+ const wts = await until(() => pg.evaluate(() => [...document.querySelectorAll('.ev-wtm label')].map((l) => l.textContent)));
104
+ ok('S2 the worktree chip lists main and the billing-spec worktree', !!wts && wts.some((t) => /^main/.test(t)) && wts.some((t) => /billing-spec/.test(t)), JSON.stringify(wts));
105
+ await pg.click('.ev-wtm input[data-ev-wt-id]');
106
+ ok('S2 leaving the worktree out drops its draft', !!(await until(() => pg.evaluate(() => { const r = [...document.querySelectorAll('#evRes .ev-mi')].map((b) => b.textContent); return r.some((t) => /Usage billing PRD/.test(t)) && !r.some((t) => /Billing spec draft/.test(t)); }))));
107
+ await pg.click('.ev-wtm input[data-ev-wt-id]'); // back in, so the next run of this suite starts the same
108
+ await until(() => pg.evaluate(() => [...document.querySelectorAll('#evRes .ev-mi')].some((b) => /Billing spec draft/.test(b.textContent))));
109
+ await pg.click('#evRes .ev-mi:has-text("Billing spec draft")');
110
+ ok('S3 a draft opens in the Viewer, read from its worktree', !!(await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden])'); return v && /Usage meters per seat/.test(v.textContent); }))), await pg.evaluate(() => (document.querySelector('#czViewer') || {}).textContent || ''));
111
+ ok('S3 Search closed behind it', await pg.evaluate(() => !document.querySelector('#evSearch:not([hidden])')));
112
+ await pg.keyboard.press('Escape');
113
+ await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
114
+
115
+ /* N: New for you */
116
+ posts.length = 0;
117
+ await menu(pg); await pg.click('#czMenu [data-cz-news]');
118
+ const nw = await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden]) .ev-news'); return v && !v.querySelector('.ev-skelrow') ? { t: v.textContent, rest: [...v.querySelectorAll('[data-ev-rest]')].map((b) => b.dataset.evRest), kind: document.querySelector('#czViewer .cz-vw-kind').textContent } : null; }), 20000);
119
+ ok('N1 New for you opens in the Viewer, says what is new or that nothing is, and names where the rest of Around you went', !!nw && /New since this morning/.test(nw.t) && /(Nothing new since you last looked|Mentions|Given to you|Finished while you were away)/.test(nw.t) && nw.rest.join() === 'pulse,rep,prop,scan', JSON.stringify(nw).slice(0, 400));
120
+ ok('N1 opening it posted nothing', posts.length === 0, JSON.stringify(posts));
121
+ await snap(pg, 'news-1440-light');
122
+ await pg.click('#czViewer [data-ev-rest="pulse"]');
123
+ ok('N2 a Where the rest went row opens its view, with Back to New for you', !!(await until(() => pg.evaluate(() => /Back to New for you/.test((document.querySelector('#czViewer [data-bda="back"]') || {}).textContent || '')))));
124
+ await pg.click('#czViewer [data-bda="back"]');
125
+ ok('N2 Back goes to New for you', !!(await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .ev-news [data-ev-rest]')))));
126
+ await pg.keyboard.press('Escape');
127
+
128
+ /* R: Sources and Settings */
129
+ await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
130
+ await menu(pg); await pg.click('#czMenu [data-cz-sources]');
131
+ const src = await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden]) .ev-src'); const r = v ? [...v.querySelectorAll('.ev-trow[data-src]')] : []; return r.length ? { n: r.length, t: v.textContent } : null; }), 20000);
132
+ ok('R1 Sources lists each source with when it was last read and Read all again', !!src && src.n >= 3 && /Last read/.test(src.t) && /Read all again/.test(src.t) && /never posts to them/.test(src.t), JSON.stringify(src).slice(0, 300));
133
+ await snap(pg, 'sources-1440-light');
134
+ await pg.keyboard.press('Escape');
135
+ await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
136
+ await menu(pg); await pg.click('#czMenu [data-cz-settings]');
137
+ const st = await until(() => pg.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? { nav: [...d.querySelectorAll('[data-ev-sec]')].map((a) => a.textContent.replace(/\d+$/, '').trim()), h: (d.querySelector('#evStTitle') || {}).textContent, t: d.textContent } : null; }));
138
+ ok('R2 Settings opens on General, with Connectors, Workspaces, Updates and What\'s new', !!st && st.h === 'General' && ['General', 'Connectors', 'Workspaces', 'Updates', 'What\'s new'].every((k) => st.nav.some((n) => n.startsWith(k))) && /Theme/.test(st.t), JSON.stringify(st && { nav: st.nav, h: st.h }));
139
+ await snap(pg, 'settings-1440-light');
140
+ await pg.click('#evSettings [data-ev-sec="workspaces"]');
141
+ ok('R2 Workspaces lists the product', !!(await until(() => pg.evaluate(() => /EVPROD/.test(document.querySelector('#evSettings').textContent)))));
142
+ await pg.keyboard.press('Escape');
143
+ ok('R2 Escape closes Settings', !!(await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')))));
144
+
145
+ /* D: Theme */
146
+ await menu(pg); await pg.click('#czMenu [data-ev-theme="dark"]');
147
+ ok('D1 Theme Dark draws the page dark', !!(await until(() => pg.evaluate(() => document.documentElement.dataset.theme === 'dark' && getComputedStyle(document.body).backgroundColor !== 'rgb(255, 255, 255)'))));
148
+ await pg.goto(`${BASE}/premium-insights.html?ws=${encodeURIComponent(ws)}`); await pg.waitForSelector('#czFab');
149
+ ok('D1 the choice is kept for the next page', await pg.evaluate(() => document.documentElement.dataset.theme === 'dark'));
150
+ await menu(pg);
151
+ ok('U1 More is only on Home', await pg.evaluate(() => !document.querySelector('#czMenu [data-cz-more]')));
152
+ await snap(pg, 'menu-1440-dark');
153
+ await pg.keyboard.press('Escape');
154
+ await pg.keyboard.press('Control+k'); await pg.waitForSelector('#evSearch:not([hidden])'); await pg.keyboard.type('billing');
155
+ await until(() => pg.evaluate(() => document.querySelectorAll('#evRes .ev-mi[data-ev-i]').length > 1));
156
+ await snap(pg, 'search-1440-dark');
157
+ await pg.keyboard.press('Escape');
158
+ await pg.evaluate(() => { try { localStorage.removeItem('pmos.c3.theme'); } catch { /* none */ } });
159
+ ok('U no page error on Home and Insights', errors.length === 0, errors.join(' | '));
160
+ await ctx.close();
161
+ }
162
+
163
+ { /* B: the Board's top bar opens the same parts */
164
+ const { ctx, pg, errors } = await open({ page: 'premium-board.html' });
165
+ if (await pg.$('#moreBtn')) {
166
+ await pg.click('#moreBtn'); await pg.click('#settingsBtn');
167
+ ok('B1 the Board\'s Settings opens the designed Settings', !!(await until(() => pg.evaluate(() => !!document.querySelector('#evSettings:not([hidden])')))));
168
+ await pg.keyboard.press('Escape');
169
+ await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')));
170
+ await pg.click('#moreBtn'); await pg.click('#srcItem');
171
+ ok('B1 the Board\'s Sources opens the designed Sources', !!(await until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .ev-src')), 20000)));
172
+ await pg.keyboard.press('Escape');
173
+ } else ok('B1 the Board has its top bar', false);
174
+ await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
175
+ await pg.keyboard.press('Control+k');
176
+ ok('B2 Ctrl K on Board opens the same Search, once', !!(await until(() => pg.evaluate(() => !!document.querySelector('#evSearch:not([hidden])') && !document.querySelector('#pvOv:not([hidden])')))));
177
+ await pg.keyboard.press('Escape');
178
+ ok('B no page error on Board', errors.length === 0, errors.join(' | '));
179
+ await ctx.close();
180
+ }
181
+
182
+ for (const theme of ['light', 'dark']) { /* P: the phone */
183
+ const { ctx, pg, errors } = await open({ w: 390, h: 844, theme });
184
+ await menu(pg);
185
+ const fit = await pg.evaluate(() => { const r = document.querySelector('#czMenu').getBoundingClientRect(); return { l: Math.round(r.left), r: Math.round(r.right), side: document.documentElement.scrollWidth - innerWidth }; });
186
+ ok(`P1 ${theme} at 390 px the menu fits on screen`, fit.l >= 0 && fit.r <= 390 && fit.side <= 0, JSON.stringify(fit));
187
+ await snap(pg, 'menu-390-' + theme);
188
+ await pg.click('#czMenu [data-cz-search]');
189
+ await pg.waitForSelector('#evSearch:not([hidden])'); await pg.keyboard.type('billing');
190
+ await until(() => pg.evaluate(() => document.querySelectorAll('#evRes .ev-mi[data-ev-i]').length > 1), 20000);
191
+ const sp = await pg.evaluate(() => { const r = document.querySelector('#evSearch').getBoundingClientRect(); return { w: Math.round(r.width), h: Math.round(r.height), side: document.documentElement.scrollWidth - innerWidth }; });
192
+ ok(`P1 ${theme} at 390 px Search fills the screen and nothing scrolls sideways`, sp.w >= 388 && sp.h >= 800 && sp.side <= 0, JSON.stringify(sp));
193
+ await snap(pg, 'search-390-' + theme);
194
+ await pg.keyboard.press('Escape');
195
+ await menu(pg); await pg.click('#czMenu [data-cz-news]');
196
+ await until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .ev-news [data-ev-rest]')), 20000);
197
+ ok(`P2 ${theme} at 390 px New for you does not scroll sideways`, await pg.evaluate(() => { const b = document.querySelector('#czViewer .cz-vw-body'); return document.documentElement.scrollWidth - innerWidth <= 0 && b.scrollWidth - b.clientWidth <= 1; }));
198
+ await snap(pg, 'news-390-' + theme);
199
+ await pg.keyboard.press('Escape');
200
+ await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
201
+ await menu(pg); await pg.click('#czMenu [data-cz-settings]');
202
+ await pg.waitForSelector('#evSettings:not([hidden])');
203
+ ok(`P3 ${theme} at 390 px Settings fits the screen`, await pg.evaluate(() => { const r = document.querySelector('#evSettings').getBoundingClientRect(); return r.left >= 0 && r.right <= 390 && document.documentElement.scrollWidth - innerWidth <= 0; }));
204
+ await snap(pg, 'settings-390-' + theme);
205
+ if (theme === 'dark') ok('D2 ?theme=dark draws the phone dark', await pg.evaluate(() => document.documentElement.dataset.theme === 'dark'));
206
+ ok(`P no page error (${theme})`, errors.length === 0, errors.join(' | '));
207
+ await ctx.close();
208
+ }
209
+ return finish();
210
+ })().catch((e) => { console.error(e); finish(1); });