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,274 +0,0 @@
|
|
|
1
|
-
/* pm/shell-recording.js — the Record control in console3's top bar (console3 wave E2b; the Record control port).
|
|
2
|
-
*
|
|
3
|
-
* mountRecording(host) / disposeRecording(host)
|
|
4
|
-
*
|
|
5
|
-
* The control is always there, idle included, with the same capabilities as the main app's Record control (pm/topbar.js, pm/note-dock.js):
|
|
6
|
-
* New (an untitled note that records at once), an arrow that lists today's meetings that have not ended, including one under way (a pick makes a note linked to that
|
|
7
|
-
* calendar event and records it), and, while a meeting records or is paused, a chip that names it with Highlight, Pause or Resume, and Stop
|
|
8
|
-
* (Stop asks first and offers "Pause instead"). All of it goes through pm/note-dock.js, which owns the real recorder, so the audio capture of
|
|
9
|
-
* pm/view-notes.js runs here without the main app's Notes place on screen. The chip opens the note in the main app, because console3 has no
|
|
10
|
-
* Notes place. While one meeting records, a red dot sits on the Calendar tab (`[data-c3-tab="cal"]`) and on a Notes tab if a frame draws one.
|
|
11
|
-
* On /c3.html?demo=1 the control drives a SIMULATED recorder (see below): it opens no microphone and saves nothing; it shows the idle Record button and
|
|
12
|
-
* arrow, and the live group while the simulation runs. Lifted: console3.html `.recg` and `recCtl` (lines 916 to 924, 4385 to 4400). The clock is the recorder's own start time.
|
|
13
|
-
*/
|
|
14
|
-
import { el } from './dom.js';
|
|
15
|
-
import { button } from './primitives.js';
|
|
16
|
-
import { ensureC3Css, c3ic } from './pm-work-view.js';
|
|
17
|
-
import * as dock from './note-dock.js';
|
|
18
|
-
import { noteById } from './notes-links.js';
|
|
19
|
-
import { recView, clockOf } from './shell-model.js';
|
|
20
|
-
import { reducedMotion } from './shell-ticker.js';
|
|
21
|
-
import { toast } from './c3-toast.js';
|
|
22
|
-
import * as Shots from './notes-shots.js';
|
|
23
|
-
|
|
24
|
-
/* the red dot sits on the Notes tab (the app's frame) and, on /c3.html, on the Calendar tab, where the meeting is recorded (the mockup's
|
|
25
|
-
* `#tabbtns [data-k=cal]` .tabdot, line 4395) */
|
|
26
|
-
const TAB = '[data-fr-dest="notes"], #mobNav [data-dest="notes"], [data-c3-tab="cal"]';
|
|
27
|
-
|
|
28
|
-
/* ── demo mode: a SIMULATED recorder ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
29
|
-
* On /c3.html?demo=1 the Record button of the Calendar's During and After stages drives this stand-in, so the top bar shows the mockup's
|
|
30
|
-
* recording group: a pulsing dot, the clock, mark moment, pause or resume, and stop. It keeps a clock (performance.now: the demo freezes
|
|
31
|
-
* Date) and nothing else. No microphone is opened and nothing is saved. Real mode never reaches it: `isDemo()` reads the page's
|
|
32
|
-
* data-c3-demo mark, which only the demo sets. */
|
|
33
|
-
export const isDemo = () => typeof document !== 'undefined' && !!document.querySelector('[data-c3-demo]');
|
|
34
|
-
const SIM = { mode: 'idle', id: 'sim', title: '', started: 0, pausedAt: 0 };
|
|
35
|
-
const tick = () => performance.now();
|
|
36
|
-
const emit = () => window.dispatchEvent(new CustomEvent('c3-sim-rec'));
|
|
37
|
-
const simClock = () => clockOf(Math.max(0, (SIM.mode === 'paused' ? SIM.pausedAt : tick()) - SIM.started));
|
|
38
|
-
export const simState = () => ({ mode: SIM.mode, id: SIM.id, title: SIM.title, started: SIM.started });
|
|
39
|
-
export function simStart(title) {
|
|
40
|
-
if (SIM.mode !== 'idle') return;
|
|
41
|
-
Object.assign(SIM, { mode: 'recording', title: title || 'Customer interview', started: tick(), pausedAt: 0 });
|
|
42
|
-
toast('Recording started. Notes stay on this machine. (Demo: nothing is recorded.)'); emit();
|
|
43
|
-
}
|
|
44
|
-
export const simDock = {
|
|
45
|
-
recordState: simState,
|
|
46
|
-
now: tick,
|
|
47
|
-
openDock() { window.dispatchEvent(new CustomEvent('c3-sim-open')); },
|
|
48
|
-
highlightNow() { toast('Moment marked at ' + simClock()); },
|
|
49
|
-
pauseNow() { if (SIM.mode !== 'recording') return; SIM.mode = 'paused'; SIM.pausedAt = tick(); toast('Paused. Nothing is captured until you resume.'); emit(); },
|
|
50
|
-
resumeNow() { if (SIM.mode !== 'paused') return; SIM.started += tick() - SIM.pausedAt; SIM.mode = 'recording'; toast('Resumed.'); emit(); },
|
|
51
|
-
stopNow() { if (SIM.mode === 'idle') return; SIM.mode = 'idle'; toast('Saved. The summary is being written.'); emit(); },
|
|
52
|
-
};
|
|
53
|
-
const live = new WeakMap();
|
|
54
|
-
|
|
55
|
-
/* Demo mode, idle: the mockup's Record button and the arrow beside it (the same two buttons the real control draws). Record starts the simulated recorder with an
|
|
56
|
-
* untitled note; the arrow lists the same choice and today's meetings that have not ended. Nothing is opened or saved. */
|
|
57
|
-
function simIdle(d) {
|
|
58
|
-
const glyph = (dd) => { const sv = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); sv.setAttribute('class', 'ic sm'); sv.setAttribute('viewBox', '0 0 24 24'); sv.setAttribute('aria-hidden', 'true'); const pth = document.createElementNS('http://www.w3.org/2000/svg', 'path'); pth.setAttribute('d', dd); sv.appendChild(pth); return sv; };
|
|
59
|
-
const start = (title) => { if (d === simDock) simStart(title); };
|
|
60
|
-
const mic = button({ variant: 'ghost', label: [c3ic('mic', 'sm'), el('span', { class: 'c3rec__lbl' }, 'Record')], onClick: () => start('Untitled note'),
|
|
61
|
-
attrs: { title: 'Record an untitled note', 'aria-label': 'Record an untitled note', 'data-fr-rec-new': '' } });
|
|
62
|
-
const arrow = button({ variant: 'ghost', label: glyph('M6 9l6 6 6-6'), attrs: { title: 'Record for an upcoming meeting', 'aria-label': 'Record for an upcoming meeting', 'aria-haspopup': 'menu', 'data-fr-rec-upcoming': '' },
|
|
63
|
-
onClick: async (e) => {
|
|
64
|
-
const anchor = e.currentTarget;
|
|
65
|
-
const { menu } = await import('./primitives.js');
|
|
66
|
-
let evs = [];
|
|
67
|
-
try { const links = await import('./notes-links.js'); evs = links.upcomingWithoutNote(await links.upcomingToday()); } catch { evs = []; }
|
|
68
|
-
menu({ anchor, ariaLabel: 'Record a new meeting', items: [{ label: 'Untitled note', icon: 'plus', detail: 'not linked to a meeting', attrs: { 'data-fr-rec-untitled': '' }, onSelect: () => start('Untitled note') }, { sep: true },
|
|
69
|
-
...(evs.length ? evs.slice(0, 4).map((x) => ({ label: x.title, hint: x.time || '', attrs: { 'data-fr-rec-event': x.id || '' }, onSelect: () => start(x.title) })) : [{ label: 'No more meetings today', attrs: { 'data-fr-rec-none': '' }, onSelect: () => {} }])] });
|
|
70
|
-
} });
|
|
71
|
-
return [mic, arrow];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function mountRecording(host, opts) {
|
|
75
|
-
if (!host) return;
|
|
76
|
-
disposeRecording(host);
|
|
77
|
-
ensureC3Css();
|
|
78
|
-
if (!(opts && opts.dock) && !isDemo()) return mountReal(host);
|
|
79
|
-
const d = (opts && opts.dock) || simDock;
|
|
80
|
-
const nowMs = () => (d.now ? d.now() : Date.now());
|
|
81
|
-
const grp = el('span', { class: 'recg', role: 'group', 'aria-label': 'Recording', hidden: true, 'data-shell': 'recording' });
|
|
82
|
-
const wrap = el('span', { class: 'c3rec', 'data-fr': 'record' }, grp); // the same wrapper the real control has, so the idle group takes its look
|
|
83
|
-
host.insertBefore(wrap, host.firstChild);
|
|
84
|
-
const rec = { grp: wrap, key: '', clock: null, tabs: [] };
|
|
85
|
-
const tabDot = (on) => {
|
|
86
|
-
for (const t of document.querySelectorAll(TAB)) {
|
|
87
|
-
let dot = t.querySelector('.shell-recdot');
|
|
88
|
-
if (!dot) { dot = el('span', { class: 'shell-recdot', 'aria-hidden': 'true' }); t.appendChild(dot); }
|
|
89
|
-
dot.hidden = !on;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
/* the page's own sprite (c3i-*) draws these; it has no pause glyph, so that one is two bars (the mockup's recCtl, line 4389) */
|
|
93
|
-
const NS = 'http://www.w3.org/2000/svg';
|
|
94
|
-
const bars = () => { const s = document.createElementNS(NS, 'svg'); s.setAttribute('class', 'ic sm'); s.setAttribute('viewBox', '0 0 24 24'); s.setAttribute('aria-hidden', 'true'); const pth = document.createElementNS(NS, 'path'); pth.setAttribute('d', 'M8 5v14M16 5v14'); s.appendChild(pth); return s; };
|
|
95
|
-
const GL = { highlighter: () => c3ic('flag', 'sm'), pause: bars, play: () => c3ic('next', 'sm'), square: () => c3ic('stop', 'sm') };
|
|
96
|
-
const btn = (label, name, fn, attr) => el('button', { type: 'button', title: label, 'aria-label': label, [attr]: '', onclick: fn }, GL[name]());
|
|
97
|
-
const sync = () => {
|
|
98
|
-
let st; try { st = d.recordState(); } catch { st = { mode: 'idle' }; }
|
|
99
|
-
const v = recView(st, reducedMotion());
|
|
100
|
-
const key = [v.mode, st.id, v.title, v.dot].join(':');
|
|
101
|
-
if (key !== rec.key) {
|
|
102
|
-
rec.key = key;
|
|
103
|
-
grp.hidden = false; // the mockup shows the idle Record control too
|
|
104
|
-
grp.classList.toggle('paused', v.mode === 'paused');
|
|
105
|
-
grp.classList.toggle('idle', !v.shown);
|
|
106
|
-
grp.setAttribute('aria-label', v.shown ? (v.mode === 'recording' ? 'Recording ' : 'Paused: ') + v.title : 'New recording');
|
|
107
|
-
if (!v.shown) { rec.clock = null; grp.replaceChildren(...simIdle(d)); }
|
|
108
|
-
else {
|
|
109
|
-
rec.clock = el('span', { class: 'recclk', 'data-shell-rec-clock': '' });
|
|
110
|
-
const open = el('button', { type: 'button', title: (v.mode === 'recording' ? 'Recording: ' : 'Paused: ') + v.title + '. Open the live note', 'aria-label': 'Open the note: ' + v.title, 'data-shell-rec-open': '', onclick: () => d.openDock(st.id) },
|
|
111
|
-
el('span', { class: 'recdot' + (v.dot === 'static' ? ' static' : ''), 'data-dot': v.dot }), rec.clock, el('span', { class: 'rt' }, v.title),
|
|
112
|
-
el('span', { class: 'c3rec__eng', 'data-fr-rec-engine': '', title: 'The live transcript: engine and language (Notes settings). Demo value.' }, 'EN forced \u00b7 whisper'));
|
|
113
|
-
const kids = [open];
|
|
114
|
-
if (v.canMark) kids.push(btn('Mark this moment', 'highlighter', () => d.highlightNow(), 'data-shell-rec-mark'));
|
|
115
|
-
if (v.canPause) kids.push(btn('Pause', 'pause', () => d.pauseNow(), 'data-shell-rec-pause'));
|
|
116
|
-
if (v.canResume) kids.push(btn('Resume', 'play', () => d.resumeNow(), 'data-shell-rec-resume'));
|
|
117
|
-
if (v.canStop) kids.push(btn('Stop and save', 'square', () => d.stopNow(), 'data-shell-rec-stop'));
|
|
118
|
-
grp.replaceChildren(...kids);
|
|
119
|
-
}
|
|
120
|
-
tabDot(v.tabDot);
|
|
121
|
-
}
|
|
122
|
-
if (rec.clock) rec.clock.textContent = v.mode === 'recording' && st.started ? clockOf(nowMs() - st.started) : v.mode === 'paused' ? 'paused' : '';
|
|
123
|
-
};
|
|
124
|
-
rec.timer = setInterval(sync, 1000);
|
|
125
|
-
rec.onSim = () => sync();
|
|
126
|
-
window.addEventListener('c3-sim-rec', rec.onSim);
|
|
127
|
-
sync();
|
|
128
|
-
live.set(host, rec);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export function disposeRecording(host) {
|
|
132
|
-
const rec = host && live.get(host);
|
|
133
|
-
if (!rec) return;
|
|
134
|
-
clearInterval(rec.timer);
|
|
135
|
-
if (rec.off) rec.off();
|
|
136
|
-
if (rec.onSim) window.removeEventListener('c3-sim-rec', rec.onSim);
|
|
137
|
-
rec.grp.remove();
|
|
138
|
-
for (const t of document.querySelectorAll(TAB)) { const dot = t.querySelector('.shell-recdot'); if (dot) dot.remove(); }
|
|
139
|
-
live.delete(host);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* ── real mode: the always-visible Record control ─────────────────────────────────────────────────────────────────────────────────── */
|
|
143
|
-
|
|
144
|
-
const NS_SVG = 'http://www.w3.org/2000/svg';
|
|
145
|
-
const glyph = (d) => { const s = document.createElementNS(NS_SVG, 'svg'); s.setAttribute('class', 'ic sm'); s.setAttribute('viewBox', '0 0 24 24'); s.setAttribute('aria-hidden', 'true'); const p = document.createElementNS(NS_SVG, 'path'); p.setAttribute('d', d); s.appendChild(p); return s; };
|
|
146
|
-
const RGL = { highlighter: () => c3ic('flag', 'sm'), pause: () => glyph('M8 5v14M16 5v14'), play: () => c3ic('play', 'sm'), square: () => c3ic('stop', 'sm'), eye: () => c3ic('eye', 'sm'), mic: () => c3ic('mic', 'sm'), focus: () => c3ic('target', 'sm'), down: () => glyph('M6 9l6 6 6-6') };
|
|
147
|
-
|
|
148
|
-
/** The chip opens the note: on console3, Calendar › Notes on the During stage (calendar-views.js listens for c3-open-note);
|
|
149
|
-
* elsewhere the main app, where the full note is. */
|
|
150
|
-
const openNote = (id) => {
|
|
151
|
-
if (document.querySelector('[data-c3-tab="cal"]')) { window.dispatchEvent(new CustomEvent('c3-open-note', { detail: { id: id || dock.activeId() || null } })); return; }
|
|
152
|
-
try { window.open('/classic.html', '_blank', 'noopener'); } catch { /* a blocked pop-up */ }
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
/* The engine and language the live transcript uses, on the chip (notes-recording-reliability): a meeting transcribed in the wrong
|
|
156
|
-
* language because of a setting is visible while it records. Read once per recording from GET /api/notes/engine. */
|
|
157
|
-
const ENGINE = { Whisper: 'whisper', Qwen: 'qwen' };
|
|
158
|
-
async function engineLabel() {
|
|
159
|
-
try {
|
|
160
|
-
const { pmGet } = await import('./http.js');
|
|
161
|
-
const r = await pmGet('/api/notes/engine');
|
|
162
|
-
const w = r && r.ok ? r.whisper : null;
|
|
163
|
-
if (!w || !w.live) return '';
|
|
164
|
-
const name = Object.keys(ENGINE).find((k) => ENGINE[k] === w.live) || w.live;
|
|
165
|
-
const lang = ((w.languages || []).find((x) => x.value === w.language) || {}).label || w.language || '';
|
|
166
|
-
return name + (lang ? ' · ' + lang : '');
|
|
167
|
-
} catch { return ''; }
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/** The calendar meeting a note is recording, or null for a note that is not linked to one. */
|
|
171
|
-
function meetingOfNote(id) {
|
|
172
|
-
let n = null; try { n = noteById(id); } catch { n = null; }
|
|
173
|
-
const m = n && n.meeting;
|
|
174
|
-
return m && m.kind === 'event' && m.start ? m : null;
|
|
175
|
-
}
|
|
176
|
-
/** Meeting focus (initiative c3-meeting-focus): the page for the meeting being recorded. The event id is empty for a meeting without a stored id; the page then finds it by start and title. */
|
|
177
|
-
function openFocusFor(m) { // no date: the page takes the local day of the start (the note keeps it in UTC)
|
|
178
|
-
import('./c3-focus.js').then((f) => f.openFocus({ event: { id: m.event_id || '', at: m.start, end: m.end || null, title: m.title } }))
|
|
179
|
-
.catch(() => toast({ text: 'The focus page could not load.', tone: 'error' }));
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/** Meeting focus for a recording that is not on the calendar (an untitled note): the page opens on the note, with no topics or brief. */
|
|
183
|
-
function openFocusNote(id, title) {
|
|
184
|
-
import('./c3-focus.js').then((f) => f.openFocus({ note: id, event: { title: title || 'Untitled note' } }))
|
|
185
|
-
.catch(() => toast({ text: 'The focus page could not load.', tone: 'error' }));
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
function mountReal(host) {
|
|
189
|
-
ensureC3Css();
|
|
190
|
-
let ready = false;
|
|
191
|
-
const wrap = el('span', { class: 'c3rec', 'data-fr': 'record', 'data-shell': 'recording' });
|
|
192
|
-
host.insertBefore(wrap, host.firstChild);
|
|
193
|
-
const rec = { grp: wrap, key: '', clock: null };
|
|
194
|
-
const tabDot = (on) => {
|
|
195
|
-
for (const t of document.querySelectorAll(TAB)) {
|
|
196
|
-
let dot = t.querySelector('.shell-recdot');
|
|
197
|
-
if (!dot) { dot = el('span', { class: 'shell-recdot', 'aria-hidden': 'true' }); t.appendChild(dot); }
|
|
198
|
-
dot.hidden = !on;
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
const btn = (label, name, fn, attrs) => button({ label: RGL[name](), variant: 'ghost', onClick: fn, attrs: { title: label, 'aria-label': label, ...attrs } });
|
|
202
|
-
const off = (b, why) => { b.setAttribute('aria-disabled', 'true'); b.classList.add('c3rec__off'); b.title = why; b.setAttribute('aria-label', why); return b; };
|
|
203
|
-
const chipText = (st) => (st.mode === 'recording' ? (st.started ? clockOf(Date.now() - st.started) : '') : st.until ? 'paused · ' + Math.max(1, Math.ceil((st.until - Date.now()) / 60000)) + ' min left' : 'paused');
|
|
204
|
-
|
|
205
|
-
/** The arrow beside New: Untitled note, then today's meetings that have not ended (or ended within the grace period) and have no note, the next one marked. */
|
|
206
|
-
async function openUpcoming(anchor) {
|
|
207
|
-
const { menu } = await import('./primitives.js');
|
|
208
|
-
const links = await import('./notes-links.js');
|
|
209
|
-
const evs = links.upcomingWithoutNote(await links.upcomingToday());
|
|
210
|
-
const next = evs.find((x) => !links.started(x));
|
|
211
|
-
const fmt = (e) => {
|
|
212
|
-
const inText = links.whenText(e);
|
|
213
|
-
return { label: e.title, hint: e.time || '', detail: [e === next ? 'Next' : null, inText, e.with || null].filter(Boolean).join(' · '), attrs: { 'data-fr-rec-event': e.id || '' }, onSelect: () => dock.recordEvent(e) };
|
|
214
|
-
};
|
|
215
|
-
menu({ anchor, ariaLabel: 'Record a new meeting', items: [{ label: 'Untitled note', icon: 'plus', detail: 'not linked to a meeting', attrs: { 'data-fr-rec-untitled': '' }, onSelect: () => dock.recordNew() }, { sep: true },
|
|
216
|
-
...(evs.length ? evs.map(fmt) : [{ label: 'No more meetings today', attrs: { 'data-fr-rec-none': '' }, onSelect: () => {} }])] });
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
let eng = { id: null, text: '' };
|
|
220
|
-
const sync = () => {
|
|
221
|
-
let st; try { st = dock.recordState(); } catch { st = { mode: 'idle' }; }
|
|
222
|
-
if (st.mode !== 'idle' && eng.id !== st.id) { eng = { id: st.id, text: '' }; const want = st.id; engineLabel().then((t) => { if (eng.id === want && t) { eng.text = t; rec.key = ''; sync(); } }); }
|
|
223
|
-
const hl = st.mode === 'recording' && dock.highlightBusy ? dock.highlightBusy() : null;
|
|
224
|
-
const mt = st.mode !== 'idle' ? meetingOfNote(st.id) : null;
|
|
225
|
-
const key = [st.mode, st.id, st.title, hl ? hl.state + hl.open : '', Shots.active() ? Shots.chipText() : '', eng.text, mt ? 'f' + (mt.event_id || '') + mt.start : ''].join(':');
|
|
226
|
-
if (key !== rec.key) {
|
|
227
|
-
rec.key = key; rec.clock = null;
|
|
228
|
-
const recording = st.mode === 'recording';
|
|
229
|
-
const kids = [];
|
|
230
|
-
if (st.mode !== 'idle') {
|
|
231
|
-
const v = recView(st, reducedMotion());
|
|
232
|
-
rec.clock = el('span', { class: 'recclk', 'data-fr-rec-clock': '' }, chipText(st));
|
|
233
|
-
const chip = button({ variant: 'ghost', onClick: () => openNote(st.id),
|
|
234
|
-
attrs: { class: 'c3rec__chip', title: (recording ? 'Recording: ' : 'Paused: ') + v.title + '. Open the note', 'aria-label': (recording ? 'Recording ' : 'Paused: ') + v.title + '. Open the note.', 'data-fr-rec': st.mode, 'data-shell-rec-open': '' },
|
|
235
|
-
label: [el('span', { class: 'recdot' + (v.dot === 'static' ? ' static' : ''), 'data-dot': v.dot }), rec.clock, el('span', { class: 'rt' }, v.title),
|
|
236
|
-
...(eng.text ? [el('span', { class: 'c3rec__eng', 'data-fr-rec-engine': '', title: 'The live transcript: engine and language (Notes settings)' }, eng.text)] : [])] });
|
|
237
|
-
const group = [chip];
|
|
238
|
-
if (recording) {
|
|
239
|
-
group.push(btn(hl ? 'Highlight in progress: show it' : 'Highlight the last 30 seconds and what is said next', 'highlighter', () => dock.highlightNow(), { 'data-fr-rec-highlight': hl ? hl.state : '', 'data-shell-rec-mark': '' }),
|
|
240
|
-
btn('Pause (you can resume within 1 hour)', 'pause', () => dock.pauseNow(), { 'data-fr-rec-pause': '', 'data-shell-rec-pause': '' }));
|
|
241
|
-
// Pause shots: stops the pictures and keeps the sound (notes-shots.js; the same switch is in Focus next to REC)
|
|
242
|
-
if (Shots.active()) {
|
|
243
|
-
const off = Shots.paused();
|
|
244
|
-
group.push(btn(off ? 'Shots are paused. The sound is still recorded. Press to take shots again.' : 'Pause shots. The sound is still recorded.', off ? 'play' : 'eye',
|
|
245
|
-
() => { const now = Shots.setPaused(!Shots.paused()); toast({ text: now ? 'Shots paused. The sound is still recorded.' : 'Shots back on.' }); rec.key = ''; sync(); },
|
|
246
|
-
{ 'data-fr-rec-shots': off ? 'paused' : 'on', 'aria-pressed': String(off) }));
|
|
247
|
-
}
|
|
248
|
-
} else group.push(btn('Resume ' + st.title, 'play', () => dock.resumeNow(), { 'data-fr-rec-resume': '', 'data-shell-rec-resume': '' }));
|
|
249
|
-
group.push(btn('Open the focus page for this meeting', 'focus', () => (mt ? openFocusFor(mt) : openFocusNote(st.id, st.title)), { 'data-fr-rec-focus': '', 'data-shell-rec-focus': '' }));
|
|
250
|
-
group.push(btn('Stop for good (cannot be resumed)', 'square', () => dock.stopNow(), { 'data-fr-rec-stop': '', 'data-shell-rec-stop': '' }));
|
|
251
|
-
kids.push(el('span', { class: 'recg c3rec__live' + (recording ? '' : ' paused'), role: 'group', 'aria-label': (recording ? 'Recording ' : 'Paused: ') + st.title }, group));
|
|
252
|
-
}
|
|
253
|
-
const why = 'Pause or stop the meeting being recorded to start a new one';
|
|
254
|
-
const mic = button({ variant: 'ghost', label: [RGL.mic(), el('span', { class: 'c3rec__lbl' }, 'Record')], onClick: (e) => { if (!recording) dock.recordNew(e.currentTarget); },
|
|
255
|
-
attrs: { title: 'Record an untitled note', 'aria-label': 'Record an untitled note', 'data-fr-rec-new': '' } });
|
|
256
|
-
const arrow = btn('Record for an upcoming meeting', 'down', (e) => { if (!recording) openUpcoming(e.currentTarget); }, { 'data-fr-rec-upcoming': '', 'aria-haspopup': 'menu' });
|
|
257
|
-
if (recording) { off(mic, why); off(arrow, why); }
|
|
258
|
-
kids.push(el('span', { class: 'recg idle', role: 'group', 'aria-label': 'New recording' }, mic, arrow));
|
|
259
|
-
const panel = recording && dock.highlightPanel ? dock.highlightPanel() : null;
|
|
260
|
-
if (panel) kids.push(el('div', { class: 'c3rec__pop' }, panel));
|
|
261
|
-
wrap.replaceChildren(...kids);
|
|
262
|
-
tabDot(st.mode !== 'idle');
|
|
263
|
-
}
|
|
264
|
-
if (rec.clock) rec.clock.textContent = chipText(st);
|
|
265
|
-
};
|
|
266
|
-
/* note-dock reads the notes (a meeting the server still holds open is found again) and re-draws on every state change */
|
|
267
|
-
try { dock.mountDock(); } catch { /* the dock is not available on this page */ }
|
|
268
|
-
let unsub = null;
|
|
269
|
-
import('./state.js').then((m) => { unsub = m.subscribe(sync); }).catch(() => {});
|
|
270
|
-
rec.timer = setInterval(sync, 1000);
|
|
271
|
-
rec.off = () => { if (unsub) unsub(); };
|
|
272
|
-
sync();
|
|
273
|
-
live.set(host, rec);
|
|
274
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* pm/shell-ticker.js — the running text under the top bar (console3 wave E2b), and the one shared read of GET /api/briefing that the
|
|
2
|
-
* bell, the banner and the phone tiles use too.
|
|
3
|
-
*
|
|
4
|
-
* mountTicker(host, { onOpen }) / disposeTicker(host) draw the lines into `host`; nothing when the briefing has none
|
|
5
|
-
* loadBriefing(force) → Promise of the briefing body (kept 60 s) onBriefing(fn) → off() called after every read
|
|
6
|
-
*
|
|
7
|
-
* Lifted: the mockup's `.tick > .tkt > .tki` drawn twice for the loop, tag in `b` (console3.html lines 539 to 545, 2478 to 2484). Hover
|
|
8
|
-
* pauses it (the stylesheet). Under prefers-reduced-motion the lines show one at a time, without movement.
|
|
9
|
-
*/
|
|
10
|
-
import { el } from './dom.js';
|
|
11
|
-
import { ensureC3Css, c3ic } from './pm-work-view.js';
|
|
12
|
-
import { TAG_STYLE } from './briefing-model.js';
|
|
13
|
-
import { tickerLines } from './shell-model.js';
|
|
14
|
-
|
|
15
|
-
const TTL = 60000;
|
|
16
|
-
let cache = null; // { at, body }
|
|
17
|
-
let inflight = null;
|
|
18
|
-
const subs = new Set();
|
|
19
|
-
|
|
20
|
-
export function onBriefing(fn) { subs.add(fn); if (cache) fn(cache.body); return () => subs.delete(fn); }
|
|
21
|
-
|
|
22
|
-
export function loadBriefing(force) {
|
|
23
|
-
if (!force && cache && Date.now() - cache.at < TTL) return Promise.resolve(cache.body);
|
|
24
|
-
if (inflight) return inflight;
|
|
25
|
-
inflight = fetch('/api/briefing').then((r) => (r.ok ? r.json() : null)).catch(() => null).then((body) => {
|
|
26
|
-
inflight = null;
|
|
27
|
-
if (!body || body.ok === false) return cache ? cache.body : { cards: [], ticker: [], banner: null };
|
|
28
|
-
cache = { at: Date.now(), body };
|
|
29
|
-
for (const fn of [...subs]) { try { fn(body); } catch { /* one listener's error is its own */ } }
|
|
30
|
-
return body;
|
|
31
|
-
});
|
|
32
|
-
return inflight;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const reducedMotion = () => typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
36
|
-
|
|
37
|
-
/** "Critical: Sign off (3d)" → the tag word in `b`, coloured by the tag's own token; other text as it is. */
|
|
38
|
-
function itemOf(line) {
|
|
39
|
-
const i = line.indexOf(': ');
|
|
40
|
-
const tag = i > 0 ? line.slice(0, i) : '';
|
|
41
|
-
const st = TAG_STYLE[tag];
|
|
42
|
-
const color = st ? st.color : 'var(--muted-foreground)';
|
|
43
|
-
return el('span', { class: 'tki' }, el('span', { style: 'color:' + color }, c3ic(st ? st.icon : 'bolt', 'sm')),
|
|
44
|
-
st ? el('b', { style: 'color:' + color }, tag) : null, st ? line.slice(i + 2) : line);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const live = new WeakMap(); // host → { off, timer, mq }
|
|
48
|
-
|
|
49
|
-
export function mountTicker(host, opts) {
|
|
50
|
-
if (!host) return;
|
|
51
|
-
disposeTicker(host);
|
|
52
|
-
ensureC3Css();
|
|
53
|
-
const onOpen = opts && opts.onOpen;
|
|
54
|
-
const box = el('div', { class: 'tick', role: 'button', tabindex: '0', 'aria-label': 'Open notifications', 'data-shell': 'ticker' });
|
|
55
|
-
const press = () => { if (onOpen) onOpen(); };
|
|
56
|
-
box.addEventListener('click', press);
|
|
57
|
-
box.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); press(); } });
|
|
58
|
-
host.appendChild(box);
|
|
59
|
-
const rec = { timer: null, lines: [], i: 0, box };
|
|
60
|
-
const draw = () => {
|
|
61
|
-
clearInterval(rec.timer); rec.timer = null;
|
|
62
|
-
const lines = rec.lines;
|
|
63
|
-
box.hidden = lines.length === 0;
|
|
64
|
-
box.replaceChildren();
|
|
65
|
-
if (!lines.length) return;
|
|
66
|
-
if (reducedMotion()) {
|
|
67
|
-
box.classList.add('static');
|
|
68
|
-
const show = () => { box.replaceChildren(el('div', { class: 'tkt', 'aria-live': 'off' }, itemOf(lines[rec.i % lines.length]))); rec.i++; };
|
|
69
|
-
rec.i = 0; show();
|
|
70
|
-
if (lines.length > 1) rec.timer = setInterval(show, 5000);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
box.classList.remove('static');
|
|
74
|
-
const one = () => lines.map(itemOf);
|
|
75
|
-
const second = el('span', { style: 'display:contents', 'aria-hidden': 'true' }, one());
|
|
76
|
-
box.appendChild(el('div', { class: 'tkt' }, el('span', { style: 'display:contents' }, one()), second));
|
|
77
|
-
};
|
|
78
|
-
rec.off = onBriefing((b) => { const next = tickerLines(b); if (next.join('\n') !== rec.lines.join('\n') || !box.childNodes.length) { rec.lines = next; draw(); } });
|
|
79
|
-
box.hidden = true;
|
|
80
|
-
live.set(host, rec);
|
|
81
|
-
loadBriefing();
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function disposeTicker(host) {
|
|
85
|
-
const rec = host && live.get(host);
|
|
86
|
-
if (!rec) return;
|
|
87
|
-
clearInterval(rec.timer); if (rec.off) rec.off();
|
|
88
|
-
if (rec.box.parentNode) rec.box.remove();
|
|
89
|
-
live.delete(host);
|
|
90
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* pm/sig-watch.js — how a D86 destination learns that its ledgers changed (pm-os-absorb seams §4.9).
|
|
2
|
-
*
|
|
3
|
-
* watchSig(readSig, onChange, { everyMs = 10000 }) → stop()
|
|
4
|
-
*
|
|
5
|
-
* The /api/sessions `ledgers` signatures cover plan-items only (a golden pins that shape), so pmos:ledgers never fires
|
|
6
|
-
* for a placement, a measurement or an issue written from the CLI or another tab. Every destination and extension that
|
|
7
|
-
* shows those (Roadmap 2D, Timeline 4C, Board 4D, Reports 5C, and the Today cards of initiative-needs and report-needs
|
|
8
|
-
* through provider-cards.js) watches its OWN GET `sig` with this one helper:
|
|
9
|
-
* - `readSig()` → Promise<string|null>: the route's current `sig` (a cheap GET; null when unreachable);
|
|
10
|
-
* - it is read on window focus, on visibilitychange to visible, and every `everyMs` while the page is visible;
|
|
11
|
-
* - `onChange(sig)` runs only when the value differs from the last one seen (the first read only records it).
|
|
12
|
-
* No import, no timer while hidden, nothing in fixture mode (the caller does not start it there).
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
export function watchSig(readSig, onChange, { everyMs = 10000 } = {}) {
|
|
16
|
-
let last;
|
|
17
|
-
let seen = false;
|
|
18
|
-
let busy = false;
|
|
19
|
-
let stopped = false;
|
|
20
|
-
const tick = async () => {
|
|
21
|
-
if (stopped || busy || (typeof document !== 'undefined' && document.visibilityState === 'hidden')) return;
|
|
22
|
-
busy = true;
|
|
23
|
-
let sig = null;
|
|
24
|
-
try { sig = await readSig(); } catch { sig = null; }
|
|
25
|
-
busy = false;
|
|
26
|
-
if (stopped || sig == null) return;
|
|
27
|
-
if (!seen) { seen = true; last = sig; return; }
|
|
28
|
-
if (sig !== last) { last = sig; try { onChange(sig); } catch (e) { console.error('[sig-watch]', e); } }
|
|
29
|
-
};
|
|
30
|
-
const onVis = () => { if (document.visibilityState === 'visible') tick(); };
|
|
31
|
-
const timer = setInterval(tick, Math.max(1000, Number(everyMs) || 10000));
|
|
32
|
-
window.addEventListener('focus', tick);
|
|
33
|
-
document.addEventListener('visibilitychange', onVis);
|
|
34
|
-
tick();
|
|
35
|
-
return function stop() {
|
|
36
|
-
stopped = true;
|
|
37
|
-
clearInterval(timer);
|
|
38
|
-
window.removeEventListener('focus', tick);
|
|
39
|
-
document.removeEventListener('visibilitychange', onVis);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/* pm/slide-confirm.js — the slide-to-confirm control, on the console3 mockup's own markup and CSS (R4b).
|
|
2
|
-
*
|
|
3
|
-
* mountSlide(host, { label, hash, onConfirm }) draws the control into host; onConfirm(hash) fires once, only after the
|
|
4
|
-
* thumb is dragged all the way (pointer), or Enter is held / ArrowRight is
|
|
5
|
-
* pressed to the end (keyboard). Releasing early snaps back.
|
|
6
|
-
* disposeSlide(host) removes the control and its listeners
|
|
7
|
-
*
|
|
8
|
-
* The markup is the mockup's caseHtml slide (console3.html line 2290): `.slt > span.lb + button.th`, and the drag is the mockup's
|
|
9
|
-
* (lines 2439 to 2447): the thumb follows the pointer with transform, --p fills the track, a short drag nudges the thumb and
|
|
10
|
-
* says a tap is not enough. The styles are pm/console3.css (`.slt`). What the mockup does not have and this control keeps: the
|
|
11
|
-
* slide is created FOR a hash and hands the same hash back, so a confirm is bound to the content the PM saw (mount again with
|
|
12
|
-
* the new hash after an edit); the keyboard paths (hold Enter, or ArrowRight four times) with role=slider; reduced motion.
|
|
13
|
-
* The mockup's `.slt` takes its colour from --tc on the case file; a bare slide has no case file, so the control sets --tc. */
|
|
14
|
-
import { ensureC3Css, c3ic } from './pm-work-view.js';
|
|
15
|
-
import { toast } from './c3-toast.js';
|
|
16
|
-
|
|
17
|
-
const FULL = 0.96; // share of the track the thumb must cover
|
|
18
|
-
const HOLD_MS = 900; // Enter held this long counts as a full slide
|
|
19
|
-
const STEP = 0.25; // one ArrowRight press
|
|
20
|
-
|
|
21
|
-
const reduced = () => {
|
|
22
|
-
try { return typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches; } catch { return false; }
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const state = new WeakMap(); // host → { root, dispose }
|
|
26
|
-
|
|
27
|
-
export function disposeSlide(host) {
|
|
28
|
-
const s = state.get(host);
|
|
29
|
-
if (!s) return;
|
|
30
|
-
s.dispose();
|
|
31
|
-
state.delete(host);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function mountSlide(host, { label = 'Slide to confirm', hash = null, onConfirm } = {}) {
|
|
35
|
-
disposeSlide(host);
|
|
36
|
-
ensureC3Css();
|
|
37
|
-
const root = document.createElement('div');
|
|
38
|
-
root.className = 'c3 c3e';
|
|
39
|
-
const track = document.createElement('div');
|
|
40
|
-
track.className = 'slt';
|
|
41
|
-
track.style.setProperty('--tc', 'var(--accent)');
|
|
42
|
-
const lb = document.createElement('span');
|
|
43
|
-
lb.className = 'lb';
|
|
44
|
-
lb.textContent = label + ' ›››';
|
|
45
|
-
const th = document.createElement('button');
|
|
46
|
-
th.type = 'button';
|
|
47
|
-
th.className = 'th';
|
|
48
|
-
th.appendChild(c3ic('next'));
|
|
49
|
-
th.setAttribute('role', 'slider');
|
|
50
|
-
th.setAttribute('aria-label', label + '. Drag to the end, or hold Enter, or press the right arrow four times.');
|
|
51
|
-
th.setAttribute('aria-valuemin', '0');
|
|
52
|
-
th.setAttribute('aria-valuemax', '100');
|
|
53
|
-
th.setAttribute('aria-valuenow', '0');
|
|
54
|
-
const hint = document.createElement('div');
|
|
55
|
-
hint.className = 'slt-hint';
|
|
56
|
-
hint.setAttribute('aria-live', 'polite');
|
|
57
|
-
track.append(lb, th);
|
|
58
|
-
root.append(track, hint);
|
|
59
|
-
host.appendChild(root);
|
|
60
|
-
|
|
61
|
-
let v = 0; // 0..1
|
|
62
|
-
let dragging = null; // { x, max }
|
|
63
|
-
let fired = false;
|
|
64
|
-
let holdTimer = null;
|
|
65
|
-
const maxPx = () => Math.max(1, track.clientWidth - th.offsetWidth - 6);
|
|
66
|
-
|
|
67
|
-
function show(p) {
|
|
68
|
-
v = Math.max(0, Math.min(1, p));
|
|
69
|
-
th.style.transform = `translateX(${(v * maxPx()).toFixed(1)}px)`;
|
|
70
|
-
track.style.setProperty('--p', v.toFixed(3));
|
|
71
|
-
th.setAttribute('aria-valuenow', String(Math.round(v * 100)));
|
|
72
|
-
}
|
|
73
|
-
function nudge() {
|
|
74
|
-
th.style.animation = '';
|
|
75
|
-
th.classList.remove('nd'); void th.offsetWidth; th.classList.add('nd');
|
|
76
|
-
}
|
|
77
|
-
function fire() {
|
|
78
|
-
if (fired) return;
|
|
79
|
-
fired = true;
|
|
80
|
-
track.classList.add('done');
|
|
81
|
-
th.disabled = true;
|
|
82
|
-
show(1);
|
|
83
|
-
try { if (typeof onConfirm === 'function') onConfirm(hash); } catch { /* the caller reports its own errors */ }
|
|
84
|
-
}
|
|
85
|
-
function release() {
|
|
86
|
-
if (fired) return;
|
|
87
|
-
if (v >= FULL) { fire(); return; }
|
|
88
|
-
th.style.transition = '';
|
|
89
|
-
th.style.animation = '';
|
|
90
|
-
if (v < 0.03) { toast('Slide to confirm. A tap is not enough.'); nudge(); }
|
|
91
|
-
show(0);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const onDown = (e) => {
|
|
95
|
-
if (fired) return;
|
|
96
|
-
e.preventDefault();
|
|
97
|
-
dragging = { x: e.clientX - v * maxPx(), max: maxPx() };
|
|
98
|
-
th.style.transition = 'none';
|
|
99
|
-
th.style.animation = 'none';
|
|
100
|
-
hint.textContent = '';
|
|
101
|
-
try { th.setPointerCapture(e.pointerId); } catch { /* not capturable */ }
|
|
102
|
-
};
|
|
103
|
-
const onMove = (e) => { if (dragging) show((e.clientX - dragging.x) / dragging.max); };
|
|
104
|
-
const onUp = () => {
|
|
105
|
-
if (!dragging) return;
|
|
106
|
-
dragging = null;
|
|
107
|
-
release();
|
|
108
|
-
};
|
|
109
|
-
const onCancel = () => {
|
|
110
|
-
if (!dragging) return;
|
|
111
|
-
dragging = null;
|
|
112
|
-
th.style.transition = '';
|
|
113
|
-
th.style.animation = '';
|
|
114
|
-
show(0);
|
|
115
|
-
};
|
|
116
|
-
const clearHold = () => { if (holdTimer) { clearInterval(holdTimer); holdTimer = null; } };
|
|
117
|
-
const onKeyDown = (e) => {
|
|
118
|
-
if (fired) return;
|
|
119
|
-
if (e.key === 'ArrowRight') { e.preventDefault(); hint.textContent = ''; show(v + STEP); if (v >= FULL) fire(); }
|
|
120
|
-
else if (e.key === 'ArrowLeft') { e.preventDefault(); show(v - STEP); }
|
|
121
|
-
else if (e.key === 'Enter' && !e.repeat) {
|
|
122
|
-
e.preventDefault();
|
|
123
|
-
hint.textContent = 'Keep Enter held to confirm.';
|
|
124
|
-
const t0 = Date.now();
|
|
125
|
-
clearHold();
|
|
126
|
-
holdTimer = setInterval(() => {
|
|
127
|
-
const p = (Date.now() - t0) / HOLD_MS;
|
|
128
|
-
if (reduced() && p < 1) return; // no animation: the thumb jumps to the end when the hold completes
|
|
129
|
-
show(p);
|
|
130
|
-
if (p >= 1) { clearHold(); fire(); }
|
|
131
|
-
}, 40);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
const onKeyUp = (e) => {
|
|
135
|
-
if (e.key !== 'Enter') return;
|
|
136
|
-
clearHold();
|
|
137
|
-
if (!fired) { show(0); hint.textContent = 'Released early. Nothing was sent.'; }
|
|
138
|
-
};
|
|
139
|
-
const onBlur = () => { clearHold(); if (!fired && !dragging) show(0); };
|
|
140
|
-
|
|
141
|
-
th.addEventListener('pointerdown', onDown);
|
|
142
|
-
th.addEventListener('pointermove', onMove);
|
|
143
|
-
th.addEventListener('pointerup', onUp);
|
|
144
|
-
th.addEventListener('pointercancel', onCancel);
|
|
145
|
-
th.addEventListener('keydown', onKeyDown);
|
|
146
|
-
th.addEventListener('keyup', onKeyUp);
|
|
147
|
-
th.addEventListener('blur', onBlur);
|
|
148
|
-
|
|
149
|
-
state.set(host, {
|
|
150
|
-
root,
|
|
151
|
-
dispose() {
|
|
152
|
-
clearHold();
|
|
153
|
-
th.removeEventListener('pointerdown', onDown);
|
|
154
|
-
th.removeEventListener('pointermove', onMove);
|
|
155
|
-
th.removeEventListener('pointerup', onUp);
|
|
156
|
-
th.removeEventListener('pointercancel', onCancel);
|
|
157
|
-
th.removeEventListener('keydown', onKeyDown);
|
|
158
|
-
th.removeEventListener('keyup', onKeyUp);
|
|
159
|
-
th.removeEventListener('blur', onBlur);
|
|
160
|
-
root.remove();
|
|
161
|
-
},
|
|
162
|
-
});
|
|
163
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* pm/slides-copy.js — every word on the biweekly slides and their deck (pm-os-absorb Run 6; PRD R22.7).
|
|
2
|
-
*
|
|
3
|
-
* Pure data and pure functions. No DOM and no import, so glossary.test.js loads this file in Node and checks each string
|
|
4
|
-
* against the glossary rules. report-slides.js draws the slides from these strings and nothing else.
|
|
5
|
-
*
|
|
6
|
-
* The slides copy the PM-OS biweekly deck word for word: the PM asked for the slide format "exactly" as PM-OS has it
|
|
7
|
-
* (2026-10-06). So GLOSSARY.exempt lifts two rules for this file only: the column and slide names "Release" and "Release
|
|
8
|
-
* notes", and the empty column "Nothing shipped.", are the PM-OS deck's own words. Everywhere else in the workspace the
|
|
9
|
-
* rules hold. A slide is still ISSUED with its report, never sent (D71): the issued-not-sent rule applies here too.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export const COPY = {
|
|
13
|
-
slidesTitle: 'Slides',
|
|
14
|
-
slidesMissing: 'This report has no slides. Redraft it to get them.',
|
|
15
|
-
slidesPrev: 'Previous slide',
|
|
16
|
-
slidesNext: 'Next slide',
|
|
17
|
-
slidesClose: 'Close the slides',
|
|
18
|
-
slidesCount: (n, of) => n + ' / ' + of,
|
|
19
|
-
print: 'Print / PDF',
|
|
20
|
-
more: (n) => '+' + n + ' more',
|
|
21
|
-
roadmap: 'Roadmap',
|
|
22
|
-
list: 'Initiative progress',
|
|
23
|
-
changelog: 'Release notes',
|
|
24
|
-
issues: 'Issues',
|
|
25
|
-
duration: 'Duration',
|
|
26
|
-
initiative: 'Initiative',
|
|
27
|
-
status: 'Status',
|
|
28
|
-
nextMilestone: 'Next milestone',
|
|
29
|
-
release: 'Release',
|
|
30
|
-
overdue: (d) => 'Overdue · ' + d,
|
|
31
|
-
noBreakdown: 'No breakdown',
|
|
32
|
-
noInitiatives: 'No initiatives in this window.',
|
|
33
|
-
lastCycle: 'Last cycle',
|
|
34
|
-
nextCycle: 'Next cycle',
|
|
35
|
-
milestone: 'Milestone',
|
|
36
|
-
nothingShipped: 'Nothing shipped.',
|
|
37
|
-
nothingPlanned: 'Nothing planned.',
|
|
38
|
-
noteType: { note: 'Note', info: 'Info', warning: 'Warning' },
|
|
39
|
-
noReleaseNotes: 'No release notes logged.',
|
|
40
|
-
entries: (n) => n + (n === 1 ? ' entry' : ' entries'),
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const GLOSSARY = {
|
|
44
|
-
exempt: {
|
|
45
|
-
release: 'The PM-OS deck names its column "Release" and its slide "Release notes"; the PM asked for that format exactly (2026-10-06).',
|
|
46
|
-
claims: 'The PM-OS deck says "Nothing shipped." in an empty Last cycle; the PM asked for that format exactly (2026-10-06).',
|
|
47
|
-
},
|
|
48
|
-
extra: [
|
|
49
|
-
{ id: 'issued-not-sent', re: /\b(?:sent|sends?|sending|e-?mail(?:s|ed|ing)?|shar(?:e|es|ed|ing)|post(?:s|ed|ing)? to)\b/i, why: 'A report is issued, never sent (D71). The slides have no control that moves a report out of the workspace.' },
|
|
50
|
-
],
|
|
51
|
-
guide: 'report-slides.md',
|
|
52
|
-
};
|