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
@@ -1,324 +0,0 @@
1
- /* pm/premium-initiative.js — the premium initiative page (initiative briefing-premium-initiative, slice 6). Reads GET /api/initiative-premium?id= and draws the
2
- * model lib/initiative-premium.js builds from the routes the production Initiatives sheet reads: the overview and checks, the Tasks card (PRD requirements and
3
- * the board's tracker items) and the Core documents card. A document row with a file opens the document sheet (Read, Edit, Proposals, Edit log, Health) in the
4
- * standard dialog beside the read-only agent. The presses are Draft it (POST /api/core-docs/draft), the sheet's Save, Ask the agent, Accept and Reject (the
5
- * existing /api/doc-sheet routes, initiative briefing-premium-doc-edit), Add a task and a task's status, and the bar under the stages (initiative
6
- * premium-board-actions, pm/premium-acts.js): move to the next stage or back, hold, cancel, archive, resume, reopen and restore, each with Undo. Nothing here issues a document.
7
- * The Agreed design (initiative premium-agreed-design, I1): no page header; the header card (pm/premium-initiative-head.js) holds the switcher, the
8
- * eight-step ladder, what finishes the step, the payoff, the time in the stage and one CTA, and folds. The floating place menu (pm/cozy-nav.js)
9
- * replaces the rail; this page belongs to Home. */
10
- import { pmPost } from './http.js';
11
- import { mountDocSheet } from './premium-doc-sheet.js';
12
- import { $, $$, esc, openDlg, popKey, closeDlg, setMode, toast, loadThread, onScroll, wireRail, logHtml, turnA, ptx, pillOf, kv, H2, CHECK, CHEV, crumbHtml, wireCrumb, chatAbout, AI, openAddDoc, setPageGaps } from './premium-shell.js';
13
- import { barHtml, onBar, closeMenu } from './premium-acts.js';
14
- import { openWorkItem, recordPress } from './premium-vw-item.js';
15
- import { openTicket } from './premium-vw-jira.js';
16
- import { mountNav } from './cozy-nav.js';
17
- import { headModel, headHtml as cardHtml } from './premium-initiative-head.js';
18
-
19
- let M = null; // the model
20
- let taskView = 'list', taskPage = 0;
21
- const PAGE = 10, COL = 6; // rows in a page of the List and the Timeline; cards in a By stage column before Show more
22
- const colMore = new Set();
23
- const DAY = 86400000;
24
- let docFilter = 'all', docQuery = '';
25
- let readTimer = null;
26
- const docSheet = mountDocSheet({ ws: () => M.board.ws, scope: () => M.docs.scope, rows: () => M.docs.rows, reload: () => load(), noteKey: (d) => 'doc:' + M.id + ':' + d.key, sub: () => M.title, again: false });
27
- wireRail('init');
28
- mountNav('home');
29
- /* the header card's own state: folded or open, and the done items shown or summed (kept for the viewer only, in this browser) */
30
- const czStore = { get: (k) => { try { return localStorage.getItem(k); } catch { return null; } }, set: (k, v) => { try { localStorage.setItem(k, v); } catch { /* private window */ } } };
31
- let czFold = czStore.get('pmos.czi.fold') === '1', czDone = false;
32
- const ICO = (p) => `<svg class="i" viewBox="0 0 24 24">${p}</svg>`;
33
- const DOCI = '<path d="M6 3h9l4 4v14H6z"/><path d="M14 3v5h5M9 13h6M9 17h4"/>';
34
- const SPARK = '<path d="M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z"/>';
35
- const STATE_ICO = { Linked: '<path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/>', Live: '<path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>', 'Up to date': '<path d="M5 12.5l4.5 4.5L19 7.5"/>', Draft: '<path d="M4 20l4-1 11-11-3-3L5 16z"/>', 'Not started': '<circle cx="12" cy="12" r="9"/><path d="M12 8v5M12 16.5v.5"/>', Stale: '<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>', Due: '<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>' };
36
- const TKI = { jira: '<rect x="4" y="5" width="16" height="14" rx="3"/><path d="m8.5 12 2.5 2.5 4.5-5"/>', task: '<path d="M6 4v16M6 5h11l-2.5 4L17 13H6"/>', req: '<path d="M6 3h9l4 4v14H6z"/><path d="M9 12h6M9 16h4"/>' };
37
- const TONE = { Done: 'ok', 'In progress': 'wip', 'In review': 'wip', 'To do': 'mut' };
38
-
39
- const params = new URLSearchParams(location.search);
40
- const ID = params.get('id') || '';
41
- const query = () => ['id=' + encodeURIComponent(ID), params.get('ws') ? 'ws=' + encodeURIComponent(params.get('ws')) : '', params.get('board') ? 'board=' + encodeURIComponent(params.get('board')) : ''].filter(Boolean).join('&');
42
- const when = (iso) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || '')); if (!m) return ''; return +m[3] + ' ' + ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][+m[2] - 1]; };
43
-
44
- /* ── overview, header, checks ────────────────────────────────────────────────────────────────────────────── */
45
- function headHtml() {
46
- const h = M.head;
47
- return `<div class="ihead">${h.statusLabel ? `<span class="chp ${h.tone}"><i></i>${esc(h.statusLabel)}</span>` : ''}<span class="ihm">${esc(h.meta.join(' · '))}${h.stageNote ? ` · stage ${esc(h.stageNote)}` : ''}</span></div>`;
48
- }
49
- /** The header card's box (I1): drawn from the model, redrawn on a fold or a load. */
50
- function drawCard() { $('#czBox').innerHTML = cardHtml(headModel(M, M.asOf ? Date.parse(M.asOf) || Date.now() : Date.now()), { folded: czFold, doneOpen: czDone, title: M.crumbTitle || M.title }); }
51
- $('#czHead').addEventListener('click', (e) => {
52
- if (!M) return;
53
- if (e.target.closest('[data-czfold]')) { czFold = !czFold; czStore.set('pmos.czi.fold', czFold ? '1' : '0'); drawCard(); const f = $('#czBox [data-czfold]'); if (f) f.focus(); return; }
54
- if (e.target.closest('[data-czdone]')) { czDone = !czDone; drawCard(); const f = $('#czBox [data-czdone]'); if (f) f.focus(); return; }
55
- if (e.target.closest('[data-czcta]')) {
56
- const h = headModel(M);
57
- // Your turn on a document the agent can draft: the CTA is that draft, as PMOS can help offers it; otherwise the question goes to the read-only agent
58
- const d = h.turn === 'you' && M.help.find((x) => x.kind === 'ask');
59
- openAsk(d ? d.q : h.ask); return;
60
- }
61
- if (e.target.closest('[data-czov]')) openAsk();
62
- });
63
- function overviewHtml() {
64
- const o = M.overview;
65
- let todo;
66
- if (o.missing) todo = `<p class="empty3 plain">${esc(o.why)}</p>`;
67
- else if (o.none) todo = `<div class="todo"><span class="tdw">Nothing is waiting</span><p>${esc(o.why)}</p></div>`;
68
- else todo = `<div class="todo ${o.tone || ''}"><span class="tdw">${esc(o.who)}</span><b>${esc(o.h)}</b>${o.p ? `<p>${esc(o.p)}</p>` : ''}${o.more ? `<small>${esc(o.more)}</small>` : ''}${o.skip ? `<small class="tdk">If you wait: ${esc(o.skip)}</small>` : ''}</div>`;
69
- const help = M.help.length ? `<div class="agr2"><span class="label">PMOS can help</span><div>${M.help.map((h, n) => `<button class="agc" data-help="${n}">${AI}${esc(h.label)}</button>`).join('')}</div><small>You press, PMOS proposes, you decide. Nothing changes until you accept.</small></div>` : '';
70
- const blocked = M.checks.filter((c) => c.state === 'blocked').map((c) => `${c.label} is blocked${c.owed ? ': ' + c.owed : '.'}`);
71
- const notes = blocked.concat(M.health, M.warnings).map((t) => `<p class="note" style="margin:10px 0 0">${esc(t)}</p>`).join('');
72
- const steps = M.allSteps.length ? `<details class="src"><summary>All ${M.allSteps.length} workflow steps</summary><div class="ckl">${M.allSteps.map((c) => `<div class="ckr"><i></i><b>${esc(c.label)}</b><span>${esc(c.stateLabel)}</span><small>${esc(c.note)}</small></div>`).join('')}</div></details>` : '';
73
- return `<section class="card rise ifull" style="--d:3" id="cIniOv" aria-labelledby="hOv"><div class="ch"><span class="ic">${ICO('<path d="M4 6h16M4 12h16M4 18h10"/>')}</span><h2 id="hOv">Overview</h2><small>from the repository</small></div>${M.desc ? `<p class="lede" style="margin:0 0 14px">${esc(M.desc)}</p>` : ''}${todo}${help}${notes}${steps}</section>`;
74
- }
75
- /* the bar's presses (pm/premium-acts.js): the page's context and the initiative as a row */
76
- const actCtx = () => ({ ws: M.board.ws, board: M.board.id, boardName: M.board.name, self: !!M.acts.self, first: M.acts.stages[0] || '', reload: load });
77
- const actRow = () => ({ id: M.id, key: 'bar', title: M.title, acts: M.acts });
78
- $('#iMain').addEventListener('click', (e) => { if (M && M.acts && e.target.closest('#iBar')) onBar(e, actCtx(), actRow()); });
79
- $('#iMain').addEventListener('click', (e) => {
80
- const h = e.target.closest('[data-help]'); if (!h) return;
81
- const a = M.help[+h.dataset.help]; if (!a) return;
82
- if (a.kind === 'draft') { const d = M.docs.rows.find((x) => x.key === a.key); if (d && !h.disabled) { h.disabled = true; draftKey(a.key); } return; }
83
- openAsk(a.q);
84
- });
85
-
86
- /* ── tasks ──────────────────────────────────────────────────────────────────────────────────────────────── */
87
- const taskState = (t) => (t.state ? t.state : 'No result');
88
- const taskKind = (t) => (t.src === 'PRD requirement' ? 'req' : t.src.startsWith('Jira') ? 'jira' : 'task');
89
- const dayOf = (iso) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || '')); return m ? new Date(+m[1], +m[2] - 1, +m[3]) : null; };
90
- const today = () => { const d = new Date(M.asOf || Date.now()); return new Date(d.getFullYear(), d.getMonth(), d.getDate()); };
91
- const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
92
- const over = (t) => t.end && t.state && t.state !== 'Done' && dayOf(t.end) < today();
93
- const dateText = (t) => (t.state === 'Done' ? '' : t.end ? (over(t) ? 'Overdue · ' : 'Due ') + when(t.end) : t.state ? 'No date' : '');
94
- function taskRow(t) {
95
- return `<button class="tkq${over(t) ? ' ov' : ''}" data-task="${esc(t.key)}" aria-haspopup="dialog"><span class="tki ${taskKind(t)}">${ICO(TKI[taskKind(t)])}</span><span class="tkn"><b>${esc(t.title)}</b><small>${esc([t.ref, t.src, t.owner].filter(Boolean).join(' · '))}</small></span><span class="tkw">${esc(dateText(t))}</span><small class="tkp ${TONE[t.state] || 'mut'}">${esc(taskState(t))}</small></button>`;
96
- }
97
- const pages = () => Math.max(1, Math.ceil(M.tasks.rows.length / PAGE));
98
- const pageRows = () => { taskPage = Math.min(taskPage, pages() - 1); return M.tasks.rows.slice(taskPage * PAGE, taskPage * PAGE + PAGE); };
99
- /** Previous and Next under the List and the Timeline; nothing when every task fits one page. */
100
- function pager() {
101
- const n = M.tasks.rows.length; if (n <= PAGE) return '';
102
- const a = taskPage * PAGE + 1, z = Math.min(n, a + PAGE - 1);
103
- return `<nav class="tkpg" aria-label="Task pages"><small>${a}–${z} of ${n}</small><span><button class="dmcta alt" data-tkpg="-1"${taskPage === 0 ? ' disabled' : ''}>Previous</button><small>Page ${taskPage + 1} of ${pages()}</small><button class="dmcta alt" data-tkpg="1"${taskPage >= pages() - 1 ? ' disabled' : ''}>Next</button></span></nav>`;
104
- }
105
- function tasksTimeline() {
106
- const ALL = M.tasks.rows.filter((t) => t.start && t.end), T = pageRows(), D = T.filter((t) => t.start && t.end).sort((a, b) => dayOf(a.start) - dayOf(b.start)), U = T.filter((t) => !(t.start && t.end));
107
- const und = U.length ? `<div class="tkund"><span class="label">No dates set <em>${U.length}</em></span><div>${U.map((t) => `<button class="tkch" data-task="${esc(t.key)}"><b>${esc(t.title)}</b><small class="tkp ${TONE[t.state] || 'mut'}">${esc(taskState(t))}</small></button>`).join('')}</div></div>` : '';
108
- if (!D.length) return `<p class="empty3" style="color:var(--ink-2);margin:6px 0 10px">${U.length ? 'No task has a start and a due date, so there is nothing to draw.' : 'No tasks yet.'} The repository records no dates for PRD requirements.</p>${und}`;
109
- const T0 = +today(), lo = Math.min(...ALL.map((t) => +dayOf(t.start)), T0 - 5 * DAY), hi = Math.max(...ALL.map((t) => +dayOf(t.end)), T0 + 14 * DAY);
110
- const a = new Date(lo), from = new Date(a.getFullYear(), a.getMonth(), 1), z = new Date(hi), to = new Date(z.getFullYear(), z.getMonth() + 1, 0), span = to - from, X = (d) => ((d - from) / span * 100);
111
- const ticks = []; for (let d = new Date(from); d <= to; d = new Date(d.getFullYear(), d.getMonth() + 1, 1)) ticks.push(d);
112
- const tx = X(T0);
113
- const head = `<div class="tlh k" aria-hidden="true"><span></span><div class="tlax">${ticks.map((d) => `<i style="left:${X(d).toFixed(2)}%">${MON[d.getMonth()]}${d.getMonth() === 0 ? ' ' + d.getFullYear() : ''}</i>`).join('')}<b style="left:${tx.toFixed(2)}%">Today</b></div><span></span></div>`;
114
- const grid = `<div class="tlgrid k" aria-hidden="true"><span></span><div class="tlplot">${ticks.map((d) => `<u style="left:${X(d).toFixed(2)}%"></u>`).join('')}<u class="td" style="left:${tx.toFixed(2)}%"></u></div><span></span></div>`;
115
- return head + `<div class="tll">${grid}${D.map((t) => {
116
- const l = X(dayOf(t.start)), w = Math.max(0.9, X(dayOf(t.end)) - X(dayOf(t.start))), el = t.state === 'Done' ? 100 : Math.max(0, Math.min(100, (T0 - dayOf(t.start)) / Math.max(1, dayOf(t.end) - dayOf(t.start)) * 100));
117
- const tip = `${t.title} · ${when(t.start)} to ${when(t.end)} · ${taskState(t).toLowerCase()}`;
118
- return `<button class="tkt${over(t) ? ' ov' : ''}${t.state === 'Done' ? ' dn' : ''}" data-task="${esc(t.key)}"><span class="tlt"><b>${esc(t.title)}</b><small>${esc([t.ref, t.src, t.owner].filter(Boolean).join(' · '))}</small></span><span class="tkbar" role="img" aria-label="${esc(tip)}"><span class="tkb" data-tip="${esc(tip)}" style="--l:${l.toFixed(2)}%;--w:${w.toFixed(2)}%"><i style="width:${el.toFixed(1)}%"></i></span></span><span class="tkr2"><small class="tkp ${TONE[t.state] || 'mut'}">${esc(taskState(t))}</small><small>${esc(dateText(t))}</small></span></button>`;
119
- }).join('')}</div><div class="wleg gleg"><span><i class="lgs"></i>Time passed</span><span><i class="lgr"></i>Time to the due date</span><span><i class="lgo"></i>Overdue</span></div>` + und;
120
- }
121
- function tasksBody() {
122
- const T = M.tasks;
123
- if (!T.rows.length) return `<p class="empty3 plain">${esc(T.note)}</p>`;
124
- if (taskView === 'stage') {
125
- const cols = ['To do', 'In progress', 'On hold', 'Done'].map((s) => [s, T.rows.filter((t) => (t.state === 'In review' ? 'In progress' : t.state) === s)]);
126
- const none = T.rows.filter((t) => !t.state);
127
- const all = cols.concat(none.length ? [['No result recorded', none]] : []);
128
- return `<div class="istg tkkb" style="grid-template-columns:repeat(${all.length},minmax(0,1fr))">${all.map(([s, L]) => `<div class="isc"><p class="label">${esc(s)} <em>${L.length}</em></p>${(colMore.has(s) ? L : L.slice(0, COL)).map((t) => `<button class="icd tkc${over(t) ? ' ov' : ''}" data-task="${esc(t.key)}" aria-haspopup="dialog"><b>${esc(t.title)}</b><small>${esc([t.ref, t.src].filter(Boolean).join(' · '))}</small>${t.state === 'In review' || dateText(t) ? `<span class="tkcm">${t.state === 'In review' ? '<small class="tkp wip">In review</small>' : '<span></span>'}<small>${esc(dateText(t))}</small></span>` : ''}</button>`).join('') || '<p class="mut">None</p>'}${L.length > COL && !colMore.has(s) ? `<button class="dlink" data-tkmore="${esc(s)}">Show ${L.length - COL} more</button>` : ''}</div>`).join('')}</div>`;
129
- }
130
- if (taskView === 'time') return tasksTimeline() + pager();
131
- return `<div class="tkl" role="list">${pageRows().map(taskRow).join('')}</div>` + pager();
132
- }
133
- function tasksHtml() {
134
- const T = M.tasks;
135
- let bar = '';
136
- if (T.bar) bar = `<div class="stb" style="margin:0 0 12px"><span class="sbar2"><i style="flex:${T.bar.done || 0.0001}"></i><i class="g" style="flex:${T.bar.wip || 0.0001}"></i><i class="t" style="flex:${T.bar.todo || 0.0001}"></i></span><small>${T.bar.done} done · ${T.bar.wip} in progress · ${T.bar.todo} to do</small></div>`;
137
- else if (T.progress) bar = `<div class="stb" style="margin:0 0 12px"><span class="sbar2"><i style="flex:${T.progress.done || 0.0001}"></i><i class="t" style="flex:${Math.max(0.0001, T.progress.total - T.progress.done)}"></i></span><small>${esc(T.progress.label || T.progress.done + ' of ' + T.progress.total)}</small></div>`;
138
- const seg = `<div class="seg" id="tkTabs" role="group" aria-label="Task view"><i class="pill"></i><button data-v="list" aria-pressed="${taskView === 'list'}">List</button><button data-v="stage" aria-pressed="${taskView === 'stage'}">By stage</button><button data-v="time" aria-pressed="${taskView === 'time'}">Timeline</button></div>`;
139
- return `<section class="card rise ifull" style="--d:5" id="cIniTk" aria-labelledby="hTk"><div class="ch"><span class="ic">${ICO('<rect x="4" y="4" width="16" height="16" rx="3"/><path d="m8.5 12 2.5 2.5 4.5-5"/>')}</span><h2 id="hTk">Tasks</h2><small>${esc(T.cap)}</small><button class="fold alt tkadd" data-tkadd="1">Add a task</button></div>${bar}${seg}<div id="tkBody">${tasksBody()}</div>${T.note && T.rows.length ? `<p class="note" style="margin-top:12px">${esc(T.note)}</p>` : ''}</section>`;
140
- }
141
- $('#iMain').addEventListener('click', (e) => {
142
- const v = e.target.closest('#tkTabs [data-v]'); if (v) { taskView = v.dataset.v; $('#tkBody').innerHTML = tasksBody(); $$('#tkTabs button').forEach((b) => b.setAttribute('aria-pressed', b.dataset.v === taskView)); pillOf($('#tkTabs')); return; }
143
- const pg = e.target.closest('[data-tkpg]'); if (pg && !pg.disabled) { taskPage = Math.max(0, Math.min(pages() - 1, taskPage + +pg.dataset.tkpg)); $('#tkBody').innerHTML = tasksBody(); $('#cIniTk').scrollIntoView({ block: 'nearest' }); return; }
144
- const mo = e.target.closest('[data-tkmore]'); if (mo) { colMore.add(mo.dataset.tkmore); $('#tkBody').innerHTML = tasksBody(); return; }
145
- if (e.target.closest('[data-tkadd]')) { openAddTask(); return; }
146
- if (e.target.closest('[data-adddoc]')) { openAddDoc({ ws: M.board.ws, scope: M.docs.scope, sub: M.title, onAdded: async () => { await load(); const b = $('[data-adddoc]'); if (b) b.focus(); } }); return; }
147
- const t = e.target.closest('[data-task]'); if (t) { openTask(M.tasks.rows.find((x) => x.key === t.dataset.task)); return; }
148
- const f = e.target.closest('[data-dmf]'); if (f) { docFilter = f.dataset.dmf; drawDocList(); return; }
149
- const d = e.target.closest('[data-draft]'); if (d && !d.disabled) { draft(d); return; }
150
- const all = e.target.closest('[data-draftall]'); if (all && !all.disabled) { draftAll(all); return; }
151
- const o = e.target.closest('[data-doc]'); if (o) { const d = M.docs.rows.find((x) => x.key === o.dataset.doc); if (d && d.path) docSheet.open(d); else openAbout(d); }
152
- });
153
- const STATES = ['To do', 'In progress', 'In review', 'Done'];
154
- function openTask(t) {
155
- if (!t) return;
156
- const rows = [['Type', t.kind || (taskKind(t) === 'req' ? 'PRD requirement' : 'Task')], ['Reference', t.ref], ['Source', t.src], ['Owner', t.owner], ['Starts', t.start ? when(t.start) : ''], ['Due', t.end ? when(t.end) : ''], ['Status', t.state || 'No result recorded']];
157
- const say = t.title + (t.state ? ' is ' + t.state.toLowerCase() + '.' : ' has no result recorded. The repository records none for a PRD requirement.');
158
- const act = t.pmos ? `<div class="tkact"><span class="label">Status</span><div class="seg tkst" role="group" aria-label="Status"><i class="pill"></i>${STATES.map((s) => `<button data-tks="${esc(s)}" aria-pressed="${t.state === s}">${s}</button>`).join('')}</div></div><p class="note" style="margin-top:12px">A PMOS task is kept on the board. Jira tickets are read-only here: Jira owns their status and dates.</p>` : `<p class="xn">${t.src === 'PRD requirement' ? 'Read from the initiative’s PRD. Nothing on this page changes it.' : 'Read from the board. Jira owns its status and dates.'}</p>`;
159
- openDlg({ eye: 'Task · real data', title: t.title, sub: M.title, say, stream: turnA(ptx(say)), noteKey: popKey('task', M.id, t.ref || t.key || t.title), facts: rows, pane: `<article class="paper doc">${kv(rows)}${act}${recordPress('Open the initiative')}</article>`, label: 'Task' });
160
- wireRecord();
161
- if ($('#oMain .tkst')) pillOf($('#oMain .tkst'));
162
- if (taskKind(t) === 'jira' && t.ref) openTicket({ ws: M.board.ws, board: M.board.id, initiative: M.id, ref: t.ref }); // the ticket beside its facts (premium-viewer S5)
163
- $$('#oMain [data-tks]').forEach((b) => { b.onclick = async () => {
164
- if (b.getAttribute('aria-pressed') === 'true') return;
165
- const res = await pmPost('/api/boards/tasks/state', { ws: M.board.ws, board: M.board.id, task: t.uid, state: b.dataset.tks });
166
- if (!res || res.ok !== true) { toast((res && res.error) || 'The status could not be changed.'); return; }
167
- toast('Status changed to ' + b.dataset.tks.toLowerCase() + '.'); closeDlg(); await load();
168
- }; });
169
- }
170
- /** The pane's press that opens this initiative's record, checks, tasks and links as a viewer tab beside the dialog (premium-viewer S7). */
171
- function wireRecord() { const b = $('#oMain [data-vwopen]'); if (b) b.onclick = () => openWorkItem({ kind: 'initiative', id: M.id, title: M.crumbTitle || M.title, ws: M.board.ws, board: M.board.id }); }
172
- function openAddTask() {
173
- const prefs = ['Research plan', 'Release plan', 'UAT', 'Rollback plan', 'Support briefing', 'Legal review'];
174
- const form = `<div class="addf"><p class="note" style="margin:0">Use a task for work that is not a Jira ticket, such as a research plan, a release plan or UAT. It is kept on the board and it is not a Jira ticket.</p>
175
- <div><span class="label">Common tasks</span><div class="chq">${prefs.map((q, n) => `<button type="button" data-pre="${n}">${esc(q)}</button>`).join('')}</div></div>
176
- <label>Title<input id="atT" maxlength="200" placeholder="For example: UAT with five partners"></label>
177
- <div class="two"><label>Owner<input id="atO" maxlength="80" placeholder="Leave empty to use your name"></label><span></span></div>
178
- <div class="two"><label><span>Start <em>optional</em></span><input type="date" id="atF"></label><label><span>Due <em>optional</em></span><input type="date" id="atD"></label></div>
179
- <p class="note" style="margin:0">With no dates the board plans the task from tomorrow, for a week.</p>
180
- <p class="note" id="atM" role="status" style="margin:0;min-height:1.2em"></p><div class="cact"><button class="cta" id="atGo">Add task</button><button class="cta alt" id="atNo">Cancel</button></div></div>`;
181
- openDlg({ eye: 'New task · real data', title: 'Add a task', sub: M.title, say: 'Say what the task is. It is written to the board’s record.', stream: turnA(ptx('Say what the task is and when it is due. It is written to the board’s record, and I change nothing else.')), noteKey: popKey('new-task', M.id), pane: `<article class="paper doc">${form}</article>`, label: 'Task' });
182
- $('#oMain').onclick = async (e) => {
183
- const pre = e.target.closest('[data-pre]'); if (pre) { $('#atT').value = prefs[+pre.dataset.pre]; $('#atT').focus(); return; }
184
- if (e.target.closest('#atNo')) { closeDlg(); return; }
185
- if (!e.target.closest('#atGo')) return;
186
- const title = $('#atT').value.trim(), m = $('#atM'), f = $('#atF').value, z = $('#atD').value;
187
- if (!title) { m.textContent = 'Give the task a title.'; $('#atT').focus(); return; }
188
- if (f && z && z < f) { m.textContent = 'The due date is before the start date.'; return; }
189
- if (f && !z) { m.textContent = 'Add a due date too, or clear the start date.'; return; }
190
- e.target.closest('#atGo').disabled = true;
191
- const res = await pmPost('/api/boards/tasks/add', { ws: M.board.ws, board: M.board.id, initiative: M.id, title, owner: $('#atO').value.trim() || undefined, start: f || undefined, due: z || undefined });
192
- if (!res || res.ok !== true) { $('#atGo').disabled = false; m.textContent = (res && res.error) || 'The task could not be added.'; return; }
193
- toast('Task added to the board.'); closeDlg(); await load();
194
- };
195
- }
196
-
197
- /* ── documents ──────────────────────────────────────────────────────────────────────────────────────────── */
198
- function docRow(d) {
199
- const act = d.act && d.act.kind === 'draft' ? `<button class="dmcta alt" data-draft="${esc(d.key)}"${d.running ? ' disabled' : ''}>${d.running ? '<span class="spin"></span>' : ICO(SPARK)}${esc(d.act.label)}</button>` : d.path ? `<button class="dmcta alt" data-doc="${esc(d.key)}">Read</button>` : '';
200
- const inner = `<span class="dmi c-${esc(d.cat || 'Board')}">${ICO(DOCI)}</span><span class="dmn"><b>${esc(d.title)}</b><small>${esc(d.what)}</small><span class="dmm"><span class="s ${esc(d.st || 'live')}">${ICO(STATE_ICO[d.state] || STATE_ICO['Not started'])}${esc(d.state)}</span>${d.when ? `<span>${ICO('<rect x="3" y="5" width="18" height="16" rx="3"/><path d="M3 10h18M8 3v4M16 3v4"/>')}updated ${esc(d.when)}</span>` : ''}${d.added ? `<span>${ICO('<rect x="3" y="5" width="18" height="16" rx="3"/><path d="M3 10h18M8 3v4M16 3v4"/>')}added ${esc(d.added)}</span>` : ''}${d.by ? `<span>${ICO('<circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/>')}${esc(d.by)}</span>` : ''}</span></span>`;
201
- return `<div class="dmr ${esc(d.st || '')}" role="listitem"><button class="dmo" data-doc="${esc(d.key)}" aria-haspopup="dialog">${inner}</button><span class="dmq">${act}</span></div>`;
202
- }
203
- const matches = (d) => (docFilter === 'all' || (docFilter === 'none' ? d.st === 'missing' : docFilter === 'draft' ? d.st === 'draft' : (d.st === 'ok' || d.st === 'live'))) && (!docQuery.trim() || (d.title + ' ' + d.what).toLowerCase().includes(docQuery.trim().toLowerCase()));
204
- function drawDocList() {
205
- const D = M.docs, L = D.rows.filter(matches), core = L.filter((d) => !d.tech), tech = L.filter((d) => d.tech);
206
- const none = !L.length ? `<div class="dmem"><p>No document matches${docQuery.trim() ? ' “' + esc(docQuery.trim()) + '”' : ''}.</p></div>` : '';
207
- $('#dmList').innerHTML = none || (core.length ? `<div class="dmg two" role="list">${core.map(docRow).join('')}</div>` : '')
208
- + (tech.length ? `<details class="src dmtech"${docQuery.trim() || docFilter !== 'all' ? ' open' : ''}><summary>Technical documents (${D.techCount})<small>for the engineering side. Not counted above.</small></summary><div class="dmg two" role="list">${tech.map(docRow).join('')}</div></details>` : '');
209
- $$('#dmF button').forEach((b) => b.setAttribute('aria-pressed', b.dataset.dmf === docFilter)); pillOf($('#dmF'));
210
- }
211
- function docsHtml() {
212
- const D = M.docs, c = D.counts;
213
- if (!D.rows.length) return `<section class="card rise ifull" style="--d:6" id="cIniDoc" aria-labelledby="hDoc"><div class="ch"><span class="ic">${ICO(DOCI)}</span><h2 id="hDoc">Core documents</h2><button class="fold alt dmadd2" data-adddoc="1" type="button">Add a document</button></div><p class="empty3 plain">${D.missing ? 'The core documents could not be read, so none is shown.' : 'No core documents are on record for this initiative.'}</p></section>`;
214
- const dot = { ok: 'ok', draft: 'warn', missing: 'mut' };
215
- const core = D.rows.filter((d) => !d.tech);
216
- return `<section class="card rise ifull" style="--d:6" id="cIniDoc" aria-labelledby="hDoc"><div class="ch"><span class="ic">${ICO(DOCI)}</span><h2 id="hDoc">Core documents</h2><small>${c.all}</small><button class="fold alt dmadd2" data-adddoc="1" type="button">Add a document</button></div>
217
- <p class="dsum"><span><b>${c.draft}</b> ${c.draft === 1 ? 'draft' : 'drafts'} to review</span><span><b>${c.none}</b> not started</span><span><b>${c.ok}</b> up to date</span>${c.linked ? `<span><b>${c.linked}</b> linked</span>` : ''}${draftable().length > 1 ? `<button class="dlink" data-draftall="1">${ICO(SPARK)}Draft the ${draftable().length} not started</button>` : ''}</p>
218
- <div class="dprog" role="img" aria-label="${c.ok} of ${c.all} up to date">${core.map((d) => `<i class="${dot[d.st] || (d.st === 'live' ? 'ok' : 'mut')}"></i>`).join('')}</div>
219
- <div class="dtool"><div class="seg" id="dmF" role="group" aria-label="Filter documents"><i class="pill"></i>${[['all', 'All', c.all], ['none', 'Not started', c.none], ['draft', 'Draft', c.draft], ['ok', 'Up to date', c.ok]].map(([k, l, n]) => `<button data-dmf="${k}" aria-pressed="${docFilter === k}">${l}<em>${n}</em></button>`).join('')}</div>
220
- <label class="dmsr">${ICO('<circle cx="11" cy="11" r="6.5"/><path d="m20 20-4-4"/>')}<input id="dmQ" type="search" placeholder="Find a document" aria-label="Find a document" value="${esc(docQuery)}"></label></div>
221
- <div id="dmList"></div>
222
- <p class="note" style="margin-top:12px">The core documents of this initiative. Press a row to read it, see its edit log or its health. Draft it starts a read-only agent run that writes a draft for you to read; nothing is sent. Issue it on a draft's sheet marks the draft as issued; nothing is sent. Dropping a document is not built on this page. A document you add is saved on the record; PMOS does not read a linked page.</p></section>`;
223
- }
224
- $('#iMain').addEventListener('input', (e) => { if (e.target.id === 'dmQ') { docQuery = e.target.value; drawDocList(); } });
225
- const draftable = () => M.docs.rows.filter((d) => !d.tech && d.st === 'missing' && d.act && d.act.kind === 'draft' && !d.running);
226
- async function draftKey(key) {
227
- const d = M.docs.rows.find((x) => x.key === key);
228
- const res = await pmPost('/api/core-docs/draft', { ws: M.board.ws, scope: M.docs.scope, key });
229
- if (!res || res.ok !== true) { toast((res && res.error) || 'The draft could not be started.'); await load(); return false; }
230
- toast('The agent is drafting “' + (d ? d.title : key) + '”. It runs in the background and sends nothing.');
231
- await load(); return true;
232
- }
233
- async function draftAll(b) {
234
- b.disabled = true;
235
- const L = draftable(); let n = 0;
236
- for (const d of L) { const res = await pmPost('/api/core-docs/draft', { ws: M.board.ws, scope: M.docs.scope, key: d.key }); if (res && res.ok === true) n++; else { toast((res && res.error) || 'A draft could not be started.'); break; } }
237
- if (n) toast('The agent is drafting ' + n + ' ' + (n === 1 ? 'document' : 'documents') + '. They run in the background and send nothing.');
238
- await load();
239
- }
240
- async function draft(b) {
241
- const key = b.dataset.draft, d = M.docs.rows.find((x) => x.key === key);
242
- b.disabled = true;
243
- const res = await pmPost('/api/core-docs/draft', { ws: M.board.ws, scope: M.docs.scope, key });
244
- if (!res || res.ok !== true) { b.disabled = false; toast((res && res.error) || 'The draft could not be started.'); return; }
245
- toast('The agent is drafting “' + (d ? d.title : key) + '”. It runs in the background and sends nothing.');
246
- await load();
247
- }
248
-
249
- /* ── the initiative's own dialog: the read-only agent about this initiative, with an optional first question ─────────────────────── */
250
- function openAsk(q) {
251
- const r = M.rows[0]; if (!r) return;
252
- openDlg({ eye: 'Initiative · real data', title: r.title, sub: r.sub, say: r.dialog.say, stream: turnA(logHtml({ logTitle: 'Read from the repository', log: ['Read the initiative from the board and its sheet', 'Read its workflow steps from the workflow engine', 'Changed nothing'] })) + turnA(ptx(r.dialog.say)), noteKey: r.key, pane: `<article class="paper doc">${kv(r.dialog.facts)}<p class="xn">The initiative as the board holds it. Ask the agent anything about it; it reads this repository and changes nothing.</p>${recordPress()}</article>`, label: 'Initiative' });
253
- wireRecord();
254
- loadThread(r.key);
255
- if (q) { const i = $('#askIn'); i.value = q; $('#askF').dispatchEvent(new Event('submit', { cancelable: true, bubbles: true })); }
256
- setMode('chat');
257
- }
258
-
259
- /* ── the document sheet: Read, Edit, Proposals, Edit log, Health. ─────────────────────────────────────────────── */
260
- /** A row with no file to read (not started, derived or live): what the document is for, who writes it and what a draft would hold, with Draft it where a draft can run. */
261
- function openAbout(d) {
262
- if (!d) return;
263
- const draftable = d.act && d.act.kind === 'draft' && !d.running;
264
- // popup context slice 4b: a derived document with no file shows the PRD section it comes from, and the first line says so
265
- const fr = d.from && d.from.text ? d.from : null;
266
- const say = d.title + ' is ' + (d.state || 'not started').toLowerCase() + '. ' + (fr ? 'It has no file of its own. The PRD\u2019s \u201c' + fr.heading + '\u201d section covers it, shown on the right.' : d.path ? '' : d.st === 'missing' ? 'There is no file to read yet.' : 'It has no file of its own to read.') + (d.what && !fr ? ' ' + d.what : '');
267
- const rows = [['State', d.state], ['Who writes it', d.by], ['Read by', d.reader], ['How often', d.cadence], ['Updated', d.when], ['Added', d.added], ['From the PRD', fr ? fr.path + ' \u00a7 ' + fr.heading : '']];
268
- const prd = fr ? `<p class="label" style="margin:0 0 8px">From the PRD: ${esc(fr.heading)}</p><div class="dprd">${fr.text.split(/\n{2,}/).map((x) => `<p>${esc(x.replace(/^[-*]\s+/gm, '\u2022 '))}</p>`).join('')}</div><p class="note" style="margin:8px 0 14px">${esc(fr.path)}${fr.cut ? ' \u00b7 cut short; the PRD has the rest' : ''}</p>` : '';
269
- const holds = d.sections && d.sections.length ? `<p class="label" style="margin:16px 0 8px">What a draft will contain</p><ul class="dabt">${d.sections.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>` : '';
270
- const why = d.st === 'missing' ? (draftable ? 'Draft it starts a read-only agent run that writes a draft for you to read. Nothing is sent.' : d.act ? '' : /pmos/i.test(d.by || '') ? 'PMOS drafts this one, but a draft cannot be started from this page yet.' : 'PMOS does not draft this one. ' + (d.by ? d.by + '.' : 'You write it.')) : d.path || fr ? '' : 'There is no file to open yet, so there is nothing to read here.';
271
- const act = draftable ? `<div class="cact"><button class="cta" id="abDraft">${ICO(SPARK)}${esc(d.act.label)}</button></div>` : d.running ? '<p class="note" role="status" style="margin-top:12px">The agent is drafting this now. It runs in the background and sends nothing.</p>' : '';
272
- openDlg({ eye: 'Document · real data', title: d.title, sub: M.title, say, stream: turnA(ptx(say)), noteKey: popKey('doc', M.id, d.key || d.title), facts: rows, pane: `<article class="paper doc">${d.what ? `<p class="lede" style="margin:0 0 12px">${esc(d.what)}</p>` : ''}${prd}${kv(rows)}${holds}${why ? `<p class="note" style="margin-top:12px">${esc(why)}</p>` : ''}${act}</article>`, label: 'Document' });
273
- const b = $('#abDraft'); if (b) b.onclick = async () => { b.disabled = true; closeDlg(); await draftKey(d.key); };
274
- }
275
- $('#dBody').addEventListener('click', (e) => { const lt = e.target.closest('#logT'); if (lt) { const c = $('#alog').classList.toggle('col'); lt.setAttribute('aria-expanded', !c); } });
276
-
277
- /* ── load: the routes derive the initiatives in the background, so the first answers are "reading" ────────── */
278
- let crumbed = false;
279
- function draw() {
280
- if (!crumbed) {
281
- crumbed = true;
282
- $('#crumbHost').innerHTML = crumbHtml({ board: M.board.name || 'Board', boards: M.boards, ini: M.crumbTitle, siblings: M.siblings });
283
- const q = (id) => '?id=' + encodeURIComponent(id) + (M.board.ws ? '&ws=' + encodeURIComponent(M.board.ws) + '&board=' + encodeURIComponent(M.board.id) : '');
284
- wireCrumb({ boards: M.boards, board: M.board.id, siblings: M.siblings, ini: M.id,
285
- goBoard: (ws, id) => location.assign('/premium-board.html' + (ws ? '?ws=' + encodeURIComponent(ws) + '&board=' + encodeURIComponent(id) : '')),
286
- goIni: (id) => location.assign('/premium-initiative.html' + q(id)) });
287
- if (M.rows[0]) chatAbout(M.rows[0].key, M.crumbTitle || M.rows[0].title);
288
- }
289
- $('#iH1').textContent = M.title; document.title = 'PMOS · ' + M.title;
290
- $('#snap').textContent = M.header.text;
291
- setPageGaps(((M.header && M.header.missing) || []).length);
292
- $('#snap').title = 'Every figure on this page comes from a record. A date, owner or progress shows only when one was set.';
293
- const keepQ = $('#dmQ') && document.activeElement === $('#dmQ');
294
- closeMenu();
295
- $('#czKind').innerHTML = headHtml();
296
- drawCard();
297
- $('#iMain').innerHTML = (M.acts ? `<div id="iBar">${barHtml(actCtx(), actRow())}</div>` : '') + `${overviewHtml()}` + tasksHtml() + docsHtml();
298
- if ($('#dmList')) drawDocList();
299
- if (keepQ) { const q = $('#dmQ'); q.focus(); q.setSelectionRange(q.value.length, q.value.length); }
300
- pillOf($('#tkTabs'));
301
- $('#dN').textContent = M.dock.stage || '·'; $('#dLab').textContent = M.dock.label;
302
- $('#dNext').innerHTML = M.dock.next ? `<i></i>Next <b>${esc(M.dock.next)}</b>` : 'Nothing is waiting';
303
- onScroll();
304
- }
305
- async function load() {
306
- let r = null, status = 0;
307
- try { const res = await fetch('/api/initiative-premium?' + query(), { credentials: 'same-origin' }); status = res.status; r = await res.json(); } catch { r = null; }
308
- clearInterval(readTimer);
309
- if (r && r.state === 'reading') {
310
- const t0 = Date.now(), tick = () => { $('#snap').textContent = 'Reading the initiative · ' + Math.round((Date.now() - t0) / 1000) + ' s so far'; };
311
- tick(); readTimer = setInterval(tick, 1000);
312
- setTimeout(load, 3000);
313
- return;
314
- }
315
- if (!r || !r.ok) {
316
- $('#snap').textContent = 'The initiative could not be read';
317
- $('#iMain').innerHTML = `<p class="empty3 plain">${status === 404 ? esc((r && r.error) || 'This initiative is not on a board.') : 'The initiative could not be read, so this page shows nothing rather than guess.' + (r && r.error ? ' The reason: ' + esc(r.error) : status ? ' (the server answered ' + status + ')' : ' The server did not answer.')}</p>`;
318
- if (status !== 404 && status !== 400) setTimeout(load, 15000);
319
- return;
320
- }
321
- M = r.model; M.asOf = r.as_of; draw();
322
- if (M.docs.rows.some((d) => d.running)) setTimeout(load, 5000); // a core-document run is going: ask again until it ends
323
- }
324
- if (!ID) { $('#snap').textContent = 'No initiative named'; $('#iMain').innerHTML = '<p class="empty3 plain">This page needs an initiative. Open one from the Board.</p>'; } else load();
@@ -1,228 +0,0 @@
1
- :root{--fs-1:11px;--fs-2:12px;--fs-3:14px;--fs-4:16px;--fs-5:20px;--fs-6:28px}
2
- .ch.stuck{padding-block:12px;box-shadow:0 10px 24px -16px rgba(20,24,60,.3),inset 0 -1px 0 var(--hair)}
3
- .ch.stuck .ic{transform:scale(.8)}
4
- .ch.stuck small{opacity:0}
5
- .mprog{height:4px;border-radius:8px;background:color-mix(in oklab,var(--ink) 10%,transparent);margin:0 0 6px;overflow:hidden}
6
- .mprog b{display:block;height:100%;width:0;border-radius:8px;background:var(--ok);transition:width .6s var(--spring,ease)}
7
- @media (max-width:700px){
8
- .mprog{margin-top:8px}
9
- }
10
- .cx{display:grid;gap:24px;align-content:start}
11
- .cx .label,.p-work .label{display:block;margin-bottom:8px}
12
- .lk{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-2);font-weight:600;color:var(--ink-2);padding:6px 10px 6px 4px;border-radius:999px}
13
- .lk:hover{color:var(--ink);background:var(--well)}
14
- .lk svg{width:15px;height:15px;transform:rotate(90deg)}
15
- .mt1{background:var(--well);border-radius:18px;padding:14px 16px 12px;display:grid;gap:2px;align-content:start;outline:0}
16
- .mt1 span{font-size:var(--fs-2);color:var(--ink-3)}
17
- .mt1 b{font-size:var(--fs-5);letter-spacing:-.03em;line-height:1.15}
18
- .mt1 em{font-style:normal;font-size:var(--fs-2);color:var(--ink-3)}
19
- .mt1.warn em{color:var(--ember-ink)}
20
- .mt1.bad em{color:var(--bad)}
21
- .mt1.ok em{color:var(--ok)}
22
- .mch{cursor:crosshair}
23
- .mch:focus-visible{box-shadow:0 0 0 2px var(--b3)}
24
- .mch svg{width:100%;height:auto;display:block;margin-top:8px;overflow:visible}
25
- .mch .ar{fill:color-mix(in oklab,var(--ink) 8%,transparent);stroke:none}
26
- .mch .ln2{fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
27
- .mch .tg{stroke:var(--ink-3);stroke-dasharray:3 3;stroke-width:1;vector-effect:non-scaling-stroke}
28
- .mch .cx{stroke:var(--ink-3);stroke-width:1;opacity:0;vector-effect:non-scaling-stroke;transition:opacity .2s}
29
- .mch .dt{fill:var(--ink);transition:cx .15s,cy .15s}
30
- .mch.ok .dt{fill:var(--ok)}
31
- .mch.warn .dt{fill:var(--ember)}
32
- .mch.bad .dt{fill:var(--bad)}
33
- .mch .gp{stroke:var(--ink-3);opacity:.55;stroke-dasharray:2 4;fill:none;stroke-width:1.4}
34
- .calm{display:flex;align-items:center;gap:16px;padding:22px 4px 8px}
35
- .calm[hidden]{display:none}
36
- .calm i{width:44px;height:44px;border-radius:50%;background:var(--solid);color:var(--on-solid);display:grid;place-items:center;flex:none}
37
- .calm i svg{stroke-width:2.6}
38
- .calm b{display:block;font-size:var(--t-title);letter-spacing:-.01em}
39
- .calm small{display:block;color:var(--ink-2);font-size:var(--t-small);margin-top:2px}
40
- .spk{width:120px;height:34px;flex:none;overflow:visible}
41
- .spk path{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
42
- .spk line{stroke:var(--ink-3);stroke-dasharray:3 3;stroke-width:1}
43
- .spk circle{fill:var(--ink)}
44
- .spk.ok circle{fill:var(--ok)}
45
- .spk.warn circle{fill:var(--ember)}
46
- .spk.bad circle{fill:var(--bad)}
47
- .mhint{margin:2px 0 14px;color:var(--ink-2);font-size:var(--fs-2);line-height:1.55;max-width:78ch}
48
- .mhint b{color:var(--ink)}
49
- .mlab{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
50
- .mchip{font-style:normal;font-size:var(--fs-2);font-weight:600;padding:2px 9px;border-radius:999px;background:var(--well);color:var(--ink-2)}
51
- .mchip.ok{background:color-mix(in oklab,var(--ok) 14%,transparent);color:var(--ok)}
52
- .mchip.warn{background:color-mix(in oklab,var(--ember) 18%,transparent);color:var(--ember-ink)}
53
- .mt1.off{box-shadow:inset 0 0 0 1.5px color-mix(in oklab,var(--ember) 55%,transparent)}
54
- .mchg{font-size:var(--fs-2);color:var(--ink-3);margin-top:2px}
55
- .mchg.bad{color:var(--ember-ink)}
56
- .mfoot{display:flex;justify-content:space-between;gap:8px;font:600 var(--fs-2) var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);margin-top:4px}
57
- .mfoot i{font-style:normal}
58
- .mfoot .tgl{text-transform:none;font-family:var(--sans);font-weight:500;letter-spacing:0;color:var(--ink-3)}
59
- .mt1[data-op]{cursor:pointer;transition:transform .25s,box-shadow .25s}
60
- .mt1[data-op]:hover{transform:translateY(-2px)}
61
- #cIni .mprog{margin:0 0 10px}
62
- .ndh{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
63
- .ndh h2{margin:0;font-size:var(--fs-4);font-weight:600;letter-spacing:-.01em}
64
- .ndh p{margin:4px 0 0;color:var(--ink-2);font-size:var(--fs-2)}
65
- .nact{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
66
- .nrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0 4px}
67
- .nrow .seg{margin:0}
68
- .ngrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px}
69
- .ntw{display:grid;gap:6px;align-content:start}
70
- .ntw .mt1{margin:0}
71
- .nbn{margin:0 0 -2px 4px;font-size:var(--fs-2);font-weight:600;color:var(--ink-3)}
72
- .ntf{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:30px;padding-left:2px}
73
- .ntf .lk{font-size:var(--fs-2)}
74
- .nempty{display:grid;gap:10px;justify-items:start;padding:22px;border-radius:18px;background:var(--well)}
75
- .nempty p{margin:0;color:var(--ink-2)}
76
- .ngrp{margin-top:18px}
77
- .ngrp>.label{margin:0 0 6px 4px}
78
- .ncr .spk{width:104px;height:auto;display:block}
79
- .nsrc{display:inline-flex;align-items:center;gap:5px}
80
- .nsch{margin:14px 0 0;color:var(--ink-3);font-size:var(--fs-2)}
81
- .dplist{display:grid;gap:6px}
82
- .dplist button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:12px 14px;border-radius:14px;background:var(--well)}
83
- .dplist button b{font-size:var(--fs-3);font-weight:600}
84
- .dplist button small{color:var(--ink-3);display:block;font-weight:400;font-size:var(--fs-2)}
85
- .dplist button[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--ink)}
86
- .dplist button i{font-style:normal;font-size:var(--fs-2);font-weight:600;color:var(--ink-2)}
87
- @media (max-width:700px){
88
- .ngrid{grid-template-columns:minmax(0,1fr)}
89
- .ncr .spk{width:120px}
90
- }
91
- .ndh+.mprog{margin-top:14px}
92
- .nfd{margin:16px 0 4px;padding:16px 18px;border-radius:18px;background:var(--well)}
93
- .nfd .label{margin:0 0 8px}
94
- .nfd ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
95
- .nfd li{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:10px;align-items:start;padding:8px 0}
96
- .nfd li+li{border-top:1px solid var(--hair)}
97
- .nfdot{width:9px;height:9px;border-radius:50%;margin-top:7px;background:var(--ink-3)}
98
- .nfd li.worse .nfdot,.nfd li.stuck .nfdot,.nfd li.off .nfdot{background:var(--ember)}
99
- .nfd li.closing .nfdot,.nfd li.reached .nfdot{background:var(--ok)}
100
- .nft{font-size:var(--fs-3);line-height:1.5;color:var(--ink)}
101
- @media (max-width:700px){
102
- .nfd li{grid-template-columns:14px minmax(0,1fr)}
103
- }
104
- .nl{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;align-items:start}
105
- .nlc,.nlr{min-width:0}
106
- .nhb{display:flex;align-items:center;gap:8px;margin-left:12px;flex-wrap:nowrap}
107
- .nhb .lk{font-size:var(--fs-2);white-space:nowrap}
108
- .nrep .nhb{margin-left:auto}
109
- .ndt{margin:0;font-size:var(--fs-4);font-weight:600;letter-spacing:-.01em;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
110
- .ngl{margin:24px 0 8px 4px}
111
- .ndg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
112
- .ndc{display:grid;gap:8px;align-content:start;text-align:left;padding:16px 18px;border-radius:18px;background:var(--well);transition:background .25s,transform .3s var(--spring)}
113
- .ndc:hover{background:color-mix(in oklab,var(--ink) 8%,var(--well));transform:translateY(-2px)}
114
- .ndc b{font-size:var(--fs-3);display:flex;align-items:center;gap:8px}
115
- .ndm{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
116
- .ndm small{color:var(--ink-3);font-size:var(--fs-2)}
117
- .nrep .mhint{margin-bottom:10px}
118
- @media (max-width:999px){
119
- .nl{grid-template-columns:minmax(0,1fr)}
120
- }
121
- @media (max-width:700px){
122
- .ndg{grid-template-columns:minmax(0,1fr)}
123
- .nhb{flex:1 0 100%;margin-left:0;flex-wrap:wrap}
124
- .nrep .nhb{margin-left:0}
125
- }
126
- .ndh{margin-top:16px}
127
- .mnote{margin:6px 0 0 4px;font-size:var(--fs-2);color:var(--ink-2)}
128
- .ntf .lk,.nfa .lk,.nhb .lk,.stx .lk,.stlh .lk,.stdone{min-height:44px;padding:0 10px}
129
- .nfd li{display:block;padding:0}
130
- .nfd li+li{border-top:1px solid var(--hair)}
131
- .nfr{display:grid;grid-template-columns:14px minmax(0,1fr) 18px;gap:10px;align-items:start;width:100%;text-align:left;padding:10px 6px;margin:0 -6px;border-radius:14px;min-height:44px;transition:background .2s}
132
- button.nfr:hover,button.nfr:focus-visible{background:color-mix(in oklab,var(--ink) 6%,transparent)}
133
- .ndc{gap:10px}
134
- .ndc b{display:flex;align-items:center;gap:8px;font-size:var(--fs-3)}
135
- .ndu{color:var(--ink-2);font-size:var(--fs-2);line-height:1.4}
136
- .ndsp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
137
- .nsp{display:grid;gap:4px;min-width:0}
138
- .nsp svg{width:100%;height:30px;color:var(--ink-2)}
139
- .nsp.warn svg{color:var(--ember)}
140
- .nsp em{font-style:normal;font-size:var(--fs-2);color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
141
- .ndm{display:flex;align-items:center;justify-content:space-between;gap:8px}
142
- .ndm small{color:var(--ink-3)}
143
- .ntf .lk,.nsch .lk{min-height:44px;display:inline-flex;align-items:center}
144
- .ntf{min-height:44px}
145
- /* briefing-premium-reports: a saved dashboard's bar and edit dialog, the report Ask box and the report dialogs */
146
- .pdbar{margin:12px 0 4px}
147
- .pdbar .pdp{flex:1 1 240px;margin:0;color:var(--ink-2)}
148
- .pdbar .dmcta,.nask .dmcta{min-height:44px}
149
- .pdck:empty{display:none}
150
- .pdck{margin:10px 0 0;color:var(--ember)}
151
- .pdlist{display:grid;gap:6px}
152
- .pdrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 14px;border-radius:14px;background:var(--well)}
153
- .pdrow>span:first-child{min-width:0;display:grid;gap:2px}
154
- .pdrow b{font-size:var(--fs-3);font-weight:600;overflow-wrap:anywhere}
155
- .pdrow small{color:var(--ink-3);font-size:var(--fs-2)}
156
- .pdmv{display:flex;gap:4px;flex:none}
157
- .pdmv .round{width:44px;height:44px;color:var(--ink-2)}
158
- .pdmv .round:disabled{opacity:.35}
159
- .addf label.pdchk{display:flex;align-items:center;gap:10px;min-height:44px;font-size:var(--fs-3);font-weight:500;color:var(--ink)}
160
- .addf .pdchk input{width:22px;height:22px;flex:none;accent-color:var(--ember)}
161
- .nask-n{margin:6px 0 0 4px;font-size:var(--fs-2)}
162
- .pdev{margin:0 0 12px;padding-left:18px;display:grid;gap:4px}
163
- .pdev small{color:var(--ink-3)}
164
- .dplist button[role="switch"]{min-height:44px;width:100%}
165
- /* insights-one-list: the insight first, the pinned dashboard on top, one paged list of dashboards and reports */
166
- .ins-hero{margin-top:28px;display:grid;gap:10px;max-width:72ch}
167
- .ins-hero .brief.ihead{margin:0;max-width:none}
168
- .ieye{display:flex;align-items:center;gap:6px;margin:0;font:600 var(--fs-1) var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ember-ink)}
169
- .ieye svg.i{width:14px;height:14px}
170
- .ins-hero.calm .ieye{color:var(--ink-3)}
171
- .ins-hero .ihead{margin:0;font-size:var(--fs-6);line-height:1.15;font-weight:600;letter-spacing:-.03em;color:var(--ink);text-wrap:balance}
172
- .iwhy{margin:0;font-size:var(--fs-4);line-height:1.5;color:var(--ink-2)}
173
- .iwhy:empty,.imore:empty,.iact:empty,.inote:empty{display:none}
174
- .imore{list-style:none;margin:0;padding:0;display:grid;gap:2px}
175
- .imr{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:8px 10px;margin:0 -10px;border-radius:14px;text-align:left;font-size:var(--fs-3);color:var(--ink-2)}
176
- .imr:hover,.imr:focus-visible{background:color-mix(in oklab,var(--ink) 6%,transparent);color:var(--ink)}
177
- .imr svg.i{width:16px;height:16px;flex:none}
178
- .iact{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
179
- .iact .dmcta{min-height:44px}
180
- .inote{margin:0}
181
- @media (max-width:700px){.ihead{font-size:var(--fs-5)}}
182
- .ptag{font:600 var(--fs-1) var(--mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);border:1px solid var(--hair);border-radius:6px;padding:2px 7px}
183
- .ptag.on{color:var(--on-solid);background:var(--solid);border-color:transparent}
184
- .ptag:empty{display:none}
185
- .pdcard .ch small{margin-left:auto}
186
- .pdbar .dmcta svg.i{width:16px;height:16px;margin-right:4px}
187
- .nfd .nft b{font-weight:600}
188
- .nfd li.stall .nfdot,.nfd li.miss .nfdot{background:var(--ember)}
189
- .nfd li.course .nfdot{background:var(--ok)}
190
- .newm{position:relative}
191
- .lmenu{position:absolute;top:50px;left:0;z-index:5;display:grid;min-width:180px;padding:6px;border-radius:16px;background:var(--card-solid,var(--card));border:1px solid var(--hair);box-shadow:var(--card-shadow)}
192
- .lmenu button{min-height:44px;padding:0 12px;border-radius:10px;text-align:left;font-weight:600}
193
- .lmenu button:hover,.lmenu button:focus-visible{background:var(--well)}
194
- #cRep .mhint{margin:10px 0 0 4px}
195
- #listRows{margin-top:10px}
196
- .dmi.c-Dash{background:color-mix(in oklab,var(--ember) 16%,transparent);color:var(--ember-ink)}
197
- .nil{display:flex;gap:6px;align-items:flex-start;font-size:var(--fs-3);line-height:1.45;color:var(--ink)}
198
- .nil svg.i{width:14px;height:14px;margin-top:3px;flex:none;color:var(--ember-ink)}
199
- .nil.q span{color:var(--ink-2)}
200
- .dmm .t{text-transform:uppercase;letter-spacing:.06em;font-size:var(--fs-1)}
201
- .npin{width:44px;height:44px;margin-right:6px;border-radius:12px;display:grid;place-items:center;color:var(--ink-3);border:1px solid transparent}
202
- .npin:hover{border-color:var(--hair);color:var(--ink)}
203
- .npin[aria-pressed="true"]{background:var(--solid);color:var(--on-solid)}
204
- .npin[aria-pressed="true"] svg{fill:currentColor}
205
- .npin svg.i{width:18px;height:18px}
206
- .lpager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px}
207
- .lpager .note{margin:0}
208
- .lpager .pg{display:flex;gap:6px;flex-wrap:wrap}
209
- .lpager .pg button{min-width:44px;height:44px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--hair);font:500 var(--fs-2) var(--mono)}
210
- .lpager .pg button[aria-current="page"]{background:var(--solid);color:var(--on-solid);border-color:transparent}
211
- .lpager .pg button:disabled{opacity:.35;cursor:default}
212
- .lmenu[hidden]{display:none}
213
- #listRows .dmr{grid-template-columns:minmax(0,1fr) auto}
214
- /* calmer first screen (premium-calmer-first-screen): the top card's presses wait under ⋯ and its purpose behind ⓘ; the list's filter is one chip */
215
- [id="cDash"] .ptag{display:none}
216
- [id="cDash"] .ch .infob{margin-left:2px}
217
- .dmw{position:relative;margin-left:auto;flex:0 0 auto}
218
- .ch small:not(:empty)~.dmw{margin-left:12px}
219
- .dmore{width:44px;height:44px;display:inline-grid;place-items:center;background:var(--well)}
220
- .dmore[hidden],.dmenu[hidden]{display:none}
221
- .dmenu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:grid;gap:2px;min-width:220px;padding:6px;border-radius:16px;background:var(--card);box-shadow:var(--card-shadow)}
222
- .dmenu .pdst{margin:4px 10px 6px;font-size:var(--fs-2);color:var(--ink-3)}
223
- .dmenu .dmcta{justify-content:flex-start;width:100%;min-height:44px;background:transparent;color:var(--ink);border:0}
224
- .dmenu .dmcta:hover{background:var(--well)}
225
- #cRep #repAsk{margin-top:18px}
226
- @media (max-width:999px){.ch small~.dmw{margin-left:auto}}
227
- .ieye .infob{margin:-12px -8px -12px 2px;color:var(--ink-3)}
228
- .calm .ieye .infob i{width:20px;height:20px;background:none;color:inherit;display:inline-grid}