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,163 +0,0 @@
1
- /* pm/c3-plan-panels.js — the commitments panels of the console3 mockup, built for the Initiatives Timeline (All scope) and the Lifecycle Plan and Monitor stages.
2
- * Ported from console3.html: progSVG (2716), commits (2704), the Timeline All scope (3841), Why it slips and Dependencies (3850), Path and dates
3
- * and Progress and timing (3597, 3598).
4
- *
5
- * ensureCommits(V) reads the commitments once; V.commits = { state, rows, range, today }. V.render() runs when they land.
6
- * progressCard(V, title, sub, o) the "Progress of commitments: on time, at risk, delayed and overdue" chart in a card (o.cap rows, o.onOpen(id, title)).
7
- * whySlipsCard(V, causes) bars of days past plan per cause. causes: { head, rows: [[label, fraction, color, text]], note } | null
8
- * dependenciesCard(list) rows { cls, text }
9
- * slipFacts(frames) derives the causes and the dependencies from the whole-plan frames of GET /api/c3-timeline
10
- *
11
- * DATA. Real mode: initiatives come from GET /api/calendar-views (view=quarter, the `gantt` rows the Calendar Quarter draws: promised date, forecast,
12
- * progress, status); the PM's own dated tasks come from GET /api/pm-items (an open task is on time until its due date passes, then overdue). Nothing is
13
- * invented: an initiative with no promised date is not drawn, a task with no due date is not drawn, and a bar fills only where progress is recorded.
14
- * Demo (/c3.html?demo=1): window.__c3planfx (c3-demo-plan2.js) holds the mockup's rows in the same row shape. Built with el(); every string from data is a text node. */
15
- import { el } from './dom.js';
16
- import { pmGet } from './http.js';
17
- import { c3ic } from './pm-work-view.js';
18
- import { card } from './c3-init-extras.js';
19
-
20
- const NS = 'http://www.w3.org/2000/svg';
21
- const DAY = 864e5;
22
- const MN = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
23
- const OK = 'var(--success)'; const WARN = 'var(--warning)'; const BAD = 'var(--destructive)'; const MFG = 'var(--muted-foreground)';
24
- const ST = { done: { l: 'Done', c: OK }, ok: { l: 'On time', c: OK }, risk: { l: 'At risk', c: WARN }, late: { l: 'Delayed', c: BAD }, over: { l: 'Overdue', c: BAD }, park: { l: 'Parked', c: MFG } };
25
- const SEVR = { over: 0, late: 1, risk: 2, ok: 3, park: 4, done: 5 };
26
- const STKEY = { 'on time': 'ok', 'at risk': 'risk', delayed: 'late', overdue: 'over' };
27
- const utc = (s) => Date.parse(String(s).slice(0, 10) + 'T00:00:00Z');
28
- const ymd = (t) => new Date(t).toISOString().slice(0, 10);
29
- const localYmd = () => { const d = new Date(); return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0'); };
30
- const clamp = (v, a, b) => Math.max(a, Math.min(b, v));
31
- const isPhone = () => typeof matchMedia === 'function' && matchMedia('(max-width:640px)').matches;
32
- const sv = (tag, attrs, ...kids) => { const n = document.createElementNS(NS, tag); for (const k of Object.keys(attrs || {})) if (attrs[k] != null) n.setAttribute(k, attrs[k]); for (const c of kids) if (c) n.appendChild(c); return n; };
33
- const tx = (x, y, s, attrs) => { const n = sv('text', { x, y, ...(attrs || {}) }); n.textContent = s; return n; };
34
- const dlab = (iso) => { const t = utc(iso); const d = new Date(t); return d.getUTCDate() + ' ' + MN[d.getUTCMonth()]; };
35
-
36
- /* ── the reads ── */
37
- /** The range the chart draws: the first of this month and 61 days on (the mockup's 1 to 61). */
38
- function rangeOf(today) { const d = new Date(utc(today)); const s = Date.UTC(d.getUTCFullYear(), d.getUTCMonth(), 1); return { start: ymd(s), end: ymd(s + 60 * DAY) }; }
39
-
40
- async function readReal(V, today) {
41
- const ws = V.ctx.ws ? '&ws=' + encodeURIComponent(V.ctx.ws) : '';
42
- const range = rangeOf(today);
43
- const [cal, items] = await Promise.all([pmGet('/api/calendar-views?view=quarter&date=' + today + ws).catch(() => null), pmGet('/api/pm-items').catch(() => null)]);
44
- const rows = []; const day = (s) => s;
45
- const gantt = cal && cal.ok !== false && Array.isArray(cal.gantt) ? cal.gantt : [];
46
- gantt.forEach((g) => {
47
- const st = STKEY[g.status]; if (!st || !g.promised) return;
48
- const f = g.forecast && (g.forecast.end || g.forecast.start); const p = g.planned && g.planned.start;
49
- rows.push({ id: g.id, n: g.title || g.id, kind: 'init', start: day(p || g.promised), due: day(g.promised), fc: f ? day(f) : day(g.promised), pct: typeof g.progress === 'number' ? g.progress : null, st,
50
- why: (g.title || g.id) + ': ' + g.status + (g.slip_days > 0 ? ', ' + g.slip_days + ' days past the plan' : ''), go: g.id });
51
- });
52
- const seen = new Set();
53
- if (items && items.ok !== false && items.lists) Object.values(items.lists).forEach((l) => (l || []).forEach((i) => {
54
- if (!i || i.done || seen.has(i.id) || !/^\d{4}-\d{2}-\d{2}/.test(String(i.due || ''))) return; seen.add(i.id);
55
- const d = String(i.due).slice(0, 10); const over = d < today;
56
- rows.push({ id: 'item-' + i.id, n: i.title, kind: 'task', due: d, st: over ? 'over' : 'ok', why: i.title + (over ? ', overdue' : ', due ' + d), late: over ? Math.round((utc(today) - utc(d)) / DAY) : 0 });
57
- }));
58
- return { rows, range, today, real: true, error: cal && cal.ok === false ? cal.error || null : null };
59
- }
60
-
61
- /** Start the reads once. V.commits.state: 'loading' | 'ready'. */
62
- export function ensureCommits(V) {
63
- if (V.commits) return V.commits;
64
- const C = V.commits = { state: 'loading', rows: [], range: null, today: localYmd() };
65
- const fx = typeof window !== 'undefined' && window.__c3planfx;
66
- const done = (d) => { if (V.disposed) return; Object.assign(C, d, { state: 'ready' }); if (V.render) V.render(); };
67
- if (window.__c3demo && fx) { Promise.resolve().then(() => done({ rows: fx.rows, range: rangeOf(C.today), real: false })); return C; }
68
- readReal(V, C.today).then(done).catch(() => done({ rows: [], range: rangeOf(C.today), real: true, error: 'The commitments could not be read.' }));
69
- return C;
70
- }
71
-
72
- /* ── progSVG ── */
73
- function progSvg(all, range, today, o) {
74
- const a = 1; const b = Math.round((utc(range.end) - utc(range.start)) / DAY) + 1;
75
- const day = (s) => Math.round((utc(s) - utc(range.start)) / DAY) + 1;
76
- const TD = day(today); const cap = o.cap || 9;
77
- const R = all.map((c) => ({ ...c, d: day(c.due), s: c.start ? day(c.start) : null, f: c.fc ? day(c.fc) : null }))
78
- .filter((c) => { const lo = c.kind === 'init' ? c.s : c.d; const hi = Math.max(c.d, c.f || c.d); return (c.st === 'over' && TD >= a && TD <= b) || (hi >= a && lo <= b); })
79
- .sort((x, y) => SEVR[x.st] - SEVR[y.st] || x.d - y.d).slice(0, cap);
80
- const W = 720; const LW = 150; const SW = 104; const CW = W - LW - SW; const N = b - a + 1; const dw = CW / N; const rh = 30; const top = 28; const H = top + R.length * rh + 8;
81
- const Xl = (n) => LW + (n - a) * dw; const Xc = (n) => Xl(n) + dw / 2;
82
- const dl = (n) => dlab(ymd(utc(range.start) + (n - 1) * DAY));
83
- const cid = 'pgc' + (o.uid || 'x');
84
- const s = sv('svg', { class: 'pg', viewBox: `0 0 ${W} ${H}`, role: 'img', 'aria-label': 'Progress of commitments: on time, at risk, delayed and overdue', 'data-plan-chart': o.uid || '' }, sv('defs', {}, sv('clipPath', { id: cid }, sv('rect', { x: LW, y: 18, width: CW, height: H - 18 }))));
85
- for (let n = a; n <= b; n++) { const d = new Date(utc(range.start) + (n - 1) * DAY); if (d.getUTCDay() === 1) s.append(sv('line', { x1: Xl(n), x2: Xl(n), y1: 18, y2: H - 4, stroke: 'var(--border)' }), tx(Xl(n) + 3, 14, String(d.getUTCDate()))); }
86
- if (TD >= a && TD <= b) { const now = new Date(); const fr = clamp((now.getHours() + now.getMinutes() / 60 - 8) / 10, 0, 1); const tX = Xl(TD) + dw * fr; s.append(sv('rect', { x: Xl(TD), y: 20, width: dw, height: H - 24, fill: 'var(--accw)', rx: 6 }), sv('line', { x1: tX, x2: tX, y1: 20, y2: H - 4, stroke: 'var(--foreground)', 'stroke-width': 2 })); }
87
- const stat = (c) => (c.st === 'over' ? 'Overdue ' + (c.late || Math.max(1, TD - c.d)) + ' d' : c.st === 'late' ? 'Delayed +' + (c.f - c.d) + ' d' : ST[c.st].l);
88
- const phone = isPhone();
89
- R.forEach((c, i) => {
90
- const y = top + i * rh; const cy = y + rh / 2; const S = ST[c.st]; const nm = c.n.length > 17 ? c.n.slice(0, 16) + '…' : c.n; const dim = c.st === 'done' || c.st === 'park';
91
- const g = sv('g', { opacity: dim ? 0.6 : 1, 'data-plan-row': c.id, 'data-status': c.st, ...(c.go && o.onOpen && !phone ? { role: 'button', tabindex: '0', 'data-a': 'goinit', 'data-k': String(c.go), 'aria-label': 'Open ' + c.n + ': ' + stat(c), style: 'cursor:pointer' } : {}) });
92
- g.append(sv('rect', { x: 0, y, width: W, height: rh, fill: 'transparent' }), tx(0, cy + 4, nm, { class: 't' }));
93
- if (c.kind === 'init') {
94
- const xs = Xl(c.s); const xe = Xc(c.d); const has = c.pct != null; const xf = xs + (xe - xs) * (c.pct || 0); const ex = clamp((TD - c.s) / Math.max(1, c.d - c.s), 0, 1); const xt = xs + (xe - xs) * ex;
95
- const bars = sv('g', { 'clip-path': `url(#${cid})` }, sv('rect', { x: xs, y: cy - 5, width: Math.max(2, xe - xs), height: 10, rx: 5, fill: S.c, 'fill-opacity': 0.2 }));
96
- if (has) bars.append(sv('rect', { x: xs, y: cy - 5, width: Math.max(2, xf - xs), height: 10, rx: 5, fill: S.c }));
97
- if (c.st !== 'park') bars.append(sv('line', { x1: xt, x2: xt, y1: cy - 9, y2: cy + 9, stroke: 'var(--foreground)', 'stroke-width': 2 }));
98
- if (c.f > c.d) bars.append(sv('rect', { x: xe, y: cy - 2.5, width: Xc(c.f) - xe, height: 5, rx: 2.5, fill: BAD, 'fill-opacity': 0.6 }), sv('circle', { cx: Xc(c.f), cy, r: 6, fill: BAD, stroke: 'var(--card)', 'stroke-width': 2 }));
99
- bars.append(sv('path', { d: `M${xe} ${cy - 9} l8 9 -8 9 -8 -9z`, fill: 'var(--card)', stroke: S.c, 'stroke-width': 2 }));
100
- g.append(bars);
101
- if (c.d > b) g.append(tx(Xl(b + 1) - 4, cy - 12, 'due ' + dl(c.d) + (c.f > c.d ? ' → ' + dl(c.f) : ''), { 'text-anchor': 'end', style: 'font-size:var(--fs-1)' }));
102
- } else {
103
- if (c.st === 'over') g.append(sv('line', { x1: Xc(Math.max(a, c.d)), x2: Xc(Math.min(b, TD)), y1: cy, y2: cy, stroke: BAD, 'stroke-width': 3, 'stroke-dasharray': '5 4', 'stroke-linecap': 'round' }));
104
- if (c.d >= a && c.d <= b) { if (c.st === 'done') g.append(sv('circle', { cx: Xc(c.d), cy, r: 8, fill: OK, 'fill-opacity': 0.18 }), sv('path', { d: `M${Xc(c.d) - 4} ${cy} l3 3 5 -6`, fill: 'none', stroke: OK, 'stroke-width': 2, 'stroke-linecap': 'round' })); else g.append(sv('path', { d: `M${Xc(c.d)} ${cy - 8} l7 8 -7 8 -7 -8z`, fill: c.st === 'over' ? S.c : 'var(--card)', stroke: S.c, 'stroke-width': 2 })); }
105
- }
106
- g.append(tx(W - SW + 10, cy + 4, stat(c), { style: 'fill:' + S.c + ';font-weight:500' }));
107
- const t = sv('title', {}); t.textContent = c.why || c.n; g.append(t);
108
- if (c.go && o.onOpen && !phone) { const open = () => o.onOpen(c.go, c.n); g.addEventListener('click', open); g.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); open(); } }); }
109
- s.append(g);
110
- });
111
- return { svg: s, shown: R, stat, hasFill: R.some((c) => c.kind === 'init' && c.pct != null), more: all.length - R.length };
112
- }
113
-
114
- /** The "Progress of commitments" card. title/sub as the mockup's heading. o: { cap, uid, onOpen(id, title) }. */
115
- export function progressCard(V, title, sub, o) {
116
- const C = ensureCommits(V); const head = ['target', title, sub || ''];
117
- const c = (...k) => card(head[0], head[1], head[2], ...k);
118
- if (C.state !== 'ready') return c(el('div', { class: 'fold', 'data-plan-loading': '' }, c3ic('clock', 'sm'), 'Reading the commitments…'));
119
- const rows = C.rows;
120
- const out = rows.length ? progSvg(rows, C.range, C.today, o || {}) : null;
121
- if (!out || !out.shown.length) { const e = c(el('div', { class: 'fold' }, c3ic('moon', 'sm'), C.error || 'No initiative has a promised date and no task has a due date in these two months. Give an initiative a promised date and a plan, or a task a due date, and it is drawn here with its forecast.')); e.setAttribute('data-plan-empty', 'true'); e.setAttribute('data-plan-card', (o && o.uid) || ''); return e; }
122
- const sec = c(out.svg, isPhone() && o && o.onOpen ? el('ul', { class: 'list', role: 'list', style: 'margin:0;list-style:none;padding:0', 'data-plan-phone-rows': '' }, out.shown.filter((r) => r.go).map((r) => el('li', null,
123
- el('button', { type: 'button', class: 'nrow', style: 'width:100%;min-height:44px;border:0;background:none;text-align:left;display:flex;justify-content:space-between;gap:8px;align-items:center;cursor:pointer', 'aria-label': 'Open ' + r.n, onClick: () => o.onOpen(r.go, r.n) },
124
- el('b', null, r.n), el('span', { class: 'mono', style: 'font-size:var(--fs-2);color:' + ST[r.st].c }, out.stat({ ...r, d: Math.round((utc(r.due) - utc(C.range.start)) / DAY) + 1, f: r.fc ? Math.round((utc(r.fc) - utc(C.range.start)) / DAY) + 1 : 0 })))))) : null,
125
- out.more > 0 && !window.__c3demo ? el('div', { class: 'dim mono', style: 'font-size:var(--fs-2)' }, '+' + out.more + ' more commitments not drawn') : null,
126
- el('div', { class: 'pgl' }, el('span', null, '◇ due'), el('span', { style: 'color:' + BAD }, '● forecast'), out.hasFill ? el('span', null, '▬ actual progress') : el('span', null, '▬ planned span (no progress is recorded)'), el('span', null, '| where it should be today'),
127
- el('span', { style: 'color:' + BAD }, '┅ overdue'), el('span', { style: 'color:' + OK }, '■ on time'), el('span', { style: 'color:' + WARN }, '■ at risk'), el('span', { style: 'color:' + BAD }, '■ delayed')));
128
- sec.setAttribute('data-plan-card', (o && o.uid) || '');
129
- return sec;
130
- }
131
-
132
- /* ── Why it slips and Dependencies ── */
133
- export function whySlipsCard(causes) {
134
- if (!causes) return card('alert', 'Why it slips', '', el('div', { class: 'fold', 'data-plan-empty': 'why' }, c3ic('check', 'sm'), 'No initiative is past its promised date, so nothing slips.'));
135
- const bars = el('div', { class: 'hbs' }, causes.rows.map((r, i) => el('div', { class: 'hbr', style: '--c:' + r[2] }, el('div', { class: 'l' }, el('span', null, r[0]), el('i', null, r[3])), el('div', { class: 'tk' }, el('u', { style: 'width:' + Math.max(2, Math.min(100, r[1] * 100)) + '%;animation-delay:' + (i * 90) + 'ms' })))));
136
- const s = card('alert', 'Why it slips', causes.head, bars, el('div', { class: 'dim', style: 'font-size:var(--fs-2)' }, causes.note));
137
- s.setAttribute('data-plan-why', '');
138
- return s;
139
- }
140
- export function dependenciesCard(list) {
141
- const s = card('org', 'Dependencies', '', list.length ? el('ul', { class: 'chgl' }, list.map((d) => el('li', { class: d.cls }, c3ic('alert', 'sm'), el('span', null, d.text))))
142
- : el('div', { class: 'fold', 'data-plan-empty': 'deps' }, c3ic('check', 'sm'), 'No item waits on a late item. Dependencies between initiatives are not recorded, so only those inside one initiative are checked.'));
143
- s.setAttribute('data-plan-deps', '');
144
- return s;
145
- }
146
-
147
- /** Causes and dependencies from the whole-plan frames (GET /api/c3-timeline?initiative=). byInit: { id: { title, frames } }. Days past plan are per item, so chains overlap and do not add up. */
148
- export function slipFacts(byInit) {
149
- let worst = null; const deps = [];
150
- Object.keys(byInit).forEach((id) => {
151
- const T = byInit[id]; const frames = (T && T.frames) || []; const f = frames[frames.length - 1]; if (!f) return;
152
- if (f.slip_days > 0 && (!worst || f.slip_days > worst.f.slip_days)) worst = { id, f, title: T.title || id };
153
- const by = new Map(f.items.map((t) => [t.id, t]));
154
- f.items.forEach((t) => (t.after || []).forEach((k) => { const p = by.get(k); if (!p || p.state === 'done') return; const ps = p.forecast && p.forecast.status;
155
- if (ps === 'delayed' || ps === 'overdue' || ps === 'at risk') deps.push({ cls: ps === 'at risk' ? 'warn' : 'bad', text: (T.title || id) + ': ' + (t.title || t.id) + ' waits on ' + (p.title || p.id) + ', which is ' + ps + '.', w: ps === 'at risk' ? 1 : 0 }); }));
156
- });
157
- deps.sort((a, b) => a.w - b.w);
158
- if (!worst) return { causes: null, deps: deps.slice(0, 5) };
159
- const items = worst.f.items.filter((t) => t.state !== 'done' && t.forecast && t.forecast.slip_days > 0).sort((a, b) => b.forecast.slip_days - a.forecast.slip_days).slice(0, 4);
160
- const top = Math.max(1, ...items.map((t) => t.forecast.slip_days));
161
- return { causes: { head: worst.title + ', ' + worst.f.slip_days + ' day' + (worst.f.slip_days === 1 ? '' : 's'),
162
- rows: items.map((t, i) => [t.title || t.id, t.forecast.slip_days / top, i === 0 ? BAD : WARN, t.forecast.slip_days + ' d']), note: 'Days past each item\'s planned end. Items on one chain overlap, so the days do not add up. A cause such as scope or capacity is not recorded.' }, deps: deps.slice(0, 5) };
163
- }
@@ -1,193 +0,0 @@
1
- /* pm/c3-plan.js — the small pieces /c3.html adds around the real views so each tab has the mockup's furniture (console3.html):
2
- * planNode() the "Plan: Decide what gates the day" lens row and the card deck (mountBriefing), one instance per tab. All
3
- * instances share one read of GET /api/briefing (briefing-deck.js keeps it), so a page with five decks asks once.
4
- * dueCard() the Calendar's "Due and moving today" list (mockup vCal), from GET /api/pm-items: the items due today or overdue.
5
- * crossLinks(go) the line under an Initiatives lens header: "Calendar: N events today >" and "Work: N open items >" (mockup
6
- * c3 lkrow), from GET /api/calendar-views (day) and GET /api/pm-items.
7
- * newInitLine(ctx) the Initiatives add line "Start something new: one line is enough": the input, a disabled microphone, the spark
8
- * button (opens the real new-initiative sheet with the line as its title) and the "try" suggestion pills.
9
- * Nothing here writes; the sheet the spark button opens is the one the main app uses. The microphone is drawn disabled: nothing on
10
- * a page may record, and the on-device model belongs to a Notes document. */
11
- import { el } from './dom.js';
12
- import { pmGet, pmPost } from './http.js';
13
- import { c3ic, c3ib } from './pm-work-view.js';
14
- import { mountBriefing, setBriefingScope } from './briefing-deck.js';
15
- import { needRow } from './c3-brief.js';
16
-
17
- /** Re-point a plan node at another scope (the Work tab's lens). Only the demo has a deck per scope. */
18
- export const setPlanScope = (host, scope) => setBriefingScope(host, scope);
19
-
20
- export function planNode(scope, opts) {
21
- const host = el('div', { 'data-c3pg': 'plan' });
22
- mountBriefing(host, { noTicker: true, scope, ...(opts || {}) });
23
- return host;
24
- }
25
-
26
- let items = null;
27
- const readItems = () => (items || (items = pmGet('/api/pm-items').then((j) => (j && j.ok ? j : null), () => null)));
28
- export const freshItems = () => { items = null; return readItems(); };
29
-
30
- const dayDiff = (a, b) => Math.round((Date.parse(a + 'T00:00:00Z') - Date.parse(b + 'T00:00:00Z')) / 86400000);
31
-
32
- export function dueCard() {
33
- const count = el('span', { class: 'bdg g' }, '0');
34
- const list = el('ul', { class: 'list', role: 'list' }, el('li', { class: 'fold', role: 'status' }, c3ic('clock', 'sm'), 'Reading the repository'));
35
- const box = el('section', { class: 'card sect', 'data-c3pg': 'due-today', 'aria-label': 'Due and moving today' },
36
- el('div', { class: 'sh2' }, el('h2', null, c3ic('clock', 'sm'), 'Due and moving today ', count)), list);
37
- readItems().then((j) => {
38
- if (!j) { list.replaceChildren(el('li', { class: 'fold' }, c3ic('alert', 'sm'), 'Your items could not be read.')); return; }
39
- if (Array.isArray(j.due_today)) { // optional (demo): the mockup's "Due and moving today" rows, each with its own sub line, time-left bar and status
40
- count.textContent = String(j.due_today.length);
41
- list.replaceChildren(...j.due_today.map((r) => {
42
- const col = r.tone === 'bad' ? 'var(--destructive)' : r.tone === 'warn' ? 'var(--warning)' : 'var(--acc)';
43
- return el('li', { class: 'nrow', 'data-due-row': r.id, style: 'grid-template-columns:auto minmax(0,1fr) auto' },
44
- el('span', { class: 'ki', style: r.tone === 'warn' ? 'color:var(--warning)' : r.tone === 'bad' ? 'color:var(--destructive)' : null }, c3ic('alert')),
45
- el('div', { class: 'nb' }, el('span', { class: 'tt' }, r.title), el('div', { class: 'chips' }, el('span', { class: 'dim mono', style: 'font-size:var(--fs-2)' }, r.sub)),
46
- r.left ? el('div', { class: 'chips2', style: 'margin-top:6px;gap:8px' }, el('div', { class: 'fuse' }, el('i', { style: 'width:' + Math.round(r.left.pct * 100) + '%;background:' + (r.left.tone === 'warn' ? 'var(--warning)' : 'var(--acc)') })),
47
- el('span', { class: 'mono', style: 'font-size:var(--fs-1);color:' + (r.left.tone === 'warn' ? 'var(--warning)' : 'var(--acc)') }, r.left.text)) : null),
48
- el('span', { class: 'mono', style: 'font-size:var(--fs-2);align-self:center;color:' + col }, r.right));
49
- }));
50
- return;
51
- }
52
- const rows = ((j.lists || {}).today || []).filter((i) => !i.done);
53
- count.textContent = String(rows.length);
54
- list.replaceChildren(...(rows.length ? rows.map((i) => {
55
- const late = i.due && i.due < j.today ? dayDiff(j.today, i.due) : 0;
56
- return el('li', { class: 'nrow', 'data-due-row': i.id },
57
- el('span', { class: 'ki' + (late ? ' hot' : '') }, c3ic(late ? 'alert' : 'clock')),
58
- el('div', { class: 'nb' }, el('span', { class: 'tt' }, i.title),
59
- el('div', { class: 'chips' }, i.due ? el('span', { class: 'chip2' }, c3ic('cal', 'sm'), i.due) : null, i.priority ? el('span', { class: 'fl ' + i.priority.toLowerCase() }, i.priority) : null)),
60
- late ? el('span', { class: 'mono', style: 'font-size:var(--fs-2);color:var(--destructive)' }, late + ' d late') : null);
61
- }) : [el('li', { class: 'fold' }, c3ic('check', 'sm'), 'Nothing is due today.')]));
62
- });
63
- return box;
64
- }
65
-
66
- export function crossLinks(go) {
67
- const cal = el('button', { type: 'button', class: 'chip2 lk', 'data-c3-link': 'cal', onclick: () => go('cal') }, c3ic('cal', 'sm'), 'Calendar: reading');
68
- const work = el('button', { type: 'button', class: 'chip2 lk', 'data-c3-link': 'work', onclick: () => go('work') }, c3ic('check', 'sm'), 'Work: reading');
69
- const d = new Date(); const p = (n) => String(n).padStart(2, '0');
70
- pmGet('/api/calendar-views?view=day&date=' + d.getFullYear() + '-' + p(d.getMonth() + 1) + '-' + p(d.getDate())).then((j) => {
71
- const n = j && j.ok !== false ? (j.cells || []).reduce((t, c) => t + c.events.length, 0) : null;
72
- cal.replaceChildren(c3ic('cal', 'sm'), n === null ? 'Calendar: not read' : 'Calendar: ' + n + ' event' + (n === 1 ? '' : 's') + ' today', c3ic('next', 'sm'));
73
- }, () => cal.replaceChildren(c3ic('cal', 'sm'), 'Calendar: not read'));
74
- readItems().then((j) => {
75
- const n = j ? (j.items || []).filter((i) => !i.done).length : null;
76
- work.replaceChildren(c3ic('check', 'sm'), n === null ? 'Work: not read' : 'Work: ' + n + ' open item' + (n === 1 ? '' : 's'), c3ic('next', 'sm'));
77
- });
78
- return el('div', { class: 'lkrow', 'data-c3pg': 'cross-links' }, cal, work);
79
- }
80
-
81
- /* The Calendar's own gantt rows for the quarter (GET /api/calendar-views), read once per page: the pulse and the portfolio card share them. */
82
- let quarter = null;
83
- export function readQuarter() {
84
- if (!quarter) {
85
- const d = new Date(); const p2 = (n) => String(n).padStart(2, '0');
86
- quarter = pmGet('/api/calendar-views?view=quarter&only=gantt&date=' + d.getFullYear() + '-' + p2(d.getMonth() + 1) + '-' + p2(d.getDate())); // the rows alone: no events or layers
87
- }
88
- return quarter;
89
- }
90
-
91
- /* The Reports tab's "Portfolio status: promise against forecast" (mockup r2port): promised and forecast dates of the initiatives that have one. */
92
- export function portfolioCard() {
93
- const body = el('div', null, el('p', { class: 'dim mono', style: 'font-size:var(--fs-2)', role: 'status' }, 'Reading the repository'));
94
- const box = el('section', { class: 'card', 'data-c3pg': 'portfolio' }, el('h3', null, c3ic('tree'), 'Portfolio status ', el('span', { class: 'dim', style: 'text-transform:none;letter-spacing:0' }, 'promise against forecast')), body);
95
- const ST = { 'on time': ['check', 'var(--success)'], 'at risk': ['alert', 'var(--warning)'], delayed: ['alert', 'var(--destructive)'], overdue: ['alert', 'var(--destructive)'] };
96
- const end = (o) => (o && (o.end || o.start)) || '';
97
- const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
98
- let mock = false; // rows that carry `pulse` (the demo's) are drawn as the mockup draws them: dates as 24 Oct; real rows keep the ISO date
99
- const dlab = (v) => { const m = mock && /^\d{4}-(\d{2})-(\d{2})$/.exec(v || ''); return m ? Number(m[2]) + ' ' + MON[Number(m[1]) - 1] : v || ''; }; // the mockup's dlab: 24 Oct
100
- readQuarter().then((j) => {
101
- if (!j || j.ok === false) { body.replaceChildren(el('div', { class: 'fold w' }, c3ic('alert', 'sm'), 'The initiatives could not be read.')); return; }
102
- // only=gantt leaves the rows with no plan out and counts them in no_plan; they still count in the line under the table
103
- const all = (j.gantt || []).concat(Array.from({ length: Number(j.no_plan) || 0 }, () => ({ status: 'no plan' }))); const rows = all.filter((g) => g.status !== 'no plan'); mock = rows.some((g) => g.pulse);
104
- if (!rows.length) { body.replaceChildren(el('div', { class: 'fold' }, c3ic('moon', 'sm'), 'No initiative has a promised date yet.'), all.length ? el('p', { class: 'dim mono', style: 'font-size:var(--fs-2)' }, all.length + ' initiatives have no plan date.') : null); return; }
105
- body.replaceChildren(el('table', { class: 'tb', style: (mock ? 'width:auto;' : 'width:100%;') + 'border-collapse:collapse;font-size:var(--fs-2)' },
106
- el('thead', null, el('tr', null, el('th', { style: 'text-align:left' }), el('th', { class: 'mono', style: 'font-size:var(--fs-1);padding:0 8px' }, 'PROMISED'), el('th', { class: 'mono', style: 'font-size:var(--fs-1);padding:0 8px' }, 'FORECAST'), el('th'))),
107
- el('tbody', null, ...rows.slice(0, 6).map((g) => { const s = mock ? (end(g.forecast) > (g.promised || '') ? ST.delayed : ['check', 'var(--success)']) : (ST[g.status] || ['moon', 'var(--muted-foreground)']); // the mockup's colour is the dates: past the promise is red, otherwise green
108
- return el('tr', { 'data-portfolio-row': g.id }, el('td', { style: 'padding:' + (mock ? '5px 8px 5px 0' : '4px 0') + ';font-weight:600' }, g.title || g.id), el('td', { class: 'mono', style: mock ? 'padding:0 8px' : null }, dlab(g.promised || '')), el('td', { class: 'mono', style: (mock ? 'padding:0 8px;' : '') + 'color:' + s[1] }, dlab(end(g.forecast))), el('td', { style: mock ? null : 'color:' + s[1] }, c3ic(s[0], 'sm'))); }))),
109
- // Real rows keep what this call always did: with six rows or fewer it passed null, which replaceChildren writes as the text "null". Demo rows (mock) pass nothing.
110
- ...(rows.length > 6 ? [el('p', { class: 'dim mono', style: 'font-size:var(--fs-2)' }, '+' + (rows.length - 6) + ' more in the Calendar tab')] : mock ? [] : [null]));
111
- }, () => body.replaceChildren(el('div', { class: 'fold w' }, c3ic('alert', 'sm'), 'The initiatives could not be read.')));
112
- return box;
113
- }
114
-
115
- const TRY = ['Self-serve billing for teams', 'Why returns hurt', 'Fix flaky CI on search'];
116
- const INTAKE_STEPS = ['Checking what was rejected before', 'Running the sharpness test', 'Choosing a lane', 'Finding an anchor'];
117
- /* The mockup's c3nistart (console3.html line 4790): a pill or the spark runs the intake IN PLACE. A card under the line ticks four steps every 0.65 s, then says what the
118
- * agent suggests (lane, anchor, prior rejection). The real POST /api/intake/draft runs behind the steps. Nothing is created here: "Create it" opens the real form
119
- * with the line, where the anchor is chosen and the create is pressed, as before. */
120
- export function newInitLine(ctx) {
121
- const input = el('input', { type: 'text', placeholder: 'Start something new: one line is enough', 'aria-label': 'New initiative', autocomplete: 'off', 'data-c3pg': 'new-init' });
122
- const slot = el('div', { 'data-c3pg': 'new-init-card' });
123
- let run = 0;
124
- const openForm = () => import('./new-initiative-sheet.js').then((m) => m.openNewInitiative({ repo: ctx.repo, ws: ctx.ws, anchors: (ctx.rows || []).map((r) => r.anchor), prefill: input.value.trim() ? { title: input.value.trim() } : null, onAdded: () => { input.value = ''; slot.replaceChildren(); if (ctx.onAdded) ctx.onAdded(); } }));
125
- const reset = () => { run++; slot.replaceChildren(); input.value = ''; input.focus(); };
126
- const steps = (text, n) => el('section', { class: 'card sect', 'data-c3pg': 'new-init-run' }, el('div', { class: 'sh2' }, el('h2', null, c3ic('spark', 'sm'), text)),
127
- el('ul', { class: 'chgl' }, INTAKE_STEPS.map((st, i) => el('li', { class: i < n ? 'ok' : '' }, i < n ? c3ic('check', 'sm') : i === n ? el('span', { class: 'c3spin' }, c3ic('spark', 'sm')) : el('span', { style: 'width:14px' }), el('span', { class: i > n ? 'dim' : '' }, st)))));
128
- const answer = (text, d) => {
129
- const pr = d.prior_rejections || []; const conf = typeof d.confidence === 'number' ? Math.round(d.confidence * 100) : null;
130
- return el('section', { class: 'card sect', 'data-c3pg': 'new-init-done' }, el('div', { class: 'sh2' }, el('h2', null, c3ic('spark', 'sm'), 'The agent suggests'), el('span', { class: 'r' }, c3ib('Start over', 'x', { onClick: reset }, 'sm'))),
131
- el('div', { class: 'case' }, el('div', { class: 'sit' }, 'A ' + (d.lane || 'feature') + ' lane fits ' + text + '. Nothing is created until you press Create it.' + (conf != null ? ' ' + conf + '% sure.' : '')),
132
- el('ul', { class: 'chgl' },
133
- el('li', null, c3ic('init', 'sm'), el('span', null, 'Lane guess: ' + (d.lane || 'none')), el('span', { class: 'tag' }, 'Lane')),
134
- el('li', { class: d.anchor_suggestion ? 'ok' : 'bad' }, c3ic(d.anchor_suggestion ? 'target' : 'alert', 'sm'), el('span', null, d.anchor_suggestion ? 'Anchor suggestion: ' + d.anchor_suggestion : 'No anchor yet: pick a KR or a health budget'), el('span', { class: 'tag' }, 'Anchor')),
135
- el('li', { class: pr.length ? 'warn' : 'ok' }, c3ic(pr.length ? 'alert' : 'check', 'sm'), el('span', null, pr.length ? 'Close to something rejected before: ' + pr.map((r) => r.title || r.path || String(r)).join('; ') : 'Nothing like it was rejected before'), el('span', { class: 'tag' }, 'prior rejection')))),
136
- el('div', { class: 'chips2' }, el('button', { type: 'button', class: 'chip2 lk', 'data-c3pg': 'new-init-open', onclick: () => openForm() }, c3ic('check', 'sm'), 'Create it: choose the anchor')));
137
- };
138
- const start = async (raw) => {
139
- const text = String(raw || '').trim(); if (!text) return;
140
- input.value = text; const me = ++run; let n = 0;
141
- slot.replaceChildren(steps(text, 0));
142
- const call = pmPost('/api/intake/draft', { line: text }).catch(() => null);
143
- const t = setInterval(() => { if (me !== run) { clearInterval(t); return; } n++; if (n < INTAKE_STEPS.length) { slot.replaceChildren(steps(text, n)); return; } clearInterval(t);
144
- call.then((out) => { if (me !== run) return; slot.replaceChildren(out && out.ok && out.draft ? answer(text, out.draft) : el('div', { class: 'fold w', role: 'alert' }, c3ic('alert', 'sm'), (out && out.error) || 'The draft did not answer.')); }); }, 650);
145
- };
146
- input.addEventListener('keydown', (e) => { if (e.key === 'Enter' && !e.isComposing) start(input.value); });
147
- const mic = c3ib('Speak is off on this line: on-device dictation runs in Notes, in the classic app (/classic.html). Type the line here.', 'mic', { disabled: true });
148
- const spark = c3ib('Start: an agent runs the intake', 'spark', { 'data-a': 'c3nigo', 'data-c3pg': 'new-init-go', onClick: () => start(input.value) }, 'pri');
149
- return el('div', null, el('div', { class: 'c3add' }, el('div', { class: 'form' }, input, mic, spark),
150
- el('div', { class: 'chips2' }, el('span', { class: 'dim mono', style: 'font-size:var(--fs-2)' }, 'try'),
151
- ...TRY.map((t) => el('button', { type: 'button', class: 'pill', 'data-a': 'c3niex', 'data-k': t, onclick: () => start(t) }, t)))), slot);
152
- }
153
-
154
- /* The Briefing's "Needs you" row of the mockup (console3.html needRow2, line 2345) is c3-brief.js needRow: it opens its case file in place, swipes and
155
- * answers keys. This is the old name, kept so a caller of needsRow(n, i) gets the same row. The third argument (the old jump to the deck) is gone: a
156
- * press on the row opens the row, as the mockup does. */
157
- export const needsRow = (n, i, ctx) => needRow(n, i, ctx && typeof ctx === 'object' ? ctx : {});
158
-
159
- /* The mockup's pulse (console3.html lines 1448 to 1457): one bar of the rag colours, a row per initiative with its reason and microTL (promised
160
- * against forecast on a 40 day line). Drawn only for rows that carry `pulse` ({ c, why }), which the calendar route does not send. */
161
- const RAGC = { red: ['bad', 'var(--destructive)'], amber: ['warn', 'var(--warning)'], green: ['ok', 'var(--success)'], park: ['', 'var(--ring)'] };
162
- function microTL(g, today) {
163
- const NSV = 'http://www.w3.org/2000/svg'; const day = (v) => Math.round((Date.parse(String(v).slice(0, 10) + 'T00:00:00Z') - Date.parse(today + 'T00:00:00Z')) / 86400000);
164
- const X = (d) => 6 + Math.min(40, Math.max(0, d)) / 40 * 98;
165
- const s = document.createElementNS(NSV, 'svg'); s.setAttribute('width', 112); s.setAttribute('height', 18); s.setAttribute('viewBox', '0 0 112 18'); s.setAttribute('role', 'img'); s.setAttribute('aria-label', 'Promised against forecast');
166
- const add = (tag, a) => { const n = document.createElementNS(NSV, tag); for (const k in a) n.setAttribute(k, a[k]); s.appendChild(n); };
167
- add('line', { x1: 6, x2: 104, y1: 9, y2: 9, stroke: 'var(--border)', 'stroke-width': 2, 'stroke-linecap': 'round' }); add('line', { x1: 6, x2: 6, y1: 3, y2: 15, stroke: 'var(--foreground)', 'stroke-width': 2 });
168
- if (g.pulse.c === 'park' || !g.promised) add('line', { x1: 6, x2: 40, y1: 9, y2: 9, stroke: 'var(--ring)', 'stroke-width': 2, 'stroke-dasharray': '3 4' });
169
- else {
170
- const p = day(g.promised); const f = day((g.forecast && (g.forecast.end || g.forecast.start)) || g.promised); const late = f > p;
171
- if (late) add('rect', { x: X(p), y: 7, width: X(f) - X(p), height: 4, rx: 2, fill: 'var(--destructive)' });
172
- add('path', { d: `M${X(p)} 3 l5 6 -5 6 -5 -6z`, fill: 'var(--background)', stroke: 'var(--foreground)', 'stroke-width': 1.8 });
173
- if (late) add('circle', { cx: X(f), cy: 9, r: 3.5, fill: 'var(--destructive)' });
174
- }
175
- return s;
176
- }
177
- /* The mockup's pulse (line 1448): each colour of the bar is a button that filters the rows to that status (pressed again, all), and each row is a button that
178
- * goes to its initiative (`goinit`). `go(id)` is the caller's jump to the Initiatives tab. */
179
- export const mockPulse = (rows, today, go) => {
180
- const cnt = {}; rows.forEach((g) => { cnt[g.pulse.c] = (cnt[g.pulse.c] || 0) + 1; });
181
- const WORD = { red: 'red', amber: 'amber', green: 'green', park: 'parked' };
182
- let f = null;
183
- const list = el('div');
184
- const segs = ['red', 'amber', 'green', 'park'].filter((k) => cnt[k]).map((k) => el('button', { type: 'button', class: 'pseg', 'data-a': 'pulse', 'data-k': k, style: 'flex:' + cnt[k] + ';height:10px;border-radius:5px;border:0;padding:0;background:' + RAGC[k][1] + ';cursor:pointer',
185
- title: cnt[k] + ' ' + WORD[k], 'aria-label': cnt[k] + ' ' + WORD[k], 'aria-pressed': 'false', onclick: () => { f = f === k ? null : k; draw(); } }));
186
- const draw = () => {
187
- segs.forEach((b) => { const on = f === b.dataset.k; b.setAttribute('aria-pressed', String(on)); b.style.opacity = f && !on ? '.28' : '1'; });
188
- list.replaceChildren(...rows.filter((g) => !f || g.pulse.c === f).map((g) => el('button', { type: 'button', class: 'prow', 'data-c3pg-prow': g.id, 'data-a': 'goinit', 'aria-label': 'Open ' + (g.title || g.id) + ': ' + g.pulse.why, onclick: () => { if (go) go(g.id); } },
189
- el('span', { class: 'dotc ' + RAGC[g.pulse.c][0] }), el('span', { style: 'min-width:0;text-align:left' }, el('b', { style: 'font-size:var(--fs-3)' }, g.title || g.id), el('div', { class: 'dim', style: 'font-size:var(--fs-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis' }, g.pulse.why)), microTL(g, today))));
190
- };
191
- draw();
192
- return [el('div', { class: 'pbs', role: 'group', 'aria-label': 'Status of initiatives' }, ...segs), list];
193
- };
@@ -1,113 +0,0 @@
1
- /* pm/c3-quiet.css — quieter console3 pages (c3-quiet-pages, PM-approved 2026-10-12). Linked once by c3-quiet.js.
2
- * At most two rows sit above a page's content: row one is the page tabs with the date, the freshness dot and the tools on the
3
- * right; row two is the page's own context (breadcrumb, status, sub-tabs, actions). Teaching sentences, empty cards and extra
4
- * chips are not drawn; decks show on Briefing only. Everything is scoped under .c3 and uses tokens only. */
5
- /* Phone widths keep today's layout: the phone gets its own companion design (Wawan, 2026-10-12), so every rule below is for 601px and up. */
6
- /* Below 601px the bar wrapper draws nothing, so the phone layout is the same as before. */
7
- .c3 .qt-bar{display:contents}
8
- @media (min-width:601px){
9
- /* 1. Header: one row. Title and date left, a short tool set right. */
10
- .c3 .c3top{display:flex !important;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:nowrap}
11
- .c3 .c3top > div:first-child{min-width:0}
12
- .c3 .c3top .tools{order:2;margin-left:auto;flex-wrap:nowrap}
13
- .c3 .c3top .fr-fresh{display:none !important} /* the long freshness line */
14
- .c3 .c3pg-daylight{display:none !important} /* sunrise and sunset text */
15
- .c3 .c3top [data-c3pg="calendar"]{display:none !important} /* same as the Calendar tab */
16
- .c3 .c3top .ib:not([aria-pressed="true"]),.c3 .c3top .psess{border-color:transparent !important;background:transparent !important;box-shadow:none !important}
17
- .c3 .c3pg-tick{display:none !important} /* the pop-up "Just in" toast: the bell keeps it */
18
- .qt-fresh{margin-left:4px}
19
- .qt-fresh .qt-fresh__dot{width:8px;height:8px;border-radius:50%;background:var(--warning);display:inline-block}
20
- .qt-fresh.ok .qt-fresh__dot{background:var(--muted-foreground)}
21
- .c3 .c3top .fr-fresh.qt-open{display:flex !important;margin-top:6px}
22
- /* 2. Tab counts: plain grey numbers, not blue badges */
23
- .c3 .c3tabs .bdg{background:transparent !important;color:var(--muted-foreground) !important;font-weight:400;padding:0 0 0 2px;min-width:0;box-shadow:none}
24
- /* 3. Teaching sentences and hints: gone from every page */
25
- .c3 .ini-note:not(:has([data-ibb="clear"],[data-wk="clear"])),.c3 .ini-lhm .dim,.c3 .cal3-note,.c3 [data-pm-chips],.c3 [data-pm-lens-head],
26
- .c3 [data-c3pg="foot"],.c3 .pulse-foot .c3s2,.c3 .st-lead,.c3 [data-c3pg="kept-out"],.c3 [data-needs-summary]{display:none !important}
27
- /* 4. Rows: title plus at most two chips; the rest lives in the row's panel */
28
- .c3 .nrow .nb > .chips > :nth-child(n+3){display:none !important}
29
- .c3 [data-c3pg="today"] .nrow .chips [data-prep],.c3 [data-c3pg="today"] .nrow .chips [data-before]{display:none !important}
30
- .c3 [data-c3pg="today"] .nrow .nb > .chips > [data-people]{display:inline !important}
31
- /* 5. Decks: only Briefing shows the big cards */
32
- .c3 .cal3 [data-c3pg="plan"],.c3 [data-rp3-deck]{display:none !important}
33
- .c3 .stance [data-shell="listen"]{display:none !important}
34
- .c3 .fc .cfh .kp:nth-child(n+2){display:none !important}
35
- /* 7. Initiatives */
36
- .c3 [data-ini-view="portfolio"] .ini-meta{display:none !important}
37
- .c3 [data-ini-view="portfolio"] .bcol.r > section:first-child{display:none !important} /* repeats each board's own bar */
38
- .c3 [data-ini="boards"] .nrow .nb > .chips > :nth-child(n+3){display:inline-flex !important}
39
- .c3 [data-ini="boards"] .nrow .nb > .chips:has(.ini-sw){display:none !important} /* Discover 0 Plan 25 ... legend */
40
- .c3 [data-ini="boards"] .nrow .chips .tag{display:none !important}
41
- .c3 .bcols.qt-one{display:block !important}
42
- .c3 .bcols.qt-one > .bcol.r{display:none !important}
43
- .c3 .bcols.qt-one > .bcol.l{width:auto;max-width:none}
44
- .c3 [data-ini="setup"]{display:none !important} /* Build and deliver line: lives in Board settings */
45
- .c3 [data-ini-view="board"] > .calbody > .lh{display:none !important} /* board name repeats the breadcrumb */
46
- .c3 [data-ini="board-tabs"] .bdg{display:none !important}
47
- .c3 [data-ini="board-tabs"] .qt-more-tab{display:none}
48
- .c3 [data-ini="board-tabs"] .qt-more-tab[aria-pressed="true"]{display:inline-flex}
49
- .c3 .qt-status{color:var(--muted-foreground);font-size:var(--fs-2);margin-left:8px}
50
- .c3 .qt-status.warn{color:var(--warning)}
51
- .c3 [data-ini="glance"] .chip2.mono{display:none !important}
52
- .c3 .qt-fold > summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;color:var(--muted-foreground)}
53
- .c3 .qt-fold > summary::-webkit-details-marker{display:none}
54
- .c3 .qt-hide{display:none !important}
55
- /* 8. Calendar: layers behind one button */
56
- .c3 [data-c3-pane="cal"] [data-cal3="chips"]{display:none !important}
57
- .c3 [data-c3-pane="cal"] [data-cal3="chips"].qt-open{display:flex !important}
58
- .c3 [data-c3-pane="cal"] [data-cal3="lanes"]{display:none !important}
59
- /* 9. Work */
60
- .c3 .wkfc-why,.c3 .wkfr .nb > .chips:nth-of-type(2){display:none !important}
61
- @media (hover: hover){ /* with a pointer, a focus card's steps and buttons show on pointing at or tabbing into it; a touch screen always shows them */
62
- .c3 .wkfr:not(:hover):not(:focus-within) .wkfr-b{display:none !important}
63
- }
64
- .c3 .wkfr .nb > .chips:has(> .chip2){display:none !important}
65
- .c3 [data-pm-lenses] .bdg{background:transparent !important;color:var(--muted-foreground) !important}
66
- /* 10. Reports */
67
- .c3 .rp3-w > .chips{display:none !important}
68
- @media (hover: hover){ /* with a pointer, About this report shows on pointing at or tabbing into the report */
69
- .c3 .rp3-w:not(:hover):not(:focus-within) .rp3-about{opacity:0}
70
- }
71
- /* 11. Settings */
72
- .c3 .st-nav .sh2 .bdg{display:none !important}
73
-
74
- /* Phone: title and tools on one row, tools icon-only, date line below */
75
- /* ===== v2: two rows above content ===== */
76
- /* Row 1: the page tabs carry the page name; date, freshness dot and tools sit on the same row */
77
- .c3 .c3main{position:relative}
78
- .c3 .c3top h1{display:none !important}
79
- .c3 .c3top{position:absolute;top:0;right:0;left:auto;align-items:center !important;gap:10px;z-index:3;padding:0 !important;margin:0 !important;min-height:44px;background:transparent}
80
- .c3 .c3top > div:first-child{display:flex;align-items:center;gap:8px;order:1}
81
- .c3 .c3top .sub{font-size:var(--fs-1);margin:0}
82
- .c3 .c3top .fr-fresh.qt-open{position:absolute;top:44px;right:0;background:var(--card);border:1px solid var(--border);border-radius:8px;padding:8px 10px;box-shadow:0 6px 24px rgb(0 0 0 / .08)}
83
- /* The open line is a list: one source per row, then the refresh icon with its note. Wrapped inline, a row broke mid-list and left a dot at its end. */
84
- .c3 .c3top .fr-fresh.qt-open{display:grid !important;grid-template-columns:auto 1fr;align-items:center;gap:6px 8px;width:max-content;max-width:min(360px,calc(100vw - 24px));white-space:nowrap}
85
- .c3 .c3top .fr-fresh.qt-open > [data-fr-line]{grid-column:1 / -1}
86
- .c3 .c3top .fr-fresh.qt-open > .fr-fresh__sep{display:none}
87
- .c3 .c3top .fr-fresh.qt-open > .fr-fresh__note{white-space:normal}
88
- .c3 nav.c3tabs{margin-top:0 !important;min-height:44px}
89
- /* Row 2: one context bar per page */
90
- .c3 .qt-ctx{display:flex !important;align-items:center;gap:10px;flex-wrap:wrap}
91
- .c3 .qt-ctx [data-ini="board-tabs"]{margin-left:auto}
92
- .c3 [data-ini-view="board"] > .calbody > .calbar:has([data-ini="board-tabs"]){display:none !important}
93
- .c3 [data-ini-view="portfolio"] .calbody > .lh{display:none !important}
94
- .c3 .stance[data-bf="lens-bar"]{display:none !important}
95
- .c3 .rp3-head:not(:has(.rp3-pick)){display:none !important} /* Portfolio: the tab row says it all */
96
- .c3 .rp3-head > .ki,.c3 .rp3-head [data-rp3-title],.c3 .rp3-head .rp3-min0 > .dim{display:none !important} /* a board or an initiative: only its chooser */
97
- .c3 .c3add{display:flex;align-items:center;gap:10px}
98
- .c3 .c3add .form{flex:1 1 auto}
99
- .c3 .wk > .calbar.qt-moved{display:none !important}
100
- .c3 .qt-ctx{justify-content:flex-start !important;flex-direction:row !important}
101
- .c3 .qt-ctx > [data-ini="crumbs"]{order:1}
102
- .c3 .qt-ctx > [data-ini="board-tabs"]{order:2;margin-left:12px !important}
103
- .c3 .qt-ctx > .chips2:not([data-ini="crumbs"]){order:3;margin-left:auto}
104
- .c3 [data-ini-view="board"] > .calbody{padding-top:4px}
105
- .c3.qt-stack .c3top{position:static;justify-content:flex-end !important;min-height:0}
106
- .c3.qt-stack nav.c3tabs{padding-right:0}
107
- /* The top bar (page tabs, date and tools) stays at the top of the window while the page scrolls.
108
- * Cards that already stay put as the page scrolls (a right column, the Settings sections, a Work item's detail) stop under it. */
109
- .c3 .qt-bar{display:block;position:sticky;top:0;z-index:10;background:var(--background)}
110
- .c3.qt-stack .qt-bar{display:grid;gap:14px}
111
- .c3 .bcol.r,.c3 .c3set .st-nav{top:calc(var(--in-qt-bar, 0px) + 12px)}
112
- .c3 .td-day__detail{top:calc(var(--in-qt-bar, 0px) + 8px);max-height:calc(100vh - var(--in-qt-bar, 0px) - 16px)}
113
- }