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
|
@@ -39,7 +39,8 @@ const ANSWER = { role: 'assistant', text: 'Signups from the lightbox rose to 1,2
|
|
|
39
39
|
|
|
40
40
|
/* premium-agreed-design: Home's chat is #hmLog; a report opens in the Viewer card (#czViewer), which covers the chat page on a phone. A new
|
|
41
41
|
* report is the design's slide deck (Main.dc.html viewer "deck"): one slide, Slide n of N, the thumbnails (the title slide, then the seven sections);
|
|
42
|
-
* its setup and a set-up template
|
|
42
|
+
* its setup and a set-up template show At a glance as the Brief draws it (premium-uncovered-features, canvas RpBrief). A confirm asks in the
|
|
43
|
+
* card ([data-rt="askyes"]). */
|
|
43
44
|
const look = () => {
|
|
44
45
|
const vw = document.querySelector('#czViewer:not([hidden])'), pane = vw ? vw.querySelector('.vz[data-vw^="report:"]') : null;
|
|
45
46
|
return { shut: !pane, layer: false, chip: (document.querySelector('#hmLog [data-report-open]') || {}).textContent || null,
|
|
@@ -79,7 +80,7 @@ const look = () => {
|
|
|
79
80
|
ok('R1 opening the chat opens no tab by itself', s0.tabs.length === 0, JSON.stringify(s0));
|
|
80
81
|
await p.click('#hmLog [data-report-open]');
|
|
81
82
|
const s1 = await until(async () => { const v = await p.evaluate(look); return v.pane ? v : null; }) || await p.evaluate(look);
|
|
82
|
-
ok('R3 the new report is the design\'s slide deck: name, audience, format, a title slide and seven section slides, Schedule Off', /Slide deck/.test(s1.tabs.join(' ')) && /Social login weekly/.test(s1.pane || '') && /
|
|
83
|
+
ok('R3 the new report is the design\'s slide deck: name, audience, format, a title slide and seven section slides, Schedule Off', /Slide deck/.test(s1.tabs.join(' ')) && /Social login weekly/.test(s1.pane || '') && /Read byGrowth leads/.test(s1.pane || '') && /FormatGoogle Slides/.test(s1.pane || '') && !/Waiting for design/.test(s1.pane || '')
|
|
83
84
|
&& s1.secs === 7 && s1.slide === 'Slide 1 of 8' && s1.sched === 'Off · runs once' && /Set it up/.test(s1.pane || '') && !(await p.$('#czViewer .rt, #czViewer .obody, #dlg:not([hidden])')), JSON.stringify(s1));
|
|
84
85
|
await p.click('#czViewer [data-rt="sl|1"]');
|
|
85
86
|
ok('R3 next shows the second slide, a section of the report', /Slide 2 of 8/.test((await p.evaluate(look)).slide || '') && /Headline/.test(await p.textContent('#czViewer .vz-dks')));
|
|
@@ -99,6 +100,19 @@ const look = () => {
|
|
|
99
100
|
const s4 = await until(async () => { const v = await p.evaluate(look); return v.sched && /Every two weeks/.test(v.sched) ? v : null; }) || await p.evaluate(look);
|
|
100
101
|
const changed = RS.fold(ledger()).setups.get(setup && setup.id);
|
|
101
102
|
ok('R5 the Schedule chip changes a template through the route and resumes it', !!changed && changed.status === 'active' && changed.schedule.cadence === 'bi-weekly' && /Every two weeks/.test(s4.sched || ''), JSON.stringify([s4.sched, changed]));
|
|
103
|
+
/* R8 the look conversation's card (canvas RpDesign): D1 is the saved look, D2 a new one; Design previews D2 beside the current look */
|
|
104
|
+
const RDS = require('./lib/report-design.js');
|
|
105
|
+
const look1 = '<style>.pmos-slide{background:#fff}</style><section class="pmos-slide" data-title="Headline"><h2>Light, long</h2></section>';
|
|
106
|
+
const look2 = '<style>.pmos-slide{background:#14213D;color:#F3F5F9}</style><section class="pmos-slide" data-title="Headline"><h2>Dark, short</h2></section>';
|
|
107
|
+
const v1 = RDS.writeVersion(F.team, setup.id, look1, { turn: 'Light, long' }), v2 = RDS.writeVersion(F.team, setup.id, look2, { turn: 'Like the Sept leadership deck' });
|
|
108
|
+
RDS.append(F.team, setup.id, { ev: 'accept', n: 1, rules: { same: ['Dark slides'], changes: [], learned: [] } });
|
|
109
|
+
await p.click('#czViewer [data-rt="view|design"]');
|
|
110
|
+
const d1 = await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer .vz[data-vw^="report:"]'); return v && /Previewing new look/.test(v.textContent) ? { t: v.textContent, pair: v.querySelectorAll('.rp-pair .rp-thumb').length, use: !!v.querySelector('[data-rt="d-accept"]'), keep: !!v.querySelector('[data-rt="d-keep"]') } : null; }), 10000);
|
|
111
|
+
ok('R8 Design is the look conversation (RpDesign): Previewing new look, Current beside New look, Use it and Keep current', v1.ok && v2.ok && d1 && d1.pair === 2 && d1.use && d1.keep && /New look/.test(d1.t) && /Current/.test(d1.t), JSON.stringify(d1));
|
|
112
|
+
if (shots) await p.screenshot({ path: `${shots}/design-1280-light.png` });
|
|
113
|
+
await p.click('#czViewer [data-rt="d-accept"]');
|
|
114
|
+
ok('R8 Use it saves the new look; the card says the next cycle follows it', await until(() => p.evaluate(() => /Using the new look \(D2\)/.test((document.querySelector('#czViewer .vz[data-vw^="report:"]') || {}).textContent || '') && /Saved look/.test(document.querySelector('#czViewer .vz[data-vw^="report:"]').textContent)), 10000) && (RDS.fold(RDS.readEvents(F.team, setup.id)).saved || {}).version === 2, await p.evaluate(() => ((document.querySelector('#czViewer .vz[data-vw^="report:"]') || {}).textContent || '').slice(0, 600)));
|
|
115
|
+
await p.click('#czViewer [data-rt="view|structure"]');
|
|
102
116
|
await p.click('#czViewer [data-rt^="discard|"]');
|
|
103
117
|
await p.click('#czViewer [data-rt="askyes"]');
|
|
104
118
|
const s5 = await until(async () => { const v = await p.evaluate(look); return v.pane && /The draft is discarded/.test(v.pane) ? v : null; }) || await p.evaluate(look);
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* header, so the icon sits in the box's toolbar; nothing links to the console)
|
|
7
7
|
* O2 an ended chat: the icon copies the line that resumes it
|
|
8
8
|
* O3 no session: no icon
|
|
9
|
-
* O4 /console.html?term=<id> opens that session's sheet on the terminal, also at phone width
|
|
10
9
|
* Set CHAT_TERM_SHOTS=<dir> to save the header at 1280 light and 390 dark. */
|
|
11
10
|
const { findBrowser } = require('./lib/find-browser');
|
|
12
11
|
require('./test-run').configure({ name: 'premium-chat-term' });
|
|
@@ -80,14 +79,5 @@ const pressTerm = async (p) => { await p.click('#hmAdd'); await p.click('#hmTerm
|
|
|
80
79
|
ok('O3 no session and nothing to resume: no icon', i && !i.shown, JSON.stringify(i));
|
|
81
80
|
await ctx.close();
|
|
82
81
|
}
|
|
83
|
-
for (const width of [1280, 390]) {
|
|
84
|
-
const ctx = await browser.newContext({ viewport: { width, height: 800 } });
|
|
85
|
-
const p = await ctx.newPage();
|
|
86
|
-
await p.route('**/api/sessions', (r) => r.fulfill({ json: { sessions: [{ id: 'sess-7', name: 'chat: PSLE sheet', agent: 'claude', state: 'working', shown: 'working' }] } }));
|
|
87
|
-
await p.goto(`${F.BASE}/console.html?term=sess-7&ws=${encodeURIComponent(F.ws)}`);
|
|
88
|
-
const v = await until(() => p.evaluate(() => { const s = document.querySelector('[data-c3-session="sess-7"]'); const b = document.querySelector('[data-c3-view="term"]'); return s && b ? b.getAttribute('aria-pressed') : null; }), 15000);
|
|
89
|
-
ok(`O4 at ${width} /console.html?term= opens that session's sheet on its terminal`, v === 'true', String(v));
|
|
90
|
-
await ctx.close();
|
|
91
|
-
}
|
|
92
82
|
finish();
|
|
93
83
|
})();
|
|
@@ -87,16 +87,16 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
|
|
|
87
87
|
const H = await T.pressHeaders(BASE);
|
|
88
88
|
const nonce = H['x-pmos-nonce'];
|
|
89
89
|
|
|
90
|
-
/* B the Board reader (premium-
|
|
91
|
-
|
|
90
|
+
/* B the Board reader (premium-uncovered-features, BdDocs: the Documents tab is a table; a row's title opens the document in the side panel,
|
|
91
|
+
with its health, edit log, the file's text and the Issue it bar) */
|
|
92
92
|
const bToast = (p, re) => until(() => p.evaluate((s) => { const t = document.querySelector('#bdToast'); return t && !t.hidden && new RegExp(s).test(t.textContent) ? t.textContent : null; }, re.source));
|
|
93
93
|
const P = await open('/premium-board.html'), p = P.page;
|
|
94
94
|
await until(() => p.evaluate(() => document.querySelectorAll('#ibBody .ini2').length > 0), 60000);
|
|
95
95
|
await p.click('#tabDocs');
|
|
96
|
-
ok('B1 a board document
|
|
97
|
-
ok('B1
|
|
98
|
-
await p.click(`#docBody [data-
|
|
99
|
-
ok('B2 the reader shows the file\'s text and path,
|
|
96
|
+
ok('B1 a board document is a row whose title opens the reader', await until(() => p.evaluate((k) => !!document.querySelector(`#docBody [data-opendoc="core:${k}"]`), bkey), 60000));
|
|
97
|
+
ok('B1 every document row has a title that opens it', await p.evaluate(() => [...document.querySelectorAll('#docBody .bd-dt[data-docrow]')].every((r) => !!r.querySelector('[data-opendoc]'))));
|
|
98
|
+
await p.click(`#docBody [data-opendoc="core:${bkey}"]`);
|
|
99
|
+
ok('B2 the reader shows the file\'s text and path, and the bar says nothing is sent', await until(() => p.evaluate((pt) => { const o = document.querySelector('#peek'); return !o.hidden && /Why this board exists/.test(o.textContent) && o.textContent.includes(pt) && !!o.querySelector('[data-issue-bar="draft"]') && /Nothing is sent/.test(o.querySelector('[data-issue-bar]').textContent) && !!o.querySelector('[data-act="issue"]'); }, d1.path)), await p.evaluate(() => document.querySelector('#peek').textContent));
|
|
100
100
|
ok('B2 no old dialog opens', await p.evaluate(() => !!!document.querySelector('#dlg.on')));
|
|
101
101
|
const n0 = ledger().filter((l) => l.ev === 'issue').length;
|
|
102
102
|
await p.click('#peek [data-act="issue"]');
|
|
@@ -106,18 +106,20 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
|
|
|
106
106
|
const il = ledger().filter((l) => l.ev === 'issue');
|
|
107
107
|
ok('B5 the ledger has one new issue line for that draft, written by the PM', il.length === n0 + 1 && il[il.length - 1].slot === d1.slot && il[il.length - 1].scope === bscope && /pm/.test(String(il[il.length - 1].by)), JSON.stringify(il));
|
|
108
108
|
ok('B5 the file now says state: issued', /^state: issued$/m.test(fs.readFileSync(path.join(team, d1.path), 'utf8')));
|
|
109
|
-
ok('B6 the reader says it is issued, the Issue it press is gone, and the row reads Up to date', await until(() => p.evaluate(() => { const o = document.querySelector('#peek'); return !o.hidden && !!o.querySelector('[data-issue-bar="done"]') && !o.querySelector('[data-act="issue"]'); }), 30000) && await until(() => p.evaluate((k) => { const r = document.querySelector(`#docBody [data-
|
|
109
|
+
ok('B6 the reader says it is issued, the Issue it press is gone, and the row reads Up to date', await until(() => p.evaluate(() => { const o = document.querySelector('#peek'); return !o.hidden && !!o.querySelector('[data-issue-bar="done"]') && !o.querySelector('[data-act="issue"]'); }), 30000) && await until(() => p.evaluate((k) => { const r = document.querySelector(`#docBody [data-docrow="core:${k}"]`); return r && /Up to date/.test(r.textContent); }, bkey), 30000), await p.evaluate(() => document.querySelector('#peek').textContent + ' // ' + document.querySelector('#docBody').textContent));
|
|
110
110
|
await p.screenshot({ path: path.join(R.base, 'board-issued.png') });
|
|
111
111
|
await P.ctx.close();
|
|
112
112
|
|
|
113
|
-
/* I the initiative: a layout inside Home (premium-agreed-design). The Board's expand link lands there; the card's Overview lists the core documents,
|
|
113
|
+
/* I the initiative: a layout inside Home (premium-agreed-design). The Board's expand link lands there; the card's Overview lists the core documents (its Documents view),
|
|
114
114
|
and a draft opens a minimal reader in the Viewer (Waiting for design) with the Issue it bar, Read and Edit */
|
|
115
|
-
const ovOpen = async (p) => { await until(() => p.evaluate(() => !!document.querySelector('.hm-card [data-hm-ov]')), 60000); await p.click('.hm-card [data-hm-ov]');
|
|
115
|
+
const ovOpen = async (p) => { await until(() => p.evaluate(() => !!document.querySelector('.hm-card [data-hm-ov]')), 60000); await p.click('.hm-card [data-hm-ov]');
|
|
116
|
+
// the Overview opens on Tasks; the core documents are its Documents view (premium-uncovered-features, canvas InDocs)
|
|
117
|
+
if (await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-hi-view="docs"]')), 30000)) await p.click('#czViewer [data-hi-view="docs"]'); };
|
|
116
118
|
const I = await open('/premium-initiative.html' + iq), ip = I.page;
|
|
117
119
|
await ovOpen(ip);
|
|
118
120
|
await until(() => ip.evaluate((k) => !!document.querySelector(`#czViewer [data-ov-dread="${k}"]`), ikey), 60000);
|
|
119
121
|
await ip.click(`#czViewer [data-ov-dread="${ikey}"]`);
|
|
120
|
-
ok('I1 the reader of a draft has the Issue it bar above the text
|
|
122
|
+
ok('I1 the reader of a draft has the Issue it bar above the text', await until(() => ip.evaluate(() => { const o = document.querySelector('#czViewer:not([hidden])'); const b = o && o.querySelector('[data-issue-bar="draft"]'); const t = o && o.querySelector('.dsbody'); return !!b && !!t && /Nothing is sent/.test(b.textContent) && /Why this board exists/.test(t.textContent) && !!(b.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING); }), 30000));
|
|
121
123
|
ok('I1 no old dialog opens', await ip.evaluate(() => { const d = document.querySelector('#dlg'); return !d || !d.classList.contains('on'); }));
|
|
122
124
|
await ip.click('#czViewer [data-ds="edit"]');
|
|
123
125
|
await until(() => ip.evaluate(() => !!document.querySelector('#czViewer [data-ds-host] .cfb[contenteditable="true"]')), 30000);
|
|
@@ -145,7 +147,7 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
|
|
|
145
147
|
await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-ds="issue"]')));
|
|
146
148
|
await jp.click('#czViewer [data-ds="issue"]');
|
|
147
149
|
const issued = !!(await toastIs(jp, /Issued\. Nothing was sent to anyone/)) && await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-issue-bar="done"]') && !document.querySelector('#czViewer [data-ds="issue"]')));
|
|
148
|
-
await sleep(1500); await jp
|
|
150
|
+
await sleep(1500); await ovOpen(jp);
|
|
149
151
|
ok('I4 Issue it works from the reader: the toast, the issued bar, and the Overview row reads Up to date', issued && await until(() => jp.evaluate((k) => /Up to date/.test((document.querySelector(`#czViewer [data-ov-doc="${k}"]`) || {}).textContent || ''), k3), 30000));
|
|
150
152
|
ok('I4 the file says state: issued and the ledger has its issue line', /^state: issued$/m.test(fs.readFileSync(path.join(team, d3.path), 'utf8')) && ledger().some((l) => l.ev === 'issue' && l.slot === d3.slot && l.scope === iscope));
|
|
151
153
|
await jp.screenshot({ path: path.join(R.base, 'ini-issued.png') });
|
|
@@ -170,8 +172,8 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
|
|
|
170
172
|
const S = await open('/premium-board.html', { w, h, theme });
|
|
171
173
|
await until(() => S.page.evaluate(() => document.querySelectorAll('#ibBody .ini2').length > 0), 60000);
|
|
172
174
|
await S.page.click(w <= 720 ? '#chDocs' : '#tabDocs');
|
|
173
|
-
await until(() => S.page.evaluate((k) => !!document.querySelector(`#docBody [data-
|
|
174
|
-
await S.page.click(`#docBody [data-
|
|
175
|
+
await until(() => S.page.evaluate((k) => !!document.querySelector(`#docBody [data-opendoc="core:${k}"]`), k4), 60000);
|
|
176
|
+
await S.page.click(`#docBody [data-opendoc="core:${k4}"]`);
|
|
175
177
|
await until(() => S.page.evaluate(() => !!document.querySelector('#peek [data-act="issue"]')));
|
|
176
178
|
const f = await S.page.evaluate(() => ({ wide: document.documentElement.scrollWidth > innerWidth + 1, small: [...document.querySelectorAll('#peek [data-act="issue"]')].filter((b) => b.getBoundingClientRect().height < (innerWidth <= 720 ? 44 : 34)).map((b) => b.textContent) }));
|
|
177
179
|
ok(`F1 ${w} px ${theme}: no sideways scroll and the bar's button is 44 px on a phone`, !f.wide && !f.small.length, JSON.stringify(f));
|
|
@@ -16,7 +16,7 @@ const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); c
|
|
|
16
16
|
const PUB = path.join(__dirname, 'public');
|
|
17
17
|
const ORIGIN = 'http://pmos-menus.test';
|
|
18
18
|
const TYPES = { '.css': 'text/css', '.woff2': 'font/woff2', '.html': 'text/html', '.svg': 'image/svg+xml' };
|
|
19
|
-
const SHEETS = ['pm/premium.css', 'pm/premium-
|
|
19
|
+
const SHEETS = ['pm/premium.css', 'pm/premium-vw-doc.css', 'pm/premium-vw-rec.css'];
|
|
20
20
|
|
|
21
21
|
const LONG = ['Migration off Okta (tender, award, migration), incl. the Okta CIS renewal runway', 'Inline login for eShop onsite checkout',
|
|
22
22
|
'MAGW migration to auth-service (Java to Go) — Phase 1 and Phase 2', 'Email OTP'];
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* because they need a clock and a day of meetings. Done and Reopen press the real routes on real items.
|
|
7
7
|
* M the eight moments · O Open the meeting · D Done and Undo · X a refused press · E a read that fails · W desktop width and the POST allow-list · L floors
|
|
8
8
|
* premium-agreed-design: the Agreed design has no place for the card, so Home keeps it usable at the top of the phone's "N need you" sheet
|
|
9
|
-
* (home-phone-card.js)
|
|
9
|
+
* (home-phone-card.js); premium-uncovered-features made it the Today card at the top of the phone's list (canvas HmPhone, HmPhone2), with
|
|
10
|
+
* no "Waiting for design" marker and no sheet to open. Open the meeting opens it in the cozy Viewer from the
|
|
10
11
|
* day's own record (Home's meeting line does the same), so O2 now checks that it never falls back to the old dialog.
|
|
11
12
|
* Set PHONE_CARD_SHOTS=<dir> to save screenshots of each moment at 390 wide, light and dark. */
|
|
12
13
|
const fs = require('fs');
|
|
@@ -63,7 +64,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
63
64
|
return json(r, { ok: true, view: u.searchParams.get('view') || 'quarter', cells: [], gantt: [], no_plan: 0, strategy: [], today: DATE });
|
|
64
65
|
});
|
|
65
66
|
await p.goto(`${F.BASE}/premium.html?ws=${encodeURIComponent(ws)}`);
|
|
66
|
-
if (width < 641)
|
|
67
|
+
if (width < 641) await until(() => p.evaluate(() => !!document.querySelector('#hmList'))); // the card is the Today card at the top of the phone's list (canvas HmPhone)
|
|
67
68
|
p.__posts = posts; p.__gets = gets; p.__errs = errs; p.__ctx = ctx;
|
|
68
69
|
if (shotDir && name) p.__shot = async (suffix) => { await sleep(700); fs.mkdirSync(shotDir, { recursive: true }); await p.screenshot({ path: path.join(shotDir, `${name}-${suffix}.png`) }); };
|
|
69
70
|
return p;
|
|
@@ -107,7 +108,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
107
108
|
|
|
108
109
|
p = await scene({ time: at(18, 0), today: [A], needs: [{ key: 'k1', kind: 'overdue', id: i1.id, headline: 'Send the partner onboarding list to Lina', days_late: 1 }], name: 'recap' });
|
|
109
110
|
c = await wait(p, /How today went/);
|
|
110
|
-
ok('M7 the evening: the recap counts come from phone-day', c && c.kind === 'recap' && /2\s*meetings/.test(c.text) && /3
|
|
111
|
+
ok('M7 the evening: the recap counts come from phone-day', c && c.kind === 'recap' && /2\s*meetings/.test(c.text) && /3 items done/.test(c.text) && /Sandbox dates agreed/.test(c.text) && /One thing tonight/.test(c.text), c && c.text);
|
|
111
112
|
await p.__ctx.close();
|
|
112
113
|
|
|
113
114
|
p = await scene({ time: at(21, 0), today: [A], name: 'night' });
|
|
@@ -154,14 +155,15 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
154
155
|
await p.__ctx.close();
|
|
155
156
|
p = await scene({ time: at(18, 0), today: [A], dayFail: true });
|
|
156
157
|
c = await wait(p, /Today could not be read/);
|
|
157
|
-
ok('E2 a failed phone-day read is named in the recap, and the open items still show', c && /
|
|
158
|
+
ok('E2 a failed phone-day read is named in the recap, and the open items still show', c && /could not be read/.test(c.text) && /(One thing tonight|Nothing of yours is still open)/.test(c.text), c && c.text);
|
|
158
159
|
await p.__ctx.close();
|
|
159
160
|
|
|
160
161
|
/* W: desktop width and the POST allow-list */
|
|
161
162
|
p = await scene({ time: at(18, 0), today: [A], width: 1280 });
|
|
162
163
|
await sleep(1500);
|
|
163
164
|
ok('W1 at 1280 wide the card is not shown', (await card(p)) === null);
|
|
164
|
-
|
|
165
|
+
// premium-uncovered-features: Home reads /api/phone-day once at every width for the end-of-day Today card (canvas HmDay); the phone card never reads it at 1280
|
|
166
|
+
ok('W2 at 1280 wide only Home\'s own read asks for phone-day, once', p.__gets.filter((g) => g === '/api/phone-day').length <= 1, p.__gets.join());
|
|
165
167
|
ok('W3 nothing is written on load', p.__posts.length === 0, JSON.stringify(p.__posts));
|
|
166
168
|
await p.__ctx.close();
|
|
167
169
|
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* one report (one issued); /premium-viewer.html?open=report&path=... opens the cycle in the czViewer card, and the real page presses the real routes:
|
|
6
6
|
* O opening · B the bar · C the cycles · D the deck · G the page · K the Brief · N Present · W download · X print · E edit · I issued
|
|
7
7
|
* P the writes · F floors · S issue · A archive
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* premium-uncovered-features (workstream reports) draws the parts the Agreed mockup left out: Report | Brief (RpBrief), the cycle menu in groups,
|
|
9
|
+
* the lock line and the ask card (RpStates), Document as paper pages (RpDoc), Live page (RpLive), Present and the phone (RpPhone):
|
|
10
|
+
* L the live page · Y Start the next cycle
|
|
11
|
+
* Set READ_SHOTS=<dir> to save screenshots at 1280 and 390 wide. */
|
|
10
12
|
const fs = require('fs');
|
|
11
13
|
const os = require('os');
|
|
12
14
|
const path = require('path');
|
|
@@ -81,8 +83,9 @@ const iss = issues.appendFromCli(dir, [{ ev: 'issued', cadence: CAD, slot: '2026
|
|
|
81
83
|
ok('O2 the card has no conversation, no tabs and no old reader', await p.evaluate(() => !document.querySelector('#dlg, .stream, #vTabs, #rdSlide, #rdIn')));
|
|
82
84
|
ok('O3 the header names the report, and the cycle chip says Draft and its date', await p.evaluate(() => document.querySelector('#czViewer .cz-vw-kind').textContent === 'Report' && document.querySelector('#czViewer .cz-vw-title').textContent === 'Partner review, 12 Oct') && /Draft · Oct 12/.test(await chipT()), await chipT());
|
|
83
85
|
await until(() => has('[data-r="sched"]'));
|
|
84
|
-
ok('B1 the
|
|
85
|
-
ok('B1
|
|
86
|
+
ok('B1 the tabs are Report and Brief (RpBrief), Report open', await p.evaluate(() => [...document.querySelectorAll('#czViewer .rp-tabs [role="tab"]')].map((b) => b.dataset.r + ':' + b.getAttribute('aria-selected')).join()) === 'tab|report:true,tab|brief:false');
|
|
87
|
+
ok('B1 the chips are the cycle and the schedule', await p.evaluate(() => [...document.querySelectorAll('#czViewer .vz-rpc > button')].map((b) => b.dataset.r).join()) === 'cycm,sched');
|
|
88
|
+
ok('B1 one toolbar: Slides | Document | Live page, Edit, Present, Share, Download, Issue and More', await tools() === 'view|deck,view|doc,view|live,edit,present,share,dlm,issue,more', await tools());
|
|
86
89
|
const bar = await p.evaluate(() => { const L = [...document.querySelectorAll('#czViewer .vz-tb > *')].filter((x) => x.offsetWidth && x.offsetHeight && !x.classList.contains('vz-sp')), c = L.map((x) => { const r = x.getBoundingClientRect(); return r.top + r.height / 2; }); return { spread: Math.round(Math.max(...c) - Math.min(...c)), unnamed: [...document.querySelectorAll('#czViewer .vz-tb .vz-ib')].filter((b) => !b.getAttribute('aria-label') || !b.title).length }; });
|
|
87
90
|
ok('B1 the bar is one row, and each icon button is named by its label and tooltip', bar.spread <= 6 && bar.unnamed === 0, JSON.stringify(bar));
|
|
88
91
|
await shot('reader-bar-1280');
|
|
@@ -90,7 +93,8 @@ const iss = issues.appendFromCli(dir, [{ ev: 'issued', cadence: CAD, slot: '2026
|
|
|
90
93
|
/* C: the cycle chip lists this report's cycles */
|
|
91
94
|
await tap('[data-r="cycm"]');
|
|
92
95
|
const cm = await p.evaluate(() => [...document.querySelectorAll('#czViewer [data-r^="cyc|"]')].map((b) => b.textContent));
|
|
93
|
-
|
|
96
|
+
const cg = await p.evaluate(() => [...document.querySelectorAll('#czViewer .vz-pop-cyc .vz-lab')].map((b) => b.textContent).join());
|
|
97
|
+
ok('C1 the cycle menu groups the cycles under Draft and Issued (RpStates), with no placeholder', cm.join('|') === 'Oct 12draft|Oct 5issued' && cg === 'Draft,Issued' && !(await has('[data-cz-placeholder]')), JSON.stringify(cm) + ' ' + cg);
|
|
94
98
|
await tap('[data-r="cycm"]');
|
|
95
99
|
|
|
96
100
|
/* D: the deck */
|
|
@@ -106,27 +110,50 @@ const iss = issues.appendFromCli(dir, [{ ev: 'issued', cadence: CAD, slot: '2026
|
|
|
106
110
|
ok('D5 a thumbnail goes to its slide', await counter() === '5 of 5' && await bigTitle() === 'Sources' && await p.evaluate(() => document.querySelector('#czViewer [data-r="next"]').disabled));
|
|
107
111
|
await shot('reader-deck-1280');
|
|
108
112
|
|
|
109
|
-
/* G: the
|
|
113
|
+
/* G: the document, as paper (RpDoc) */
|
|
110
114
|
await tap('[data-r="view|doc"]');
|
|
111
|
-
const heads = await p.evaluate(() => [...document.querySelectorAll('#czViewer .
|
|
112
|
-
ok('G1
|
|
115
|
+
const heads = await p.evaluate(() => [...document.querySelectorAll('#czViewer .rp-pg h2')].map((h) => h.textContent));
|
|
116
|
+
ok('G1 Document is paper: the title, the headline as In one minute, numbered sections as written', heads.join() === '1 · Initiatives,2 · Needs your call' && await p.evaluate(() => document.querySelector('#czViewer .rp-pg h1').textContent === 'Partner review, 12 Oct' && /33%/.test(document.querySelector('#czViewer .rp-minute').textContent)), heads.join());
|
|
117
|
+
ok('G2 the sources are the footnote line, the bar says Page 1 of 1 and Draft, and offers Download as PDF or Word', await p.evaluate(() => /krm-a/.test(document.querySelector('#czViewer .rp-fn').textContent) && /Page 1 of 1/.test(document.querySelector('#czViewer [data-rp-page]').textContent) && document.querySelector('#czViewer .rp-paperbar .rp-pill').textContent === 'Draft' && !!document.querySelector('#czViewer [data-r="dlm"]')));
|
|
118
|
+
await shot('reader-doc-1280');
|
|
119
|
+
await tap('[data-r="dlm"]');
|
|
120
|
+
ok('G3 Download offers PDF and Word, Word from report-export', await p.evaluate(() => { const a = document.querySelector('#czViewer .vz-pop-dl [data-r="dl|docx"]'); return !!document.querySelector('#czViewer .vz-pop-dl [data-r="pdf"]') && a && /fmt=docx/.test(a.getAttribute('href')); }));
|
|
121
|
+
await tap('[data-r="dlm"]');
|
|
122
|
+
|
|
123
|
+
/* L: the live page (RpLive): the numbers Insights reads */
|
|
124
|
+
await tap('[data-r="view|live"]');
|
|
125
|
+
await until(() => has('.rp-live .rp-kps, .rp-live .rp-empty'));
|
|
126
|
+
const lv = await p.evaluate(() => ({ tiles: [...document.querySelectorAll('#czViewer .rp-kp > span:first-child')].map((x) => x.textContent), first: (document.querySelector('#czViewer .rp-kp b') || {}).textContent, pts: document.querySelectorAll('#czViewer .rp-pt').length }));
|
|
127
|
+
ok('L1 Live page: the goal tile with its latest reading, then Goals on track, Shipped and At risk', lv.tiles.join() === 'Partner activation,Goals on track,Shipped,At risk' && lv.first === '33%', JSON.stringify(lv));
|
|
128
|
+
await tap('[data-r="lv|range|q"]');
|
|
129
|
+
ok('L2 the range Q draws the three readings, and a point names its value', await p.evaluate(() => document.querySelectorAll('#czViewer .rp-pt').length === 3) && await p.evaluate(() => /33%/.test(document.querySelectorAll('#czViewer .rp-pt')[2].getAttribute('aria-label'))));
|
|
130
|
+
await tap('[data-r="lv|pt|2"]');
|
|
131
|
+
ok('L3 pressing a point opens its popover with Open in Insights', await p.evaluate(() => /1 Oct · 33%/.test((document.querySelector('#czViewer .rp-pop') || {}).textContent || '')));
|
|
132
|
+
await shot('reader-live-1280');
|
|
113
133
|
await tap('[data-r="view|deck"]');
|
|
114
134
|
|
|
115
135
|
/* B2 the schedule; K the Brief */
|
|
116
136
|
await tap('[data-r="sched"]');
|
|
117
137
|
ok('B2 a report with no template says Not scheduled; its popover offers the cadences, the weekdays and the time, and says a template is saved', /Not scheduled/.test(await p.textContent(V + '[data-r="sched"]')) && await p.evaluate(() => document.querySelectorAll('#czViewer [data-r^="scad|"]').length === 4 && document.querySelectorAll('#czViewer [data-r^="sday|"]').length === 5 && !!document.querySelector('#czViewer [data-r="stime"]')) && /saves its sections and look as a template/.test(await p.textContent(V + '.vz-pop')));
|
|
118
138
|
await tap('[data-r="pop|"]');
|
|
119
|
-
await tap('[data-r="brief"]');
|
|
120
|
-
|
|
121
|
-
await
|
|
139
|
+
await tap('[data-r="tab|brief"]');
|
|
140
|
+
await until(() => has('.rp-brief'));
|
|
141
|
+
const bf = await p.evaluate(() => ({ dt: [...document.querySelectorAll('#czViewer .rp-kv dt')].map((x) => x.textContent).join(), chips: [...document.querySelectorAll('#czViewer .rp-kv .rp-chip')].map((x) => x.textContent).join(), lbl: [...document.querySelectorAll('#czViewer .rp-brief .rp-lbl')].map((x) => x.textContent).join(), text: document.querySelector('#czViewer .rp-brief').textContent, tb: !!document.querySelector('#czViewer .vz-tb') }));
|
|
142
|
+
ok('K1 Brief (RpBrief): At a glance For, Read by, Goes out, Built from (the sources the report names), Please confirm, Why it looks like this', bf.dt === 'For,Read by,Goes out,Built from' && bf.chips === 'KR metric record krm-a' && bf.lbl === 'At a glance,Please confirm,Why it looks like this' && !bf.tb, JSON.stringify(bf));
|
|
143
|
+
ok('K2 every check passed, so nothing waits; no look is saved, so it says the standard look; no placeholder', /Nothing to confirm/.test(bf.text) && /standard PMOS look/.test(bf.text) && !(await has('[data-cz-placeholder]')));
|
|
144
|
+
await shot('reader-brief-1280');
|
|
145
|
+
await tap('[data-r="tab|report"]');
|
|
122
146
|
|
|
123
147
|
/* N: Present */
|
|
124
148
|
await tap('[data-r="go|0"]');
|
|
125
149
|
await tap('[data-r="present"]');
|
|
126
150
|
await until(() => p.$('#vzPres'));
|
|
127
|
-
ok('N1 Present shows the current slide over the whole page,
|
|
151
|
+
ok('N1 Present shows the current slide over the whole page, its numbered strip, Stop presenting and the key hint', await p.evaluate(() => { const e = document.querySelector('#vzPres'), r = e.getBoundingClientRect(); return r.width >= innerWidth - 1 && r.height >= innerHeight - 1 && !!e.querySelector('.vz-title') && e.querySelectorAll('.rp-tb').length === 5 && !!e.querySelector('[data-r="end"]') && /B to blank/.test(e.textContent) && !e.querySelector('[data-cz-placeholder]'); }));
|
|
152
|
+
await shot('reader-present-1280');
|
|
128
153
|
await p.keyboard.press('ArrowRight');
|
|
129
|
-
ok('N2 the arrow keys move while presenting', await until(() => p.evaluate(() => /^2 of 5$/.test(document.querySelector('#vzPres .
|
|
154
|
+
ok('N2 the arrow keys move while presenting', await until(() => p.evaluate(() => /^Slide 2 of 5$/.test(document.querySelector('#vzPres .rp-prh [aria-live]').textContent))));
|
|
155
|
+
await p.keyboard.press('b');
|
|
156
|
+
ok('N2 B blanks the screen, and B again shows the slide', await until(() => p.evaluate(() => !!document.querySelector('#vzPres .rp-blank'))) && (await p.keyboard.press('b'), await until(() => p.evaluate(() => !document.querySelector('#vzPres .rp-blank')))));
|
|
130
157
|
await p.keyboard.press('Escape');
|
|
131
158
|
ok('N3 Escape stops presenting and the card stays open on that slide', await until(() => p.evaluate(() => !document.querySelector('#vzPres'))) && await counter() === '2 of 5');
|
|
132
159
|
|
|
@@ -155,14 +182,14 @@ const iss = issues.appendFromCli(dir, [{ ev: 'issued', cadence: CAD, slot: '2026
|
|
|
155
182
|
ok('E1 Edit on Page mounts the page editor in the card, marked Waiting for design', await until(() => p.evaluate(() => { const h = document.querySelector('#czViewer [data-vz-ed]'); return h && h.dataset.mounted && h.children.length > 0 && !!document.querySelector('#czViewer [data-cz-placeholder="Page editor"]'); }), 15000));
|
|
156
183
|
ok('E2 while editing the cycle chip says Editing the Oct 12 draft, and the bar keeps Slides | Page and Cancel', /Editing the Oct 12 draft/.test(await chipT()) && await tools() === 'view|deck,view|doc,edcancel', await tools());
|
|
157
184
|
await tap('[data-r="edcancel"]');
|
|
158
|
-
ok('E3 Cancel brings the report back', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .
|
|
185
|
+
ok('E3 Cancel brings the report back', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .rp-pg') && !document.querySelector('#czViewer [data-vz-ed]'))));
|
|
159
186
|
await tap('[data-r="view|deck"]');
|
|
160
187
|
|
|
161
188
|
/* I: an issued cycle is frozen; the cycle chip opens it */
|
|
162
189
|
await tap('[data-r="cycm"]');
|
|
163
190
|
await tap(`[data-r="cyc|${pOld}"]`);
|
|
164
191
|
await until(async () => /Issued · Oct 5/.test(await chipT()) && !!(await p.$(V + '.vz-slide')));
|
|
165
|
-
ok('I1 the cycle menu opens the issued cycle: no Edit and no Issue,
|
|
192
|
+
ok('I1 the cycle menu opens the issued cycle: no Edit and no Issue, and the lock line with Start the next cycle (RpStates)', !(await has('[data-r="edit"]')) && !(await has('[data-r="issue"]')) && /Issued, so it stays as sent/.test(await p.evaluate(() => (document.querySelector('#czViewer .rp-lock') || {}).textContent || '')) && await has('.rp-lock [data-r="nextcyc"]'), await chipT());
|
|
166
193
|
ok('I2 an issued cycle still reads as a deck', await counter() === '1 of 3', await counter());
|
|
167
194
|
|
|
168
195
|
/* P: the writes */
|
|
@@ -175,8 +202,9 @@ const iss = issues.appendFromCli(dir, [{ ev: 'issued', cadence: CAD, slot: '2026
|
|
|
175
202
|
await until(() => p.evaluate(() => !document.querySelectorAll('#czViewer .vz-tb .vz-dko')[0].getClientRects().length));
|
|
176
203
|
const fl = await p.evaluate(() => ({ over: document.documentElement.scrollWidth - innerWidth, desk: [...document.querySelectorAll('#czViewer .vz-tb .vz-dko')].filter((b) => b.getClientRects().length).length, shown: [...document.querySelectorAll('#czViewer .vz-tb > button, #czViewer .vz-tb .vz-sg button')].filter((b) => b.getClientRects().length).map((b) => b.dataset.r).join() }));
|
|
177
204
|
ok('F1 at 390 px: no sideways scroll; the bar keeps Slides | Page, Issue and More', fl.over <= 0 && fl.desk === 0 && fl.shown === 'view|deck,view|doc,issue,more', JSON.stringify(fl));
|
|
205
|
+
ok('F1 at 390 px (RpPhone): Report | Brief, "Slide 1 of 5 · swipe for the next", no thumbnails, and a full-width Present', await p.evaluate(() => { const v = (s) => { const e = document.querySelector('#czViewer ' + s); return !!e && e.getClientRects().length > 0; }; const pr = document.querySelector('#czViewer .rp-present'); return v('.rp-tabs') && /Slide 1 of 5 · swipe for the next/.test(document.querySelector('#czViewer .rp-swipe').textContent) && v('.rp-swipe') && !v('.vz-thumbs') && pr && pr.getBoundingClientRect().width > 300; }));
|
|
178
206
|
await tap('[data-r="more"]');
|
|
179
|
-
ok('F2 at 390 px More also holds Edit, Present
|
|
207
|
+
ok('F2 at 390 px More also holds Edit, Present and Share', await p.evaluate(() => ['edit', 'present', 'share'].every((k) => { const b = document.querySelector('#czViewer .vz-pop .vz-pho [data-r="' + k + '"]'); return b && b.getClientRects().length; })));
|
|
180
208
|
await tap('[data-r="more"]');
|
|
181
209
|
await shot('reader-deck-390');
|
|
182
210
|
await p.setViewportSize({ width: 1280, height: 900 });
|
|
@@ -194,11 +222,20 @@ const iss = issues.appendFromCli(dir, [{ ev: 'issued', cadence: CAD, slot: '2026
|
|
|
194
222
|
/* A: an issued cycle archives from More, after one confirm, and comes back */
|
|
195
223
|
const b2 = posts.length;
|
|
196
224
|
await tap('[data-r="more"]'); await tap('[data-r="archive"]');
|
|
197
|
-
ok('A1 Archive first asks
|
|
225
|
+
ok('A1 Archive first asks in the card at the foot (RpStates), and posts nothing', await until(() => p.evaluate(() => /^Archive Oct 12\?/.test((document.querySelector('#czViewer .rp-ask[role="alertdialog"]') || {}).textContent || ''))) && posts.length === b2);
|
|
226
|
+
await shot('reader-archive-ask-1280');
|
|
198
227
|
await tap('[data-r="askok"]');
|
|
199
228
|
ok('A2 Archive posts the archive route and the chip says Archived', await until(async () => /Archived · Oct 12/.test(await chipT()), 8000) && posts.slice(b2).join() === '/api/report-documents/archive', posts.slice(b2).join());
|
|
200
|
-
await tap('[data-r="
|
|
229
|
+
await tap('[data-r="cycm"]');
|
|
230
|
+
ok('A3 the cycle menu lists it under Archived with Bring back', await p.evaluate(() => [...document.querySelectorAll('#czViewer .vz-pop-cyc .vz-lab')].map((b) => b.textContent).join() === 'Issued,Archived' && !!document.querySelector('#czViewer .vz-pop-cyc [data-r^="unarch|"]')));
|
|
231
|
+
await tap('[data-r^="unarch|"]');
|
|
201
232
|
ok('A3 Bring back undoes it', await until(async () => /Issued · Oct 12/.test(await chipT()), 8000));
|
|
233
|
+
|
|
234
|
+
/* Y: Start the next cycle drafts a new cycle of the same report and opens it */
|
|
235
|
+
const b3 = posts.length;
|
|
236
|
+
await tap('[data-r="nextcyc"]');
|
|
237
|
+
/* the scratch repository holds no initiative records, so the drafter refuses: the panel says why and stays on the issued cycle */
|
|
238
|
+
ok('Y1 Start the next cycle posts the report route once; when the drafter refuses, the panel says why', await until(() => p.evaluate(() => /The next cycle was not started: .*initiative records/.test((document.querySelector('#czViewer .vz-msg') || {}).textContent || '')), 15000) && posts.slice(b3).join() === '/api/report/draft' && /Issued · Oct 12/.test(await chipT()), posts.slice(b3).join() + ' ' + await chipT() + ' ' + await p.evaluate(() => (document.querySelector('#czViewer .vz-msg') || {}).textContent || ''));
|
|
202
239
|
ok('F3 no page error', errs.length === 0, errs.join(' | '));
|
|
203
240
|
return finish();
|
|
204
241
|
})().catch((e) => { console.error(e); finish(1); });
|
|
@@ -117,7 +117,7 @@ const SPRINTS = { ok: true, source: 'jira', readAt: '2026-10-19T09:00:00Z', velo
|
|
|
117
117
|
await ctx.close();
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
/* the
|
|
120
|
+
/* the Board (premium-uncovered-features, BdSprint) carries no Sprint card and no dialog; its sprint chip opens the Sprints and releases popover, whose Backlog row opens the backlog in the side panel */
|
|
121
121
|
{
|
|
122
122
|
const ctx = await browser.newContext({ viewport: { width: 1280, height: 900 } }), page = await ctx.newPage(), errs = [];
|
|
123
123
|
page.on('pageerror', (e) => errs.push(String((e && e.message) || e)));
|
|
@@ -125,7 +125,7 @@ const SPRINTS = { ok: true, source: 'jira', readAt: '2026-10-19T09:00:00Z', velo
|
|
|
125
125
|
await page.route('**/api/board-premium*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model, as_of: Date.now() }) }));
|
|
126
126
|
await page.goto(BASE + '/premium-board.html');
|
|
127
127
|
const up = await until(() => page.evaluate(() => document.querySelectorAll('#ibBody .bt-l').length > 0), 20000);
|
|
128
|
-
ok('R10 the
|
|
128
|
+
ok('R10 the Board has no Sprint card; its sprint chip opens the Sprints and releases popover, and its Backlog row opens the backlog in the side panel, never the dialog', up && await page.evaluate(() => !document.querySelector('#cSpr, #openBacklog, #popSpr')) && (await page.click('#chSprint'), await until(() => page.evaluate(() => { const p = document.querySelector('#bdPop'); return !!p && !p.hidden && p.getAttribute('aria-label') === 'Sprints and releases' && !!p.querySelector('[data-backlog]'); }))) && (await page.click('#bdPop [data-backlog]'), await until(() => page.evaluate(() => { const k = document.querySelector('#peek'); return !!k && !k.hidden && /Backlog/.test((document.querySelector('#pkTitle') || {}).textContent) && !!!document.querySelector('#dlg.on'); }))));
|
|
129
129
|
ok('R10 no page error on the Board', errs.length === 0, errs.join(' | '));
|
|
130
130
|
await ctx.close();
|
|
131
131
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
/* premium-vw-cal-test.js — Calendar | Notes in the Viewer card, the Calendar side (initiative premium-viewer, R8; re-pointed for premium-agreed-design,
|
|
4
|
-
* area viewer:
|
|
5
|
-
* answered by stand-ins (fixtures/premium-viewer-fixtures.js).
|
|
6
|
-
* C1 the card: Calendar | Notes
|
|
7
|
-
*
|
|
4
|
+
* area viewer; redrawn for premium-uncovered-features, area meetings: MtCalendar and MtPhone). Serves the real /premium-viewer.html from the
|
|
5
|
+
* real server; GET /api/calendar-views and the notes are answered by stand-ins (fixtures/premium-viewer-fixtures.js).
|
|
6
|
+
* C1 the card: Calendar | Notes, the range, Day | Week | Month and New note · C2 the week grid: linked filled, not linked dashed with Link it,
|
|
7
|
+
* today's column and its now line · C3 the day: Mon–Fri and the day's entries with chips · C4 a meeting opens its card · C5 Link it opens What
|
|
8
|
+
* it is about · C6 Month, previous, next, Today · C7 honest states · C8 floors at 390px · C9 on Home, the Viewer widens for the week
|
|
8
9
|
* Every wait polls the page; no fixed sleep stands in for a state. */
|
|
9
10
|
const path = require('path');
|
|
10
11
|
const { spawn } = require('child_process');
|
|
@@ -39,55 +40,66 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
39
40
|
|
|
40
41
|
const A = await F.open(browser, BASE, '/premium-viewer.html?open=calendar');
|
|
41
42
|
const p = A.page;
|
|
42
|
-
const up = await until(() => p.evaluate(() => document.
|
|
43
|
-
ok('C1 the calendar opens in the Viewer card', up);
|
|
43
|
+
const up = await until(() => p.evaluate(() => !!document.querySelector('#czViewer .vzc-wk') && document.querySelectorAll('#czViewer .vzc-ev').length > 0), 15000);
|
|
44
|
+
ok('C1 the calendar opens in the Viewer card on its week', up);
|
|
44
45
|
if (!up) return finish(1);
|
|
45
|
-
ok('C1 the card holds Calendar | Notes and New note, and no
|
|
46
|
-
|
|
46
|
+
ok('C1 the card holds Calendar | Notes, Day | Week | Month and New note, and no conversation', await p.evaluate(() => [...document.querySelectorAll('#czViewer [data-c="tab"]')].map((b) => b.textContent).join() === 'Calendar,Notes'
|
|
47
|
+
&& [...document.querySelectorAll('#czViewer [data-c="view"]')].map((b) => b.textContent + ':' + b.getAttribute('aria-pressed')).join() === 'Day:false,Week:true,Month:false' && !!document.querySelector('#czViewer [data-c="new"][aria-label="New note"]') && !document.querySelector('#dlg, .stream')));
|
|
48
|
+
ok('C1 the header names it; the range says "N to M Mon"', await p.evaluate(() => document.querySelector('#czViewer .cz-vw-kind').textContent === 'Meetings' && /^\d{1,2}( \w{3})? to \d{1,2} \w{3}$/.test(document.querySelector('#czViewer .vzc-head h2').textContent)));
|
|
47
49
|
|
|
48
|
-
/* C2 the
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
/* C2 the week grid */
|
|
51
|
+
const wk = await p.evaluate(() => ({ cols: document.querySelectorAll('#czViewer .vzc-col').length, now: !!document.querySelector('#czViewer .vzc-hd.now'), line: !!document.querySelector('#czViewer .vzc-nl'),
|
|
52
|
+
sync: [...document.querySelectorAll('#czViewer .vzc-ev')].filter((e) => /Viewer sync/.test(e.textContent)).map((e) => e.className + '|' + e.textContent),
|
|
53
|
+
dita: [...document.querySelectorAll('#czViewer .vzc-ev')].filter((e) => /1:1 with Dita/.test(e.textContent)).map((e) => e.className + '|' + e.textContent),
|
|
54
|
+
styled: document.querySelectorAll('#czViewer .vzc-ev[style*="--t"]').length, inline: document.querySelector('#czViewer .vz-cal').outerHTML.match(/ style="[^"]*"/g) }));
|
|
55
|
+
ok('C2 a gutter and seven days, today marked', wk.cols === 8 && wk.now, JSON.stringify(wk));
|
|
56
|
+
ok('C2 a linked meeting is filled with what it is about; one with no initiative is dashed with Link it', wk.sync.length === 1 && !/\bun\b/.test(wk.sync[0]) && /Viewer/.test(wk.sync[0].split('|')[1]) && wk.dita.length >= 1 && wk.dita.every((x) => /\bun\b/.test(x) && /Link it/.test(x)), JSON.stringify([wk.sync, wk.dita]));
|
|
57
|
+
ok('C2 each block is placed by custom properties set after the markup', wk.styled > 0);
|
|
58
|
+
ok('C2 the legend: Linked, Not linked, and what a press does', /Linked\s*Not linked\s*Press a meeting to open its prep or notes here/.test(await p.evaluate(() => document.querySelector('#czViewer .vzc-leg').innerText.replace(/\n/g, ' '))));
|
|
52
59
|
|
|
53
60
|
/* C3 the day */
|
|
61
|
+
await tap(p, '[data-c="view"][data-k="day"]');
|
|
62
|
+
await until(() => p.evaluate(() => document.querySelectorAll('#czViewer .vzc-dy').length === 5 && document.querySelectorAll('#czViewer .vzc-de').length > 0), 10000);
|
|
63
|
+
const strip = await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-dy')].map((d) => ({ dow: d.querySelector('span').textContent, on: d.getAttribute('aria-pressed') })));
|
|
64
|
+
ok('C3 Day: Monday to Friday, today pressed, the range says "· today"', strip.map((d) => d.dow).join() === 'Mon,Tue,Wed,Thu,Fri' && strip.filter((d) => d.on === 'true').length === 1 && /· today$/.test(await p.evaluate(() => document.querySelector('#czViewer .vzc-head h2').textContent)), JSON.stringify(strip));
|
|
54
65
|
const day = await text(p);
|
|
55
|
-
ok('C3 the day
|
|
66
|
+
ok('C3 the day: its count, each entry at its time with a chip', /\d (meetings?|entries) · /.test(day) && /Viewer sync/.test(day) && await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-de')].every((r) => r.querySelector('.vz-cc'))), day.slice(0, 400));
|
|
56
67
|
ok('C3 a note recorded without an event shows Link it; a done meeting Done', /Compare meeting note apps/.test(day) && /Link it/.test(day) && /Done/.test(day));
|
|
57
|
-
|
|
58
|
-
const other = await p.evaluate(() => { const b = [...document.querySelectorAll('#czViewer .vz-day')].find((d) => d.getAttribute('aria-pressed') === 'false' && d.querySelector('i').hasAttribute('data-on')); b.click(); return b.dataset.k; });
|
|
68
|
+
const other = await p.evaluate(() => { const b = [...document.querySelectorAll('#czViewer .vzc-dy')].find((d) => d.getAttribute('aria-pressed') === 'false'); b.click(); return b.dataset.k; });
|
|
59
69
|
ok('C3 another day lists its own meetings', await until(async () => /1:1 with Dita/.test(await text(p))), other);
|
|
60
|
-
await p.evaluate(() => [...document.querySelectorAll('#czViewer .
|
|
70
|
+
await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-dy')][[...document.querySelectorAll('#czViewer .vzc-dy')].findIndex((d) => /today/.test(d.getAttribute('aria-label')))].click());
|
|
61
71
|
|
|
62
72
|
/* C4 a meeting opens its card */
|
|
63
73
|
await until(async () => /Viewer sync/.test(await text(p)));
|
|
64
|
-
await p.evaluate(() => [...document.querySelectorAll('#czViewer .
|
|
74
|
+
await p.evaluate(() => [...document.querySelectorAll('#czViewer .vzc-de')].find((r) => /Viewer sync/.test(r.textContent)).click());
|
|
65
75
|
ok('C4 a meeting opens the meeting card in place of the calendar', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .vz-mtg') && /Viewer sync/.test(document.querySelector('#czViewer .cz-vw-title').textContent))), 10000);
|
|
66
76
|
await A.ctx.close();
|
|
67
77
|
|
|
68
78
|
/* C5 Link it */
|
|
69
79
|
const B = await F.open(browser, BASE, '/premium-viewer.html?open=calendar');
|
|
70
80
|
const q = B.page;
|
|
71
|
-
await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-c="link"]')), 15000);
|
|
72
|
-
await tap(q, '[data-c="link"]');
|
|
73
|
-
ok('C5 Link it opens the meeting with
|
|
81
|
+
await until(() => q.evaluate(() => !!document.querySelector('#czViewer .vzc-ev [data-c="link"]')), 15000);
|
|
82
|
+
await tap(q, '.vzc-ev [data-c="link"]');
|
|
83
|
+
ok('C5 Link it opens the meeting with What it is about open', await until(() => q.evaluate(() => !!document.querySelector('#czViewer .vz-mtg') && !!document.querySelector('#czViewer .vzm-pop [data-a="aboutq"]'))), (await text(q)).slice(0, 300));
|
|
84
|
+
ok('C5 no Waiting for design marker', await q.evaluate(() => !document.querySelector('#czViewer [data-cz-placeholder]')));
|
|
74
85
|
await B.ctx.close();
|
|
75
86
|
|
|
76
|
-
/* C6
|
|
87
|
+
/* C6 Month, previous, next, Today */
|
|
77
88
|
const C = await F.open(browser, BASE, '/premium-viewer.html?open=calendar');
|
|
78
89
|
const r = C.page;
|
|
79
|
-
await until(() => r.evaluate(() => !!document.querySelector('#czViewer
|
|
80
|
-
await tap(r, '[data-c="more"]');
|
|
81
|
-
ok('C6 Day, week and month opens the plain list, marked Waiting for design', await until(() => r.evaluate(() => !!document.querySelector('#czViewer [data-cz-placeholder="Day/Week/Month calendar"]') && document.querySelectorAll('#czViewer [data-c="mrow"]').length > 0)), (await text(r)).slice(-400));
|
|
90
|
+
await until(() => r.evaluate(() => !!document.querySelector('#czViewer .vzc-wk')), 15000);
|
|
82
91
|
const n0 = C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length;
|
|
83
|
-
await tap(r, '[data-c="
|
|
84
|
-
ok('C6 Month reads the month', await until(() => C.S.gets.some((g) => /view=month/.test(g))));
|
|
85
|
-
await until(() => r.evaluate(() => !!document.querySelector('#czViewer [data-c="mrow"], #czViewer [data-cz-placeholder="Day/Week/Month calendar"] .vz-empty')));
|
|
92
|
+
await tap(r, '[data-c="view"][data-k="month"]');
|
|
93
|
+
ok('C6 Month reads the month and draws its grid', await until(() => C.S.gets.some((g) => /view=month/.test(g))) && await until(() => r.evaluate(() => !!document.querySelector('#czViewer .vzc-mg') && /^\w+ \d{4}$/.test(document.querySelector('#czViewer .vzc-head h2').textContent))));
|
|
86
94
|
const n1 = C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length;
|
|
87
|
-
await tap(r, '[data-c="
|
|
95
|
+
await tap(r, '[data-c="nav"][data-k="1"]');
|
|
88
96
|
await until(() => C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length > n1);
|
|
89
|
-
await tap(r, '[data-c="
|
|
97
|
+
await tap(r, '[data-c="nav"][data-k="0"]');
|
|
90
98
|
ok('C6 next and Today read again', await until(() => C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length >= n0 + 3));
|
|
99
|
+
await tap(r, '[data-c="view"][data-k="week"]');
|
|
100
|
+
await until(() => r.evaluate(() => !!document.querySelector('#czViewer .vzc-wk')));
|
|
101
|
+
await tap(r, '.vzc-dn');
|
|
102
|
+
ok('C6 a day name in the week opens that day', await until(() => r.evaluate(() => document.querySelector('#czViewer [data-c="view"][data-k="day"]').getAttribute('aria-pressed') === 'true')));
|
|
91
103
|
await C.ctx.close();
|
|
92
104
|
|
|
93
105
|
/* C7 honest states: a calendar that does not answer */
|
|
@@ -99,18 +111,21 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
99
111
|
|
|
100
112
|
/* C8 floors */
|
|
101
113
|
const E = await F.open(browser, BASE, '/premium-viewer.html?open=calendar', { w: 390, h: 844 });
|
|
102
|
-
await until(() => E.page.evaluate(() => document.querySelectorAll('#czViewer .
|
|
103
|
-
|
|
114
|
+
ok('C8 390px opens on the day', await until(() => E.page.evaluate(() => document.querySelectorAll('#czViewer .vzc-dy').length === 5 && document.querySelectorAll('#czViewer .vzc-de').length > 0), 15000));
|
|
115
|
+
// the Meetings stylesheet loads after the card is drawn: measure once it applies, and fail if it never does
|
|
116
|
+
const flOf = () => E.page.evaluate(() => ({ over: document.documentElement.scrollWidth - innerWidth, small: [...document.querySelectorAll('#czViewer .vzc-de, #czViewer .vzc-dy')].filter((b) => b.getBoundingClientRect().height < 44).length }));
|
|
117
|
+
const fl = await until(async () => { const v = await flOf(); return v.over <= 0 && v.small === 0 ? v : null; }, 8000) || await flOf();
|
|
104
118
|
ok('C8 390px: no sideways scroll, rows and days at least 44px tall', fl.over <= 0 && fl.small === 0, JSON.stringify(fl));
|
|
105
119
|
ok('C8 no page error', E.errors.length === 0 && A.errors.length === 0, E.errors.concat(A.errors).join(' | '));
|
|
106
120
|
await E.ctx.close();
|
|
107
121
|
|
|
108
|
-
/* C9 on Home, the
|
|
109
|
-
const G = await F.open(browser, BASE, '/premium.html');
|
|
122
|
+
/* C9 on Home, the Viewer widens for the week */
|
|
123
|
+
const G = await F.open(browser, BASE, '/premium.html', { w: 1440, h: 900 });
|
|
110
124
|
await until(() => G.page.evaluate(() => !!(window.czViews && window.czViews.openCalendar)), 15000);
|
|
111
125
|
await G.page.evaluate(() => window.czViews.openCalendar());
|
|
112
|
-
const
|
|
113
|
-
|
|
126
|
+
const wide = await until(() => G.page.evaluate(() => { const v = document.querySelector('#czViewer'); return v && v.dataset.vzw === 'cal' && document.querySelector('#czViewer .vzc-wk') && v.getBoundingClientRect().width > 600 && { w: v.getBoundingClientRect().width, hv: !!document.querySelector('#czViewer .hv') }; }), 15000)
|
|
127
|
+
|| await G.page.evaluate(() => { const v = document.querySelector('#czViewer'); return v && { w: v.getBoundingClientRect().width, hv: !!document.querySelector('#czViewer .hv') }; }); // the width comes with the stylesheet
|
|
128
|
+
ok('C9 on premium.html, czViews.openCalendar() draws the week in a wider Viewer, with no bare .hv class in the card', wide && wide.w > 600 && !wide.hv, JSON.stringify(wide));
|
|
114
129
|
await G.ctx.close();
|
|
115
130
|
finish();
|
|
116
131
|
})();
|