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,628 +0,0 @@
|
|
|
1
|
-
/* pm/c3-shell.js — the console3 SHELL as its own page (/c3.html). The mockup (console3.html) is the UI: the header (title and date,
|
|
2
|
-
* the icon buttons, the bell), the tab bar (Briefing, Calendar, Work, Initiatives, Reports) and the three-column Briefing. This
|
|
3
|
-
* file draws only the frame and composes the real views into it, each through its own mount function:
|
|
4
|
-
* Briefing one column, the brief: the deck (mountBriefing), Today (c3-brief-today.js), Needs you (c3-brief-needs.js), Portfolio pulse (c3-brief-pulse.js)
|
|
5
|
-
* right the dock (c3-dock.js): the repository, branch and session tree, the selected session's detail, "Open the session" to /
|
|
6
|
-
* Initiatives and Reports also carry the mockup's "Plan: Decide what gates the day" lens row and deck (c3-plan.js planNode).
|
|
7
|
-
* Calendar mountCalendarViews Work mountPmWork
|
|
8
|
-
* Initiatives a switch among mountLifecycle, mountForecast and mountReleases Reports mountReportFamilies, mountOutbox
|
|
9
|
-
* The bell, the ticker, the banner and the recording group are the shell-*.js modules. The old app (/) is not touched.
|
|
10
|
-
* Real data is mostly empty: every view draws its own honest empty state, and nothing here is invented.
|
|
11
|
-
* The workspace id is ?ws= (default: the first of GET /api/workspaces). The views read some routes without a ws, so a GET to /api/
|
|
12
|
-
* that names none gets the page's ws added (see withWs). No dialog is used. Presses are the views' own. */
|
|
13
|
-
import { el } from './dom.js';
|
|
14
|
-
import { row, button } from './primitives.js';
|
|
15
|
-
import { pmGet } from './http.js';
|
|
16
|
-
import { ensureC3Css, c3ic, c3Phone, mountPmWork } from './pm-work-view.js';
|
|
17
|
-
import { mountBriefing, showCard, flipBack } from './briefing-deck.js';
|
|
18
|
-
import { todaySection } from './c3-brief-today.js';
|
|
19
|
-
import { needsSection, needsCount } from './c3-brief-needs.js';
|
|
20
|
-
import { scanSection } from './c3-scan.js';
|
|
21
|
-
import { reportFoundSection } from './c3-report-store.js';
|
|
22
|
-
import { pulse } from './c3-brief-pulse.js';
|
|
23
|
-
import { summarySection } from './c3-brief-summary.js';
|
|
24
|
-
import { mentionsSection } from './c3-brief-mentions.js';
|
|
25
|
-
import { loadBriefPage, onBriefPage } from './c3-brief-data.js';
|
|
26
|
-
import { createDock } from './c3-dock.js';
|
|
27
|
-
import { reviewSection, footLine, rowApi, BX, toast, setNeedsTitle, hooks as briefHooks } from './c3-brief.js';
|
|
28
|
-
import { openSheet } from './c3-sheet.js';
|
|
29
|
-
import { mountCalPopupTrigger } from './c3-calpop.js';
|
|
30
|
-
import { planNode } from './c3-plan.js';
|
|
31
|
-
import { ic } from './c3-terminal-icons.js';
|
|
32
|
-
import { mountDaypart } from './c3-daypart.js';
|
|
33
|
-
import { mountAmbient } from './c3-ambient.js';
|
|
34
|
-
import { mountTicker } from './shell-ticker.js';
|
|
35
|
-
import { mountBell, openBellList } from './shell-bell.js';
|
|
36
|
-
import { onBriefing, loadBriefing } from './shell-ticker.js';
|
|
37
|
-
import { registry, filterPalette, rowStep } from './briefing-model.js';
|
|
38
|
-
import { freshnessLine } from './freshness-line.js';
|
|
39
|
-
import { gearIcon, applyLook } from './c3-look.js';
|
|
40
|
-
import { mountQuiet } from './c3-quiet.js';
|
|
41
|
-
|
|
42
|
-
/* In demo mode each tab's deck asks for its own cards (the mockup draws a different deck per tab); real mode sends no scope. Reports always sends its own (repTab). */
|
|
43
|
-
const sc = (name) => (DEMO ? name : undefined);
|
|
44
|
-
const TABS = [['brief', 'Briefing', 'sun'], ['cal', 'Calendar', 'cal'], ['work', 'Work', 'todo'], ['init', 'Initiatives', 'init'], ['rep', 'Reports', 'report']];
|
|
45
|
-
const THEME_KEY = 'pmos.c3.theme';
|
|
46
|
-
const q = new URLSearchParams(location.search);
|
|
47
|
-
const store = { get(k) { try { return localStorage.getItem(k); } catch { return null; } }, set(k, v) { try { localStorage.setItem(k, v); } catch { /* no storage */ } } };
|
|
48
|
-
const DEMO = q.get('demo') === '1'; // demo mode: c3-demo.js answers the page's /api reads with the mockup's sample content
|
|
49
|
-
/* The dock's open or folded choice, kept on this device. No choice yet: folded. */
|
|
50
|
-
const dockPref = () => store.get('pmos.c3.dock') === 'open';
|
|
51
|
-
const keepDock = () => store.set('pmos.c3.dock', S.dockOpen ? 'open' : 'folded');
|
|
52
|
-
const S = { demo: DEMO, ws: q.get('ws') || '', workspaces: [], tab: 'brief', theme: 'light', panes: {}, mounted: {}, dockOpen: true, wide: true };
|
|
53
|
-
|
|
54
|
-
/* A view reads a route with no ws and the server answers for its home workspace. This page names one, so a GET to /api/ with no ws gets it. */
|
|
55
|
-
function withWs() {
|
|
56
|
-
const f = window.fetch.bind(window);
|
|
57
|
-
window.fetch = (input, init) => {
|
|
58
|
-
try {
|
|
59
|
-
if (typeof input === 'string' && S.ws && input.startsWith('/api/') && !/[?&]ws=/.test(input) && (!init || !init.method || init.method === 'GET')) {
|
|
60
|
-
input += (input.includes('?') ? '&' : '?') + 'ws=' + encodeURIComponent(S.ws);
|
|
61
|
-
}
|
|
62
|
-
} catch { /* leave the request as it is */ }
|
|
63
|
-
return f(input, init);
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* t is light, dark or system (Settings, Appearance); system follows the computer and changes with it. */
|
|
68
|
-
const darkQuery = typeof matchMedia === 'function' ? matchMedia('(prefers-color-scheme: dark)') : null;
|
|
69
|
-
function setTheme(t) {
|
|
70
|
-
S.themePref = t === 'dark' || t === 'system' ? t : 'light';
|
|
71
|
-
S.theme = S.themePref === 'system' ? (darkQuery && darkQuery.matches ? 'dark' : 'light') : S.themePref;
|
|
72
|
-
document.documentElement.setAttribute('data-pm-page-theme', S.theme);
|
|
73
|
-
S.root.setAttribute('data-pm-theme', S.theme);
|
|
74
|
-
store.set(THEME_KEY, S.themePref);
|
|
75
|
-
if (S.settings && S.settingsCtx) { S.settingsCtx.theme = S.theme; S.settingsCtx.themePref = S.themePref; }
|
|
76
|
-
}
|
|
77
|
-
if (darkQuery && darkQuery.addEventListener) darkQuery.addEventListener('change', () => { if (S.themePref === 'system' && S.root) setTheme('system'); });
|
|
78
|
-
|
|
79
|
-
/* ── header: the mockup's .top (title, date line) and .tools (terminal, recording, bell, search, more) ── */
|
|
80
|
-
const dateLine = () => {
|
|
81
|
-
const d = new Date();
|
|
82
|
-
const day = d.toLocaleDateString('en-GB', { weekday: 'short', day: 'numeric', month: 'short' }).replace(',', '');
|
|
83
|
-
return day + ' · as of ' + String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0') + (S.incident ? ' · incident' : '');
|
|
84
|
-
};
|
|
85
|
-
const ibtn = (label, icon, attrs) => el('button', { type: 'button', class: 'ib', title: label, 'aria-label': label, ...(attrs || {}) }, c3ic(icon));
|
|
86
|
-
const iLink = (label, icon, href) => el('a', { class: 'ib', href, title: label, 'aria-label': label }, c3ic(icon));
|
|
87
|
-
|
|
88
|
-
function header() {
|
|
89
|
-
S.ttl = el('h1', { 'data-c3pg': 'title' });
|
|
90
|
-
S.sub = el('div', { class: 'sub', 'data-c3pg': 'date' }, dateLine());
|
|
91
|
-
S.termBdg = el('span', { class: 'bdg', hidden: true, 'data-c3pg': 'term-count' }, '0');
|
|
92
|
-
/* the AGENT button (the bolt glyph, as the mockup's Sessions pill), with the needs-you badge: the terminal of the session opened last while it runs
|
|
93
|
-
* (PM, 2026-10-13), else the Terminal page, the full agent surfaces; the terminal sheet's "All sessions" opens that page. It is an icon only (PM, 2026-10-12: no "Sessions" label); its tooltip and aria-label name it. Ctrl J and the More menu fold and open the dock. */
|
|
94
|
-
S.termBtn = button({ variant: 'ghost', label: [ic('bolt', 'sm'), S.termBdg], onClick: () => { import('./c3-session-term.js').then((m) => m.openLastSession()); },
|
|
95
|
-
attrs: { class: 'psess', title: 'Agent surfaces: sessions, results to accept, questions for you', 'aria-label': 'Agent surfaces: sessions, results to accept, questions for you', 'aria-haspopup': 'dialog', 'data-c3pg': 'agent-button' } }); // the mockup's header button (agent-surfaces.html #act)
|
|
96
|
-
S.tools = el('div', { class: 'tools', 'data-c3pg': 'tools' });
|
|
97
|
-
if (S.demoMod) S.tools.append(S.demoMod.demoPill());
|
|
98
|
-
S.tools.append(S.termBtn);
|
|
99
|
-
S.bellHost = el('span', { class: 'c3pg-bell' });
|
|
100
|
-
S.tools.append(S.bellHost);
|
|
101
|
-
S.tools.append(ibtn('Search (Ctrl K)', 'search', { 'data-c3pg': 'search', 'aria-haspopup': 'dialog', onclick: () => openPalette() }));
|
|
102
|
-
mountCalPopupTrigger(S.tools); // the calendar button (before Search) and the key C (c3-calpop.js)
|
|
103
|
-
/* Settings is a page of its own, not a tab: the gear opens it, as do the More menu, the palette and ?tab=settings (c3-settings.js). */
|
|
104
|
-
S.gearBtn = ibtn('Settings', 'info', { 'data-c3pg': 'settings', onclick: () => showTab('settings', true) }); S.gearBtn.replaceChildren(gearIcon());
|
|
105
|
-
S.tools.append(S.gearBtn);
|
|
106
|
-
S.moreBtn = ibtn('More', 'more', { 'aria-haspopup': 'menu', 'aria-expanded': 'false', 'data-c3pg': 'more', onclick: toggleMore });
|
|
107
|
-
S.tools.append(el('span', { class: 'c3pg-menuwrap' }, S.moreBtn));
|
|
108
|
-
/* workspace-data-freshness R9: when each source was last read, never "up to date" (freshness-line.js) */
|
|
109
|
-
S.fresh = S.demo ? null : freshnessLine(S.ws);
|
|
110
|
-
return el('div', { class: 'c3top' }, el('div', null, S.ttl, S.sub, S.fresh), S.tools);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* the More menu (console3.html menuPop, line 1940): why each element is here, incident day, agent playbooks, phone preview; and ours: the theme and a way to
|
|
114
|
-
* the main app. Escape and a press outside close it. A switch shows a check while it is on. */
|
|
115
|
-
function toggleMore() {
|
|
116
|
-
if (S.menu) { closeMore(); return; }
|
|
117
|
-
const item = (icon, label, fn, on, attrs, kbd) => el('button', { type: 'button', class: 'c3pg-mi', role: 'menuitem', ...(attrs || {}), onclick: () => { if (attrs && attrs.disabled) return; closeMore(); fn(); } },
|
|
118
|
-
c3ic(icon, 'sm'), el('span', null, label), kbd ? el('kbd', { class: 'c3pg-kbd' }, kbd) : null, on ? el('span', { class: 'st ok', style: 'margin-left:auto' }, c3ic('check', 'sm')) : null);
|
|
119
|
-
S.menu = el('div', { class: 'c3pg-menu menu', role: 'menu', 'aria-label': 'More' },
|
|
120
|
-
item('info', 'Why each element is here', () => toggleWhy(), S.why, { 'data-a': 'whyt' }),
|
|
121
|
-
item('alert', 'Incident day', () => toggleIncident(), S.incident, S.demo ? { 'data-a': 'inc' } : { 'data-a': 'inc', disabled: true, title: 'No incident feed is connected, so this page shows no incident.' }),
|
|
122
|
-
item('spark', 'Agent playbooks', () => openPlaybooks(), false, { 'data-a': 'pbopen' }),
|
|
123
|
-
item('phone', 'Phone preview', () => togglePreview(), !!S.preview, { 'data-a': 'phone' }),
|
|
124
|
-
item(S.theme === 'dark' ? 'sun' : 'moon', S.theme === 'dark' ? 'Light theme' : 'Dark theme', () => setTheme(S.theme === 'dark' ? 'light' : 'dark')),
|
|
125
|
-
((b) => { b.firstChild.replaceWith(gearIcon('sm')); return b; })(item('info', 'Settings', () => showTab('settings', true), false, { 'data-a': 'settings' })),
|
|
126
|
-
item('term', S.dockOpen ? 'Fold the dock' : 'Open the dock', () => { S.dockOpen = !S.dockOpen; keepDock(); syncDock(); }, false, { 'data-a': 'dockt' }, 'Ctrl J'),
|
|
127
|
-
el('a', { class: 'c3pg-mi', role: 'menuitem', href: '/premium.html', 'data-a': 'premium' }, c3ic('spark', 'sm'), el('span', null, 'Open premium')),
|
|
128
|
-
el('a', { class: 'c3pg-mi', role: 'menuitem', href: '/classic.html' }, c3ic('term', 'sm'), el('span', null, 'Open the classic app')));
|
|
129
|
-
S.root.append(S.menu); // on the page root with position:fixed, so no ancestor's overflow, transform or stacking order can hide it
|
|
130
|
-
S.placeMenu = () => { const r = S.moreBtn.getBoundingClientRect(); const w = S.menu.offsetWidth || 220; S.menu.style.top = Math.round(r.bottom + 6) + 'px'; S.menu.style.left = Math.round(Math.max(8, Math.min(r.right - w, innerWidth - w - 8))) + 'px'; S.menu.style.maxHeight = Math.max(160, innerHeight - r.bottom - 14) + 'px'; };
|
|
131
|
-
S.placeMenu(); addEventListener('resize', S.placeMenu); addEventListener('scroll', S.placeMenu, true);
|
|
132
|
-
S.moreBtn.setAttribute('aria-expanded', 'true');
|
|
133
|
-
S.menuOff = (e) => { if (e.type === 'keydown' ? e.key === 'Escape' : !S.menu.contains(e.target) && !S.moreBtn.contains(e.target)) { closeMore(); if (e.type === 'keydown') S.moreBtn.focus(); } };
|
|
134
|
-
document.addEventListener('keydown', S.menuOff); document.addEventListener('pointerdown', S.menuOff);
|
|
135
|
-
const first = S.menu.querySelector('.c3pg-mi:not([disabled])'); if (first) first.focus();
|
|
136
|
-
}
|
|
137
|
-
/* The phone companion (c3-phone.js): at 640px or less it fills the page and the desktop grid is hidden. There is no Full console:
|
|
138
|
-
* the old choice (pmos.c3.phone = 'desk', stored before 2026-10-13) is cleared so no phone stays on the desktop pages. */
|
|
139
|
-
/* as c3-phone.js phoneWanted, without loading that module on a desktop */
|
|
140
|
-
const phoneWanted = () => typeof matchMedia === 'function' && matchMedia('(max-width:640px)').matches && store.get('pmos.c3.testDesk') !== 'desk';
|
|
141
|
-
function syncPhone() {
|
|
142
|
-
if (store.get('pmos.c3.phone')) store.set('pmos.c3.phone', '');
|
|
143
|
-
const want = phoneWanted();
|
|
144
|
-
if (want && !S.phone) {
|
|
145
|
-
S.root.classList.add('c3-phone-on');
|
|
146
|
-
const p = S.phone = { dispose: () => { p.gone = true; } }; // the companion's code loads first (c3-phone.js); narrowing back before it lands cancels it
|
|
147
|
-
import('./c3-phone.js').then((m) => { if (p.gone || S.phone !== p) return; S.phone = m.mountPhone(S.root, { ws: S.ws, demo: S.demo }); }).catch(() => { if (S.phone === p) { S.phone = null; S.root.classList.remove('c3-phone-on'); } });
|
|
148
|
-
} else if (!want && S.phone) {
|
|
149
|
-
S.phone.dispose(); S.phone = null;
|
|
150
|
-
S.root.classList.remove('c3-phone-on');
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function closeMore() {
|
|
154
|
-
if (!S.menu) return;
|
|
155
|
-
document.removeEventListener('keydown', S.menuOff); document.removeEventListener('pointerdown', S.menuOff);
|
|
156
|
-
removeEventListener('resize', S.placeMenu); removeEventListener('scroll', S.placeMenu, true);
|
|
157
|
-
S.menu.remove(); S.menu = null; S.moreBtn.setAttribute('aria-expanded', 'false');
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* "Why each element is here" (console3.html whyPanel, line 1458, WHYS 1301): every region of the Briefing gets a number, and a panel steps through the reasons. */
|
|
161
|
-
const WHYS = [
|
|
162
|
-
[1, 'Signals', 'Each card is tagged by what it asks of you. Critical: you lose something if it waits. Just in: new since you last looked. Opportunity: upside that closes. Small win: bank it in one gesture. Big win: tell others. Two questions sort them: what happens if I wait, and how long does this stay true. Tap or swipe a card up and it turns over to a short case file; swipe down to close it.'],
|
|
163
|
-
[2, 'Cause to effect', 'Three nodes show why the decision is urgent, so you do not have to remember it. The moving line shows pressure flowing from your decision to the date.'],
|
|
164
|
-
[3, 'Needs you', 'Exceptions only: what the agents could not or should not decide. Ranked and capped at five. Tap a row to open a case file: what changed, the options, the agent\'s recommendation and what it could not verify.'],
|
|
165
|
-
[4, 'Time left', 'A bar for items with a clock. "Due 10:30" and "due Friday" read the same in text, so the bar shows how much time is left.'],
|
|
166
|
-
[5, 'Review', 'Drafts wait here. Open one to see the draft, the claims it makes and where each claim came from. Approve is a slide, not a tap, so it takes intent. The agent may recommend holding a draft.'],
|
|
167
|
-
[6, 'Handled for you', 'Automation should leave a receipt, not a to-do. Collapsed to one line. Open a line to see the rule that allowed it, the evidence and how to undo.'],
|
|
168
|
-
[7, 'Time lens', 'One lens with five zoom levels, from today to five years. Each level opens with what matters and how it is progressing. The more senior the role, the wider the scan. Use the zoom icons, the + and - keys, or pinch.'],
|
|
169
|
-
[8, 'Portfolio pulse', '"Am I on track?" comes after "what do I do". One bar answers at a glance; rows say why; the small timeline shows promised against forecast.'],
|
|
170
|
-
[9, 'Data trust', 'The agent has already drafted the fixes for mismatches, so this is status only. Folded to one line until you want the evidence and the rule.'],
|
|
171
|
-
[10, 'Gestures', 'Drag a row right to finish it, left for later. The two glyphs at the edge show both; the bright one is what the agent suggests. At rest the page has almost no buttons. Keys: e, n, a, r, j, k.'],
|
|
172
|
-
[11, 'Depth', 'Elevation means priority. Raised layers are things to act on. Flat layers are things to know. Glass floats above the page because it stays while you scroll.'],
|
|
173
|
-
[12, 'Two columns', 'The left column is what you do. The right column is what you need to know. On a phone they merge, with the lens right after the cards.'],
|
|
174
|
-
[13, 'Part of the day', 'The page reads differently as the day goes: Plan, Unblock, Close, Reflect. It follows the clock. A new part takes over only when you pause. The same signals are re-ranked, not replaced.'],
|
|
175
|
-
[14, 'Phone: one screen', 'No scrolling on the phone. A running line and the bell carry what just arrived. The four tiles open popups for the lists, so the page itself stays still. Audio is optional: the speaker reads the top three cards aloud for when your hands are busy.'],
|
|
176
|
-
];
|
|
177
|
-
const WHY_REGIONS = { 1: '[data-c3pg="deck-host"]', 13: '.stance', 3: '[data-c3pg="needs"]', 5: '[data-c3pg="review-host"] > *', 6: '[data-c3pg="handled-host"] > *', 7: '[data-c3pg="cal-host"]', 8: '[data-c3pg="pulse"]', 9: '[data-c3pg="trust-host"] > *' };
|
|
178
|
-
function whyMark() {
|
|
179
|
-
S.panes.brief.querySelectorAll('[data-n]').forEach((n) => n.removeAttribute('data-n'));
|
|
180
|
-
if (!S.why) return;
|
|
181
|
-
for (const [n, sel] of Object.entries(WHY_REGIONS)) { const t = S.panes.brief.querySelector(sel); if (t) t.setAttribute('data-n', n); }
|
|
182
|
-
S.panes.brief.querySelectorAll('.wy').forEach((n) => n.classList.remove('wy'));
|
|
183
|
-
const cur = S.panes.brief.querySelector('[data-n="' + S.whyN + '"]'); if (cur) cur.classList.add('wy');
|
|
184
|
-
}
|
|
185
|
-
function whyPanel() {
|
|
186
|
-
if (S.whyWrap) { S.whyWrap.remove(); S.whyWrap = null; }
|
|
187
|
-
if (!S.why) return;
|
|
188
|
-
const w = WHYS[S.whyN - 1];
|
|
189
|
-
const step = (d) => { S.whyN = ((S.whyN - 1 + d + WHYS.length) % WHYS.length) + 1; whyPanel(); whyMark(); };
|
|
190
|
-
const aside = el('aside', { class: 'whyp glass', 'aria-live': 'polite', 'data-c3pg': 'why' },
|
|
191
|
-
el('div', { class: 'chips2', style: 'justify-content:space-between' }, el('span', { class: 'chips2' }, el('b', { class: 'n' }, String(w[0])), el('b', { style: 'font-size:var(--fs-3)' }, w[1])),
|
|
192
|
-
el('span', { class: 'chips2' }, ibtn('Previous reason', 'prev', { class: 'ib sm', onclick: () => step(-1) }), el('span', { class: 'mono dim', style: 'font-size:var(--fs-1)' }, w[0] + ' of ' + WHYS.length),
|
|
193
|
-
ibtn('Next reason', 'next', { class: 'ib sm', onclick: () => step(1) }), ibtn('Close', 'x', { class: 'ib sm', onclick: () => toggleWhy() }))),
|
|
194
|
-
el('div', { class: 'dim', style: 'font-size:var(--fs-3);line-height:1.45' }, w[2]));
|
|
195
|
-
S.whyWrap = el('div', { class: 'c3 c3e c3pop', 'data-shell': 'why' }, aside);
|
|
196
|
-
document.body.appendChild(S.whyWrap);
|
|
197
|
-
}
|
|
198
|
-
function toggleWhy() {
|
|
199
|
-
S.why = !S.why; S.whyN = 1;
|
|
200
|
-
if (S.why) showTab('brief', true);
|
|
201
|
-
S.panes.brief.classList.toggle('why-on', S.why);
|
|
202
|
-
whyPanel(); whyMark();
|
|
203
|
-
}
|
|
204
|
-
function toggleIncident() {
|
|
205
|
-
S.incident = !S.incident;
|
|
206
|
-
S.sub.textContent = dateLine();
|
|
207
|
-
if (S.refreshNeeds) S.refreshNeeds();
|
|
208
|
-
}
|
|
209
|
-
function togglePreview() {
|
|
210
|
-
S.preview = !S.preview;
|
|
211
|
-
const old = document.querySelector('[data-shell="preview"]'); if (old) old.remove();
|
|
212
|
-
if (!S.preview) return;
|
|
213
|
-
const close = () => { S.preview = false; const o = document.querySelector('[data-shell="preview"]'); if (o) o.remove(); S.moreBtn.focus(); };
|
|
214
|
-
const frame = el('iframe', { title: 'Phone preview, 390 by 844', src: location.href, style: 'width:390px;height:min(844px,calc(100vh - 80px));border:1px solid var(--border);border-radius:28px;background:var(--background);box-shadow:var(--sh3)' });
|
|
215
|
-
const wrap = el('div', { class: 'c3 c3e c3pop', 'data-shell': 'preview' }, el('div', { class: 'scrim', onclick: close }),
|
|
216
|
-
el('div', { class: 'c3pg-prev', role: 'dialog', 'aria-label': 'Phone preview' }, el('button', { type: 'button', class: 'ib sm', 'aria-label': 'Close the phone preview', title: 'Close (Esc)', onclick: close }, c3ic('x', 'sm')), frame));
|
|
217
|
-
wrap.addEventListener('keydown', (e) => { if (e.key === 'Escape') close(); });
|
|
218
|
-
document.body.appendChild(wrap);
|
|
219
|
-
wrap.querySelector('button').focus();
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/* the Agent playbooks sheet (console3.html playbookSheet, line 1762). The list comes from the briefing's sample content only; a real workspace defines none that this page can read,
|
|
223
|
-
* so it says so. Changing a mode or adding one has no route here, so those controls are drawn and disabled. */
|
|
224
|
-
function openPlaybooks() {
|
|
225
|
-
const pbs = registry('playbooks') || [];
|
|
226
|
-
const why = 'No route changes a playbook from this page.';
|
|
227
|
-
const MODES = [['shadow', 'eye', 'Shadow'], ['approve', 'check', 'Approve'], ['auto', 'bolt', 'Auto']];
|
|
228
|
-
const body = [el('div', { class: 'legend' }, el('span', null, c3ic('eye', 'sm'), ' shadow: proposes, nothing reaches your queue'), el('span', null, c3ic('check', 'sm'), ' approve: you press Keep'), el('span', null, c3ic('bolt', 'sm'), ' auto: acts, logs, you can undo')),
|
|
229
|
-
...(pbs.length ? pbs.map((b) => el('div', { class: 'card', style: 'gap:6px' },
|
|
230
|
-
el('div', { class: 'chips2', style: 'justify-content:space-between' }, el('b', null, b.n), b.out ? el('span', { class: 'chip2', title: 'An outward step stays with you' }, c3ic('lock', 'sm'), 'outward step is yours') : null),
|
|
231
|
-
el('div', { class: 'dim', style: 'font-size:var(--fs-3)' }, c3ic('clock', 'sm'), ' ' + b.trig), el('div', { style: 'font-size:var(--fs-3)' }, c3ic('spark', 'sm'), ' ' + b.first),
|
|
232
|
-
el('div', { class: 'dim', style: 'font-size:var(--fs-2)' }, c3ic('shield', 'sm'), ' ' + b.gate),
|
|
233
|
-
el('div', { class: 'chips2', style: 'justify-content:space-between' }, el('div', { class: 'seg', role: 'group', 'aria-label': 'Mode' }, ...MODES.map((m) => el('button', { type: 'button', 'aria-pressed': String(b.mode === m[0]), disabled: true, title: why }, c3ic(m[1], 'sm'), m[2]))),
|
|
234
|
-
el('span', { class: 'dim mono', style: 'font-size:var(--fs-1)' }, b.asis + '% used as is · ' + b.runs + ' runs'))))
|
|
235
|
-
: [el('div', { class: 'fold' }, c3ic('info', 'sm'), 'No playbook is defined that this page can read.')]),
|
|
236
|
-
el('div', { class: 'card' }, el('h3', null, c3ic('plus'), 'Describe a new playbook'), el('div', { class: 'form' }, el('input', { type: 'text', placeholder: 'Name, for example: Prepare the quarterly review', 'aria-label': 'Name', disabled: true, title: why })),
|
|
237
|
-
el('div', { class: 'chips2' }, el('button', { type: 'button', class: 'ib pri', style: 'width:auto;padding:0 12px;gap:6px', disabled: true, title: why }, c3ic('plus', 'sm'), 'Add playbook'))),
|
|
238
|
-
el('div', { class: 'fold' }, c3ic('info', 'sm'), 'Auto needs 10 runs and 90% used as is. A step that sends anything outside stays on approve.')];
|
|
239
|
-
openSheet({ title: 'Agent playbooks', icon: 'spark', wide: true, scrim: false, body });
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/* ── tabs: the mockup's nav.tabs with the sliding indicator ── */
|
|
243
|
-
function tabBar() {
|
|
244
|
-
S.tabBtns = {};
|
|
245
|
-
const nav = el('nav', { class: 'c3tabs', role: 'tablist', 'aria-label': 'Places' });
|
|
246
|
-
S.workBdg = el('span', { class: 'bdg', hidden: true, 'data-c3pg': 'work-count', title: 'Inbox to decide' }, '0');
|
|
247
|
-
S.briefBdg = el('span', { class: 'bdg', hidden: true, 'data-c3pg': 'brief-count', title: 'Needs you' }, '0');
|
|
248
|
-
S.initBdg = el('span', { class: 'bdg', hidden: true, 'data-c3pg': 'init-count', title: 'New asks to triage' }, '0');
|
|
249
|
-
const BDG = { brief: S.briefBdg, work: S.workBdg, init: S.initBdg };
|
|
250
|
-
for (const [id, label, icon] of TABS) {
|
|
251
|
-
const b = el('button', { type: 'button', role: 'tab', id: 'c3tab-' + id, 'aria-controls': 'c3pane-' + id, 'data-c3-tab': id, onclick: () => showTab(id, true) }, c3ic(icon), label, id === 'work' ? S.workBdg : null);
|
|
252
|
-
if (BDG[id] && id !== 'work') b.append(BDG[id]);
|
|
253
|
-
S.tabBtns[id] = b;
|
|
254
|
-
nav.append(b);
|
|
255
|
-
}
|
|
256
|
-
S.ind = el('span', { class: 'ind', 'aria-hidden': 'true' });
|
|
257
|
-
nav.append(S.ind);
|
|
258
|
-
nav.addEventListener('keydown', (e) => {
|
|
259
|
-
const ids = TABS.map((t) => t[0]); const i = ids.indexOf(S.tab);
|
|
260
|
-
const to = e.key === 'ArrowRight' ? ids[(i + 1) % ids.length] : e.key === 'ArrowLeft' ? ids[(i + ids.length - 1) % ids.length] : e.key === 'Home' ? ids[0] : e.key === 'End' ? ids[ids.length - 1] : null;
|
|
261
|
-
if (to) { e.preventDefault(); showTab(to, true); S.tabBtns[to].focus(); }
|
|
262
|
-
});
|
|
263
|
-
S.tabNav = nav;
|
|
264
|
-
return nav;
|
|
265
|
-
}
|
|
266
|
-
function moveInd() {
|
|
267
|
-
if (S.ind) S.ind.hidden = !S.tabBtns[S.tab];
|
|
268
|
-
const b = S.tabBtns[S.tab]; if (!b || !S.ind) return;
|
|
269
|
-
S.ind.style.width = b.offsetWidth + 'px'; S.ind.style.transform = 'translateX(' + b.offsetLeft + 'px)';
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/* ── the Briefing tab: two columns, decisions and reads ──
|
|
273
|
-
* Left: the stance bar (the part of the day follows the clock) and the headline deck (briefing-deck.js), then Needs you (c3-brief-needs.js).
|
|
274
|
-
* Right: Today (c3-brief-today.js) and Portfolio pulse (c3-brief-pulse.js). Review lives in Work's Review lens; Handled, What I could stop and
|
|
275
|
-
* Data you can lean on live in Reports > Drafts (console3-briefing-parity, PM decision 1). The ribbon and the embedded calendar are not here:
|
|
276
|
-
* the calendar is the Calendar tab. */
|
|
277
|
-
function briefTab(pane) {
|
|
278
|
-
const left = el('div', { class: 'bcol l' });
|
|
279
|
-
const right = el('div', { class: 'bcol r' });
|
|
280
|
-
const deckHost = el('div', { 'data-c3pg': 'deck-host' });
|
|
281
|
-
const ftHost = el('div');
|
|
282
|
-
S.deckHost = deckHost; S.needsBox = null;
|
|
283
|
-
let sig = '';
|
|
284
|
-
onBriefing((b) => { // the briefing's own foot line, when it carries one (the demo's). Built again only when it changed.
|
|
285
|
-
const g = JSON.stringify(b && b.foot);
|
|
286
|
-
if (g === sig) return; sig = g;
|
|
287
|
-
ftHost.replaceChildren(...(b && b.foot ? [footLine(b.foot)] : []));
|
|
288
|
-
if (S.why) whyMark();
|
|
289
|
-
});
|
|
290
|
-
S.needsBox = needsSection(S);
|
|
291
|
-
const summary = summarySection(S);
|
|
292
|
-
S.briefInput = briefInput;
|
|
293
|
-
S.briefGo = briefGo;
|
|
294
|
-
left.append(deckHost, scanSection(S), reportFoundSection(S), S.needsBox, mentionsSection(S)); // the Horizon scan card sits above Needs you, and shows only on a day a scan ran
|
|
295
|
-
right.append(todaySection(), pulse(S));
|
|
296
|
-
pane.append(el('div', { class: 'brief' }, el('div', { class: 'bcols' }, left, right), ftHost));
|
|
297
|
-
mountBriefing(deckHost, { noTicker: true, onLens: lensChanged, afterStance: summary });
|
|
298
|
-
onBriefPage((j) => { S.briefPage = j; if (S.briefRedraw) S.briefRedraw(); });
|
|
299
|
-
loadBriefPage();
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/* What The brief composes from (c3-brief-summary.js composeBrief): the rows Needs you shows, the mentions, today's meetings and the pulse rows.
|
|
303
|
-
* A read that has not come back is null, so its sentence is left out. */
|
|
304
|
-
function briefInput() {
|
|
305
|
-
const n = S.needsSnapshot ? S.needsSnapshot() : null;
|
|
306
|
-
const p = S.briefPage && S.briefPage.ok !== false ? S.briefPage : null;
|
|
307
|
-
return { lens: S.briefLens || null, decisions: n ? n.decisions : null, own: n ? n.own : null, agentN: n ? n.agentN : 0,
|
|
308
|
-
mentions: S.mentionsNow ? S.mentionsNow() : null, agenda: p ? (p.today || []) : null, pulse: S.pulseRows || null };
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/* A link in The brief goes to its row: a Needs you row opens (goTarget), a meeting or an initiative row is scrolled to and focused. */
|
|
312
|
-
function briefGo(g) {
|
|
313
|
-
if (!g) return;
|
|
314
|
-
if (g.kind === 'need') { goTarget({ need: g.key }); return; }
|
|
315
|
-
const pane = S.panes && S.panes.brief; if (!pane) return;
|
|
316
|
-
const q = (v) => String(v).replace(/["\\]/g, '');
|
|
317
|
-
const row = g.kind === 'meet' ? pane.querySelector('[data-today-row="' + q(g.key) + '"]') : g.kind === 'init' ? pane.querySelector('[data-pulse-row="' + q(g.key) + '"]') : null;
|
|
318
|
-
if (!row) return;
|
|
319
|
-
row.scrollIntoView({ block: 'center', behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' });
|
|
320
|
-
const target = g.kind === 'init' ? row.querySelector('[data-c3pg-prow]') : row;
|
|
321
|
-
if (target && !target.hasAttribute('tabindex') && !target.matches('button,a')) target.setAttribute('tabindex', '-1');
|
|
322
|
-
try { (target || row).focus({ preventScroll: true }); } catch { /* gone */ }
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/* The clock's part of the day: Reflect names Needs you "Carries over" (the mockup's vBrief, line 1470). */
|
|
326
|
-
function lensChanged(l) {
|
|
327
|
-
setNeedsTitle(S.needsBox, l === 'Reflect');
|
|
328
|
-
S.briefLens = l; if (S.briefRedraw) S.briefRedraw();
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/* ── global: where a notification goes, the person sheet, the palette and the keys ── */
|
|
332
|
-
/* A bell entry or the banner goes to its target (console3.html nopen, line 2530): the card to turn over, the row to open, or the sheet to show. */
|
|
333
|
-
/* The report pages ask the shell to go somewhere (c3-report-store.js goTo): { tab, view?, section?, finding? }. Settings opens on a section. */
|
|
334
|
-
if (typeof window !== 'undefined') window.addEventListener('pmos:go-tab', (e) => {
|
|
335
|
-
const d = (e && e.detail) || {}; if (!d.tab) return;
|
|
336
|
-
showTab(d.tab, true);
|
|
337
|
-
if (d.tab === 'settings' && d.section) settingsReady().then((st) => st.show(d.section), () => {});
|
|
338
|
-
if (d.tab === 'rep' && d.view) reportsView(d.view);
|
|
339
|
-
});
|
|
340
|
-
function goTarget(t) {
|
|
341
|
-
/* a dashboard schedule's notice (routes-briefing.js notices): Reports, then its Drafts tab */
|
|
342
|
-
if (t && t.tab && BUILD[t.tab]) { showTab(t.tab, true); if (t.tab === 'rep' && t.view) reportsView(t.view); return; }
|
|
343
|
-
showTab('brief', true);
|
|
344
|
-
if (!t) return;
|
|
345
|
-
if (t.card !== undefined && t.card !== null) { showCard(S.deckHost, t.card); return; }
|
|
346
|
-
if (t.need) {
|
|
347
|
-
let row = S.panes.brief.querySelector('[data-needs-row="' + String(t.need).replace(/"/g, '') + '"]');
|
|
348
|
-
if (row && row.closest('.xp:not(.open)') && S.refreshNeeds) { S.pinNeed = String(t.need); S.refreshNeeds(); row = S.panes.brief.querySelector('[data-needs-row="' + String(t.need).replace(/"/g, '') + '"]') || row; } // below the line: the row joins the visible rows, the fold stays shut
|
|
349
|
-
if (row) {
|
|
350
|
-
for (let f = row.closest('.xp'); f; f = f.parentElement && f.parentElement.closest('.xp')) { const fb = f.previousElementSibling; if (!f.classList.contains('open') && fb && fb.matches('button[aria-expanded]')) fb.click(); } // a row below the line sits in a closed fold: open the fold first, as the mockup does
|
|
351
|
-
const api = rowApi.get(row); if (api) api.open(); row.scrollIntoView({ block: 'center', behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' }); try { row.focus({ preventScroll: true }); } catch { /* gone */ } }
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
if (t.sheet === 'review' && S.brief && S.brief.review) openSheet({ title: 'Review', icon: 'spark', wide: true, body: reviewSection(S.brief.review) });
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/* the person sheet (console3.html sheet, line 1927) */
|
|
358
|
-
const personNotes = {};
|
|
359
|
-
function openPerson(k) {
|
|
360
|
-
const p = (registry('people') || {})[k]; if (!p) return;
|
|
361
|
-
const row = (x) => el('div', { class: 'chips2', style: 'justify-content:space-between' }, el('span', null, x.t, el('div', { class: 'dim', style: 'font-size:var(--fs-2)' }, x.due + ' · ' + x.init)), el('span', { class: 'st ' + (x.overdue ? 'bad' : 'warn') }, c3ic(x.overdue ? 'alert' : 'clock', 'sm')));
|
|
362
|
-
const h3 = (icon, t) => el('h3', { class: 'mono dim', style: 'font-size:var(--fs-1);margin:0' }, c3ic(icon, 'sm'), ' ' + t);
|
|
363
|
-
const note = el('textarea', { id: 'pn', 'aria-label': 'Private notes', style: 'width:100%;min-height:70px;margin-top:6px', placeholder: 'Only you write here', oninput: () => { personNotes[k] = note.value; } });
|
|
364
|
-
note.value = personNotes[k] || '';
|
|
365
|
-
const body = [el('div', { class: 'chips2 dim mono', style: 'font-size:var(--fs-2)' }, c3ic('clock', 'sm'), 'last spoke ' + p.last),
|
|
366
|
-
el('div', { class: 'chips2 dim mono', style: 'font-size:var(--fs-2)' }, c3ic('out', 'sm'), 'told: ' + p.told),
|
|
367
|
-
h3('out', 'YOU OWE'), ...((p.owe || []).length ? p.owe.map(row) : [el('span', { class: 'dim' }, 'Nothing')]),
|
|
368
|
-
h3('wait', 'YOU WAIT ON'), ...((p.theirs || []).length ? p.theirs.map(row) : [el('span', { class: 'dim' }, 'Nothing')]),
|
|
369
|
-
...((p.kept || []).length ? [h3('check', 'KEPT'), ...p.kept.map((x) => el('div', { class: 'dim', style: 'font-size:var(--fs-3)' }, x))] : []),
|
|
370
|
-
el('details', null, el('summary', { class: 'chips2 dim', style: 'cursor:pointer;font-size:var(--fs-3);min-height:44px' }, c3ic('lock', 'sm'), 'private notes'), note,
|
|
371
|
-
el('div', { class: 'dim mono', style: 'font-size:var(--fs-1)' }, 'local only · never read into a draft, summary or session'))];
|
|
372
|
-
openSheet({ title: p.n + ' · ' + p.role + ' · ' + p.tier, icon: 'user', scrim: false, body });
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/* the palette (console3.html palette, line 1944): one input, up to nine results across places, people, documents and sessions */
|
|
376
|
-
function paletteItems() {
|
|
377
|
-
const items = [{ label: 'Agent playbooks', kind: 'place', icon: 'spark', run: () => openPlaybooks() },
|
|
378
|
-
...TABS.map(([id, label, icon]) => ({ label, kind: 'place', icon, run: () => showTab(id, true) })),
|
|
379
|
-
{ label: 'Settings', kind: 'place', icon: 'shield', run: () => showTab('settings', true) }];
|
|
380
|
-
for (const k of Object.keys(registry('people') || {})) { const p = registry('people')[k]; items.push({ label: p.n + ' · ' + p.role, kind: 'person', icon: 'user', run: () => openPerson(k) }); }
|
|
381
|
-
for (const d of registry('docs') || []) items.push({ label: d.n, kind: 'document', icon: d.icon || 'doc', run: () => showTab('init', true) });
|
|
382
|
-
for (const x of S.palSessions || []) items.push({ label: (x.branch || x.tree || '') ? ((x.branch || String(x.tree).split('/').pop()) + ' · ' + x.name) : x.name, kind: 'session', icon: 'branch', run: () => openSession(x) });
|
|
383
|
-
return items;
|
|
384
|
-
}
|
|
385
|
-
function openSession(x) {
|
|
386
|
-
showTab('brief', true); S.dockOpen = true; syncDock();
|
|
387
|
-
const b = [...(S.dockEl ? S.dockEl.querySelectorAll('.sr') : [])].find((n) => n.textContent.includes(x.name));
|
|
388
|
-
if (b) b.click(); else try { window.dispatchEvent(new CustomEvent('pmos:open-session', { detail: { id: x.id } })); } catch { /* no event */ }
|
|
389
|
-
}
|
|
390
|
-
function openPalette() {
|
|
391
|
-
if (S.pal) return;
|
|
392
|
-
closeMore();
|
|
393
|
-
const opener = document.activeElement && document.activeElement !== document.body ? document.activeElement : S.root.querySelector('[data-c3pg="search"]');
|
|
394
|
-
const input = el('input', { type: 'text', id: 'pq', placeholder: 'Go to a place, person, document or session', 'aria-label': 'Search', autocomplete: 'off', role: 'combobox', 'aria-expanded': 'true', 'aria-controls': 'pq-list', 'aria-autocomplete': 'list' });
|
|
395
|
-
const ul = el('ul', { class: 'list', id: 'pq-list', role: 'listbox', 'aria-label': 'Results' });
|
|
396
|
-
let at = 0; let list = [];
|
|
397
|
-
const pick = (it) => { closePalette(false); it.run(); };
|
|
398
|
-
const draw = () => {
|
|
399
|
-
list = filterPalette(paletteItems(), input.value);
|
|
400
|
-
at = Math.max(0, Math.min(at, list.length - 1));
|
|
401
|
-
ul.replaceChildren(...(list.length ? list.map((it, i) => el('li', null, el('button', { type: 'button', role: 'option', 'aria-selected': String(i === at), 'data-kind': it.kind, onclick: () => pick(it) }, c3ic(it.icon), it.label))) : [el('li', { class: 'dim', style: 'padding:10px 14px' }, 'Nothing matches.')]));
|
|
402
|
-
};
|
|
403
|
-
input.addEventListener('input', () => { at = 0; draw(); });
|
|
404
|
-
input.addEventListener('keydown', (e) => {
|
|
405
|
-
if (e.key === 'ArrowDown') { e.preventDefault(); at = Math.min(list.length - 1, at + 1); draw(); }
|
|
406
|
-
else if (e.key === 'ArrowUp') { e.preventDefault(); at = Math.max(0, at - 1); draw(); }
|
|
407
|
-
else if (e.key === 'Enter' && list[at]) { e.preventDefault(); pick(list[at]); }
|
|
408
|
-
});
|
|
409
|
-
const wrap = el('div', { class: 'c3 c3e c3pop', 'data-shell': 'palette' },
|
|
410
|
-
el('div', { class: 'pal', onclick: (e) => { if (e.target === e.currentTarget) closePalette(true); } }, el('div', { role: 'dialog', 'aria-modal': 'true', 'aria-label': 'Search' }, input, ul)));
|
|
411
|
-
document.body.appendChild(wrap);
|
|
412
|
-
S.pal = { wrap, opener };
|
|
413
|
-
draw(); input.focus();
|
|
414
|
-
/* sessions are read once per opening: GET /api/sessions */
|
|
415
|
-
pmGet('/api/sessions').then((j) => { if (S.pal && S.pal.wrap === wrap && j && Array.isArray(j.sessions)) { S.palSessions = j.sessions.filter((x) => !x.automatic); draw(); } }).catch(() => { /* none */ });
|
|
416
|
-
}
|
|
417
|
-
function closePalette(back) {
|
|
418
|
-
if (!S.pal) return;
|
|
419
|
-
const { wrap, opener } = S.pal; S.pal = null; wrap.remove();
|
|
420
|
-
if (back && opener && opener.isConnected && opener.focus) { try { opener.focus({ preventScroll: true }); } catch { /* gone */ } }
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/* The keys the mockup's script binds (console3.html 2191 to 2203 and 2460 to 2468), on the Briefing: j and k move the row focus, e and n act on a need, a and r on a draft,
|
|
424
|
-
* + and - move the time lens, Esc turns the open card back; everywhere: Ctrl or Cmd with J folds the dock, with K opens the search. "/" opens the search too (the mockup
|
|
425
|
-
* does not bind it; the PM asked for it). One handler on the document, in the capture phase, so it runs before a card or a calendar sees the key. */
|
|
426
|
-
const typing = (n) => !!(n && n.matches && n.matches('input,textarea,select,[contenteditable="true"]'));
|
|
427
|
-
const sheetOpen = () => !!document.querySelector('[data-shell="sheet"],[data-shell="preview"]');
|
|
428
|
-
function onKey(e) {
|
|
429
|
-
const ae = document.activeElement;
|
|
430
|
-
if ((e.metaKey || e.ctrlKey) && !e.altKey) {
|
|
431
|
-
if (e.key === 'j' || e.key === 'J') { e.preventDefault(); e.stopPropagation(); if (!e.repeat) { S.dockOpen = !S.dockOpen; keepDock(); syncDock(); } } // stopPropagation: the dock has its own Ctrl J handler on the bubble phase, and two toggles cancel out
|
|
432
|
-
else if (e.key === 'k' || e.key === 'K') { e.preventDefault(); if (S.pal) closePalette(true); else openPalette(); }
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
if (e.altKey) return;
|
|
436
|
-
if (S.pal) { if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); closePalette(true); } return; }
|
|
437
|
-
if (e.key === 'Escape' && S.tab === 'brief' && !S.menu && !sheetOpen() && S.deckHost && flipBack(S.deckHost)) { e.stopPropagation(); return; }
|
|
438
|
-
if (typing(ae) || sheetOpen()) return;
|
|
439
|
-
if (e.key === '/' && !e.shiftKey) { e.preventDefault(); openPalette(); return; }
|
|
440
|
-
if (S.tab !== 'brief') return;
|
|
441
|
-
const rows = [...S.panes.brief.querySelectorAll('[data-row]')].filter((r) => r.offsetParent !== null && getComputedStyle(r).visibility !== 'hidden');
|
|
442
|
-
const cur = ae && ae.closest ? ae.closest('[data-row][data-id]') : null;
|
|
443
|
-
if (e.key === 'j' || e.key === 'k') {
|
|
444
|
-
e.preventDefault();
|
|
445
|
-
const ni = rowStep(rows.length, rows.indexOf(cur), e.key === 'j' ? 1 : -1);
|
|
446
|
-
if (rows[ni]) rows[ni].focus();
|
|
447
|
-
return;
|
|
448
|
-
}
|
|
449
|
-
if (cur && e.key.length === 1 && 'enar'.includes(e.key)) {
|
|
450
|
-
e.stopPropagation(); e.preventDefault();
|
|
451
|
-
const api = rowApi.get(cur); const draft = cur.classList.contains('drow');
|
|
452
|
-
if (api && !draft && (e.key === 'e' || e.key === 'n')) (e.key === 'e' ? api.right : api.left)();
|
|
453
|
-
else if (api && draft && (e.key === 'a' || e.key === 'r')) (e.key === 'a' ? api.right : api.left)();
|
|
454
|
-
else toast(draft ? 'Drafts: a approves, r sends back' : 'Items: e done, n later');
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
/* ── the dock: the mockup's repository, branch and session tree (c3-dock.js) ── */
|
|
459
|
-
function dock() {
|
|
460
|
-
S.dock = createDock({
|
|
461
|
-
setOpen: (on) => { S.dockOpen = !!on; keepDock(); syncDock(); },
|
|
462
|
-
onWs: (id) => { const u = new URL(location.href); u.searchParams.set('ws', id); location.assign(u.toString()); },
|
|
463
|
-
/* the needs-you badge on the agent button: runs that ask, hold a permission or need the terminal (not the running ones) */
|
|
464
|
-
onCount: (live, need) => { S.termBdg.textContent = String(need); S.termBdg.hidden = need === 0; import('./c3-terminal-icons.js').then((m) => { const t = m.TIPS.agentHeader(need); S.termBtn.title = t; S.termBtn.setAttribute('aria-label', t); }); }, // the badge counts runs that need you, never running ones
|
|
465
|
-
});
|
|
466
|
-
S.dockEl = S.dock.side;
|
|
467
|
-
// a session opens in its own terminal sheet on this page (c3-session-term.js), not in the main app
|
|
468
|
-
// no id means "start one": the new-session sheet opens on this page (c3-new-session.js), not the classic app
|
|
469
|
-
window.addEventListener('pmos:open-session', (e) => { const id = e.detail && e.detail.id; if (!id) { S.dock.newSession(); return; } import('./c3-session-term.js').then((m) => m.openSessionTerm({ id, name: e.detail.name })); });
|
|
470
|
-
window.addEventListener('pmos:new-session', (e) => { e.preventDefault(); S.dock.newSession(e.detail && e.detail.on); });
|
|
471
|
-
return [S.dock.side];
|
|
472
|
-
}
|
|
473
|
-
/* The dock is open on the Briefing and folded away on the other tabs. A folded dock leaves no rail (PM, 2026-10-12): the header's Sessions button, Ctrl J and the More menu reach it. */
|
|
474
|
-
function syncDock() {
|
|
475
|
-
const opening = S.dockEl.hidden && S.dockOpen;
|
|
476
|
-
S.dockEl.hidden = !S.dockOpen;
|
|
477
|
-
if (opening && S.dockStarted) S.dock.refresh(); // a folded dock reads only the runs; opening it reads the tree (c3-dock.js refresh)
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
/* ── the other tabs ── */
|
|
481
|
-
/* Reports: the headline deck on top (the Plan deck of the Reports scope), then the three tabs (Dashboards, Reports, Charts; c3-reports.js).
|
|
482
|
-
* The Reports deck always names its scope, so real mode gets the engine's report signals and never the Briefing's cards (console3-deck-flow-fixes). */
|
|
483
|
-
function repTab(pane) { return import('./c3-reports.js').then((m) => m.mountReports(pane, { ws: S.ws, pmGet, deck: (h) => h.append(planNode('rep')) })); }
|
|
484
|
-
/* Reports opens on a view (Drafts, a dashboard). Before the tab has loaded, c3-reports.js keeps the view and opens on it. */
|
|
485
|
-
const reportsView = (v) => import('./c3-reports.js').then((m) => m.showReportsView(v));
|
|
486
|
-
|
|
487
|
-
/* Each tab's code loads the first time the tab is shown (c3-desktop-light-load): the page starts with the Briefing's modules only.
|
|
488
|
-
* The Work tab's module (pm-work-view.js) is already loaded for the console's shared helpers. */
|
|
489
|
-
const BUILD = { brief: briefTab,
|
|
490
|
-
cal: (p) => import('./calendar-views.js').then((m) => m.mountCalendarViews(p, { view: 'week', page: true, scope: sc('cal'), deck: planNode('cal', { bare: true }) })),
|
|
491
|
-
work: (p) => { mountPmWork(p, { go: (t) => showTab(t, true), ws: S.ws }); },
|
|
492
|
-
init: (p) => import('./c3-initiatives.js').then((m) => m.mountInitiatives(p, { ws: S.ws, workspaces: S.workspaces, demo: DEMO, showTab })),
|
|
493
|
-
rep: repTab };
|
|
494
|
-
/* A tab whose code could not load says so in its pane, and the next press tries again. */
|
|
495
|
-
function build(id) {
|
|
496
|
-
S.mounted[id] = Promise.resolve().then(() => BUILD[id](S.panes[id])).catch((e) => {
|
|
497
|
-
delete S.mounted[id];
|
|
498
|
-
S.panes[id].replaceChildren(el('p', { class: 'dim mono c3s2', role: 'status', 'data-c3pg': 'tab-error' }, 'This page could not load: ' + String((e && e.message) || e) + '. Open the tab again to retry.'));
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
/* Settings loads on its first opening (c3-settings.js). `then(fn)` runs fn with the mounted Settings. */
|
|
502
|
-
function settingsReady() {
|
|
503
|
-
if (!S.settingsLoad) {
|
|
504
|
-
S.settingsCtx = { ws: S.ws, workspaces: S.workspaces, theme: S.theme, themePref: S.themePref, setTheme, goTab: (t, v) => { showTab(t, true); if (t === 'rep' && v) reportsView(v); }, section: q.get('section') || '', root: S.root };
|
|
505
|
-
S.settingsLoad = import('./c3-settings.js').then((m) => { S.settings = m.mountSettings(S.panes.settings, S.settingsCtx); return S.settings; });
|
|
506
|
-
S.settingsLoad.catch((e) => {
|
|
507
|
-
S.settingsLoad = null;
|
|
508
|
-
S.panes.settings.replaceChildren(el('p', { class: 'dim mono c3s2', role: 'status', 'data-c3pg': 'tab-error' }, 'Settings could not load: ' + String((e && e.message) || e) + '. Open Settings again to retry.'));
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
return S.settingsLoad;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
function showTab(id, push) {
|
|
515
|
-
if (!BUILD[id] && id !== 'settings') id = 'brief';
|
|
516
|
-
S.tab = id;
|
|
517
|
-
for (const [t, label, icon] of TABS) {
|
|
518
|
-
const on = t === id;
|
|
519
|
-
S.tabBtns[t].setAttribute('aria-selected', String(on)); S.tabBtns[t].tabIndex = on ? 0 : (id === 'settings' && t === 'brief' ? 0 : -1);
|
|
520
|
-
S.panes[t].hidden = !on;
|
|
521
|
-
if (on) { S.ttl.replaceChildren(c3ic(icon, 'lg'), label); document.title = label + ' · PMOS console'; }
|
|
522
|
-
}
|
|
523
|
-
S.panes.settings.hidden = id !== 'settings';
|
|
524
|
-
if (S.gearBtn) S.gearBtn.setAttribute('aria-pressed', String(id === 'settings'));
|
|
525
|
-
if (id === 'settings') {
|
|
526
|
-
S.ttl.replaceChildren(gearIcon('lg'), 'Settings'); document.title = 'Settings · PMOS console';
|
|
527
|
-
if (!S.settings) settingsReady();
|
|
528
|
-
else S.settings.refresh();
|
|
529
|
-
} else if (!S.mounted[id]) build(id);
|
|
530
|
-
S.root.dataset.tab = id;
|
|
531
|
-
S.dockOpen = S.wide && id === 'brief' && dockPref(); syncDock(); // the dock starts folded (c3-quiet-pages); Ctrl J or the More menu opens it, and the choice is kept
|
|
532
|
-
S.pageView.classList.remove('view'); void S.pageView.offsetWidth; S.pageView.classList.add('view');
|
|
533
|
-
moveInd();
|
|
534
|
-
if (push) S.userNav = true;
|
|
535
|
-
if (push) { try { const u = new URL(location.href); u.searchParams.set('tab', id); history.replaceState(null, '', u); } catch { /* no history */ } }
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
const setBdg = (b, n) => { b.textContent = String(n); b.hidden = !n; };
|
|
539
|
-
S.setNeedsBdg = (n) => { S.needsLive = true; setBdg(S.briefBdg, n); };
|
|
540
|
-
|
|
541
|
-
/* Tab badges. Briefing: the Needs you count (the section's own count once it is drawn; before that, the same rules over the briefing and the brief page).
|
|
542
|
-
* Initiatives: the new asks to triage, that is the captures an agent triaged and the PM has not added yet (GET /api/needs, kind triage); the demo has four. */
|
|
543
|
-
function briefCount() {
|
|
544
|
-
let b = null; let page = null;
|
|
545
|
-
const upd = () => { if (!S.needsLive) setBdg(S.briefBdg, needsCount(b, page)); };
|
|
546
|
-
onBriefing((x) => { b = x; upd(); }); onBriefPage((x) => { page = x; upd(); });
|
|
547
|
-
loadBriefing(); if (S.tab !== 'brief') loadBriefPage();
|
|
548
|
-
}
|
|
549
|
-
/* The Briefing's first read has answered (or 4 s have passed), and the browser has a free moment. */
|
|
550
|
-
function afterBriefing() {
|
|
551
|
-
const idle = () => new Promise((res) => (typeof requestIdleCallback === 'function' ? requestIdleCallback(() => res(), { timeout: 1500 }) : setTimeout(res, 200)));
|
|
552
|
-
return Promise.race([loadBriefing(), new Promise((res) => setTimeout(res, 4000))]).then(idle, idle);
|
|
553
|
-
}
|
|
554
|
-
async function askCount() {
|
|
555
|
-
if (S.demo) { setBdg(S.initBdg, 4); return; }
|
|
556
|
-
const j = await pmGet('/api/needs?ws=' + encodeURIComponent(S.ws) + '&kind=triage').catch(() => null); // only the triage rows: the badge counts them
|
|
557
|
-
if (!j || !Array.isArray(j.needs)) return;
|
|
558
|
-
setBdg(S.initBdg, j.needs.filter((r) => r && r.kind === 'triage').length);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
async function workCount() {
|
|
562
|
-
const j = await pmGet('/api/pm-items?counts=1').catch(() => null); // the counts alone; the Work page reads the lists when it opens
|
|
563
|
-
if (!j || !j.ok || !(j.lists || j.counts)) return;
|
|
564
|
-
if (j.counts && typeof j.counts.inbox === 'number') { // the Work page's own counts: what is to process (inbox) plus what is on today
|
|
565
|
-
const w = j.counts.inbox + (Number(j.counts.today) || 0);
|
|
566
|
-
S.workBdg.textContent = String(w); S.workBdg.hidden = w === 0;
|
|
567
|
-
return;
|
|
568
|
-
}
|
|
569
|
-
const L = j.lists || {}; const n = (L.triage || []).length + (S.demo ? 0 : (L.today || []).length); // the mockup's Work badge counts what is to triage
|
|
570
|
-
S.workBdg.textContent = String(n); S.workBdg.hidden = n === 0;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
async function boot() {
|
|
574
|
-
const root = document.getElementById('c3-root');
|
|
575
|
-
S.root = root;
|
|
576
|
-
if (DEMO) { const m = await import('./c3-demo.js'); m.installDemo(); S.demoMod = m; if (window.__c3demoReady) await window.__c3demoReady; if (!S.ws) S.ws = m.DEMO_WS; root.setAttribute('data-c3-demo', '1'); }
|
|
577
|
-
withWs();
|
|
578
|
-
ensureC3Css();
|
|
579
|
-
c3Phone(root);
|
|
580
|
-
const t = q.get('theme') || store.get(THEME_KEY) || 'light';
|
|
581
|
-
setTheme(t);
|
|
582
|
-
try { S.workspaces = (await pmGet('/api/workspaces')).workspaces || []; } catch { S.workspaces = []; }
|
|
583
|
-
if (!S.ws || !S.workspaces.some((w) => w.id === S.ws)) S.ws = (S.workspaces[0] && S.workspaces[0].id) || S.ws;
|
|
584
|
-
|
|
585
|
-
S.tickHost = el('div', { class: 'c3pg-tick', 'data-c3pg': 'ticker-host' });
|
|
586
|
-
S.pageView = el('div', { class: 'view' });
|
|
587
|
-
for (const [id] of TABS) { S.panes[id] = el('div', { class: 'c3pg-pane', role: 'tabpanel', id: 'c3pane-' + id, 'aria-labelledby': 'c3tab-' + id, hidden: true, 'data-c3-pane': id }); S.pageView.append(S.panes[id]); }
|
|
588
|
-
S.panes.settings = el('div', { class: 'c3pg-pane', role: 'region', 'aria-label': 'Settings', hidden: true, 'data-c3-pane': 'settings' }); S.pageView.append(S.panes.settings);
|
|
589
|
-
const main = el('div', { class: 'c3main' }, header(), S.tickHost, tabBar(), S.pageView);
|
|
590
|
-
S.grid = el('div', { class: 'c3grid' }, main, ...dock());
|
|
591
|
-
root.replaceChildren(S.grid);
|
|
592
|
-
mountDaypart(root, root.querySelector('.c3top'));
|
|
593
|
-
mountAmbient(root); // the ambient motion canvas, once, behind the grid
|
|
594
|
-
mountQuiet(root); // the quiet layout: two rows above the content, no teaching sentences (c3-quiet-pages)
|
|
595
|
-
syncPhone(); // at phone width the companion replaces the desktop frame (c3-phone-companion)
|
|
596
|
-
if (typeof matchMedia === 'function') matchMedia('(max-width:640px)').addEventListener('change', syncPhone);
|
|
597
|
-
|
|
598
|
-
S.dock.setWorkspaces(S.workspaces, S.ws);
|
|
599
|
-
mountBell(S.bellHost, { go: (_, t) => goTarget(t) });
|
|
600
|
-
briefHooks.person = openPerson;
|
|
601
|
-
briefHooks.go = (g) => { const t = { goinit: 'init', gorep: 'rep', godeliver: 'rep', gowork: 'work', gocal: 'cal' }[g.action]; if (t) showTab(t, true); };
|
|
602
|
-
document.addEventListener('keydown', onKey, true);
|
|
603
|
-
mountTicker(S.tickHost, { onOpen: () => openBellList() });
|
|
604
|
-
import('./shell-recording.js').then((m) => m.mountRecording(S.tools)).catch(() => { /* the recorder is not available on this page */ });
|
|
605
|
-
S.narrow = matchMedia('(max-width:980px)');
|
|
606
|
-
S.narrow.addEventListener('change', () => { S.wide = !S.narrow.matches; S.dockOpen = S.wide && S.tab === 'brief' && dockPref(); syncDock(); });
|
|
607
|
-
S.wide = !S.narrow.matches;
|
|
608
|
-
/* The saved settings set the start page (look.start) when the address names no tab, and turn the time-of-day tint and strip off or on. */
|
|
609
|
-
let start = q.get('tab');
|
|
610
|
-
const saved = DEMO ? null : await pmGet('/api/settings' + (S.ws ? '?ws=' + encodeURIComponent(S.ws) : '')).catch(() => null); // demo mode's workspace is not registered
|
|
611
|
-
if (saved && saved.ok) { applyLook(root, saved.settings); if (!start) { const s = (saved.settings || []).find((x) => x.key === 'look.start'); if (s && BUILD[s.value]) start = s.value; } }
|
|
612
|
-
if (q.get('focus') || q.get('fdate')) import('./c3-focus.js').then((m) => m.openFocus({ event: { id: q.get('focus') || '', ...(q.get('fat') ? { at: q.get('fat'), title: q.get('ftitle') || '' } : {}) }, date: q.get('fdate') || '', pop: q.get('pop') === '1', meet: q.get('meet') || '', mtitle: q.get('mtitle') || '' })).catch(() => { /* the focus page is not available */ }); // a reload keeps the Meeting focus page open; ?pop=1 is its compact form for the Chrome extension (focus=now asks which meeting the Meet call is)
|
|
613
|
-
/* ?studio=<report id> opens that report's design studio over the Reports tab (the PMOS Chrome extension's Open the studio). */
|
|
614
|
-
if (q.get('studio') && /^[a-z][a-z0-9-]{0,39}$/.test(q.get('studio'))) { if (!start) start = 'rep'; import('./c3-design-studio.js').then((m) => m.openStudio({ ws: S.ws, id: q.get('studio'), name: '' })).catch(() => { /* the studio is not available */ }); }
|
|
615
|
-
/* ?structure=<report id> opens that report's Structure step (the studio's step 1) over the Reports tab. */
|
|
616
|
-
// ?replay=<note id> opens the meeting replay of that note (initiative meeting-material-replay-gaps). An id that is not a note id opens the replay page's own error, and makes no request.
|
|
617
|
-
if (q.get('replay')) import('./c3-replay.js').then((m) => m.openReplay(m.NOTE_ID_RE.test(q.get('replay')) ? { note: q.get('replay') } : { note: '' })).catch(() => {});
|
|
618
|
-
if (q.get('structure') && /^[a-z][a-z0-9-]{0,39}$/.test(q.get('structure'))) { if (!start) start = 'rep'; import('./c3-report-structure.js').then((m) => m.openStructure({ ws: S.ws, id: q.get('structure'), name: '' })).catch(() => { /* the structure step is not available */ }); }
|
|
619
|
-
// ?term=<session id> opens that session's live terminal (the premium chat's Open in terminal): the same process, attached, not a second one
|
|
620
|
-
if (/^sess-\d+$/.test(q.get('term') || '')) import('./c3-session-term.js').then((m) => m.openSessionTerm({ id: q.get('term'), view: 'term' })).catch(() => { /* the terminal is not available */ });
|
|
621
|
-
if (!S.userNav) showTab(start || 'brief', false); // a press during the read above (the gear, a tab) wins over the start page
|
|
622
|
-
new ResizeObserver(moveInd).observe(S.tabNav);
|
|
623
|
-
briefCount(); S.dock.start(); S.dockStarted = true;
|
|
624
|
-
afterBriefing().then(() => { workCount(); askCount(); }); // the Work and Initiatives counts wait until the Briefing has its own reads
|
|
625
|
-
setInterval(() => { S.sub.textContent = dateLine(); }, 30000);
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
boot().catch((e) => { const r = document.getElementById('c3-root'); if (r) r.textContent = 'The console could not start: ' + String((e && e.message) || e); });
|