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,181 +0,0 @@
|
|
|
1
|
-
/* pm/c3-demo-focus.js — DEMO answers for the Meeting focus page (initiative c3-meeting-focus) on /c3.html?demo=1.
|
|
2
|
-
* c3-demo.js passes GET /api/meeting-focus, GET /api/meeting-focus/ask and the two POSTs (topic, ask) here. The content is the approved
|
|
3
|
-
* mockup's (version 7): the Partner API rate-limit review at 18:24 in, with its six topics (one added from the talk), the gist and its four
|
|
4
|
-
* context chips, the room's last lines, three PMOS notes and two it is holding, the captured items and a Google Slides deck.
|
|
5
|
-
* Whatever meeting the page asks for, the demo answers with this one. GET /api/meeting-focus/now (the compact page of the Chrome extension) names it too;
|
|
6
|
-
* the Meet code NONE_CODE answers "no meeting fits" with three of the day's meetings as choices, so that path can be walked. A correction (set, add, park) and a question change the answer
|
|
7
|
-
* for the rest of the page's life; nothing is saved and nothing reaches the server. Real mode never loads this file.
|
|
8
|
-
* A read by note alone (the phone's focus for a recording that is not on the calendar) answers with a corridor talk: Budi asks about the SSO copy.
|
|
9
|
-
* focusNote is the live note the phone's Note sheet shows (the shape of GET /api/notes/one). */
|
|
10
|
-
|
|
11
|
-
const DAY = '2026-10-08';
|
|
12
|
-
const at = (hm) => Date.parse(DAY + 'T' + hm + ':00');
|
|
13
|
-
const START = at('11:00');
|
|
14
|
-
const NOW = at('11:18') + 24000;
|
|
15
|
-
const min = (ms) => Math.round(((ms - START) / 60000) * 10) / 10;
|
|
16
|
-
|
|
17
|
-
const EVENT = {
|
|
18
|
-
id: 'e2@' + DAY, title: 'Partner API rate-limit review', at: DAY + 'T11:00:00', end: DAY + 'T12:00:00',
|
|
19
|
-
attendees: ['Ana Putri', 'Chen Wei', 'Lina Kusuma', 'You'], initiative: 'IDPF-07',
|
|
20
|
-
purpose: 'Choose how the Partner API protects itself from bursts: soft or hard limits.',
|
|
21
|
-
links: [
|
|
22
|
-
{ label: 'Rate limits for the Partner API', url: 'docs.google.com/presentation/d/1RateLimitsPartnerApiDemo/edit' },
|
|
23
|
-
{ label: 'Partner API rate limits: options paper', url: 'pmos-demo.atlassian.net/wiki/spaces/IDPF/pages/7/Partner+API+rate+limits+options+paper' },
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
const BRIEF = {
|
|
27
|
-
initiative: { id: 'IDPF-07', title: 'Partner API rate limits', status: 'on track' },
|
|
28
|
-
gist: ['For Partner API rate limits, which is on track.', 'The decision to choose the rate-limit approach is due today.'],
|
|
29
|
-
matters: [{ tone: 'bad', tag: 'Due today', text: 'Choose the rate-limit approach before the 11:00 review', meta: 'Partner API working group', ref: { type: 'decision', id: 'd2' } }],
|
|
30
|
-
last: { id: 'n-demo-last', title: 'Partner API rate-limit review', at: '2026-10-08T11:00:00', private: false, overview: 'On 8 Oct Chen promised the p99 numbers per partner.',
|
|
31
|
-
decisions: [], actions: [{ text: 'Send per-partner numbers to Lina', owner: 'Chen Wei', due: 'Tue 13 Oct' }] },
|
|
32
|
-
earlier: 1, purpose: EVENT.purpose, prep: 'Your one-pager is still open.', links: EVENT.links, refs: [], sources: ['the calendar', 'the IDPF-07 plan'],
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/* the topics, in the order the page shows them: id, text, where it came from, when it came up and who raised it */
|
|
36
|
-
const BASE = [
|
|
37
|
-
{ id: 'context-and-goal', text: 'Context and goal', src: 'steps' },
|
|
38
|
-
{ id: 'options-soft-vs-hard-limits', text: 'Options: soft vs hard limits', src: 'steps' },
|
|
39
|
-
{ id: 'a-temporary-higher-tier-during-the-grace-window', text: 'A temporary higher tier during the grace window', src: 'added', at: at('11:15'), by: 'Lina' },
|
|
40
|
-
{ id: 'partner-impact-top-20-traffic', text: 'Partner impact: top 20 traffic', src: 'steps' },
|
|
41
|
-
{ id: 'partner-comms-and-timing', text: 'Partner comms and timing', src: 'steps' },
|
|
42
|
-
{ id: 'decide-and-next-steps', text: 'Decide and next steps', src: 'steps' },
|
|
43
|
-
];
|
|
44
|
-
const ids = BASE.map((t) => t.id);
|
|
45
|
-
/* the stretches of talk: topic id, from, to (null while open), in epoch ms */
|
|
46
|
-
const fresh = () => ({
|
|
47
|
-
topics: BASE.map((t) => ({ ...t })), parked: new Set(), current: ids[1],
|
|
48
|
-
runs: [[ids[0], at('11:00'), at('11:07')], [ids[1], at('11:07'), at('11:15')], [ids[2], at('11:15'), at('11:17')], [ids[1], at('11:17'), null]],
|
|
49
|
-
asks: [], extra: [], seq: 0,
|
|
50
|
-
});
|
|
51
|
-
let S = fresh();
|
|
52
|
-
|
|
53
|
-
const NOTES = [
|
|
54
|
-
{ id: 'n0', at: at('11:15'), cat: 'Topics', heard: '"Could they buy a higher tier just for the grace window?" Lina, 11:15', body: 'Added to Topics: A temporary higher tier during the grace window. The room came back to your options at 11:17.',
|
|
55
|
-
why: 'A new thread came up. I added it to Topics so it is not lost.', src: 'what was said since 11:15', show: 'now' },
|
|
56
|
-
{ id: 'n1', at: at('11:16'), cat: 'Fact check', heard: '"Are we even allowed to throttle them?" Ana, 11:16', body: 'Yes. The partner agreement v3, section 4.2, allows throttling with 30 days written notice.',
|
|
57
|
-
why: 'You answered from memory. This is the clause, in case anyone asks for it.', src: 'Partner agreement v3 (Drive)', show: 'now',
|
|
58
|
-
acts: [{ label: 'Open section 4.2', url: 'drive.google.com/file/d/1PartnerAgreementV3Demo/view' }] },
|
|
59
|
-
{ id: 'n2', at: at('11:18'), cat: 'Answer', heard: '"How many partners would hit a hard limit today?" Lina, 11:17', body: '3 of the top 20 partners went over 1,000 req/s last week: Tokopay (2,400 peak), Kirimin (1,600) and Bayarku (1,100).',
|
|
60
|
-
why: 'Lina asked the room and nobody had the number. You will want it before you reply.', src: "Chen's traffic analysis, page 3", show: 'now',
|
|
61
|
-
acts: [{ label: 'Open the analysis', ref: { type: 'report', id: 'p6' } }] },
|
|
62
|
-
{ id: 'n3', at: at('11:18'), cat: 'Decision', heard: '', body: 'Ana and Chen lean to soft limits now, then hard limits after 30 days. That is your recommendation on slide 7.',
|
|
63
|
-
why: '', src: 'what was said since 11:12', show: 'hold', when: 'when the room gets to the decision' },
|
|
64
|
-
{ id: 'n4', at: at('11:18'), cat: 'Time', heard: '', body: "41 min left and 3 topics have not come up: partner impact, partner comms, and the decision. Lina's question already pulled in Chen's numbers, so partner impact can be short.",
|
|
65
|
-
why: '', src: 'the topics and the time left', show: 'hold', when: 'if 2 topics are left with under 15 min' },
|
|
66
|
-
];
|
|
67
|
-
const CHIPS = [
|
|
68
|
-
{ label: 'Tokopay, Kirimin, Bayarku', sub: 'partners over the limit',
|
|
69
|
-
detail: 'Tokopay peaked at 2,400 req/s (Standard plan, account owner Lina Kusuma). Kirimin peaked at 1,600 req/s (Standard, Lina Kusuma). Bayarku peaked at 1,100 req/s (Plus, Eko Prasetyo).', from: "Chen's traffic analysis, page 3, and the partner list in the CRM" },
|
|
70
|
-
{ label: 'Partner agreement 4.2', sub: 'allows throttling with notice',
|
|
71
|
-
detail: '4.2 Fair use. The Provider may limit request rates that exceed the published tier, after giving the Partner at least thirty (30) days written notice.', from: 'Drive: Legal / Partners / Partner agreement v3.pdf, page 6' },
|
|
72
|
-
{ label: 'Option B', sub: 'slide 5 of your deck', url: 'docs.google.com/presentation/d/1RateLimitsPartnerApiDemo/edit#slide=id.p5' },
|
|
73
|
-
{ label: 'Rate-limit decision', sub: 'due today', ref: { type: 'decision', id: 'd2' } },
|
|
74
|
-
];
|
|
75
|
-
const TAIL = [
|
|
76
|
-
['You', '11:14', 'So Option B: hard limits, with a 30 day grace window.'], ['Lina', '11:15', 'Could they buy a higher tier just for the grace window?'],
|
|
77
|
-
['Ana', '11:16', 'Are we even allowed to throttle them?'], ['You', '11:16', 'Yes, with notice. That is the grace window on this slide.'],
|
|
78
|
-
['Lina', '11:17', 'How many partners would hit a hard limit today?'], ['Chen', '11:18', 'Three, I think. I can pull the exact numbers.'],
|
|
79
|
-
].map(([who, hm, text]) => ({ who, at: DAY + 'T' + hm + ':00', t: at(hm) - START, text, source: who === 'You' ? 'mic' : 'meeting' }));
|
|
80
|
-
|
|
81
|
-
function view() {
|
|
82
|
-
const spent = (id) => S.runs.filter((r) => r[0] === id).reduce((s, r) => s + ((r[2] == null ? NOW : r[2]) - r[1]), 0) / 60000;
|
|
83
|
-
const topics = S.topics.map((t) => ({ id: t.id, text: t.text, src: t.src, ...(t.at ? { at: t.at } : {}), ...(t.by ? { by: t.by } : {}),
|
|
84
|
-
state: S.current === t.id ? 'now' : S.parked.has(t.id) ? 'parked' : spent(t.id) > 0 ? 'discussed' : 'notyet', minutes: Math.round(spent(t.id)) }));
|
|
85
|
-
const notes = NOTES.map((n) => ({ ...n })).concat(S.extra);
|
|
86
|
-
return {
|
|
87
|
-
ok: true, now_ms: NOW, date: DAY, event: EVENT, brief: BRIEF,
|
|
88
|
-
note: { id: 'n-demo-focus', title: EVENT.title, state: 'recording', recorded_from: DAY + 'T11:00:00', lines: 42, sessions: [{ from: DAY + 'T11:00:00', to: null }] },
|
|
89
|
-
topics, current: S.current, runs: S.runs.map((r) => ({ topic: r[0], from_min: min(r[1]), to_min: r[2] == null ? null : min(r[2]) })),
|
|
90
|
-
tail: TAIL, captured: { decisions: [], actions: [{ text: 'Send per-partner numbers to Lina', owner: 'Chen Wei', due: 'Tue 13 Oct' }], questions: ['Can a partner buy a temporary higher tier during the grace window?'].map((text) => ({ text })) },
|
|
91
|
-
gist: 'The room is weighing hard limits against the 3 partners who would break today. Ana and Chen lean to soft limits first; Lina worries about telling partners.',
|
|
92
|
-
chips: CHIPS, notes, asks: S.asks.map((a) => ({ ...a })),
|
|
93
|
-
companion: { on: true, running: false, started: false, reason: 'too soon', last_run_at: NOW - 20000, error: null },
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export const NONE_CODE = 'zzz-zzzz-zzz';
|
|
98
|
-
const CHOICES = [['e1', 'Partner standup', '09:30', '10:00'], ['e2', EVENT.title, '11:00', '12:00'], ['e3', 'Onboarding v2 scope check', '14:00', '14:45']]
|
|
99
|
-
.map(([id, title, from, to]) => ({ id: id + '@' + DAY, title, at: DAY + 'T' + from + ':00', end: DAY + 'T' + to + ':00' }));
|
|
100
|
-
|
|
101
|
-
/** GET /api/meeting-focus, GET /api/meeting-focus/ask?id= and GET /api/meeting-focus/now?meet=&title= */
|
|
102
|
-
export function focusGet(path, url) {
|
|
103
|
-
if (path === '/api/meeting-focus/now') {
|
|
104
|
-
const q = new URL(url, location.origin).searchParams;
|
|
105
|
-
if (q.get('meet') === NONE_CODE) return { ok: false, status: 404, error: 'No meeting on the calendar fits this call.', choices: CHOICES };
|
|
106
|
-
return { ok: true, event: { id: EVENT.id, title: EVENT.title, at: EVENT.at, end: EVENT.end }, date: DAY, by: q.get('meet') ? 'meet' : 'time' };
|
|
107
|
-
}
|
|
108
|
-
if (path === '/api/meeting-focus/ask') {
|
|
109
|
-
const q = new URL(url, location.origin).searchParams;
|
|
110
|
-
const a = S.asks.find((x) => x.id === q.get('id'));
|
|
111
|
-
return a ? { ok: true, id: a.id, state: 'answered' } : { ok: false, status: 404, error: 'no such question' };
|
|
112
|
-
}
|
|
113
|
-
const q = new URL(url, location.origin).searchParams;
|
|
114
|
-
if (!q.get('event') && q.get('note')) return talkView(q.get('note'));
|
|
115
|
-
return view();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* a recording that is not on the calendar: started 40 seconds ago, no topics, no brief, no stage */
|
|
119
|
-
const TALK_AT = NOW - 40000;
|
|
120
|
-
const TALK_TAIL = [['Budi', 12000, 'Does the SSO copy need legal to look at it first?'], ['You', 26000, 'I think so. Let me check.']]
|
|
121
|
-
.map(([who, t, text]) => ({ who, at: new Date(TALK_AT + t).toISOString(), t, text, source: who === 'You' ? 'mic' : 'meeting' }));
|
|
122
|
-
function talkView(noteId) {
|
|
123
|
-
const id = String(noteId);
|
|
124
|
-
const notes = [{ id: 't0', at: TALK_AT + 30000, cat: 'Answer', heard: '"Does the SSO copy need legal to look at it first?" Budi', body: 'Yes. Since the 2 Oct policy change, legal reviews all login copy. The last review took 3 working days.',
|
|
125
|
-
why: 'Budi asked, and the beta date depends on it.', src: 'the legal policy page in Confluence', show: 'now' }].concat(S.extra);
|
|
126
|
-
return {
|
|
127
|
-
ok: true, now_ms: NOW, date: DAY, talk: true,
|
|
128
|
-
event: { id: 'note:' + id, title: 'Conversation', at: new Date(TALK_AT).toISOString(), end: null, attendees: [], initiative: null, purpose: null, links: [] },
|
|
129
|
-
brief: null, note: { id, title: 'Conversation', state: 'recording', recorded_from: new Date(TALK_AT).toISOString(), lines: 2, sessions: [{ from: new Date(TALK_AT).toISOString(), to: null }] },
|
|
130
|
-
topics: [], current: null, runs: [], tail: TALK_TAIL, captured: { decisions: [], actions: [], questions: [] },
|
|
131
|
-
gist: 'Budi is asking whether the SSO copy needs a legal check before the Onboarding v2 beta.',
|
|
132
|
-
chips: [{ label: 'SSO copy', sub: 'last edited by Budi, Fri 9 Oct', detail: 'The sign-in screen copy, 4 strings. Last edited by Budi on Fri 9 Oct. Not yet reviewed by legal.', from: 'IDPF-12 in Jira' },
|
|
133
|
-
{ label: 'Onboarding v2 beta', sub: 'in 18 days', detail: 'Beta on 30 Oct, 18 days away. At risk: QA is one tester short, and a scope cut waits on you today.', from: 'IDPF-12 and your decisions' }],
|
|
134
|
-
notes, asks: S.asks.map((a) => ({ ...a })),
|
|
135
|
-
companion: { on: true, running: false, started: false, reason: 'too soon', last_run_at: NOW - 10000, error: null },
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/** The live note of the focus page's recording, for the phone's Note sheet: the shape of GET /api/notes/one, with live bullets. */
|
|
140
|
-
export function focusNote(id, data) {
|
|
141
|
-
const talk = !!(data && data.talk);
|
|
142
|
-
const tail = talk ? TALK_TAIL : TAIL;
|
|
143
|
-
const speakers = { mic: 'You' };
|
|
144
|
-
for (const x of tail) if (x.who !== 'You') speakers['meeting:' + x.who] = x.who;
|
|
145
|
-
return { ok: true, note: { id, title: talk ? 'Conversation' : EVENT.title, state: 'recording', speakers,
|
|
146
|
-
transcript: tail.map((x) => ({ t: x.t, at: x.at, source: x.who === 'You' ? 'mic' : 'meeting:' + x.who, text: x.text })),
|
|
147
|
-
bullets: talk ? [{ id: 0, cat: 'question', text: 'Does the SSO copy need a legal check before the beta?' }]
|
|
148
|
-
: [{ id: 0, cat: 'decision', text: 'Option B needs 30 days notice; the partner agreement allows it' }, { id: 1, cat: 'action', text: 'Chen sends the per-partner numbers to Lina' },
|
|
149
|
-
{ id: 2, cat: 'question', text: 'Can a partner buy a temporary higher tier during the grace window?' }] } };
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/** POST /api/meeting-focus/topic and POST /api/meeting-focus/ask: they change the demo's answer and nothing else. */
|
|
153
|
-
export function focusPost(path, body) {
|
|
154
|
-
let b = {};
|
|
155
|
-
try { b = body ? JSON.parse(body) : {}; } catch { b = {}; }
|
|
156
|
-
const text = String(b.topic || '').replace(/\s+/g, ' ').trim().slice(0, 120);
|
|
157
|
-
if (path === '/api/meeting-focus/ask') {
|
|
158
|
-
const q = String(b.question || '').replace(/\s+/g, ' ').trim().slice(0, 1000);
|
|
159
|
-
if (!q) return { ok: false, error: 'Type your question.' };
|
|
160
|
-
const id = 'fa-demo' + (++S.seq);
|
|
161
|
-
S.asks.push({ id, at: NOW, question: q, state: 'answered' });
|
|
162
|
-
S.extra.push({ id: 'na' + S.seq, at: NOW, cat: 'Answer', heard: q, body: 'IDPF-07 has 3 open risks. The newest is partner comms, flagged by Lina on Thu 8 Oct.', why: 'You asked.', src: 'IDPF-07 risks', show: 'now', ask: id });
|
|
163
|
-
return { ok: true, id, state: 'working' };
|
|
164
|
-
}
|
|
165
|
-
if (path !== '/api/meeting-focus/topic') return { ok: true };
|
|
166
|
-
if (!text) return { ok: false, error: 'Name the topic.' };
|
|
167
|
-
const key = text.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '').slice(0, 60);
|
|
168
|
-
let row = S.topics.find((t) => t.id === key || t.text.toLowerCase() === text.toLowerCase());
|
|
169
|
-
if (!row) { row = { id: key, text, src: 'pm', at: NOW, by: 'you' }; S.topics.push(row); }
|
|
170
|
-
const closeOpen = () => { const r = S.runs.find((x) => x[2] == null); if (r) r[2] = NOW; };
|
|
171
|
-
if (b.action === 'set') { closeOpen(); S.parked.delete(row.id); S.current = row.id; S.runs.push([row.id, NOW, null]); }
|
|
172
|
-
else if (b.action === 'park') {
|
|
173
|
-
S.parked.add(row.id);
|
|
174
|
-
if (S.current === row.id) {
|
|
175
|
-
closeOpen(); S.current = null;
|
|
176
|
-
const next = S.topics.find((t) => t.id !== row.id && !S.parked.has(t.id) && !S.runs.some((r) => r[0] === t.id));
|
|
177
|
-
if (next) { S.current = next.id; S.runs.push([next.id, NOW, null]); }
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
return { ok: true };
|
|
181
|
-
}
|