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
|
@@ -73,33 +73,33 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
73
73
|
/* M1 add material */
|
|
74
74
|
const A = await openRail();
|
|
75
75
|
const p = A.page;
|
|
76
|
-
ok('M1 a calendar meeting opens in the Viewer card with + Add material in Prep', A.up, (await text(p)).slice(0, 300));
|
|
76
|
+
ok('M1 a calendar meeting opens in the Viewer card with + Add material in Prep', A.up, (await text(p)).slice(0, 300) + ' ERR ' + A.errors.join('|'));
|
|
77
77
|
if (!A.up) return finish(1);
|
|
78
78
|
ok('M2 the material is listed with the scope it was linked at', await until(async () => /Rail PRD/.test(await text(p)) && /every meeting of the series/.test(await text(p)) && /For The report panel/.test(await text(p))), (await text(p)).slice(0, 600));
|
|
79
79
|
await tap(p, '[data-a="addmat"]');
|
|
80
|
-
|
|
80
|
+
// premium-uncovered-features (meetings, MtMaterial): Add material is a popover under the list; each linked row keeps its own Remove
|
|
81
|
+
ok('M1 Add material opens its popover with Find in PMOS and Paste a link, under the linked rows and their Remove', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .vzm-pop[aria-label="Add material"]') && !!document.querySelector('#czViewer [data-a="matq"]') && !!document.querySelector('#czViewer [data-a="matlink"]') && document.querySelectorAll('#czViewer [data-a="matrm"]').length === 2 && !document.querySelector('#czViewer [data-cz-placeholder]'))));
|
|
81
82
|
ok('M1 the sheet says the invite is not changed', /The invite in your calendar is not changed/.test(await text(p)));
|
|
82
83
|
ok('M1 Suggested asks for the level of this meeting and shows what it returned', await until(async () => A.sugg.includes('') && /Rail brief/.test(await text(p))), JSON.stringify(A.sugg));
|
|
83
|
-
await p.fill('#czViewer [data-
|
|
84
|
+
await p.fill('#czViewer [data-a="matq"]', 'p');
|
|
84
85
|
await p.waitForTimeout(400); // the search waits 220 ms after typing stops; a one-letter search must not ask
|
|
85
86
|
ok('M1 a one-letter search asks for nothing', !A.sugg.includes('p'), JSON.stringify(A.sugg));
|
|
86
|
-
await p.fill('#czViewer [data-
|
|
87
|
+
await p.fill('#czViewer [data-a="matq"]', 'partner');
|
|
87
88
|
ok('M1 Find in PMOS shows what the search returned', await until(async () => A.sugg.includes('partner') && /Partner review/.test(await text(p))), JSON.stringify(A.sugg));
|
|
88
|
-
await p.fill('#czViewer [data-
|
|
89
|
-
await
|
|
89
|
+
await p.fill('#czViewer [data-a="matlink"]', 'http://x.example/plain');
|
|
90
|
+
await p.press('#czViewer [data-a="matlink"]', 'Enter');
|
|
90
91
|
ok('M1 an address that is not https says so and is not added', await until(async () => /Only an https link can be added/.test(await text(p))) && posted(A.S, '/api/meeting-material').length === 0);
|
|
91
|
-
ok('M3 the sheet offers a topic of the meeting', await until(() => p.evaluate(() => { const s = document.querySelector('#czViewer [data-
|
|
92
|
-
await p.selectOption('#czViewer [data-
|
|
93
|
-
await p.check('#czViewer [data-
|
|
94
|
-
await p.click('#czViewer [data-
|
|
92
|
+
ok('M3 the sheet offers a topic of the meeting', await until(() => p.evaluate(() => { const s = document.querySelector('#czViewer [data-a="mattopic"]'); return s && [...s.options].map((o) => o.textContent).join('|') === 'For the whole meeting|For Rail placement|For Phone layout'; })));
|
|
93
|
+
await p.selectOption('#czViewer [data-a="mattopic"]', 'Rail placement');
|
|
94
|
+
await p.check('#czViewer [data-a="matser"]');
|
|
95
|
+
await p.click('#czViewer [data-a="matadd"]');
|
|
95
96
|
const add = await until(() => posted(A.S, '/api/meeting-material')[0]);
|
|
96
97
|
ok('M1 Add posts one line to /api/meeting-material for the series, with the topic', add && add.body.op === 'add' && add.body.scope === 'series' && add.body.topic === 'Rail placement' && add.body.event.id === 'ev-rail' && add.body.item.ref === 'reports/partner-review/2026-10-12.md', JSON.stringify(add && add.body));
|
|
97
|
-
ok('M3 the list is read again and shows the new row, and the status says what was added', await until(async () => /Partner review/.test(await text(p)) && /Added “Partner review” for every meeting of the series\./.test(await text(p)) && !(await p.$('#czViewer
|
|
98
|
+
ok('M3 the list is read again and shows the new row, and the status says what was added', await until(async () => /Partner review/.test(await text(p)) && /Added “Partner review” for every meeting of the series\./.test(await text(p)) && !(await p.$('#czViewer .vzm-pop'))), (await text(p)).slice(0, 500));
|
|
98
99
|
|
|
99
100
|
/* M2 remove, then Undo */
|
|
100
|
-
await
|
|
101
|
-
await
|
|
102
|
-
await p.click('#czViewer [data-f="rm"][aria-label="Remove Rail PRD"]');
|
|
101
|
+
await until(() => p.evaluate(() => document.querySelectorAll('#czViewer [data-a="matrm"]').length === 3));
|
|
102
|
+
await p.click('#czViewer [data-a="matrm"][aria-label="Remove Rail PRD"]');
|
|
103
103
|
const rm = await until(() => posted(A.S, '/api/meeting-material').find((x) => x.body.op === 'remove'));
|
|
104
104
|
ok('M2 Remove posts the item at the scope it was added', rm && rm.body.scope === 'series' && rm.body.item.ref === 'planning/prd/rail.md', JSON.stringify(rm && rm.body));
|
|
105
105
|
ok('M2 the row leaves after the list is read again, and the status offers Undo', await until(async () => !/Rail PRD/.test((await text(p)).replace(/Removed “Rail PRD”\./, '')) && !!(await p.$('#czViewer [data-a="msgundo"]'))), (await text(p)).slice(0, 500));
|
|
@@ -110,16 +110,17 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
110
110
|
|
|
111
111
|
/* M5 refused writes */
|
|
112
112
|
A.refuse = 'the material store is busy';
|
|
113
|
-
await
|
|
114
|
-
await until(() => p.evaluate(() => document.querySelectorAll('#czViewer [data-f="rm"]').length > 0));
|
|
113
|
+
await until(() => p.evaluate(() => document.querySelectorAll('#czViewer [data-a="matrm"]').length > 0));
|
|
115
114
|
const n0 = A.mat.length;
|
|
116
|
-
await p.click('#czViewer [data-
|
|
117
|
-
ok('M5 a refused Remove shows the reason, and the
|
|
118
|
-
await p
|
|
119
|
-
await
|
|
120
|
-
|
|
115
|
+
await p.click('#czViewer [data-a="matrm"]');
|
|
116
|
+
ok('M5 a refused Remove shows the reason, and the row stays', await until(async () => /Not removed: the material store is busy/.test(await text(p))) && await p.evaluate((n) => document.querySelectorAll('#czViewer [data-a="matrm"]').length === n, n0));
|
|
117
|
+
await tap(p, '[data-a="addmat"]');
|
|
118
|
+
await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-a="matlink"]')));
|
|
119
|
+
await p.fill('#czViewer [data-a="matlink"]', 'https://x.example/notes');
|
|
120
|
+
await p.press('#czViewer [data-a="matlink"]', 'Enter');
|
|
121
|
+
ok('M5 a refused Add shows the reason, keeps the popover and what was typed', await until(async () => /Not added: the material store is busy/.test(await text(p)) && (await p.inputValue('#czViewer [data-a="matlink"]')) === 'https://x.example/notes'));
|
|
121
122
|
A.refuse = '';
|
|
122
|
-
await
|
|
123
|
+
await p.press('#czViewer [data-a="matlink"]', 'Enter');
|
|
123
124
|
ok('M5 it can be pressed again', await until(() => A.mat.some((m) => m.url === 'https://x.example/notes')) && A.mat.length === n0 + 1);
|
|
124
125
|
const mats = [...new Set(A.S.posts.map((x) => x.path))];
|
|
125
126
|
ok('M6 the material work wrote only to /api/meeting-material', mats.join() === '/api/meeting-material', mats.join());
|
|
@@ -130,27 +131,26 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
130
131
|
const B = await F.open(browser, BASE, '/premium-viewer.html?open=meeting¬e=n1', { noLive: true });
|
|
131
132
|
ALL.push(B);
|
|
132
133
|
const q = B.page;
|
|
133
|
-
await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-a="
|
|
134
|
-
ok('M4 each next step has Make task, and decisions and questions have none', await q.evaluate(() => document.querySelectorAll('#czViewer [data-a="
|
|
135
|
-
await tap(q, '[data-a="task"][data-i="0"]');
|
|
134
|
+
await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-a="maketask"]')), 15000);
|
|
135
|
+
ok('M4 each next step has Make task, and decisions and questions have none', await q.evaluate(() => document.querySelectorAll('#czViewer [data-a="maketask"]').length === 3));
|
|
136
136
|
await tap(q, '[data-a="maketask"][data-i="0"]');
|
|
137
137
|
const pl = await until(() => posted(B.S, '/api/plan-items')[0]);
|
|
138
138
|
const ev = pl && pl.body.events && pl.body.events[0];
|
|
139
139
|
ok('M4 Make task posts one planned event in the first stage with the owner', ev && ev.ev === 'planned' && ev.initiative === 'viewer' && ev.stage === 'st1' && ev.owner === 'person:Ana' && ev.title === 'Add a print view for documents' && pl.body.ws === 'w1', JSON.stringify(pl && pl.body));
|
|
140
|
-
ok('M4 the
|
|
141
|
-
await tap(q, '[data-a="
|
|
140
|
+
ok('M4 the step says where it went (MtAfter: Task made · added to Viewer, under Intake), with Undo', await until(async () => /Task made · added to Viewer, under Intake/.test(await text(q)) && !!(await q.$('#czViewer [data-a="madeundo"][data-i="0"]'))));
|
|
141
|
+
await tap(q, '[data-a="madeundo"][data-i="0"]');
|
|
142
142
|
const wd = await until(() => posted(B.S, '/api/plan-items')[1]);
|
|
143
143
|
ok('M4 Undo withdraws the item', wd && wd.body.events[0].ev === 'withdrawn' && wd.body.events[0].item === 'item-9', JSON.stringify(wd && wd.body));
|
|
144
|
-
ok('M4 after Undo the step can be made a task again', await until(async () => /The task is withdrawn/.test(await text(q)) && !!(await q.$('#czViewer [data-a="
|
|
144
|
+
ok('M4 after Undo the step can be made a task again', await until(async () => /The task is withdrawn/.test(await text(q)) && !!(await q.$('#czViewer [data-a="maketask"][data-i="0"]'))));
|
|
145
145
|
/* an initiative with no stage; a refused write */
|
|
146
146
|
await q.route('**/api/plan-items*', (r) => (r.request().method() === 'POST' ? (B.S.posts.push({ path: '/api/plan-items', body: JSON.parse(r.request().postData() || '{}') }), json(r, { ok: false, error: 'the plan is locked' }, 409)) : json(r, { ok: true, stages: B.noStage ? [] : [{ id: 'st1', label: 'Intake' }] })));
|
|
147
147
|
B.noStage = true;
|
|
148
148
|
const before = posted(B.S, '/api/plan-items').length;
|
|
149
|
-
await tap(q, '[data-a="
|
|
149
|
+
await tap(q, '[data-a="maketask"][data-i="1"]');
|
|
150
150
|
ok('M4 an initiative with no stage says so and writes nothing', await until(async () => /The initiative has no stage to put the step in/.test(await text(q))) && posted(B.S, '/api/plan-items').length === before);
|
|
151
151
|
B.noStage = false;
|
|
152
|
-
await tap(q, '[data-a="
|
|
153
|
-
ok('M5 a refused Make task shows the reason and the step stays open', await until(async () => /The task was not made: the plan is locked/.test(await text(q))) && !!(await q.$('#czViewer [data-a="
|
|
152
|
+
await tap(q, '[data-a="maketask"][data-i="1"]');
|
|
153
|
+
ok('M5 a refused Make task shows the reason and the step stays open', await until(async () => /The task was not made: the plan is locked/.test(await text(q))) && !!(await q.$('#czViewer [data-a="maketask"][data-i="1"]')));
|
|
154
154
|
await B.ctx.close();
|
|
155
155
|
|
|
156
156
|
/* M4 a note with no initiative */
|
|
@@ -158,17 +158,17 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
158
158
|
ALL.push(C);
|
|
159
159
|
await C.page.route('**/api/notes/one*', (r) => json(r, { ok: true, note: { ...W.NOTE, initiative: null, series: null }, place: null }));
|
|
160
160
|
await C.page.reload();
|
|
161
|
-
await until(() => C.page.evaluate(() => !!document.querySelector('#czViewer [data-a="
|
|
162
|
-
await tap(C.page, '[data-a="
|
|
163
|
-
ok('M4 with no initiative the press says to link one and writes nothing', await until(async () => /
|
|
161
|
+
await until(() => C.page.evaluate(() => !!document.querySelector('#czViewer [data-a="maketask"]')), 15000);
|
|
162
|
+
await tap(C.page, '[data-a="maketask"][data-i="0"]');
|
|
163
|
+
ok('M4 with no initiative the press says to link one and writes nothing', await until(async () => /link the meeting to an initiative first/i.test(await text(C.page))) && posted(C.S, '/api/plan-items').length === 0);
|
|
164
164
|
await C.ctx.close();
|
|
165
165
|
|
|
166
166
|
/* M7 floors */
|
|
167
167
|
const D = await openRail({ w: 390, h: 844 });
|
|
168
168
|
await tap(D.page, '[data-a="addmat"]');
|
|
169
|
-
await until(() => D.page.evaluate(() => !!document.querySelector('#czViewer [data-
|
|
169
|
+
await until(() => D.page.evaluate(() => !!document.querySelector('#czViewer [data-a="matlink"]')));
|
|
170
170
|
const fl = await D.page.evaluate(() => ({ over: document.documentElement.scrollWidth - innerWidth }));
|
|
171
|
-
ok('M7 at 390 px the
|
|
171
|
+
ok('M7 at 390 px the popover has no sideways scroll', fl.over <= 0, JSON.stringify(fl));
|
|
172
172
|
await D.ctx.close();
|
|
173
173
|
ok('M6 no page error in any run', ALL.every((x) => x.errors.length === 0), JSON.stringify(ALL.map((x) => x.errors).filter((e) => e.length)));
|
|
174
174
|
return finish();
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* makes the same requests the console's recorder makes (record, pause, stop) and opens no microphone.
|
|
8
8
|
* Focus and the full Replay view have no design in the Agreed mockup: they are the plain versions, marked "Waiting for design". The topic of an
|
|
9
9
|
* added item (R8) is in briefing-premium-calendar-2-test.js (M3).
|
|
10
|
-
* R1 record · R2 honest state · R3 no chip · R4 leaving · R5 Focus · R6 honest Focus · R7 Replay · R10 writes · R11 floors · R12
|
|
10
|
+
* R1 record · R2 honest state · R3 no chip · R4 leaving · R5 Focus · R6 honest Focus · R7 Replay · R10 writes · R11 floors · R12 every line
|
|
11
|
+
* (premium-uncovered-features, meetings: Focus and Replay are tabs of the card, the recording is one line in its head, MtFocus and MtReplay)
|
|
11
12
|
* Every wait polls the page; no fixed sleep stands in for a state. */
|
|
12
13
|
const path = require('path');
|
|
13
14
|
const { spawn } = require('child_process');
|
|
@@ -42,7 +43,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
42
43
|
const tap = (p, sel) => p.$eval('#czViewer ' + sel, (b) => b.click());
|
|
43
44
|
const text = (p) => p.evaluate(() => (document.querySelector('#czViewer') || {}).innerText || '');
|
|
44
45
|
const notesPosts = (S) => S.posts.filter((x) => x.path.startsWith('/api/notes/')).map((x) => x.path.replace('/api/notes/', ''));
|
|
45
|
-
const chip = (p) => p.evaluate(() => (document.querySelector('#czViewer .
|
|
46
|
+
const chip = (p) => p.evaluate(() => (document.querySelector('#czViewer .vzm-state') || {}).textContent || '');
|
|
46
47
|
const LIVE_URL = '/premium-viewer.html?open=meeting&event=ev-live&date=' + F.dayKey(W.LIVE);
|
|
47
48
|
const ALL = [];
|
|
48
49
|
const open = async (url, o) => { const X = await F.open(browser, BASE, url, { noLive: true, ...o }); ALL.push(X); return X; };
|
|
@@ -50,7 +51,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
50
51
|
/* R1 record */
|
|
51
52
|
const A = await open(LIVE_URL);
|
|
52
53
|
const p = A.page;
|
|
53
|
-
ok('R1 a meeting under way has Record', await until(() => p.evaluate(() =>
|
|
54
|
+
ok('R1 a meeting under way has Record', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .vzm-hc [data-a="record"]')), 15000));
|
|
54
55
|
await tap(p, '[data-a="more"]'); await tap(p, '[data-a="m-why"]');
|
|
55
56
|
ok('R1 More says what Record and Focus do', await until(async () => /stay on this machine|on this machine/i.test(await text(p)) && !!(await p.$('#czViewer .vz-why'))), (await text(p)).slice(0, 400));
|
|
56
57
|
ok('R1 nothing was sent to the notes routes before a press', notesPosts(A.S).length === 0);
|
|
@@ -62,14 +63,14 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
62
63
|
await tap(p, '[data-a="recgo"]');
|
|
63
64
|
const made = await until(() => A.S.posts.find((x) => x.path === '/api/notes/new'));
|
|
64
65
|
ok('R1 "I told them, start" makes the note for the calendar event, then listens on it', made && JSON.stringify(made.body).includes('ev-live') && await until(() => notesPosts(A.S).join() === 'new,record'), JSON.stringify(made && made.body));
|
|
65
|
-
ok('R2 the card says Recording, with the clock and Stop', await until(async () => (await chip(p)) === 'Recording' && !!(await p.$('#czViewer .
|
|
66
|
+
ok('R2 the card says Recording, with the clock and Stop', await until(async () => (await chip(p)) === 'Recording' && /Recording · \d{2}:\d{2}/.test(await text(p)) && !!(await p.$('#czViewer .vzm-rec [data-a="stop"]'))));
|
|
66
67
|
ok('R3 no floating record chip is drawn while it records', !(await p.$('#recChip, #recCtl')));
|
|
67
68
|
|
|
68
69
|
/* R2 pause and resume */
|
|
69
|
-
await tap(p, '.
|
|
70
|
-
ok('R2 Pause pauses through the route and the card says Paused with Resume', await until(async () => (await chip(p)) === 'Paused' && !!(await p.$('#czViewer .
|
|
70
|
+
await tap(p, '.vzm-rec [data-a="pause"]');
|
|
71
|
+
ok('R2 Pause pauses through the route and the card says Paused with Resume', await until(async () => (await chip(p)) === 'Paused' && /Recording paused at \d{2}:\d{2} · nothing is kept while paused/.test(await text(p)) && !!(await p.$('#czViewer .vzm-rec [data-a="resume"]'))));
|
|
71
72
|
ok('R3 no record chip while it is paused either', !(await p.$('#recChip, #recCtl')));
|
|
72
|
-
await tap(p, '.
|
|
73
|
+
await tap(p, '.vzm-rec [data-a="resume"]');
|
|
73
74
|
ok('R2 Resume listens again on the same note, without asking for consent twice', await until(() => notesPosts(A.S).join() === 'new,record,pause,record') && !/Tell everyone first/.test(await text(p)));
|
|
74
75
|
|
|
75
76
|
/* R4 leaving while it records */
|
|
@@ -80,12 +81,12 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
80
81
|
ok('R4 leaving the page while it records makes the browser ask first, and staying pauses nothing', await until(() => dialog === 'beforeunload') && notesPosts(A.S).join() === 'new,record,pause,record', String(dialog));
|
|
81
82
|
|
|
82
83
|
/* R1 stop */
|
|
83
|
-
await until(() => p.evaluate(() => !!document.querySelector('#czViewer .
|
|
84
|
-
await tap(p, '.
|
|
84
|
+
await until(() => p.evaluate(() => !!document.querySelector('#czViewer .vzm-rec [data-a="stop"]')));
|
|
85
|
+
await tap(p, '.vzm-rec [data-a="stop"]');
|
|
85
86
|
ok('R1 Stop asks first', await until(async () => /Stop for good/.test(await text(p))));
|
|
86
87
|
await tap(p, '[data-a="askno"]');
|
|
87
88
|
ok('R1 Not yet on the ask stops nothing', await until(async () => !/Stop for good/.test(await text(p))) && !notesPosts(A.S).includes('stop'));
|
|
88
|
-
await tap(p, '.
|
|
89
|
+
await tap(p, '.vzm-rec [data-a="stop"]');
|
|
89
90
|
await tap(p, '[data-a="stopgo"]');
|
|
90
91
|
ok('R1 Stop for good ends the meeting through the route, and the card says so', await until(async () => notesPosts(A.S).includes('stop') && /Stopped\. The final notes are written now/.test(await text(p))));
|
|
91
92
|
ok('R10 the notes writes sent were new, record, pause, record, stop and nothing else', notesPosts(A.S).join() === 'new,record,pause,record,stop', notesPosts(A.S).join());
|
|
@@ -122,51 +123,50 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
122
123
|
/* R5 Focus */
|
|
123
124
|
const B = await open('/premium-viewer.html?open=meeting¬e=n2', { noLive: false, init: () => { window.__premiumHolding = { id: 'n2' }; } });
|
|
124
125
|
const q = B.page;
|
|
125
|
-
await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-a="
|
|
126
|
-
await tap(q, '[data-a="
|
|
127
|
-
ok('R5 Focus
|
|
126
|
+
await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-a="tab"][data-k="focus"]')), 15000);
|
|
127
|
+
await tap(q, '[data-a="tab"][data-k="focus"]'); // premium-uncovered-features (meetings, MtFocus): Focus is a tab of the live meeting
|
|
128
|
+
ok('R5 Focus: Now · topic 2 of 3, the topic, and the agenda with the minutes used', await until(async () => { const t = await text(q); return /Now · topic 2 of 3/.test(t) && /The Issue button/.test(t) && /One toolbar row/.test(t) && /Phone layout/.test(t) && /\d+ of 10/.test(t) && !(await q.$('#czViewer [data-cz-placeholder]')); }), (await text(q)).slice(0, 600));
|
|
128
129
|
const f0 = B.S.gets.filter((g) => g.startsWith('/api/meeting-focus')).length;
|
|
129
|
-
ok('R5 Focus reads again
|
|
130
|
-
await q
|
|
130
|
+
ok('R5 Focus reads again while the meeting is live', await until(() => B.S.gets.filter((g) => g.startsWith('/api/meeting-focus')).length >= f0 + 2, 12000));
|
|
131
|
+
await tap(q, '[data-a="topic"]');
|
|
132
|
+
await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-a="topicgo"]')));
|
|
133
|
+
await q.$eval('#czViewer [data-a="topicgo"][data-i="2"]', (b) => b.click());
|
|
131
134
|
const tp = await until(() => B.S.posts.find((x) => x.path === '/api/meeting-focus/topic'));
|
|
132
|
-
ok('R5
|
|
133
|
-
await tap(q, '[data-a="back"]');
|
|
134
|
-
const f1 = B.S.gets.filter((g) => g.startsWith('/api/meeting-focus')).length;
|
|
135
|
-
await q.waitForTimeout(3500); // one Focus period: no read may follow once Focus is left
|
|
136
|
-
ok('R5 leaving Focus stops its reads', B.S.gets.filter((g) => g.startsWith('/api/meeting-focus')).length <= f1 + 1, String(B.S.gets.filter((g) => g.startsWith('/api/meeting-focus')).length - f1));
|
|
135
|
+
ok('R5 Change topic posts one set for that topic on this meeting', tp && tp.body.event === 'ev-live' && tp.body.action === 'set' && tp.body.topic === 'Phone layout', JSON.stringify(B.S.posts) + (await text(q)).slice(0, 300));
|
|
137
136
|
/* R6 a refused read */
|
|
138
137
|
await q.route('**/api/meeting-focus?*', (r) => json(r, { ok: false, error: 'the companion is off' }, 503));
|
|
139
|
-
await
|
|
140
|
-
ok('R6 a refused read says why and shows nothing else', await until(async () => /Focus could not read this meeting/.test(await text(q)) && !(await q.$('#czViewer [data-f="topic"]'))), (await text(q)).slice(0, 400));
|
|
138
|
+
ok('R6 a refused read says why and offers no topic to change', await until(async () => /Focus could not read this meeting/.test(await text(q)) && !(await q.$('#czViewer [data-a="topic"]')), 12000), (await text(q)).slice(0, 400));
|
|
141
139
|
await B.ctx.close();
|
|
142
140
|
|
|
143
141
|
/* R7 Replay */
|
|
144
142
|
const C = await open('/premium-viewer.html?open=meeting¬e=n1');
|
|
145
143
|
const r = C.page;
|
|
146
|
-
ok('R7 a kept recording has Replay', await until(() => r.evaluate(() => !!document.querySelector('#czViewer [data-a="replay"]')), 15000));
|
|
147
|
-
await tap(r, '[data-a="replay"]');
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
ok('R7 a kept recording has the Replay tab', await until(() => r.evaluate(() => !!document.querySelector('#czViewer [data-a="tab"][data-k="replay"]')), 15000));
|
|
145
|
+
await tap(r, '[data-a="tab"][data-k="replay"]');
|
|
146
|
+
const playing = () => r.evaluate(() => /^Pause/.test((document.querySelector('#czViewer .vzp-dt [data-a="play"]') || { getAttribute: () => '' }).getAttribute('aria-label') || ''));
|
|
147
|
+
ok('R7 Replay shows the player, the strip and the kept points (MtReplay)', await until(() => r.evaluate(() => !!document.querySelector('#czViewer .vzp-dt .vzp-strip') && document.querySelectorAll('#czViewer .vzp-kr').length > 0)));
|
|
148
|
+
await tap(r, '.vzp-dt [data-a="play"]');
|
|
149
|
+
ok('R7 Play plays', await until(playing));
|
|
150
|
+
const pos = () => r.evaluate(() => (document.querySelector('#czViewer .vzp-dt [data-clk="pos"]') || {}).textContent || '');
|
|
150
151
|
const p0 = await pos();
|
|
151
|
-
ok('R7 the playhead keeps time on its own clock', await until(async () => (await pos()) !== p0 && /^00:0[1-9]
|
|
152
|
-
await tap(r, '[data-a="play"]');
|
|
152
|
+
ok('R7 the playhead keeps time on its own clock', await until(async () => (await pos()) !== p0 && /^00:0[1-9]$/.test(await pos()), 5000), await pos());
|
|
153
|
+
await tap(r, '.vzp-dt [data-a="play"]');
|
|
153
154
|
const p1 = await pos();
|
|
154
155
|
await r.waitForTimeout(600); // longer than the playhead's 250 ms step: a paused playhead does not move
|
|
155
|
-
ok('R7 Pause stops the playhead', (await pos()) === p1 && await
|
|
156
|
-
await r.$eval('#czViewer [data-a="seekto"]', (b) => b.click());
|
|
157
|
-
ok('R7 a
|
|
158
|
-
await tap(r, '[data-a="play"]');
|
|
159
|
-
/* R12 the
|
|
160
|
-
await tap(r, '[data-a="
|
|
161
|
-
await
|
|
162
|
-
|
|
163
|
-
await r
|
|
164
|
-
ok('R12 a line plays from its time, back in the card', await until(async () => /^12:[45]\d of 31:05/.test(await pos()) && !(await r.$('#czViewer [data-a="back"]'))), await pos());
|
|
156
|
+
ok('R7 Pause stops the playhead', (await pos()) === p1 && !(await playing()), p1 + ' / ' + await pos());
|
|
157
|
+
await r.$eval('#czViewer .vzp-dt .vzp-th[data-a="seekto"]', (b) => b.click());
|
|
158
|
+
ok('R7 a capture plays from its time, with the topic of that time', await until(async () => /^03:1\d$/.test(await pos()) && await r.evaluate(() => /Viewer beside the chat/.test((document.querySelector('#czViewer .vzp-top[aria-current="true"]') || {}).textContent || ''))), await pos());
|
|
159
|
+
await tap(r, '.vzp-dt [data-a="play"]');
|
|
160
|
+
/* R12 every line: the Transcript tab seeks the Replay */
|
|
161
|
+
await tap(r, '[data-a="tab"][data-k="tr"]');
|
|
162
|
+
ok('R12 the Transcript lists every line, each with its time to play from', await until(async () => /Saved views move in their own work-item\./.test(await text(r)) && !!(await r.$('#czViewer [data-a="trseek"][data-t="760000"]'))), (await text(r)).slice(0, 300));
|
|
163
|
+
await r.$eval('#czViewer [data-a="trseek"][data-t="760000"]', (b) => b.click());
|
|
164
|
+
ok('R12 a line plays from its time, back on the Replay tab', await until(async () => /^12:[45]\d$/.test(await pos()) && await r.evaluate(() => document.querySelector('#czViewer [data-a="tab"][data-k="replay"]').getAttribute('aria-selected') === 'true')), await pos());
|
|
165
165
|
await C.ctx.close();
|
|
166
166
|
|
|
167
167
|
/* R11 floors */
|
|
168
168
|
const D = await open('/premium-viewer.html?open=meeting¬e=n2', { noLive: false, w: 390, h: 844, init: () => { window.__premiumHolding = { id: 'n2' }; } });
|
|
169
|
-
await until(() => D.page.evaluate(() => !!document.querySelector('#czViewer .
|
|
169
|
+
await until(() => D.page.evaluate(() => !!document.querySelector('#czViewer .vzm-rec')), 15000);
|
|
170
170
|
const fl = await D.page.evaluate(() => ({ over: document.documentElement.scrollWidth - innerWidth, chip: !!document.querySelector('#recChip, #recCtl') }));
|
|
171
171
|
ok('R11 at 390 px the live card has no sideways scroll and no floating record chip', fl.over <= 0 && !fl.chip, JSON.stringify(fl));
|
|
172
172
|
await D.ctx.close();
|
|
@@ -46,44 +46,43 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
46
46
|
/* C1 the strip */
|
|
47
47
|
const A = await open('/premium-viewer.html?open=calendar');
|
|
48
48
|
const p = A.page;
|
|
49
|
-
ok('C1 the calendar opens in the Viewer card', await until(() => p.evaluate(() => document.
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
ok('C1 the calendar opens in the Viewer card', await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-c="view"][data-k="day"]')), 15000));
|
|
50
|
+
await tap(p, '[data-c="view"][data-k="day"]'); // premium-uncovered-features (meetings): the desk opens on the week; Day is the strip and the day's list
|
|
51
|
+
await until(() => p.evaluate(() => document.querySelectorAll('#czViewer .vzc-dy').length === 5));
|
|
52
|
+
const strip = await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-dy')].map((d) => ({ dow: d.querySelector('span').textContent, on: d.getAttribute('aria-pressed'), h: Math.round(d.getBoundingClientRect().height) })));
|
|
53
|
+
ok('C1 the strip has Monday to Friday and today is pressed', strip.map((d) => d.dow).join() === 'Mon,Tue,Wed,Thu,Fri' && strip.filter((d) => d.on === 'true').length === 1, JSON.stringify(strip));
|
|
52
54
|
ok('C1 each day button is at least 44 px', strip.every((d) => d.h >= 44), JSON.stringify(strip));
|
|
53
|
-
ok('C1 the week is read once when the page opens, for today\'s week', weekReads(A.S) === 1 && A.S.gets.some((g) => g.includes('view=week')), JSON.stringify(A.S.gets.filter((g) => g.startsWith('/api/calendar-views'))));
|
|
55
|
+
ok('C1 the week is read once when the page opens, for today\'s week, and Day reads nothing more', weekReads(A.S) === 1 && A.S.gets.some((g) => g.includes('view=week')), JSON.stringify(A.S.gets.filter((g) => g.startsWith('/api/calendar-views'))));
|
|
54
56
|
|
|
55
57
|
/* C2 the day */
|
|
56
58
|
const today = await text(p);
|
|
57
|
-
ok('C2
|
|
59
|
+
ok('C2 the day is named "· today" and its entries counted', /\w{3} \d{1,2} \w{3} · today/.test(today) && /\d+ (entr(y|ies)|meetings?)/.test(today), today.slice(0, 400));
|
|
58
60
|
ok('C2 a row shows the time, the title, what it is about and the people', /\d{2}:\d{2}\s+Rail review\s+Viewer · Sam, Wawan/.test(today), today.slice(0, 600));
|
|
59
|
-
await p.evaluate(() => [...document.querySelectorAll('#czViewer .
|
|
60
|
-
ok('C2 pressing a day lists that day only, with its count', await until(async () => { const t = await text(p); return /1:1 with Dita/.test(t) && !/Rail review/.test(t) && /\b1
|
|
61
|
+
await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-dy')].find((d) => d.getAttribute('aria-pressed') === 'false' && /: 1 meeting$/.test(d.getAttribute('aria-label'))).click());
|
|
62
|
+
ok('C2 pressing a day lists that day only, with its count', await until(async () => { const t = await text(p); return /1:1 with Dita/.test(t) && !/Rail review/.test(t) && /\b1 meeting\b/.test(t); }), (await text(p)).slice(0, 400));
|
|
61
63
|
ok('C2 another day of the same week is not read again', weekReads(A.S) === 1);
|
|
62
|
-
await p.evaluate(() => [...document.querySelectorAll('#czViewer .
|
|
64
|
+
await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-dy')].find((d) => /today/.test(d.getAttribute('aria-label'))).click());
|
|
63
65
|
ok('C2 pressing today brings Today back unchanged', await until(async () => (await text(p)) === today));
|
|
64
66
|
|
|
65
67
|
/* C4 a meeting */
|
|
66
|
-
await p.evaluate(() => [...document.querySelectorAll('#czViewer .
|
|
67
|
-
ok('C4 a row opens the meeting card with its title and when', await until(async () => /Rail review/.test(await p.textContent('#czViewer .cz-vw-title')) && /Today
|
|
68
|
+
await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-de')].find((r) => /Rail review/.test(r.textContent)).click());
|
|
69
|
+
ok('C4 a row opens the meeting card with its title and when', await until(async () => /Rail review/.test(await p.textContent('#czViewer .cz-vw-title')) && /Today · \d{2}:\d{2}/.test(await text(p))), (await text(p)).slice(0, 300));
|
|
68
70
|
ok('C4 the card reads Focus for that meeting, and no replay (it has no note)', await until(() => A.S.gets.some((g) => /meeting-focus\?event=ev-rail/.test(g))) && !A.S.gets.some((g) => /meeting-replay/.test(g)));
|
|
69
71
|
ok('C4 the card has no conversation and no tabs', await p.evaluate(() => !document.querySelector('#dlg, .stream, #vTabs')));
|
|
70
72
|
|
|
71
73
|
/* C6, C7, C8 the parts */
|
|
72
|
-
ok('C6 with no note the card
|
|
73
|
-
ok('C7 the material is listed, with who linked it and its topic
|
|
74
|
-
ok('C8 with no recording the card offers no Replay', !(await p.$('#czViewer [data-a="replay"]')));
|
|
74
|
+
ok('C6 with no note the card is the prep: Prepared for you, and no tabs', /Prepared for you/.test(await text(p)) && !(await p.$('#czViewer [role="tablist"]')));
|
|
75
|
+
ok('C7 the material is listed, with who linked it and its topic; a deck has Present', /Rail PRD · added by you/.test(await text(p)) && /For The report panel/.test(await text(p)) && !!(await p.$('#czViewer [data-a="present"]')));
|
|
76
|
+
ok('C8 with no recording the card offers no Replay', !(await p.$('#czViewer [data-a="tab"][data-k="replay"]')));
|
|
75
77
|
|
|
76
78
|
/* C5 link it: a calendar meeting is linked for its whole series */
|
|
77
|
-
await tap(p, '[data-a="more"]');
|
|
78
79
|
await tap(p, '[data-a="m-about"]');
|
|
79
|
-
const opts = await until(() => p.evaluate(() => { const s = document.
|
|
80
|
-
ok('C5
|
|
80
|
+
const opts = await until(() => p.evaluate(() => { const s = [...document.querySelectorAll('#czViewer [data-a="aboutpick"]')]; return s.length ? s.map((o) => o.textContent.trim()) : null; }));
|
|
81
|
+
ok('C5 What it is about offers the product, the whole portfolio and Leave it out, with no Waiting for design marker', opts && opts.join('|').endsWith('Growth · product|The whole portfolio|Leave it out of an initiative') && !(await p.$('#czViewer [data-cz-placeholder]')), JSON.stringify(opts));
|
|
81
82
|
ok('C5 it says it applies to every meeting and the calendar is never written', /Applies to every meeting of “Rail review”\. The calendar itself is never written\./.test(await text(p)));
|
|
82
|
-
|
|
83
|
-
ok('C5 Link it with no choice writes nothing', A.S.posts.length === 0);
|
|
83
|
+
ok('C5 opening the choices writes nothing', A.S.posts.length === 0);
|
|
84
84
|
const r0 = weekReads(A.S);
|
|
85
|
-
await p
|
|
86
|
-
await tap(p, '[data-a="aboutgo"]');
|
|
85
|
+
await tap(p, '[data-a="aboutpick"][data-v="board|w1|b1"]');
|
|
87
86
|
const link = await until(() => A.S.posts.find((x) => x.path === '/api/calendar-links'));
|
|
88
87
|
ok('C5 the press posts one link to /api/calendar-links for the meeting', link && JSON.stringify(link.body).includes('Rail review') && JSON.stringify(link.body).includes('b1') && A.S.posts.length === 1, JSON.stringify(link && link.body));
|
|
89
88
|
ok('C5 after the write the week is read again and the card says Linked', await until(async () => weekReads(A.S) > r0 && /Linked\./.test(await text(p))), String(weekReads(A.S)) + ' ' + r0 + ' ' + (await text(p)).slice(0, 300));
|
|
@@ -95,7 +94,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
95
94
|
|
|
96
95
|
/* C8 a kept recording offers Replay */
|
|
97
96
|
const R = await open('/premium-viewer.html?open=meeting¬e=n1');
|
|
98
|
-
ok('C8 a kept recording offers Replay, and the card reads its replay', await until(() => R.page.evaluate(() => !!document.querySelector('#czViewer [data-a="replay"]')), 15000) && R.S.gets.some((g) => /meeting-replay\?note=n1/.test(g)));
|
|
97
|
+
ok('C8 a kept recording offers Replay, and the card reads its replay', await until(() => R.page.evaluate(() => !!document.querySelector('#czViewer [data-a="tab"][data-k="replay"]')), 15000) && R.S.gets.some((g) => /meeting-replay\?note=n1/.test(g)));
|
|
99
98
|
await R.ctx.close();
|
|
100
99
|
|
|
101
100
|
/* C3 honest states */
|
|
@@ -103,10 +102,10 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
103
102
|
await E.page.route('**/api/calendar-views*', (r) => { const w = W.week(); w.cells.forEach((c) => { c.events = []; }); return json(r, w); });
|
|
104
103
|
await E.page.route(/\/api\/notes(\?.*)?$/, (r) => json(r, { ok: true, notes: [], series_open: {} }));
|
|
105
104
|
await E.page.reload();
|
|
106
|
-
ok('C3 an empty
|
|
105
|
+
ok('C3 an empty week says so', await until(async () => /No meetings in this week/.test(await text(E.page)) && !(await E.page.$('#czViewer .vzc-ev'))), (await text(E.page)).slice(0, 400));
|
|
107
106
|
await E.page.route('**/api/calendar-views*', (r) => json(r, { ok: false, error: 'the calendar is not connected' }, 500));
|
|
108
107
|
await E.page.reload();
|
|
109
|
-
ok('C3 a failed read says the calendar was not read, with the reason, and draws no meeting', await until(async () => /The calendar was not read\. the calendar is not connected/.test(await text(E.page))) && !(await E.page.$('#czViewer .
|
|
108
|
+
ok('C3 a failed read says the calendar was not read, with the reason, and draws no meeting', await until(async () => /The calendar was not read\. the calendar is not connected/.test(await text(E.page))) && !(await E.page.$('#czViewer .vzc-ev')), (await text(E.page)).slice(0, 300));
|
|
110
109
|
await E.ctx.close();
|
|
111
110
|
|
|
112
111
|
/* C4 Escape closes the card */
|
|
@@ -119,7 +118,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
119
118
|
/* C10 floors */
|
|
120
119
|
const H = await open('/premium-viewer.html?open=meeting&event=ev-rail&date=' + F.dayKey(W.RAIL), { w: 390, h: 844 });
|
|
121
120
|
await until(() => H.page.evaluate(() => !!document.querySelector('#czViewer .vz-mtg')), 15000);
|
|
122
|
-
const fl = await H.page.evaluate(() => ({ over: document.documentElement.scrollWidth - innerWidth
|
|
121
|
+
const fl = await H.page.evaluate(() => ({ over: document.documentElement.scrollWidth - innerWidth }));
|
|
123
122
|
ok('C10 at 390 px the meeting card has no sideways scroll', fl.over <= 0, JSON.stringify(fl));
|
|
124
123
|
await H.ctx.close();
|
|
125
124
|
ok('C9 no page error', ALL.every((x) => x.errors.length === 0), JSON.stringify(ALL.map((x) => x.errors).filter((e) => e.length)));
|
|
@@ -77,8 +77,12 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
|
|
|
77
77
|
await page.route('**/api/docs?*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, docs: [{ path: PATH, links: [] }] }) }));
|
|
78
78
|
await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&theme=' + theme);
|
|
79
79
|
await until(() => page.evaluate(() => !!document.querySelector('.hm-r[data-id="f:planning/prd/self-serve-v2-prd.md"]')), 15000);
|
|
80
|
-
|
|
81
|
-
await page.
|
|
80
|
+
await until(() => page.evaluate(() => !!document.querySelector('#hmList [data-hi-open="docs"]')), 15000);
|
|
81
|
+
if (!(await page.evaluate(() => !!document.querySelector('#hmList [data-hi-open="docs"]').offsetParent))) await page.click('#hmNeeds'); // a phone may show the list in the top bar's sheet
|
|
82
|
+
// the initiative's Core documents group (in place of the Files group, premium-uncovered-features InDocs) opens every document in the Viewer
|
|
83
|
+
await page.click('#hmList [data-hi-open="docs"]');
|
|
84
|
+
await until(() => page.evaluate(() => !!document.querySelector('#czViewer [data-ov-open="planning/prd/self-serve-v2-prd.md"]')), 15000);
|
|
85
|
+
await page.click('#czViewer [data-ov-open="planning/prd/self-serve-v2-prd.md"]'); // the PRD opens as a page
|
|
82
86
|
await until(() => page.evaluate(() => document.querySelector('.vwdoc .cf') && document.querySelector('.vwdoc .vwside')));
|
|
83
87
|
return { ctx, page, S };
|
|
84
88
|
};
|
|
@@ -121,14 +125,8 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
|
|
|
121
125
|
ok('E5 after Save the page is read again from the route and shows v2', /v2/.test(await txt(q, `${V} .cff`)) && /More\./.test(await txt(q, `${V} .cfb`)));
|
|
122
126
|
await side(q, 'log');
|
|
123
127
|
ok('E5 the Edit log shows the new revision with its reason', await until(() => q.evaluate((v) => /v2 add the missing line/.test((document.querySelector(v + ' .vwside .evl') || {}).textContent || ''), V)));
|
|
124
|
-
/* E3
|
|
125
|
-
|
|
126
|
-
const ak = E.S.posts[E.S.posts.length - 1];
|
|
127
|
-
ok('E3 Ask posts path and prompt to /api/doc-sheet/ask', ak.route === 'ask' && Object.keys(ak.body).sort().join() === 'path,prompt' && ak.body.prompt === 'tighten the goal' && /ws=w1/.test(ak.query));
|
|
128
|
-
ok('E3 while it works the page says the agent can only read', await until(() => q.evaluate((v) => /The agent is reading the document/.test(document.querySelector(v).textContent), V)));
|
|
129
|
-
ok('E3 the page polls the ask by id', await until(() => E.S.gets.some((g) => g.route === 'ask' && /id=ask-1/.test(g.query)), 8000));
|
|
130
|
-
E.S.ask = { ok: true, id: 'ask-1', state: 'failed', error: 'The run ended without an answer. Ask again.' };
|
|
131
|
-
ok('E3 a failed ask shows the route\'s own error', await until(() => q.evaluate((v) => /The run ended without an answer/.test(document.querySelector(v).textContent), V), 8000));
|
|
128
|
+
/* E3 no Ask the agent on the page (testing fixes): the chat beside it asks for a change */
|
|
129
|
+
ok('E3 the read bar has no Ask the agent', await q.evaluate((v) => !document.querySelector(v + ' [data-vd="askt"], ' + v + ' #vwAsk') && !/Ask the agent/.test(document.querySelector(v).textContent), V));
|
|
132
130
|
ok('0 no page error', E.S.errors.length === 0, E.S.errors.join(' | '));
|
|
133
131
|
await E.ctx.close();
|
|
134
132
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* and search and the document sheet's tabs have no place in the Agreed design and are not drawn.
|
|
10
10
|
* Serves the real page from the real server. Most checks answer GET /api/initiative-premium with the model lib/initiative-premium.js builds from a
|
|
11
11
|
* fixture and GET /api/board-premium with lib/board-premium.js's; the last block reads this repository's own initiative through the real route.
|
|
12
|
-
* I1 place · I2 reading · I3 header · I4 overview · I6 tasks · I7 documents · I10 presses · I12 floors and fidelity */
|
|
12
|
+
* I1 place · I2 reading · I3 header · I4 overview (Tasks, Documents, Stage: premium-uncovered-features) · I6 tasks · I7 documents · I10 presses · I12 floors and fidelity */
|
|
13
13
|
const path = require('path');
|
|
14
14
|
const { spawn } = require('child_process');
|
|
15
15
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -73,9 +73,14 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
73
73
|
// ready: the card is drawn from the board's row (kind · anchor) and, when the initiative reads, from its record (the ladder)
|
|
74
74
|
async function ready(page, full = true) { return until(() => page.evaluate((f) => !!document.querySelector('.hm-card [data-hm-ov]') && /·/.test((document.querySelector('.hm-card .hm-sw .k') || {}).textContent || '') && (!f || !!((document.querySelector('.hm-card .hm-lad b') || {}).textContent || '').trim()), full), 30000); }
|
|
75
75
|
const txt = (p, s) => p.evaluate((q) => ((document.querySelector(q) || {}).textContent || '').replace(/\s+/g, ' ').trim(), s);
|
|
76
|
-
|
|
76
|
+
// the Overview opens on Tasks, with Documents and Stage beside it (premium-uncovered-features, canvas InTasks, InDocs, InStage); view names the one to show
|
|
77
|
+
const show = async (p, view) => { await p.click(`${V} [data-hi-view="${view}"]`); return until(() => p.evaluate((a) => !!document.querySelector(a[0] + ` [data-hi-v="${a[1]}"]`), [V, view])); };
|
|
78
|
+
const overview = async (p, view = 'stage') => {
|
|
77
79
|
if (!(await p.evaluate(() => { const b = document.querySelector('.hm-card [data-hm-ov]'); return !!b && !!b.offsetParent; }))) await p.click('#hmNeeds'); // a phone shows the list (and its card) in the sheet
|
|
78
|
-
await p.click('.hm-card [data-hm-ov]');
|
|
80
|
+
await p.click('.hm-card [data-hm-ov]');
|
|
81
|
+
const s = await until(() => p.evaluate((v) => { const o = document.querySelector(v); if (!o) return null; if (o.querySelector('[data-hi-view]')) return 'ok'; return /could not be read/.test(o.textContent) ? 'err' : null; }, V), 30000);
|
|
82
|
+
if (s === 'ok' && view) await show(p, view);
|
|
83
|
+
return !!s; };
|
|
79
84
|
const writes = (X) => X.posts.filter((x) => WRITES.test(x.path));
|
|
80
85
|
|
|
81
86
|
const A = await open(), p = A.page;
|
|
@@ -118,23 +123,30 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
118
123
|
ok('I3 it unfolds again', await until(() => p.evaluate(() => document.querySelector('.hm-card [data-hm-cfold]').getAttribute('aria-expanded') === 'true' && document.querySelectorAll('.hm-card .hm-it').length > 0)));
|
|
119
124
|
ok('I1 the card wrote nothing on its own', writes(A).length === 0, JSON.stringify(writes(A)));
|
|
120
125
|
|
|
121
|
-
/* I7 documents: the list's Files group
|
|
122
|
-
ok('I7 the list holds
|
|
123
|
-
await p.click('
|
|
126
|
+
/* I7 documents: the list's Core documents group (in place of the Files group) shows the ones that need a look and opens them all in the Viewer (InDocs) */
|
|
127
|
+
ok('I7 the list holds Core documents with its count and an All documents line; the Files group is gone', await until(() => p.evaluate(() => { const g = document.querySelector('#hmList section[data-hi="docs"]'); const f = document.querySelector('#hmList section.hm-g[aria-label="Files"]'); return !!g && /Core documents/.test(g.textContent) && !!g.querySelector('[data-hi-open="docs"]') && (!f || f.hidden); })));
|
|
128
|
+
await p.click('#hmList [data-hi-open="docs"]');
|
|
129
|
+
await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-ov-open="planning/prd/self-serve-v2-prd.md"]'), V), 15000);
|
|
130
|
+
await p.click(`${V} [data-ov-open="planning/prd/self-serve-v2-prd.md"]`);
|
|
124
131
|
ok('I7 a file opens as its page in the Viewer, not a dialog', await until(() => p.evaluate((v) => !!document.querySelector(v + ' .obody.vw[data-vw="doc:planning/prd/self-serve-v2-prd.md"]') && !(document.querySelector('#dlg') && !!document.querySelector('#dlg.on')), V), 15000));
|
|
125
132
|
|
|
126
133
|
/* I4 the Overview */
|
|
127
|
-
ok('I4 the card\'s Overview press opens the
|
|
128
|
-
const
|
|
134
|
+
ok('I4 the card\'s Overview press opens the initiative in the Viewer on its Tasks, with Documents and Stage beside it, and no Waiting for design marker', await overview(p, null) && await p.evaluate((v) => /Tasks/.test(document.querySelector('#czViewer .cz-vw-kind').textContent) && [...document.querySelectorAll(v + ' [data-hi-view]')].map((b) => b.textContent).join() === 'Tasks,Documents,Stage' && !document.querySelector(v + ' .hx-wait'), V));
|
|
135
|
+
const tk = await p.evaluate((v) => { const o = document.querySelector(v); return { tasks: [...o.querySelectorAll('[data-ov-tkrow]')].map((r) => r.dataset.ovTkrow).sort(), checks: [...o.querySelectorAll('button[data-hi-chk]')].map((b) => b.dataset.hiChk).sort() }; }, V);
|
|
136
|
+
await show(p, 'stage');
|
|
137
|
+
const st = await p.evaluate((v) => { const o = document.querySelector(v); return { moves: [...o.querySelectorAll('[data-ov-move]')].map((b) => b.dataset.ovMove), cur: (o.querySelector('[data-ov-move][aria-pressed="true"]') || {}).textContent, life: [...o.querySelectorAll('[data-ov-life]')].map((b) => b.dataset.ovLife) }; }, V);
|
|
138
|
+
await show(p, 'docs');
|
|
139
|
+
const ov = await p.evaluate((v) => { const o = document.querySelector(v); return { docs: [...o.querySelectorAll('[data-ov-doc]')].map((d) => d.dataset.ovDoc).sort(), draft: [...o.querySelectorAll('[data-ov-draft]')].map((b) => b.dataset.ovDraft).sort(), drafting: [...o.querySelectorAll('[data-ov-doc]')].filter((d) => /Drafting/.test(d.textContent)).map((d) => d.dataset.ovDoc), dread: [...o.querySelectorAll('[data-ov-dread]')].map((b) => b.dataset.ovDread), sum: (o.querySelector('[data-ov-dsum]') || {}).textContent || '' }; }, V);
|
|
129
140
|
const M = mk();
|
|
130
|
-
ok('I4 the
|
|
131
|
-
ok('I6 the tasks are the record\'s, and only a PMOS task has a
|
|
132
|
-
ok('I7 the core documents are the non-technical ones, with the engine\'s summary', JSON.stringify(ov.docs) === JSON.stringify(M.docs.rows.filter((d) => !d.tech).map((d) => d.key)) && ov.sum === M.docs.cap, JSON.stringify(ov));
|
|
141
|
+
ok('I4 the Stage view lists the board\'s stages with the current one pressed, and the lifecycle presses', JSON.stringify(st.moves) === JSON.stringify(M.acts.stages) && st.cur === 'Build' && st.life.join() === 'on-hold,cancelled', JSON.stringify(st));
|
|
142
|
+
ok('I6 the tasks are the record\'s, and only a PMOS task has a check box it can change', JSON.stringify(tk.tasks) === JSON.stringify(M.tasks.rows.map((t) => t.key).sort()) && JSON.stringify(tk.checks) === JSON.stringify(M.tasks.rows.filter((t) => t.pmos && t.uid).map((t) => t.key).sort()), JSON.stringify(tk));
|
|
143
|
+
ok('I7 the core documents are the non-technical ones, with the engine\'s summary', JSON.stringify(ov.docs) === JSON.stringify(M.docs.rows.filter((d) => !d.tech).map((d) => d.key).sort()) && ov.sum === M.docs.cap, JSON.stringify(ov));
|
|
133
144
|
ok('I7 a document not started offers Draft it; a running one says Drafting and has no press; a draft offers Read', ov.draft.join() === 'problem,research' && ov.drafting.join() === 'launch' && ov.dread.length === M.docs.rows.filter((d) => !d.tech && d.st === 'draft' && d.path && d.slot).length, JSON.stringify(ov));
|
|
134
145
|
|
|
135
146
|
/* I10 presses */
|
|
136
147
|
const mint = await T.nonce(BASE);
|
|
137
148
|
const settle = async (fn) => { const c = A.calls(); await fn(); await until(() => A.calls() > c, 10000); await sleep(500); }; // a press that lands reads the initiative again and draws the Overview again
|
|
149
|
+
await show(p, 'stage');
|
|
138
150
|
await settle(() => p.click(`${V} [data-ov-move="Deliver"]`));
|
|
139
151
|
const mv = await until(() => A.posts.find((x) => x.path === '/api/boards/move'));
|
|
140
152
|
ok('I10 a stage press posts the board, the initiative and the stage to the move route', mv && mv.body.ws === 'w1' && mv.body.board === 'w1' && mv.body.id === 'self-serve-v2' && mv.body.to === 'Deliver', JSON.stringify(mv && mv.body));
|
|
@@ -146,16 +158,22 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
146
158
|
await p.fill(`${V} #ovWhy`, 'Waiting on legal'); await settle(() => p.click(`${V} [data-ov-life-go]`));
|
|
147
159
|
const lf = await until(() => A.posts.find((x) => x.path === '/api/lifecycle'));
|
|
148
160
|
ok('I10 Record posts the state and the reason to the lifecycle route', lf && lf.body.initiative_id === 'self-serve-v2' && lf.body.state === 'on-hold' && lf.body.reason === 'Waiting on legal' && lf.body.ws === 'w1', JSON.stringify(lf && lf.body));
|
|
161
|
+
await show(p, 'tasks');
|
|
149
162
|
await until(() => p.evaluate((v) => !!document.querySelector(v + ' #ovTask'), V));
|
|
150
163
|
await p.click(`${V} [data-ov-add]`); await sleep(200);
|
|
151
164
|
ok('I6 Add with no title posts nothing', !A.posts.some((x) => x.path === '/api/boards/tasks/add'));
|
|
152
165
|
await p.fill(`${V} #ovTask`, 'Release plan'); await settle(() => p.click(`${V} [data-ov-add]`));
|
|
153
166
|
const ad = await until(() => A.posts.find((x) => x.path === '/api/boards/tasks/add'));
|
|
154
167
|
ok('I10 Add posts the workspace, the board, this initiative and the title to the board\'s own route', ad && ad.body.ws === 'w1' && ad.body.board === 'w1' && ad.body.initiative === 'self-serve-v2' && ad.body.title === 'Release plan', JSON.stringify(ad && ad.body));
|
|
155
|
-
|
|
156
|
-
|
|
168
|
+
// a PMOS task's status is in its row's menu (InTasks)
|
|
169
|
+
const pk = M.tasks.rows.find((t) => t.pmos && t.uid).key;
|
|
170
|
+
await until(() => p.evaluate((a) => !!document.querySelector(a[0] + ` [data-hi-tmore="${a[1]}"]`), [V, pk]));
|
|
171
|
+
await p.click(`${V} [data-hi-tmore="${pk}"]`);
|
|
172
|
+
await until(() => p.evaluate(() => !!document.querySelector('.hi-pop[role="menu"]')));
|
|
173
|
+
await settle(() => p.click('.hi-pop[role="menu"] [role="menuitemradio"]:has(span:text-is("In progress"))'));
|
|
157
174
|
const ts = await until(() => A.posts.find((x) => x.path === '/api/boards/tasks/state'));
|
|
158
175
|
ok('I10 a status change posts the board, the task and the state, and nothing else', ts && Object.keys(ts.body).sort().join() === 'board,state,task,ws' && ts.body.state === 'In progress', JSON.stringify(ts && ts.body));
|
|
176
|
+
await show(p, 'docs');
|
|
159
177
|
await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-ov-draft="problem"]'), V));
|
|
160
178
|
await settle(() => p.click(`${V} [data-ov-draft="problem"]`));
|
|
161
179
|
const dr = await until(() => A.posts.find((x) => x.path === '/api/core-docs/draft'));
|
|
@@ -188,9 +206,13 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
188
206
|
/* I12 floors at 390 */
|
|
189
207
|
{
|
|
190
208
|
const N = await open({ w: 390, h: 844 });
|
|
191
|
-
await overview(N.page);
|
|
192
|
-
const
|
|
193
|
-
|
|
209
|
+
await overview(N.page, null);
|
|
210
|
+
const fls = [];
|
|
211
|
+
for (const view of ['tasks', 'docs', 'stage']) {
|
|
212
|
+
await show(N.page, view);
|
|
213
|
+
fls.push(await N.page.evaluate((a) => { const o = document.querySelector(a[0]); const small = [...o.querySelectorAll('button, select, input')].filter((b) => b.offsetParent && b.getBoundingClientRect().height < 44).map((b) => b.textContent.trim().slice(0, 24) || b.id || b.getAttribute('aria-label') || b.tagName); return { view: a[1], over: document.documentElement.scrollWidth - innerWidth, small }; }, [V, view]));
|
|
214
|
+
}
|
|
215
|
+
ok('I12 at 390 px the Overview\'s Tasks, Documents and Stage have no sideways scroll and every target is 44 px', fls.every((fl) => fl.over <= 0 && fl.small.length === 0), JSON.stringify(fls));
|
|
194
216
|
ok('I12 no page error at 390 px', N.errors.length === 0, N.errors.join(' | '));
|
|
195
217
|
await N.ctx.close();
|
|
196
218
|
}
|