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.
- package/package.json +30 -25
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-adddoc-test.js +19 -15
- package/workspace/briefing-premium-board-test.js +82 -50
- package/workspace/briefing-premium-calendar-2-test.js +36 -36
- package/workspace/briefing-premium-calendar-3-test.js +39 -39
- package/workspace/briefing-premium-calendar-test.js +23 -24
- package/workspace/briefing-premium-doc-edit-test.js +8 -10
- package/workspace/briefing-premium-initiative-test.js +38 -16
- package/workspace/briefing-premium-insights-test.js +114 -37
- package/workspace/briefing-premium-metrics-test.js +6 -4
- package/workspace/briefing-premium-products-test.js +10 -7
- package/workspace/briefing-premium-sources-test.js +25 -22
- package/workspace/briefing-premium-test.js +48 -43
- package/workspace/briefing-premium-work-test.js +16 -11
- package/workspace/c3-capture-test.js +0 -17
- package/workspace/changelog.json +29 -0
- package/workspace/ev-everywhere-test.js +210 -0
- package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
- package/workspace/guide/briefing-premium.md +2 -2
- package/workspace/guide/home.md +58 -19
- package/workspace/guide/index.md +1 -1
- package/workspace/guide/layout.md +2 -2
- package/workspace/guide/notes.md +2 -2
- package/workspace/guide/phone-companion.md +1 -1
- package/workspace/lib/board-grill.js +63 -0
- package/workspace/lib/board-premium.js +36 -5
- package/workspace/lib/initiative-layout.js +77 -0
- package/workspace/lib/insights-premium.js +3 -2
- package/workspace/lib/insights-records.js +21 -7
- package/workspace/lib/meeting-points.js +52 -0
- package/workspace/lib/news-for-you.js +88 -0
- package/workspace/lib/notes-series.js +29 -6
- package/workspace/lib/report-confirm.js +48 -0
- package/workspace/lib/route-modules.js +9 -9
- package/workspace/lib/routes-board-docs.js +46 -0
- package/workspace/lib/routes-board-grill.js +90 -0
- package/workspace/lib/routes-home-review.js +108 -0
- package/workspace/lib/routes-initiative-layout.js +57 -0
- package/workspace/lib/routes-insights-premium.js +4 -1
- package/workspace/lib/routes-insights-records.js +8 -4
- package/workspace/lib/routes-meeting-points.js +37 -0
- package/workspace/lib/routes-news.js +57 -0
- package/workspace/lib/routes-notes.js +2 -1
- package/workspace/lib/routes-phone-day.js +18 -9
- package/workspace/lib/routes-report-confirm.js +31 -0
- package/workspace/lib/routes-search.js +38 -0
- package/workspace/lib/routes-slash.js +95 -0
- package/workspace/lib/search-index.js +176 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -2
- package/workspace/premium-board-actions-test.js +86 -50
- package/workspace/premium-briefing-depth-test.js +55 -54
- package/workspace/premium-chat-chart-tab-test.js +4 -2
- package/workspace/premium-chat-goal-view-test.js +1 -1
- package/workspace/premium-chat-report-tab-test.js +16 -2
- package/workspace/premium-chat-term-test.js +0 -10
- package/workspace/premium-core-doc-issue-test.js +15 -13
- package/workspace/premium-menu-rows-test.js +1 -1
- package/workspace/premium-phone-card-test.js +7 -5
- package/workspace/premium-report-read-test.js +55 -18
- package/workspace/premium-vw-backlog-test.js +2 -2
- package/workspace/premium-vw-cal-test.js +50 -35
- package/workspace/premium-vw-doc-test.js +10 -11
- package/workspace/premium-vw-item-test.js +1 -1
- package/workspace/premium-vw-jira-test.js +2 -2
- package/workspace/premium-vw-meet-test.js +37 -40
- package/workspace/premium-vw-notes-test.js +21 -19
- package/workspace/premium-vw-rec-test.js +11 -12
- package/workspace/premium-welcome-test.js +3 -3
- package/workspace/premium-work-depth-test.js +5 -6
- package/workspace/public/capture.html +23 -0
- package/workspace/public/pm/bd-acts.js +303 -225
- package/workspace/public/pm/bd-asks.js +261 -0
- package/workspace/public/pm/bd-pop.js +59 -0
- package/workspace/public/pm/bd-span.js +49 -13
- package/workspace/public/pm/bd-views.js +169 -0
- package/workspace/public/pm/c3-base.js +47 -0
- package/workspace/public/pm/c3-capture.js +1 -1
- package/workspace/public/pm/c3-ini-ui.js +1 -1
- package/workspace/public/pm/c3-sheet.js +1 -1
- package/workspace/public/pm/c3-toast.js +1 -1
- package/workspace/public/pm/console3.css +3 -0
- package/workspace/public/pm/cozy-board.css +301 -0
- package/workspace/public/pm/cozy-ev.css +228 -0
- package/workspace/public/pm/cozy-evmodel.js +106 -0
- package/workspace/public/pm/cozy-evui.js +47 -0
- package/workspace/public/pm/cozy-home.css +20 -5
- package/workspace/public/pm/cozy-insights.css +148 -10
- package/workspace/public/pm/cozy-nav.js +103 -39
- package/workspace/public/pm/cozy-news.js +140 -0
- package/workspace/public/pm/cozy-search.js +203 -0
- package/workspace/public/pm/cozy-settings.js +198 -0
- package/workspace/public/pm/cozy-sources.js +89 -0
- package/workspace/public/pm/cozy-today.css +220 -0
- package/workspace/public/pm/cozy-viewer.js +5 -2
- package/workspace/public/pm/cozy-vw-mtg.css +350 -0
- package/workspace/public/pm/cozy-vw-rp.css +152 -0
- package/workspace/public/pm/cozy.css +9 -0
- package/workspace/public/pm/goal-chat.js +5 -1
- package/workspace/public/pm/home-adddoc.js +5 -5
- package/workspace/public/pm/home-app.js +365 -70
- package/workspace/public/pm/home-around.js +24 -126
- package/workspace/public/pm/home-chat.js +77 -18
- package/workspace/public/pm/home-data.js +9 -7
- package/workspace/public/pm/home-dictate.js +57 -0
- package/workspace/public/pm/home-draft.js +6 -6
- package/workspace/public/pm/home-ini-model.js +190 -0
- package/workspace/public/pm/home-ini.css +171 -0
- package/workspace/public/pm/home-ini.js +466 -0
- package/workspace/public/pm/home-list.js +289 -0
- package/workspace/public/pm/home-more.js +18 -135
- package/workspace/public/pm/home-phone-card.js +13 -8
- package/workspace/public/pm/home-review.js +103 -0
- package/workspace/public/pm/home-task.js +67 -0
- package/workspace/public/pm/home-today.js +148 -0
- package/workspace/public/pm/home-work.js +63 -28
- package/workspace/public/pm/note-dock.js +1 -2
- package/workspace/public/pm/notes-links.js +1 -2
- package/workspace/public/pm/notes-task.js +3 -4
- package/workspace/public/pm/premium-board.js +164 -40
- package/workspace/public/pm/premium-chart-tab.js +4 -5
- package/workspace/public/pm/premium-first.js +5 -7
- package/workspace/public/pm/premium-initiative-head.js +3 -3
- package/workspace/public/pm/premium-insights.js +499 -202
- package/workspace/public/pm/premium-mtg-present.js +138 -0
- package/workspace/public/pm/premium-mtg-replay.js +142 -0
- package/workspace/public/pm/premium-report-read.js +216 -52
- package/workspace/public/pm/premium-report-tab.js +44 -19
- package/workspace/public/pm/premium-shell.js +7 -7
- package/workspace/public/pm/premium-vw-cal.js +150 -60
- package/workspace/public/pm/premium-vw-doc.css +20 -2
- package/workspace/public/pm/premium-vw-doc.js +22 -7
- package/workspace/public/pm/premium-vw-mtg.js +488 -261
- package/workspace/public/pm/premium-vw-notes.js +61 -0
- package/workspace/public/pm/rp-parts.js +269 -0
- package/workspace/public/pm/view-notes.js +2 -2
- package/workspace/public/premium-board.html +4 -3
- package/workspace/public/premium-insights.html +10 -10
- package/workspace/public/premium.html +3 -1
- package/workspace/r/m1.png +0 -0
- package/workspace/r/m2.png +0 -0
- package/workspace/r/m3.png +0 -0
- package/workspace/r/nl.png +0 -0
- package/workspace/replaced-tests.json +435 -0
- package/workspace/run-tests.js +323 -28
- package/workspace/server.js +15 -10
- package/workspace/test-files.json +3 -140
- package/workspace/test-lists/base.json +1 -2
- package/workspace/test-lists/c3-desktop-light-load.json +1 -2
- package/workspace/test-lists/c3-initiative-boards.json +1 -2
- package/workspace/test-lists/c3-meeting-focus.json +2 -12
- package/workspace/test-lists/c3-work-agent.json +1 -2
- package/workspace/test-lists/calendar-tidy-up.json +1 -2
- package/workspace/test-lists/console3-reports.json +1 -2
- package/workspace/test-lists/docs-three-way-sync.json +1 -2
- package/workspace/test-lists/extension-capture.json +5 -0
- package/workspace/test-lists/initiative-layout.json +9 -0
- package/workspace/test-lists/jira-wbs.json +1 -2
- package/workspace/test-lists/legacy-cleanup-a.json +9 -0
- package/workspace/test-lists/meeting-material.json +1 -2
- package/workspace/test-lists/meeting-notes.json +2 -36
- package/workspace/test-lists/meeting-replay.json +1 -2
- package/workspace/test-lists/mm-capture.json +2 -12
- package/workspace/test-lists/my-work.json +2 -10
- package/workspace/test-lists/onboarding-firstrun.json +2 -12
- package/workspace/test-lists/people-directory.json +1 -2
- package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
- package/workspace/test-lists/premium-uncovered-reports.json +9 -0
- package/workspace/test-lists/run2-a.json +1 -2
- package/workspace/test-lists/run2-d.json +2 -19
- package/workspace/test-lists/run3-b.json +1 -2
- package/workspace/test-lists/run3-c.json +2 -12
- package/workspace/test-lists/run4-b.json +1 -2
- package/workspace/test-lists/run4-d.json +1 -5
- package/workspace/test-lists/run5-c.json +1 -11
- package/workspace/test-lists/run6.json +1 -5
- package/workspace/test-lists/uf-everywhere.json +15 -0
- package/workspace/test-lists/uf-home.json +9 -0
- package/workspace/test-lists/uncovered-board.json +9 -0
- package/workspace/test-lists/workspace-launch-flags.json +2 -12
- package/workspace/test-lists/workspace-profile-detection.json +2 -10
- package/workspace/test-timings.json +242 -123
- package/workspace/c3-briefing-test.js +0 -136
- package/workspace/c3-core-docs-test.js +0 -170
- package/workspace/c3-driver-fixture.js +0 -64
- package/workspace/c3-driver-test.js +0 -169
- package/workspace/c3-foundation-test.js +0 -163
- package/workspace/c3-ib-items-test.js +0 -114
- package/workspace/c3-ib-more-test.js +0 -146
- package/workspace/c3-ib-triage-backlog-test.js +0 -128
- package/workspace/c3-ini-harness.js +0 -66
- package/workspace/c3-ini-life-test.js +0 -167
- package/workspace/c3-initiatives-test.js +0 -186
- package/workspace/c3-light-load-test.js +0 -112
- package/workspace/c3-one-home-test.js +0 -149
- package/workspace/c3-phone-test.js +0 -289
- package/workspace/c3-quiet-test.js +0 -157
- package/workspace/c3-report-design-real-test.js +0 -264
- package/workspace/c3-report-design-test.js +0 -442
- package/workspace/c3-report-setup-test.js +0 -192
- package/workspace/c3-report-structure-real-test.js +0 -248
- package/workspace/c3-report-structure-test.js +0 -397
- package/workspace/c3-reports-test.js +0 -288
- package/workspace/c3-scan-test.js +0 -517
- package/workspace/c3-sessions-panel-test.js +0 -365
- package/workspace/c3-settings-test.js +0 -204
- package/workspace/c3-updates-test.js +0 -131
- package/workspace/c3-work-test.js +0 -260
- package/workspace/cut-stub.js +0 -40
- package/workspace/first-paint-audit.js +0 -160
- package/workspace/lib/c3-full-console.js +0 -15
- package/workspace/lib/engine/derived/trust.js +0 -3
- package/workspace/lib/engine/plan-forecast.js +0 -342
- package/workspace/lib/engine/report-families.js +0 -175
- package/workspace/lib/engine/truth-table.js +0 -57
- package/workspace/lib/routes-c3-init.js +0 -54
- package/workspace/lib/routes-c3-life.js +0 -120
- package/workspace/lib/routes-c3-timeline.js +0 -192
- package/workspace/lib/routes-forecast.js +0 -86
- package/workspace/lib/routes-releases.js +0 -130
- package/workspace/lib/routes-report-facts.js +0 -85
- package/workspace/lib/routes-report-families.js +0 -33
- package/workspace/lib/routes-signals.js +0 -51
- package/workspace/lib/routes-timeline.js +0 -197
- package/workspace/public/c3.html +0 -35
- package/workspace/public/index.html +0 -156
- package/workspace/public/pm/app.js +0 -831
- package/workspace/public/pm/bd-board.js +0 -159
- package/workspace/public/pm/bd-drag.js +0 -59
- package/workspace/public/pm/bd-model.js +0 -152
- package/workspace/public/pm/bd-timeline.js +0 -233
- package/workspace/public/pm/bd-tree.js +0 -244
- package/workspace/public/pm/board-copy.js +0 -59
- package/workspace/public/pm/board-read.js +0 -38
- package/workspace/public/pm/branches-sheet.js +0 -56
- package/workspace/public/pm/breakdown-api.js +0 -58
- package/workspace/public/pm/breakdown-copy.js +0 -138
- package/workspace/public/pm/briefing-deck.js +0 -441
- package/workspace/public/pm/briefing-model.js +0 -251
- package/workspace/public/pm/c3-ambient.js +0 -100
- package/workspace/public/pm/c3-audience-link.js +0 -21
- package/workspace/public/pm/c3-audience.js +0 -46
- package/workspace/public/pm/c3-boot.js +0 -13
- package/workspace/public/pm/c3-breakdown.js +0 -240
- package/workspace/public/pm/c3-brief-data.js +0 -11
- package/workspace/public/pm/c3-brief-mentions.js +0 -137
- package/workspace/public/pm/c3-brief-needs.js +0 -288
- package/workspace/public/pm/c3-brief-pulse.js +0 -112
- package/workspace/public/pm/c3-brief-summary.js +0 -139
- package/workspace/public/pm/c3-brief-today.js +0 -79
- package/workspace/public/pm/c3-brief.js +0 -279
- package/workspace/public/pm/c3-cal-strategy.js +0 -529
- package/workspace/public/pm/c3-calendar.js +0 -965
- package/workspace/public/pm/c3-calpop.js +0 -111
- package/workspace/public/pm/c3-case.js +0 -196
- package/workspace/public/pm/c3-core-docs.css +0 -18
- package/workspace/public/pm/c3-core-docs.js +0 -236
- package/workspace/public/pm/c3-daypart.js +0 -176
- package/workspace/public/pm/c3-demo-boards.js +0 -764
- package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
- package/workspace/public/pm/c3-demo-brief-page.js +0 -70
- package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
- package/workspace/public/pm/c3-demo-cal2.js +0 -66
- package/workspace/public/pm/c3-demo-cal3.js +0 -173
- package/workspace/public/pm/c3-demo-cal4.js +0 -169
- package/workspace/public/pm/c3-demo-cal5.js +0 -52
- package/workspace/public/pm/c3-demo-coredocs.js +0 -221
- package/workspace/public/pm/c3-demo-data.js +0 -552
- package/workspace/public/pm/c3-demo-focus.js +0 -181
- package/workspace/public/pm/c3-demo-init.js +0 -430
- package/workspace/public/pm/c3-demo-life.js +0 -77
- package/workspace/public/pm/c3-demo-material.js +0 -58
- package/workspace/public/pm/c3-demo-misc2.js +0 -34
- package/workspace/public/pm/c3-demo-phone.js +0 -48
- package/workspace/public/pm/c3-demo-plan2.js +0 -30
- package/workspace/public/pm/c3-demo-rd.js +0 -432
- package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
- package/workspace/public/pm/c3-demo-rep2.js +0 -130
- package/workspace/public/pm/c3-demo-rep3.js +0 -138
- package/workspace/public/pm/c3-demo-rs.js +0 -287
- package/workspace/public/pm/c3-demo-term.js +0 -153
- package/workspace/public/pm/c3-demo-time.js +0 -49
- package/workspace/public/pm/c3-demo-work-ix.js +0 -32
- package/workspace/public/pm/c3-demo.js +0 -131
- package/workspace/public/pm/c3-design-studio.js +0 -369
- package/workspace/public/pm/c3-doc-formats.js +0 -153
- package/workspace/public/pm/c3-doc-sheet.js +0 -1230
- package/workspace/public/pm/c3-dock.js +0 -206
- package/workspace/public/pm/c3-docs.js +0 -291
- package/workspace/public/pm/c3-driver-work.js +0 -110
- package/workspace/public/pm/c3-driver.css +0 -18
- package/workspace/public/pm/c3-driver.js +0 -298
- package/workspace/public/pm/c3-focus.css +0 -304
- package/workspace/public/pm/c3-focus.js +0 -983
- package/workspace/public/pm/c3-ib-docs.js +0 -92
- package/workspace/public/pm/c3-ib-initiatives.js +0 -201
- package/workspace/public/pm/c3-ib-items.js +0 -210
- package/workspace/public/pm/c3-ib-releases.js +0 -48
- package/workspace/public/pm/c3-ib-sprints.js +0 -201
- package/workspace/public/pm/c3-ib-triage.js +0 -177
- package/workspace/public/pm/c3-ii-tabs.js +0 -252
- package/workspace/public/pm/c3-ini-life.css +0 -34
- package/workspace/public/pm/c3-ini-life.js +0 -379
- package/workspace/public/pm/c3-ini-records.js +0 -197
- package/workspace/public/pm/c3-ini-timeline.js +0 -278
- package/workspace/public/pm/c3-ini-work.js +0 -139
- package/workspace/public/pm/c3-init-extras.js +0 -170
- package/workspace/public/pm/c3-initiatives.js +0 -852
- package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
- package/workspace/public/pm/c3-look.js +0 -27
- package/workspace/public/pm/c3-material.css +0 -22
- package/workspace/public/pm/c3-material.js +0 -321
- package/workspace/public/pm/c3-md.js +0 -3
- package/workspace/public/pm/c3-misc-panels.js +0 -89
- package/workspace/public/pm/c3-new-session.js +0 -110
- package/workspace/public/pm/c3-notes.js +0 -751
- package/workspace/public/pm/c3-phone-boot.js +0 -47
- package/workspace/public/pm/c3-phone-detail.js +0 -97
- package/workspace/public/pm/c3-phone-model.js +0 -3
- package/workspace/public/pm/c3-phone.css +0 -66
- package/workspace/public/pm/c3-phone.js +0 -444
- package/workspace/public/pm/c3-plan-panels.js +0 -163
- package/workspace/public/pm/c3-plan.js +0 -193
- package/workspace/public/pm/c3-quiet.css +0 -113
- package/workspace/public/pm/c3-quiet.js +0 -177
- package/workspace/public/pm/c3-replay.css +0 -133
- package/workspace/public/pm/c3-replay.js +0 -429
- package/workspace/public/pm/c3-report-deck.css +0 -163
- package/workspace/public/pm/c3-report-deck.js +0 -598
- package/workspace/public/pm/c3-report-frame.css +0 -20
- package/workspace/public/pm/c3-report-print.css +0 -20
- package/workspace/public/pm/c3-report-setup.css +0 -67
- package/workspace/public/pm/c3-report-setup.js +0 -298
- package/workspace/public/pm/c3-report-store.js +0 -244
- package/workspace/public/pm/c3-report-structure.css +0 -44
- package/workspace/public/pm/c3-report-structure.js +0 -473
- package/workspace/public/pm/c3-reports.css +0 -68
- package/workspace/public/pm/c3-reports.js +0 -377
- package/workspace/public/pm/c3-roadmap.js +0 -249
- package/workspace/public/pm/c3-scan-api.js +0 -167
- package/workspace/public/pm/c3-scan-next.js +0 -248
- package/workspace/public/pm/c3-scan-setup.js +0 -313
- package/workspace/public/pm/c3-scan-words.js +0 -41
- package/workspace/public/pm/c3-scan.css +0 -74
- package/workspace/public/pm/c3-scan.js +0 -93
- package/workspace/public/pm/c3-session-chat.js +0 -103
- package/workspace/public/pm/c3-session-conv.js +0 -165
- package/workspace/public/pm/c3-session-term.js +0 -216
- package/workspace/public/pm/c3-settings.css +0 -85
- package/workspace/public/pm/c3-settings.js +0 -1045
- package/workspace/public/pm/c3-shell.js +0 -628
- package/workspace/public/pm/c3-signals.js +0 -196
- package/workspace/public/pm/c3-strategy-panels.js +0 -45
- package/workspace/public/pm/c3-swipe.js +0 -230
- package/workspace/public/pm/c3-terminal-data.js +0 -48
- package/workspace/public/pm/c3-terminal-edge.js +0 -91
- package/workspace/public/pm/c3-terminal-icons.js +0 -40
- package/workspace/public/pm/c3-terminal-results.js +0 -141
- package/workspace/public/pm/c3-terminal.js +0 -52
- package/workspace/public/pm/c3-tickets.js +0 -163
- package/workspace/public/pm/c3-timeline.js +0 -201
- package/workspace/public/pm/calendar-views.js +0 -1049
- package/workspace/public/pm/console3-lift.md +0 -220
- package/workspace/public/pm/cozy-home.js +0 -172
- package/workspace/public/pm/cozy-initiative.css +0 -138
- package/workspace/public/pm/cycle-review.js +0 -125
- package/workspace/public/pm/data.js +0 -1577
- package/workspace/public/pm/dest-board.js +0 -444
- package/workspace/public/pm/dest-docs.js +0 -530
- package/workspace/public/pm/dest-initiatives.js +0 -162
- package/workspace/public/pm/dest-mywork.js +0 -307
- package/workspace/public/pm/dest-notes.js +0 -537
- package/workspace/public/pm/dest-people.js +0 -449
- package/workspace/public/pm/dest-reports.js +0 -383
- package/workspace/public/pm/dest-settings.js +0 -601
- package/workspace/public/pm/dest-today.js +0 -267
- package/workspace/public/pm/display-word.js +0 -56
- package/workspace/public/pm/doc-editor.js +0 -473
- package/workspace/public/pm/doc-graph.js +0 -272
- package/workspace/public/pm/doc-health-panel.js +0 -110
- package/workspace/public/pm/doc-rail.js +0 -167
- package/workspace/public/pm/doc-remote.js +0 -180
- package/workspace/public/pm/dock-sessions.js +0 -472
- package/workspace/public/pm/dock.js +0 -216
- package/workspace/public/pm/fixture.js +0 -821
- package/workspace/public/pm/flag-picker.js +0 -104
- package/workspace/public/pm/frame-copy.js +0 -278
- package/workspace/public/pm/freshness-line.js +0 -149
- package/workspace/public/pm/handoff-box.js +0 -82
- package/workspace/public/pm/initiative-list.js +0 -235
- package/workspace/public/pm/initiative-sheet.js +0 -331
- package/workspace/public/pm/initiatives-api.js +0 -95
- package/workspace/public/pm/initiatives-copy.js +0 -287
- package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
- package/workspace/public/pm/initiatives-timeline.js +0 -410
- package/workspace/public/pm/initiatives-ui.js +0 -291
- package/workspace/public/pm/item-sheet.js +0 -268
- package/workspace/public/pm/keep-card.js +0 -204
- package/workspace/public/pm/lifecycle-lens-model.js +0 -246
- package/workspace/public/pm/lifecycle-lens.js +0 -276
- package/workspace/public/pm/lifecycle.js +0 -111
- package/workspace/public/pm/mobile.css +0 -366
- package/workspace/public/pm/mobile.js +0 -581
- package/workspace/public/pm/modes-live.js +0 -453
- package/workspace/public/pm/modes.js +0 -147
- package/workspace/public/pm/my-work-card.js +0 -51
- package/workspace/public/pm/my-work-data.js +0 -36
- package/workspace/public/pm/new-initiative-sheet.js +0 -169
- package/workspace/public/pm/next-step-ui.js +0 -190
- package/workspace/public/pm/outbox-panel.js +0 -125
- package/workspace/public/pm/palette-copy.js +0 -55
- package/workspace/public/pm/palette.js +0 -343
- package/workspace/public/pm/panel-breakdown.js +0 -702
- package/workspace/public/pm/panel-cockpit.js +0 -425
- package/workspace/public/pm/panel-detail.js +0 -1513
- package/workspace/public/pm/panel-initiatives.js +0 -929
- package/workspace/public/pm/panel-newsess.js +0 -709
- package/workspace/public/pm/panel-repos.js +0 -741
- package/workspace/public/pm/panel-tabs.js +0 -1506
- package/workspace/public/pm/panel-trees.js +0 -204
- package/workspace/public/pm/people-link.js +0 -106
- package/workspace/public/pm/phone-deck.js +0 -167
- package/workspace/public/pm/pm-work-view.js +0 -1533
- package/workspace/public/pm/portfolio-report.js +0 -61
- package/workspace/public/pm/premium-acts.js +0 -280
- package/workspace/public/pm/premium-brief.js +0 -111
- package/workspace/public/pm/premium-chat.js +0 -22
- package/workspace/public/pm/premium-doc-sheet.js +0 -312
- package/workspace/public/pm/premium-initiative.js +0 -324
- package/workspace/public/pm/premium-insights.css +0 -228
- package/workspace/public/pm/premium-metric-tiles.js +0 -68
- package/workspace/public/pm/premium-report-brief.js +0 -132
- package/workspace/public/pm/premium-vw-rec.js +0 -67
- package/workspace/public/pm/premium-wide.css +0 -30
- package/workspace/public/pm/print.css +0 -44
- package/workspace/public/pm/provider-cards.js +0 -136
- package/workspace/public/pm/registry.js +0 -203
- package/workspace/public/pm/release-card.js +0 -110
- package/workspace/public/pm/releases-view.js +0 -248
- package/workspace/public/pm/report-families-view.js +0 -505
- package/workspace/public/pm/report-slides.js +0 -438
- package/workspace/public/pm/report-tab.js +0 -33
- package/workspace/public/pm/report-view.js +0 -337
- package/workspace/public/pm/reports-copy.js +0 -134
- package/workspace/public/pm/roadmap.js +0 -294
- package/workspace/public/pm/run-card.js +0 -260
- package/workspace/public/pm/sessions-panel.js +0 -219
- package/workspace/public/pm/sheet-jira.js +0 -353
- package/workspace/public/pm/shell-bell.js +0 -163
- package/workspace/public/pm/shell-model.js +0 -83
- package/workspace/public/pm/shell-phone.js +0 -124
- package/workspace/public/pm/shell-readaloud.js +0 -53
- package/workspace/public/pm/shell-recording.js +0 -274
- package/workspace/public/pm/shell-ticker.js +0 -90
- package/workspace/public/pm/sig-watch.js +0 -41
- package/workspace/public/pm/slide-confirm.js +0 -163
- package/workspace/public/pm/slides-copy.js +0 -52
- package/workspace/public/pm/status-banner.js +0 -95
- package/workspace/public/pm/tab-doc.js +0 -859
- package/workspace/public/pm/tab-gone.js +0 -21
- package/workspace/public/pm/tab-term.js +0 -1210
- package/workspace/public/pm/tab-web.js +0 -90
- package/workspace/public/pm/timeline-copy.js +0 -48
- package/workspace/public/pm/timeline-forecast-view.js +0 -164
- package/workspace/public/pm/today-agenda.js +0 -331
- package/workspace/public/pm/today-cards.js +0 -244
- package/workspace/public/pm/today-copy.js +0 -506
- package/workspace/public/pm/today-day.js +0 -1371
- package/workspace/public/pm/today-goals.js +0 -297
- package/workspace/public/pm/today-jobs.js +0 -84
- package/workspace/public/pm/today-mentions.js +0 -50
- package/workspace/public/pm/topbar.js +0 -202
- package/workspace/public/pm/triage-card.js +0 -60
- package/workspace/public/pm/undo-hold.js +0 -103
- package/workspace/public/pm/view-addrepo.js +0 -208
- package/workspace/public/pm/view-files.js +0 -197
- package/workspace/public/pm/view-livenotes.js +0 -399
- package/workspace/public/pm/view-today.js +0 -13
- package/workspace/public/pm/view-validate.js +0 -171
- package/workspace/public/pm/welcome.js +0 -391
- package/workspace/public/pm/work-place.js +0 -68
- package/workspace/public/pm/xlsx-read.js +0 -117
- package/workspace/public/welcome.html +0 -22
- package/workspace/test-lists/browser-suites-green.json +0 -5
- package/workspace/test-lists/c3-core-docs.json +0 -9
- package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
- package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
- package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
- package/workspace/test-lists/c3-ib-items.json +0 -9
- package/workspace/test-lists/c3-ib-more.json +0 -9
- package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
- package/workspace/test-lists/c3-ini-life.json +0 -9
- package/workspace/test-lists/c3-meeting-board.json +0 -5
- package/workspace/test-lists/c3-meeting-card.json +0 -5
- package/workspace/test-lists/c3-notes-place.json +0 -5
- package/workspace/test-lists/c3-notes-series.json +0 -5
- package/workspace/test-lists/calendar-time-page.json +0 -5
- package/workspace/test-lists/calpop.json +0 -4
- package/workspace/test-lists/console3-briefing.json +0 -9
- package/workspace/test-lists/console3-foundation.json +0 -9
- package/workspace/test-lists/console3-work-page.json +0 -9
- package/workspace/test-lists/premium-brief-parity.json +0 -9
- package/workspace/test-lists/report-design-studio-ui.json +0 -5
- package/workspace/test-lists/report-structure-ui.json +0 -11
- package/workspace/test-lists/report-workspace-ui.json +0 -5
- package/workspace/test-lists/run3-a.json +0 -5
- package/workspace/test-lists/run3-d.json +0 -6
- package/workspace/test-lists/run4-c.json +0 -13
- package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
- package/workspace/test-lists/today-mentions-cards.json +0 -5
- package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
/* pm/c3-ii-tabs.js — the six tabs of an initiative page (mockup v5, 34-initiatives.js iniOverview, iniBreakdown, iniDocs, iniTickets,
|
|
2
|
-
* iniTimeline, iniHistory). registerInitiativeTab(id, mount(host, ctx)); ctx.row, ctx.history (newest first), ctx.tools, ctx.toolsByCat
|
|
3
|
-
* and ctx.tool come from the page (c3-initiatives.js).
|
|
4
|
-
* Overview On top, the Agent strip (c3-driver.js: GET /api/driver/strip; not in demo mode). Left: a Summary, then one card per tool of the current stage: the stage records (c3-ini-records.js: problem, RICE, launch
|
|
5
|
-
* checklist, burndown, kill conditions, learnings) and the server's stage tools (ideas, PRD, breakdown, tickets, releases,
|
|
6
|
-
* measurements, …) drawn from what PMOS holds. ctx.tool (a tool pressed in the strip or picked in More tools) is drawn
|
|
7
|
-
* first and scrolled to. Right: Details (portfolio, board, workflow with Edit, stage, owner, anchor, horizon, lane), Progress,
|
|
8
|
-
* and links to the board's Backlog, Board and Timeline filtered to this initiative; then its releases.
|
|
9
|
-
* Breakdown its epics and items, Jira and PMOS mixed (loadItems), and "Add a PMOS task" (POST /api/boards/tasks/add, epic optional).
|
|
10
|
-
* Docs Left: its core documents by category (Discover, Plan, Do, Learn; c3-core-docs.js, GET /api/core-docs level=initiative): the current one
|
|
11
|
-
* lists its rows, a finished or not-yet-reached one folds to one line. Right: what this level is for, the order rules, then "Other documents"
|
|
12
|
-
* (the documents linked to it, GET /api/docs/library, c3-ib-docs.js renderDocs).
|
|
13
|
-
* Tickets its Jira items: the counts by status and the rows. Read-only: status and dates are Jira's. (Build and deliver only.)
|
|
14
|
-
* Timeline epic > item on the HTML timeline, its own bar on top; PMOS bars drag to reschedule, Jira bars are locked.
|
|
15
|
-
* History ctx.history: moves, workflow changes, assignments and the accept, with who, when, why and the order warnings.
|
|
16
|
-
* Every tab has an honest empty state and an error line when its read fails. */
|
|
17
|
-
import { el } from './dom.js';
|
|
18
|
-
import { registerInitiativeTab } from './c3-initiatives.js';
|
|
19
|
-
import { icon, pbtn, lk, chip, tag, st, note, sect, card, list, empty, cols, hbs, hbr, kv, chgl, stageChip, ownerText, statusChip, jiraLabel, plural, trunc, day, dayLong, ago, PORTFOLIO, put } from './c3-ini-ui.js';
|
|
20
|
-
import { wfOf, catOf, kindOf, tplName, toolLabel, toolIcon, loadItems, dropItems, workRow, workTlRows, iniTlRow, rescheduleTask, lockedToast } from './c3-ini-work.js';
|
|
21
|
-
import { recordCards, recordToolsFor, RECORD_META } from './c3-ini-records.js';
|
|
22
|
-
import { loadDocs, renderDocs } from './c3-ib-docs.js';
|
|
23
|
-
import { coreDocs } from './c3-core-docs.js';
|
|
24
|
-
import { timeline, tlInit, tlRange, tlStill } from './c3-ini-timeline.js';
|
|
25
|
-
import { driverStrip } from './c3-driver.js';
|
|
26
|
-
|
|
27
|
-
const errLine = (text) => el('div', { class: 'fold w', role: 'alert', 'data-ini': 'error' }, icon('alert', 'sm'), text);
|
|
28
|
-
const toneOf = (s) => (s === 'late' ? 'bad' : s === 'at risk' ? 'warn' : 'ok');
|
|
29
|
-
|
|
30
|
-
/** Run an async tab and drop its result when the PM has left the tab. */
|
|
31
|
-
function tab(id, build) {
|
|
32
|
-
registerInitiativeTab(id, async (host, ctx) => {
|
|
33
|
-
let dead = false;
|
|
34
|
-
put(host, note('Reading'));
|
|
35
|
-
try {
|
|
36
|
-
const nodes = await build(ctx, () => dead, host);
|
|
37
|
-
if (!dead && nodes) put(host, ...[].concat(nodes).filter(Boolean));
|
|
38
|
-
} catch (e) { if (!dead) put(host, errLine('This view could not be drawn: ' + ((e && e.message) || e) + '.')); }
|
|
39
|
-
return () => { dead = true; };
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
const mine = (ctx, items) => items.filter((w) => w.ini === ctx.row.id);
|
|
43
|
-
/** Why an initiative shows no Jira item yet: no epic linked, or its epics not read yet. */
|
|
44
|
-
const epicsLine = (ctx) => ((ctx.row.epics || []).length
|
|
45
|
-
? 'No Jira item read yet for ' + ctx.row.epics.join(', ') + '. The daily Jira check reads each epic and the issues under it.'
|
|
46
|
-
: 'No Jira epic is linked to ' + ctx.row.id + ' yet. Press Link Jira epics above to choose its epics' + (jiraLabel(ctx.board) ? ' in Jira ' + jiraLabel(ctx.board) : '') + '.');
|
|
47
|
-
|
|
48
|
-
/* ── Overview ── */
|
|
49
|
-
async function toolCard(ctx, t, R, rels) {
|
|
50
|
-
const r = ctx.row; const b = ctx.board;
|
|
51
|
-
const work = mine(ctx, R.items); const its = work.filter((w) => w.kind !== 'Epic'); const epics = work.filter((w) => w.kind === 'Epic');
|
|
52
|
-
const goTab = (k, label) => lk({ onclick: () => ctx.go({ view: 'ini', board: b.id, id: r.id, tab: k }), 'data-ini-goto': k }, icon('next', 'sm'), label);
|
|
53
|
-
const by = (s) => its.filter((w) => w.status === s).length;
|
|
54
|
-
let body;
|
|
55
|
-
switch (t.id) {
|
|
56
|
-
case 'tickets': {
|
|
57
|
-
const tk = its.filter((w) => w.src === 'jira');
|
|
58
|
-
if (!b.build) body = [note(b.name + ' has Build and deliver off, so there is no Jira. Progress comes from PMOS tasks: ' + by('Done') + ' of ' + its.length + ' done.')];
|
|
59
|
-
else if (!tk.length) body = [note(epicsLine(ctx))];
|
|
60
|
-
else {
|
|
61
|
-
const d = tk.filter((w) => w.status === 'Done').length; const p = tk.filter((w) => /progress|review/i.test(w.status)).length; const td = tk.length - d - p;
|
|
62
|
-
body = [hbs([hbr('Done', d, d / tk.length, 'ok'), hbr('In progress', p, p / tk.length, 'acc'), hbr('To do', td, td / tk.length, 'pm')]),
|
|
63
|
-
el('div', { class: 'chips2' }, note(plural(tk.length, 'Jira item') + ' in ' + plural(epics.filter((e) => e.src === 'jira').length, 'epic') + '. Status lives in Jira.'), goTab('tickets', 'See Jira items'))];
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
case 'breakdown':
|
|
68
|
-
body = [note(plural(epics.length, 'epic') + ', ' + plural(its.length, 'item') + ': ' + by('Done') + ' done, ' + (by('In progress') + by('In review')) + ' in progress, ' + its.filter((w) => w.blocked).length + ' blocked.'), el('div', { class: 'chips2' }, goTab('breakdown', 'Open breakdown'))];
|
|
69
|
-
break;
|
|
70
|
-
case 'releases':
|
|
71
|
-
body = [rels.length ? chgl(rels.map((x) => el('li', null, icon('out', 'sm'), el('span', null, (x.name || x.id) + ' · ' + (day(String(x.release_at || x.deploy_at || '').slice(0, 10)) || 'no date')), tag(x.status || 'Planned')))) : note('Not in a release yet.'),
|
|
72
|
-
b.build ? el('div', { class: 'chips2' }, lk({ onclick: () => ctx.openBoard(b.id, 'releases') }, icon('next', 'sm'), b.name + ' Releases')) : null];
|
|
73
|
-
break;
|
|
74
|
-
case 'placement': case 'timeline':
|
|
75
|
-
body = [kv([['Horizon', r.horizon ? r.horizon[0].toUpperCase() + r.horizon.slice(1) : 'Not set'], ['Dates', r.start || r.end ? day(r.start) + ' to ' + day(r.end) : 'No dates yet']]),
|
|
76
|
-
el('div', { class: 'chips2' }, goTab('timeline', 'Open its timeline'), lk({ onclick: () => ctx.openBoard(b.id, 'timeline', { ini: r.id }) }, icon('next', 'sm'), b.name + ' Timeline'))];
|
|
77
|
-
break;
|
|
78
|
-
case 'measurements':
|
|
79
|
-
body = [note('Target: ' + (r.anchor || 'no anchor yet') + '. Measurements show here once it ships and the key result is read.')];
|
|
80
|
-
break;
|
|
81
|
-
case 'evaluation':
|
|
82
|
-
body = [note('Did it move ' + (r.anchor || 'its anchor') + '? The evaluation is written against its done-criteria.'), el('div', { class: 'chips2' }, goTab('docs', 'Open its docs'))];
|
|
83
|
-
break;
|
|
84
|
-
case 'history': {
|
|
85
|
-
const h = (ctx.history || []).slice(0, 3);
|
|
86
|
-
body = [h.length ? chgl(h.map((x) => el('li', null, icon('undo', 'sm'), el('span', null, histWhat(x)), tag(x.at ? ago(String(x.at).slice(0, 10), ctx.today) : '')))) : note('No moves recorded yet.'), el('div', { class: 'chips2' }, goTab('history', 'Open history'))];
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
default: {
|
|
90
|
-
const docs = R.docs.filter((d) => (t.id === 'prd' || t.id === 'brief' ? /spec|prd|brief/i.test(d.cat + ' ' + d.ty) : t.id === 'rubric' ? /eval|rubric/i.test(d.cat + ' ' + d.name) : /res|note|idea|hypo/i.test(d.cat + ' ' + d.name)));
|
|
91
|
-
body = [docs.length ? chgl(docs.slice(0, 4).map((d) => el('li', null, icon('doc', 'sm'), el('span', null, d.name), tag(d.ty)))) : note('Nothing linked yet. ' + ({ ideas: 'Capture ideas once the problem is clear.', hypotheses: 'Say what you believe and how you will know.', notes: 'Keep notes in a document linked to ' + r.id + '.', prd: 'Write the PRD before the build.', rubric: 'Agree the done-criteria with the PRD.', brief: 'A short brief: scope, owner, dates.' }[t.id] || '')),
|
|
92
|
-
el('div', { class: 'chips2' }, goTab('docs', 'Open its docs'))];
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return card({ ic: toolIcon(t.id), title: toolLabel(t), attrs: { 'data-ini-tool-card': t.id, id: 'tool-' + t.id } }, ...body.filter(Boolean));
|
|
96
|
-
}
|
|
97
|
-
function histWhat(h) {
|
|
98
|
-
if (h.kind === 'workflow') return 'Changed the workflow to ' + (h.template ? h.template : 'its own') + (Array.isArray(h.stages) && h.stages.length ? ': ' + h.stages.join(' > ') : '');
|
|
99
|
-
if (h.kind === 'assign') return 'Assigned to board ' + (h.to || '');
|
|
100
|
-
if (h.kind === 'ask-accept') return 'Accepted from an ask into ' + (h.stage || h.to || 'the first stage');
|
|
101
|
-
if (h.from || h.to) return 'Moved from ' + (h.from || 'no stage') + ' to ' + (h.to || 'no stage');
|
|
102
|
-
return String(h.kind || 'Change');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
tab('overview', async (ctx, isDead, host) => {
|
|
106
|
-
const r = ctx.row; const b = ctx.board;
|
|
107
|
-
const wf = wfOf(r, b); const cat = r.cat || catOf(wf, r.stage); const kind = kindOf(r, b);
|
|
108
|
-
const [R0, rel] = await Promise.all([loadItems(ctx), b.build ? ctx.api.get('/api/releases', { board: b.id }) : Promise.resolve(null)]);
|
|
109
|
-
const lib = await loadDocs(ctx, new Set([r.id]));
|
|
110
|
-
if (isDead()) return null;
|
|
111
|
-
const R = { items: R0.ok ? R0.items : [], docs: lib.ok ? lib.docs : [] };
|
|
112
|
-
const rels = rel && rel.ok ? (rel.releases || []).filter((x) => Array.isArray(x.initiative_ids) && x.initiative_ids.includes(r.id)) : [];
|
|
113
|
-
const server = (Array.isArray(ctx.tools) ? ctx.tools : []).map((t) => (typeof t === 'string' ? { id: t } : t)).filter((t) => t && t.id);
|
|
114
|
-
let recIds = recordToolsFor(kind, cat, b.build);
|
|
115
|
-
let srv = server.slice();
|
|
116
|
-
const picked = ctx.tool || '';
|
|
117
|
-
if (picked && RECORD_META[picked] && !recIds.includes(picked)) recIds = [picked, ...recIds];
|
|
118
|
-
if (picked && !RECORD_META[picked] && !srv.some((t) => t.id === picked)) {
|
|
119
|
-
const any = Object.values(ctx.toolsByCat || {}).flat().find((t) => t && t.id === picked);
|
|
120
|
-
srv = [any || { id: picked }, ...srv];
|
|
121
|
-
}
|
|
122
|
-
const recs = await recordCards(ctx, recIds, { boardIds: R0.ok ? R0.initiatives.map((i) => i.id) : [] });
|
|
123
|
-
const srvCards = await Promise.all(srv.map((t) => toolCard(ctx, t, R, rels)));
|
|
124
|
-
if (isDead()) return null;
|
|
125
|
-
const toolsAll = [...recs, ...srvCards];
|
|
126
|
-
if (picked) { const k = toolsAll.findIndex((n) => n.getAttribute('data-ini-tool-card') === picked); if (k > 0) toolsAll.unshift(toolsAll.splice(k, 1)[0]); }
|
|
127
|
-
const work = mine(ctx, R.items); const p = Number(r.progress) || 0;
|
|
128
|
-
const left = [
|
|
129
|
-
sect({ ic: 'notes', title: 'Summary' }, el('p', { class: 'ini-p' }, r.summary || ('Serves ' + (r.anchor || 'no anchor yet') + '. ' + (r.lane ? r.lane[0].toUpperCase() + r.lane.slice(1) + ' lane, ' : '') + tplName(r, b) + ' workflow, now in ' + (r.stage || 'no stage') + ' (' + cat + ').')),
|
|
130
|
-
Array.isArray(r.warnings) && r.warnings.length ? el('div', { class: 'chips2' }, ...r.warnings.map((w) => st('warn', 'alert', w, { 'data-ini-ovwarn': w }))) : null),
|
|
131
|
-
...(toolsAll.length ? toolsAll : [empty('No tools for ' + (r.stage || 'this stage') + '.')]),
|
|
132
|
-
];
|
|
133
|
-
const right = [
|
|
134
|
-
card({ ic: 'init', title: 'Details', attrs: { 'data-ini': 'details' } },
|
|
135
|
-
kv([['Portfolio', PORTFOLIO], ['Board', lk({ onclick: () => ctx.openBoard(b.id, 'initiatives') }, b.name)],
|
|
136
|
-
['Workflow', el('span', { class: 'chips2' }, tplName(r, b), lk({ 'data-ini-wf': r.id, onclick: () => ctx.openWorkflow(r) }, 'Edit'))], ['Stage', stageChip(r.stage, cat)], ['Status', statusChip(r.status)],
|
|
137
|
-
['Owner', ownerText(r.owner)], ['Anchor', r.anchor || 'No anchor'], ['Horizon', r.horizon ? r.horizon[0].toUpperCase() + r.horizon.slice(1) : 'Not set'], ['Lane', r.lane || 'Not set']]),
|
|
138
|
-
hbs([hbr('Progress', Math.round(p * 100) + '%', p, toneOf(r.status))]),
|
|
139
|
-
el('div', { class: 'chips2', 'data-ini': 'board-links' }, ...['backlog', 'board', 'timeline'].map((k) => lk({ 'data-ini-boardlink': k, onclick: () => ctx.openBoard(b.id, k, { ini: r.id }) }, icon('next', 'sm'), b.name + ' ' + k[0].toUpperCase() + k.slice(1) + ', this initiative only')))),
|
|
140
|
-
card({ ic: 'bolt', title: 'Work', sub: b.build ? 'Jira ' + jiraLabel(b) + ' and PMOS' : 'PMOS tasks' },
|
|
141
|
-
note(plural(work.filter((w) => w.kind === 'Epic').length, 'epic') + ', ' + plural(work.filter((w) => w.kind !== 'Epic').length, 'item') + '.'), el('div', { class: 'chips2' }, lk({ onclick: () => ctx.go({ view: 'ini', board: b.id, id: r.id, tab: 'breakdown' }) }, icon('next', 'sm'), 'Open breakdown'))),
|
|
142
|
-
rels.length ? card({ ic: 'out', title: 'Releases', sub: 'live in the Calendar' }, chgl(rels.map((x) => el('li', null, icon('out', 'sm'), el('span', null, (x.name || x.id) + ' · ' + day(String(x.release_at || x.deploy_at || '').slice(0, 10))), tag('Calendar'))))) : null,
|
|
143
|
-
];
|
|
144
|
-
if (picked) requestAnimationFrame(() => { const n = host.querySelector('[data-ini-tool-card="' + CSS.escape(picked) + '"]'); if (n && !isDead()) { if (n.scrollIntoView) n.scrollIntoView({ block: 'nearest' }); n.classList.add('ini-flash'); setTimeout(() => n.classList.remove('ini-flash'), 1400); } });
|
|
145
|
-
return [ctx.demo ? null : driverStrip(ctx, r), cols(left, right)];
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
/* ── Breakdown ── */
|
|
149
|
-
tab('breakdown', async (ctx, isDead, host) => {
|
|
150
|
-
const R = await loadItems(ctx);
|
|
151
|
-
if (isDead()) return null;
|
|
152
|
-
if (!R.ok) return errLine('The work items could not be read: ' + R.error + '.');
|
|
153
|
-
const draw = async (force) => {
|
|
154
|
-
const RR = force ? await loadItems(ctx, true) : R;
|
|
155
|
-
if (isDead()) return;
|
|
156
|
-
put(host, ...body(RR));
|
|
157
|
-
};
|
|
158
|
-
const changed = () => { dropItems(ctx); draw(true); };
|
|
159
|
-
function body(RR) {
|
|
160
|
-
const work = mine(ctx, RR.items); const epics = work.filter((w) => w.kind === 'Epic');
|
|
161
|
-
const inEpic = (w) => w.kind !== 'Epic' && w.epic && epics.some((e) => e.uid === w.epic);
|
|
162
|
-
const ordered = [...epics.flatMap((e) => [e, ...work.filter((w) => w.epic === e.uid)]), ...work.filter((w) => w.kind !== 'Epic' && !inEpic(w))];
|
|
163
|
-
const F = { epic: '', busy: false };
|
|
164
|
-
const input = el('input', { type: 'text', placeholder: 'Add a PMOS task to ' + ctx.row.id, 'aria-label': 'Add a PMOS task', 'data-wk': 'add-title' });
|
|
165
|
-
const msg = el('div', { class: 'fold w', role: 'alert', hidden: '' });
|
|
166
|
-
const add = async () => {
|
|
167
|
-
const title = input.value.trim();
|
|
168
|
-
if (!title) { msg.textContent = 'Write the task first.'; msg.hidden = false; input.focus(); return; }
|
|
169
|
-
if (F.busy) return; F.busy = true;
|
|
170
|
-
const r = await ctx.api.post('/api/boards/tasks/add', { board: ctx.board.id, initiative: ctx.row.id, title, epic: F.epic || undefined });
|
|
171
|
-
F.busy = false;
|
|
172
|
-
if (!r || !r.ok) { msg.textContent = 'The task was not added: ' + ((r && r.error) || 'no answer') + '.'; msg.hidden = false; return; }
|
|
173
|
-
ctx.toast('PMOS task added to ' + ctx.row.id + '. Drag it on the Timeline to set its dates.');
|
|
174
|
-
changed();
|
|
175
|
-
};
|
|
176
|
-
input.addEventListener('keydown', (e) => { if (e.key === 'Enter') { e.preventDefault(); add(); } });
|
|
177
|
-
const its = work.filter((w) => w.kind !== 'Epic');
|
|
178
|
-
return [
|
|
179
|
-
card({ ic: 'plus', title: 'Add a PMOS task', sub: ctx.board.build ? 'Jira items are created in Jira' : 'this board has no Jira', attrs: { 'data-wk': 'add' } },
|
|
180
|
-
el('div', { class: 'form' }, input,
|
|
181
|
-
epics.length ? el('select', { 'aria-label': 'Epic for the task', 'data-wk': 'add-epic', onchange: (e) => { F.epic = e.target.value; } }, el('option', { value: '' }, 'No epic'), ...epics.map((e) => el('option', { value: e.uid }, (e.key ? e.key + ' ' : '') + trunc(e.title, 28)))) : null,
|
|
182
|
-
pbtn('outline', 'Add', 'plus', { 'data-wk': 'add-go', onclick: add })), msg),
|
|
183
|
-
sect({ ic: 'tree', title: 'Epics and items', count: work.length, right: el('span', { class: 'dim mono ini-meta' }, its.filter((w) => w.status === 'Done').length + ' of ' + its.length + ' done') },
|
|
184
|
-
ordered.length ? list(ordered.map((w) => workRow(ctx, w, { all: RR.items, epic: false, sub: inEpic(w), onChanged: changed })), { 'data-ini': 'breakdown' }) : empty('No epics or items yet. Add a PMOS task' + (ctx.board.build ? ', or link Jira ' + (ctx.board.jira || '') + ' epics' : '') + '.', { 'data-ini': 'bd-empty' })),
|
|
185
|
-
];
|
|
186
|
-
}
|
|
187
|
-
return body(R);
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
/* ── Docs ── */
|
|
191
|
-
registerInitiativeTab('docs', async (host, ctx) => {
|
|
192
|
-
let dead = false;
|
|
193
|
-
const other = el('div', { class: 'cd-host', 'data-cd': 'other' });
|
|
194
|
-
const cd = coreDocs({ api: ctx.api, level: 'initiative', board: ctx.board.id, id: ctx.row.id, ws: ctx.ws, today: ctx.today, toast: ctx.toast, scopeLabel: ctx.row.id,
|
|
195
|
-
nav: { tab: (t) => ctx.openBoard(ctx.board.id, t), tool: (t) => ctx.go({ view: 'ini', board: ctx.board.id, id: ctx.row.id, tab: 'overview', tool: t }), reports: () => ctx.showTab('rep') } });
|
|
196
|
-
put(host, cols(cd.left, [cd.right, other]));
|
|
197
|
-
const lib = await loadDocs(ctx, new Set([ctx.row.id]));
|
|
198
|
-
if (dead) return () => {};
|
|
199
|
-
if (!lib.ok) put(other, errLine('The documents could not be read: ' + lib.error + '.'));
|
|
200
|
-
else if (!lib.docs.length) put(other, empty('No other documents are linked to ' + ctx.row.id + ' yet.', { 'data-inb': 'docs-empty' }));
|
|
201
|
-
else { const box = el('div'); renderDocs(box, ctx, lib.docs, [ctx.row.id], new Map([[ctx.row.id, ctx.row.title]]), false, 'Other documents'); put(other, box); }
|
|
202
|
-
return () => { dead = true; cd.dispose(); };
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
/* ── Jira items ── */
|
|
206
|
-
tab('tickets', async (ctx, isDead) => {
|
|
207
|
-
const R = await loadItems(ctx);
|
|
208
|
-
if (isDead()) return null;
|
|
209
|
-
if (!R.ok) return errLine('The Jira items could not be read: ' + R.error + '.');
|
|
210
|
-
const tk = mine(ctx, R.items).filter((w) => w.src === 'jira');
|
|
211
|
-
if (!tk.length) return empty(epicsLine(ctx), { 'data-inb': 'tk-empty' });
|
|
212
|
-
const its = tk.filter((w) => w.kind !== 'Epic'); const n = Math.max(1, its.length);
|
|
213
|
-
const c = (s) => its.filter((w) => w.status === s).length;
|
|
214
|
-
return cols(
|
|
215
|
-
[el('div', { class: 'fold' }, icon('lock', 'sm'), el('b', null, 'Mirrored from Jira, read-only.'), ' Status, dates and owners are Jira\'s.'),
|
|
216
|
-
sect({ ic: 'check', title: 'Jira items', count: tk.length }, list(tk.map((w) => workRow(ctx, w, { all: R.items })), { 'data-ini': 'tickets' }))],
|
|
217
|
-
[card({ ic: 'report', title: 'By status' }, hbs(['To do', 'In progress', 'In review', 'Done'].map((s) => hbr(s, c(s), c(s) / n, s === 'Done' ? 'ok' : s === 'To do' ? 'pm' : 'acc'))),
|
|
218
|
-
note(its.filter((w) => w.blocked).length + ' blocked.'))]);
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
/* ── Timeline ── */
|
|
222
|
-
tab('timeline', async (ctx, isDead, host) => {
|
|
223
|
-
const R = await loadItems(ctx);
|
|
224
|
-
if (isDead()) return null;
|
|
225
|
-
if (!R.ok) return errLine('The work items could not be read: ' + R.error + '.');
|
|
226
|
-
const r = ctx.row;
|
|
227
|
-
const key = 'i:' + ctx.ws + ':' + r.id;
|
|
228
|
-
const build = (RR) => {
|
|
229
|
-
const work = mine(ctx, RR.items);
|
|
230
|
-
const ini = RR.initiatives.find((i) => i.id === r.id) || r;
|
|
231
|
-
const rows = [iniTlRow(ctx, ini, workTlRows(ctx, work, changed), ctx.board)];
|
|
232
|
-
const { from, to } = tlRange(ctx.today);
|
|
233
|
-
const node = timeline({ key, rows, from, to, today: ctx.today, head: 'Epic > item', defOpen: [r.id, ...work.filter((w) => w.kind === 'Epic').map((e) => e.uid)],
|
|
234
|
-
onMove: (task, days) => rescheduleTask(ctx, task, days, () => { tlStill(key); changed(); }), onLocked: (k) => lockedToast(ctx, k) });
|
|
235
|
-
requestAnimationFrame(() => { if (!isDead()) tlInit(host); });
|
|
236
|
-
return [sect({ ic: 'cal', title: 'Timeline', count: work.length, right: el('span', { class: 'dim mono ini-meta' }, r.start || r.end ? day(r.start) + ' to ' + day(r.end) : 'no dates yet') }, node,
|
|
237
|
-
work.some((w) => !w.start || !w.end) ? note(plural(work.filter((w) => !w.start || !w.end).length, 'item has', 'items have') + ' no dates' + (ctx.board.build ? '; Jira items get theirs from Jira' : '') + '.') : null)];
|
|
238
|
-
};
|
|
239
|
-
async function changed() { dropItems(ctx); const RR = await loadItems(ctx, true); if (!isDead()) put(host, ...build(RR).filter(Boolean)); }
|
|
240
|
-
return build(R);
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
/* ── History ── */
|
|
244
|
-
tab('history', async (ctx) => {
|
|
245
|
-
const items = (Array.isArray(ctx.history) ? ctx.history.slice() : []).sort((a, b) => String(b.at || '').localeCompare(String(a.at || '')));
|
|
246
|
-
if (!items.length) return empty('No moves are recorded for ' + ctx.row.id + ' yet.', { 'data-inb': 'hist-empty' });
|
|
247
|
-
return sect({ ic: 'undo', title: 'History', count: items.length },
|
|
248
|
-
list(items.map((h) => el('li', { class: 'nrow', 'data-inb-hist': h.kind || 'move' }, el('span', { class: 'ki' }, icon(h.kind === 'workflow' ? 'settings' : h.kind === 'ask-accept' ? 'inbox' : 'undo')),
|
|
249
|
-
el('div', { class: 'nb' }, el('span', { class: 'tt' }, histWhat(h)),
|
|
250
|
-
el('div', { class: 'chips' }, chip(icon('user', 'sm'), h.by || 'Unknown'), chip(icon('clock', 'sm'), h.at ? dayLong(String(h.at).slice(0, 10)) : 'No time recorded'), ...(h.warnings || []).map((w) => st('warn', 'alert', w))),
|
|
251
|
-
h.why ? note('Why: ' + h.why) : null), el('span'))), { 'data-inb': 'hist-list' }));
|
|
252
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* pm/c3-ini-life.css — the board Initiatives header in two rows and the lifecycle sheets (c3-initiative-lifecycle; mockup v2,
|
|
2
|
-
* 34-initiatives.css "lifecycle + quieter Initiatives header"). Linked once by c3-ini-life.js. Every rule is under an `il-` class. */
|
|
3
|
-
.c3 .il-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
4
|
-
.c3 .il-search{position:relative;flex:1 1 260px}
|
|
5
|
-
.c3 .il-search > .ic{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--muted-foreground);pointer-events:none}
|
|
6
|
-
.c3 .il-search input[type="text"]{padding-left:30px}
|
|
7
|
-
.c3 .il-chev{display:inline-flex;transform:rotate(90deg);margin-left:2px;color:var(--muted-foreground)}
|
|
8
|
-
.c3 .il-back{display:inline-flex;transform:rotate(180deg)}
|
|
9
|
-
.c3 .il-ib{position:relative}
|
|
10
|
-
.c3 .il-ib .bdg{position:absolute;top:-6px;right:-6px}
|
|
11
|
-
.c3 .il-up,.c3 .il-down{display:inline-flex}
|
|
12
|
-
.c3 .il-up{transform:rotate(-90deg)}
|
|
13
|
-
.c3 .il-down{transform:rotate(90deg)}
|
|
14
|
-
.c3 .il-chips{justify-content:flex-end}
|
|
15
|
-
.c3 .il-foot{justify-content:flex-end;margin-top:4px}
|
|
16
|
-
.c3 .il-listfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
|
|
17
|
-
.c3 .il-listfoot > :only-child{margin-left:auto}
|
|
18
|
-
.c3 .il-hint{font-size:var(--fs-2)}
|
|
19
|
-
.c3 .il-sheet{display:grid;gap:14px}
|
|
20
|
-
.c3 .il-sheet textarea{width:100%;resize:vertical}
|
|
21
|
-
.c3 .il-move{gap:8px;align-items:flex-start}
|
|
22
|
-
.c3 .il-banner{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
23
|
-
.c3 .il-banner > span:first-of-type{flex:1 1 240px}
|
|
24
|
-
.c3 .ini-mpanel .il-f{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:8px;padding:4px 8px;font-size:var(--fs-2);color:var(--muted-foreground)}
|
|
25
|
-
.c3 .ini-mpanel .il-f select{width:100%}
|
|
26
|
-
.c3 .ini-mpanel .il-fend{justify-content:flex-end;padding:6px 8px 2px}
|
|
27
|
-
.c3 .ini-mpanel .il-fnote{padding:4px 8px;font-size:var(--fs-2);max-width:280px}
|
|
28
|
-
.c3 .wk-fbar .il-chips{margin-left:auto}
|
|
29
|
-
.c3 .ini-mi .il-hint{color:var(--muted-foreground)}
|
|
30
|
-
.c3 .ini-mi[aria-checked="false"] .il-tick{visibility:hidden}
|
|
31
|
-
/* The board's Initiatives list shows every chip of a row, as the mockup draws it (the quiet pages keep two elsewhere). */
|
|
32
|
-
.c3 [data-ibb="rows"] .nrow .nb > .chips > :nth-child(n+3){display:inline-flex !important}
|
|
33
|
-
.c3 [data-ibb="rows"] .nrow .nb > .chips > .qt-hide{display:none !important}
|
|
34
|
-
.c3 .il-note{font-size:var(--fs-2);line-height:1.45}
|