create-pmos 0.399.0 → 0.401.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 +2 -2
- package/workspace/briefing-premium-board-test.js +3 -3
- package/workspace/briefing-premium-doc-edit-test.js +2 -8
- package/workspace/briefing-premium-sources-test.js +2 -0
- package/workspace/briefing-premium-test.js +6 -2
- package/workspace/briefing-premium-work-test.js +9 -4
- package/workspace/c3-capture-test.js +0 -17
- package/workspace/changelog.json +29 -0
- package/workspace/guide/briefing-premium.md +2 -2
- package/workspace/guide/home.md +24 -3
- 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/core-docs.js +2 -2
- package/workspace/lib/route-modules.js +1 -9
- package/workspace/lib/routes-phone-day.js +18 -9
- package/workspace/lib/routes-slash.js +95 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -2
- package/workspace/premium-chat-goal-view-test.js +1 -1
- package/workspace/premium-chat-term-test.js +0 -10
- package/workspace/premium-menu-rows-test.js +1 -1
- package/workspace/premium-phone-card-test.js +8 -3
- package/workspace/premium-vw-cal-test.js +4 -1
- package/workspace/premium-vw-doc-test.js +1 -8
- package/workspace/premium-work-depth-test.js +2 -3
- package/workspace/public/capture.html +23 -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-home.css +21 -6
- package/workspace/public/pm/cozy-today.css +4 -3
- package/workspace/public/pm/cozy-viewer.js +4 -2
- package/workspace/public/pm/cozy.css +9 -0
- package/workspace/public/pm/goal-chat.js +5 -1
- package/workspace/public/pm/home-app.js +65 -33
- package/workspace/public/pm/home-chat.js +34 -29
- package/workspace/public/pm/home-data.js +10 -2
- package/workspace/public/pm/home-dictate.js +7 -4
- package/workspace/public/pm/home-ini.js +13 -3
- package/workspace/public/pm/home-list.js +18 -10
- package/workspace/public/pm/home-more.js +2 -2
- package/workspace/public/pm/home-phone-card.js +9 -4
- package/workspace/public/pm/home-review.js +2 -3
- package/workspace/public/pm/home-today.js +11 -8
- package/workspace/public/pm/home-work.js +13 -8
- 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 +1 -1
- package/workspace/public/pm/premium-initiative-head.js +3 -3
- 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-item.css +6 -0
- package/workspace/public/pm/view-notes.js +2 -2
- 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 +4 -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/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/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/workspace-launch-flags.json +2 -12
- package/workspace/test-lists/workspace-profile-detection.json +2 -10
- package/workspace/test-timings.json +242 -123
- package/workspace/c3-briefing-test.js +0 -136
- package/workspace/c3-core-docs-test.js +0 -170
- package/workspace/c3-driver-fixture.js +0 -64
- package/workspace/c3-driver-test.js +0 -169
- package/workspace/c3-foundation-test.js +0 -163
- package/workspace/c3-ib-items-test.js +0 -114
- package/workspace/c3-ib-more-test.js +0 -146
- package/workspace/c3-ib-triage-backlog-test.js +0 -128
- package/workspace/c3-ini-harness.js +0 -66
- package/workspace/c3-ini-life-test.js +0 -167
- package/workspace/c3-initiatives-test.js +0 -186
- package/workspace/c3-light-load-test.js +0 -112
- package/workspace/c3-one-home-test.js +0 -149
- package/workspace/c3-phone-test.js +0 -289
- package/workspace/c3-quiet-test.js +0 -157
- package/workspace/c3-report-design-real-test.js +0 -264
- package/workspace/c3-report-design-test.js +0 -442
- package/workspace/c3-report-setup-test.js +0 -192
- package/workspace/c3-report-structure-real-test.js +0 -248
- package/workspace/c3-report-structure-test.js +0 -397
- package/workspace/c3-reports-test.js +0 -288
- package/workspace/c3-scan-test.js +0 -517
- package/workspace/c3-sessions-panel-test.js +0 -365
- package/workspace/c3-settings-test.js +0 -204
- package/workspace/c3-updates-test.js +0 -131
- package/workspace/c3-work-test.js +0 -260
- package/workspace/cut-stub.js +0 -40
- package/workspace/first-paint-audit.js +0 -160
- package/workspace/lib/c3-full-console.js +0 -15
- package/workspace/lib/engine/derived/trust.js +0 -3
- package/workspace/lib/engine/plan-forecast.js +0 -342
- package/workspace/lib/engine/report-families.js +0 -175
- package/workspace/lib/engine/truth-table.js +0 -57
- package/workspace/lib/routes-c3-init.js +0 -54
- package/workspace/lib/routes-c3-life.js +0 -120
- package/workspace/lib/routes-c3-timeline.js +0 -192
- package/workspace/lib/routes-forecast.js +0 -86
- package/workspace/lib/routes-releases.js +0 -130
- package/workspace/lib/routes-report-facts.js +0 -85
- package/workspace/lib/routes-report-families.js +0 -33
- package/workspace/lib/routes-signals.js +0 -51
- package/workspace/lib/routes-timeline.js +0 -197
- package/workspace/public/c3.html +0 -35
- package/workspace/public/index.html +0 -156
- package/workspace/public/pm/app.js +0 -831
- package/workspace/public/pm/bd-board.js +0 -159
- package/workspace/public/pm/bd-drag.js +0 -59
- package/workspace/public/pm/bd-model.js +0 -152
- package/workspace/public/pm/bd-timeline.js +0 -233
- package/workspace/public/pm/bd-tree.js +0 -244
- package/workspace/public/pm/board-copy.js +0 -59
- package/workspace/public/pm/board-read.js +0 -38
- package/workspace/public/pm/branches-sheet.js +0 -56
- package/workspace/public/pm/breakdown-api.js +0 -58
- package/workspace/public/pm/breakdown-copy.js +0 -138
- package/workspace/public/pm/briefing-deck.js +0 -441
- package/workspace/public/pm/briefing-model.js +0 -251
- package/workspace/public/pm/c3-ambient.js +0 -100
- package/workspace/public/pm/c3-audience-link.js +0 -21
- package/workspace/public/pm/c3-audience.js +0 -46
- package/workspace/public/pm/c3-boot.js +0 -13
- package/workspace/public/pm/c3-breakdown.js +0 -240
- package/workspace/public/pm/c3-brief-data.js +0 -11
- package/workspace/public/pm/c3-brief-mentions.js +0 -137
- package/workspace/public/pm/c3-brief-needs.js +0 -288
- package/workspace/public/pm/c3-brief-pulse.js +0 -112
- package/workspace/public/pm/c3-brief-summary.js +0 -139
- package/workspace/public/pm/c3-brief-today.js +0 -79
- package/workspace/public/pm/c3-brief.js +0 -279
- package/workspace/public/pm/c3-cal-strategy.js +0 -529
- package/workspace/public/pm/c3-calendar.js +0 -965
- package/workspace/public/pm/c3-calpop.js +0 -111
- package/workspace/public/pm/c3-case.js +0 -196
- package/workspace/public/pm/c3-core-docs.css +0 -18
- package/workspace/public/pm/c3-core-docs.js +0 -236
- package/workspace/public/pm/c3-daypart.js +0 -176
- package/workspace/public/pm/c3-demo-boards.js +0 -764
- package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
- package/workspace/public/pm/c3-demo-brief-page.js +0 -70
- package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
- package/workspace/public/pm/c3-demo-cal2.js +0 -66
- package/workspace/public/pm/c3-demo-cal3.js +0 -173
- package/workspace/public/pm/c3-demo-cal4.js +0 -169
- package/workspace/public/pm/c3-demo-cal5.js +0 -52
- package/workspace/public/pm/c3-demo-coredocs.js +0 -221
- package/workspace/public/pm/c3-demo-data.js +0 -552
- package/workspace/public/pm/c3-demo-focus.js +0 -181
- package/workspace/public/pm/c3-demo-init.js +0 -430
- package/workspace/public/pm/c3-demo-life.js +0 -77
- package/workspace/public/pm/c3-demo-material.js +0 -58
- package/workspace/public/pm/c3-demo-misc2.js +0 -34
- package/workspace/public/pm/c3-demo-phone.js +0 -48
- package/workspace/public/pm/c3-demo-plan2.js +0 -30
- package/workspace/public/pm/c3-demo-rd.js +0 -432
- package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
- package/workspace/public/pm/c3-demo-rep2.js +0 -130
- package/workspace/public/pm/c3-demo-rep3.js +0 -138
- package/workspace/public/pm/c3-demo-rs.js +0 -287
- package/workspace/public/pm/c3-demo-term.js +0 -153
- package/workspace/public/pm/c3-demo-time.js +0 -49
- package/workspace/public/pm/c3-demo-work-ix.js +0 -32
- package/workspace/public/pm/c3-demo.js +0 -131
- package/workspace/public/pm/c3-design-studio.js +0 -369
- package/workspace/public/pm/c3-doc-formats.js +0 -153
- package/workspace/public/pm/c3-doc-sheet.js +0 -1230
- package/workspace/public/pm/c3-dock.js +0 -206
- package/workspace/public/pm/c3-docs.js +0 -291
- package/workspace/public/pm/c3-driver-work.js +0 -110
- package/workspace/public/pm/c3-driver.css +0 -18
- package/workspace/public/pm/c3-driver.js +0 -298
- package/workspace/public/pm/c3-focus.css +0 -304
- package/workspace/public/pm/c3-focus.js +0 -983
- package/workspace/public/pm/c3-ib-docs.js +0 -92
- package/workspace/public/pm/c3-ib-initiatives.js +0 -201
- package/workspace/public/pm/c3-ib-items.js +0 -210
- package/workspace/public/pm/c3-ib-releases.js +0 -48
- package/workspace/public/pm/c3-ib-sprints.js +0 -201
- package/workspace/public/pm/c3-ib-triage.js +0 -177
- package/workspace/public/pm/c3-ii-tabs.js +0 -252
- package/workspace/public/pm/c3-ini-life.css +0 -34
- package/workspace/public/pm/c3-ini-life.js +0 -379
- package/workspace/public/pm/c3-ini-records.js +0 -197
- package/workspace/public/pm/c3-ini-timeline.js +0 -278
- package/workspace/public/pm/c3-ini-work.js +0 -139
- package/workspace/public/pm/c3-init-extras.js +0 -170
- package/workspace/public/pm/c3-initiatives.js +0 -852
- package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
- package/workspace/public/pm/c3-look.js +0 -27
- package/workspace/public/pm/c3-material.css +0 -22
- package/workspace/public/pm/c3-material.js +0 -321
- package/workspace/public/pm/c3-md.js +0 -3
- package/workspace/public/pm/c3-misc-panels.js +0 -89
- package/workspace/public/pm/c3-new-session.js +0 -110
- package/workspace/public/pm/c3-notes.js +0 -751
- package/workspace/public/pm/c3-phone-boot.js +0 -47
- package/workspace/public/pm/c3-phone-detail.js +0 -97
- package/workspace/public/pm/c3-phone-model.js +0 -3
- package/workspace/public/pm/c3-phone.css +0 -66
- package/workspace/public/pm/c3-phone.js +0 -444
- package/workspace/public/pm/c3-plan-panels.js +0 -163
- package/workspace/public/pm/c3-plan.js +0 -193
- package/workspace/public/pm/c3-quiet.css +0 -113
- package/workspace/public/pm/c3-quiet.js +0 -177
- package/workspace/public/pm/c3-replay.css +0 -133
- package/workspace/public/pm/c3-replay.js +0 -429
- package/workspace/public/pm/c3-report-deck.css +0 -163
- package/workspace/public/pm/c3-report-deck.js +0 -598
- package/workspace/public/pm/c3-report-frame.css +0 -20
- package/workspace/public/pm/c3-report-print.css +0 -20
- package/workspace/public/pm/c3-report-setup.css +0 -67
- package/workspace/public/pm/c3-report-setup.js +0 -298
- package/workspace/public/pm/c3-report-store.js +0 -244
- package/workspace/public/pm/c3-report-structure.css +0 -44
- package/workspace/public/pm/c3-report-structure.js +0 -473
- package/workspace/public/pm/c3-reports.css +0 -68
- package/workspace/public/pm/c3-reports.js +0 -377
- package/workspace/public/pm/c3-roadmap.js +0 -249
- package/workspace/public/pm/c3-scan-api.js +0 -167
- package/workspace/public/pm/c3-scan-next.js +0 -248
- package/workspace/public/pm/c3-scan-setup.js +0 -313
- package/workspace/public/pm/c3-scan-words.js +0 -41
- package/workspace/public/pm/c3-scan.css +0 -74
- package/workspace/public/pm/c3-scan.js +0 -93
- package/workspace/public/pm/c3-session-chat.js +0 -103
- package/workspace/public/pm/c3-session-conv.js +0 -165
- package/workspace/public/pm/c3-session-term.js +0 -216
- package/workspace/public/pm/c3-settings.css +0 -85
- package/workspace/public/pm/c3-settings.js +0 -1045
- package/workspace/public/pm/c3-shell.js +0 -628
- package/workspace/public/pm/c3-signals.js +0 -196
- package/workspace/public/pm/c3-strategy-panels.js +0 -45
- package/workspace/public/pm/c3-swipe.js +0 -230
- package/workspace/public/pm/c3-terminal-data.js +0 -48
- package/workspace/public/pm/c3-terminal-edge.js +0 -91
- package/workspace/public/pm/c3-terminal-icons.js +0 -40
- package/workspace/public/pm/c3-terminal-results.js +0 -141
- package/workspace/public/pm/c3-terminal.js +0 -52
- package/workspace/public/pm/c3-tickets.js +0 -163
- package/workspace/public/pm/c3-timeline.js +0 -201
- package/workspace/public/pm/calendar-views.js +0 -1049
- package/workspace/public/pm/console3-lift.md +0 -220
- package/workspace/public/pm/cozy-home.js +0 -172
- package/workspace/public/pm/cozy-initiative.css +0 -138
- package/workspace/public/pm/cycle-review.js +0 -125
- package/workspace/public/pm/data.js +0 -1577
- package/workspace/public/pm/dest-board.js +0 -444
- package/workspace/public/pm/dest-docs.js +0 -530
- package/workspace/public/pm/dest-initiatives.js +0 -162
- package/workspace/public/pm/dest-mywork.js +0 -307
- package/workspace/public/pm/dest-notes.js +0 -537
- package/workspace/public/pm/dest-people.js +0 -449
- package/workspace/public/pm/dest-reports.js +0 -383
- package/workspace/public/pm/dest-settings.js +0 -601
- package/workspace/public/pm/dest-today.js +0 -267
- package/workspace/public/pm/display-word.js +0 -56
- package/workspace/public/pm/doc-editor.js +0 -473
- package/workspace/public/pm/doc-graph.js +0 -272
- package/workspace/public/pm/doc-health-panel.js +0 -110
- package/workspace/public/pm/doc-rail.js +0 -167
- package/workspace/public/pm/doc-remote.js +0 -180
- package/workspace/public/pm/dock-sessions.js +0 -472
- package/workspace/public/pm/dock.js +0 -216
- package/workspace/public/pm/fixture.js +0 -821
- package/workspace/public/pm/flag-picker.js +0 -104
- package/workspace/public/pm/frame-copy.js +0 -278
- package/workspace/public/pm/freshness-line.js +0 -149
- package/workspace/public/pm/handoff-box.js +0 -82
- package/workspace/public/pm/initiative-list.js +0 -235
- package/workspace/public/pm/initiative-sheet.js +0 -331
- package/workspace/public/pm/initiatives-api.js +0 -95
- package/workspace/public/pm/initiatives-copy.js +0 -287
- package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
- package/workspace/public/pm/initiatives-timeline.js +0 -410
- package/workspace/public/pm/initiatives-ui.js +0 -291
- package/workspace/public/pm/item-sheet.js +0 -268
- package/workspace/public/pm/keep-card.js +0 -204
- package/workspace/public/pm/lifecycle-lens-model.js +0 -246
- package/workspace/public/pm/lifecycle-lens.js +0 -276
- package/workspace/public/pm/lifecycle.js +0 -111
- package/workspace/public/pm/mobile.css +0 -366
- package/workspace/public/pm/mobile.js +0 -581
- package/workspace/public/pm/modes-live.js +0 -453
- package/workspace/public/pm/modes.js +0 -147
- package/workspace/public/pm/my-work-card.js +0 -51
- package/workspace/public/pm/my-work-data.js +0 -36
- package/workspace/public/pm/new-initiative-sheet.js +0 -169
- package/workspace/public/pm/next-step-ui.js +0 -190
- package/workspace/public/pm/outbox-panel.js +0 -125
- package/workspace/public/pm/palette-copy.js +0 -55
- package/workspace/public/pm/palette.js +0 -343
- package/workspace/public/pm/panel-breakdown.js +0 -702
- package/workspace/public/pm/panel-cockpit.js +0 -425
- package/workspace/public/pm/panel-detail.js +0 -1513
- package/workspace/public/pm/panel-initiatives.js +0 -929
- package/workspace/public/pm/panel-newsess.js +0 -709
- package/workspace/public/pm/panel-repos.js +0 -741
- package/workspace/public/pm/panel-tabs.js +0 -1506
- package/workspace/public/pm/panel-trees.js +0 -204
- package/workspace/public/pm/people-link.js +0 -106
- package/workspace/public/pm/phone-deck.js +0 -167
- package/workspace/public/pm/pm-work-view.js +0 -1533
- package/workspace/public/pm/portfolio-report.js +0 -61
- package/workspace/public/pm/premium-acts.js +0 -280
- package/workspace/public/pm/premium-brief.js +0 -111
- package/workspace/public/pm/premium-chat.js +0 -22
- package/workspace/public/pm/premium-doc-sheet.js +0 -312
- package/workspace/public/pm/premium-initiative.js +0 -324
- package/workspace/public/pm/premium-insights.css +0 -228
- package/workspace/public/pm/premium-metric-tiles.js +0 -68
- package/workspace/public/pm/premium-report-brief.js +0 -132
- package/workspace/public/pm/premium-vw-rec.js +0 -67
- package/workspace/public/pm/premium-wide.css +0 -30
- package/workspace/public/pm/print.css +0 -44
- package/workspace/public/pm/provider-cards.js +0 -136
- package/workspace/public/pm/registry.js +0 -203
- package/workspace/public/pm/release-card.js +0 -110
- package/workspace/public/pm/releases-view.js +0 -248
- package/workspace/public/pm/report-families-view.js +0 -505
- package/workspace/public/pm/report-slides.js +0 -438
- package/workspace/public/pm/report-tab.js +0 -33
- package/workspace/public/pm/report-view.js +0 -337
- package/workspace/public/pm/reports-copy.js +0 -134
- package/workspace/public/pm/roadmap.js +0 -294
- package/workspace/public/pm/run-card.js +0 -260
- package/workspace/public/pm/sessions-panel.js +0 -219
- package/workspace/public/pm/sheet-jira.js +0 -353
- package/workspace/public/pm/shell-bell.js +0 -163
- package/workspace/public/pm/shell-model.js +0 -83
- package/workspace/public/pm/shell-phone.js +0 -124
- package/workspace/public/pm/shell-readaloud.js +0 -53
- package/workspace/public/pm/shell-recording.js +0 -274
- package/workspace/public/pm/shell-ticker.js +0 -90
- package/workspace/public/pm/sig-watch.js +0 -41
- package/workspace/public/pm/slide-confirm.js +0 -163
- package/workspace/public/pm/slides-copy.js +0 -52
- package/workspace/public/pm/status-banner.js +0 -95
- package/workspace/public/pm/tab-doc.js +0 -859
- package/workspace/public/pm/tab-gone.js +0 -21
- package/workspace/public/pm/tab-term.js +0 -1210
- package/workspace/public/pm/tab-web.js +0 -90
- package/workspace/public/pm/timeline-copy.js +0 -48
- package/workspace/public/pm/timeline-forecast-view.js +0 -164
- package/workspace/public/pm/today-agenda.js +0 -331
- package/workspace/public/pm/today-cards.js +0 -244
- package/workspace/public/pm/today-copy.js +0 -506
- package/workspace/public/pm/today-day.js +0 -1371
- package/workspace/public/pm/today-goals.js +0 -297
- package/workspace/public/pm/today-jobs.js +0 -84
- package/workspace/public/pm/today-mentions.js +0 -50
- package/workspace/public/pm/topbar.js +0 -202
- package/workspace/public/pm/triage-card.js +0 -60
- package/workspace/public/pm/undo-hold.js +0 -103
- package/workspace/public/pm/view-addrepo.js +0 -208
- package/workspace/public/pm/view-files.js +0 -197
- package/workspace/public/pm/view-livenotes.js +0 -399
- package/workspace/public/pm/view-today.js +0 -13
- package/workspace/public/pm/view-validate.js +0 -171
- package/workspace/public/pm/welcome.js +0 -391
- package/workspace/public/pm/work-place.js +0 -68
- package/workspace/public/pm/xlsx-read.js +0 -117
- package/workspace/public/welcome.html +0 -22
- package/workspace/test-lists/browser-suites-green.json +0 -5
- package/workspace/test-lists/c3-core-docs.json +0 -9
- package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
- package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
- package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
- package/workspace/test-lists/c3-ib-items.json +0 -9
- package/workspace/test-lists/c3-ib-more.json +0 -9
- package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
- package/workspace/test-lists/c3-ini-life.json +0 -9
- package/workspace/test-lists/c3-meeting-board.json +0 -5
- package/workspace/test-lists/c3-meeting-card.json +0 -5
- package/workspace/test-lists/c3-notes-place.json +0 -5
- package/workspace/test-lists/c3-notes-series.json +0 -5
- package/workspace/test-lists/calendar-time-page.json +0 -5
- package/workspace/test-lists/calpop.json +0 -4
- package/workspace/test-lists/console3-briefing.json +0 -9
- package/workspace/test-lists/console3-foundation.json +0 -9
- package/workspace/test-lists/console3-work-page.json +0 -9
- package/workspace/test-lists/premium-brief-parity.json +0 -9
- package/workspace/test-lists/report-design-studio-ui.json +0 -5
- package/workspace/test-lists/report-structure-ui.json +0 -11
- package/workspace/test-lists/report-workspace-ui.json +0 -5
- package/workspace/test-lists/run3-a.json +0 -5
- package/workspace/test-lists/run3-d.json +0 -6
- package/workspace/test-lists/run4-c.json +0 -13
- package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
- package/workspace/test-lists/today-mentions-cards.json +0 -5
- package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
3
|
-
/* c3-reports-test.js — the console3 Reports dashboards in a browser, demo mode (initiative console3-reports, PRD R1 to R7).
|
|
4
|
-
*
|
|
5
|
-
* WHERE. The suite first loads /console.html?demo=1&tab=rep. When the shell mounts the dashboards there ([data-rp3] in the Reports pane),
|
|
6
|
-
* it runs against the shell. Until c3-shell.js has the mount line, it serves a small harness page from this process (page.route, no
|
|
7
|
-
* file in public/) that installs demo mode and mounts mountReports with the same ctx the shell passes ({ ws, pmGet, drafts }, drafts
|
|
8
|
-
* doing what repTab does). The suite prints which one it used.
|
|
9
|
-
*
|
|
10
|
-
* tabs Dashboards, Reports and Charts (the old Library and Drafts); Dashboards first; a rule line under the tabs
|
|
11
|
-
* send the dashboard head has "Send this as a report..." and no Share button or schedule line; the sheet posts from-dashboard
|
|
12
|
-
* library one row per report with data-home, never on the dashboard; a widget carries data-ref-row and opens its case in place
|
|
13
|
-
* reports the Reports tab mounts Ask PMOS, Found in your work, Set up and Documents (the full flow is c3-report-setup-test.js)
|
|
14
|
-
* phone 400px: one column, no horizontal page scroll
|
|
15
|
-
* errors no script error and no console error
|
|
16
|
-
*/
|
|
17
|
-
const path = require('path');
|
|
18
|
-
const { spawn } = require('child_process');
|
|
19
|
-
const { findBrowser } = require('./lib/find-browser');
|
|
20
|
-
const T = require('./test-run').configure({ name: 'c3-reports' });
|
|
21
|
-
|
|
22
|
-
const BASE = T.BASE;
|
|
23
|
-
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
24
|
-
const until = async (fn, ms = 10000, step = 100) => {
|
|
25
|
-
const t0 = Date.now();
|
|
26
|
-
for (;;) { const v = await fn(); if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); }
|
|
27
|
-
};
|
|
28
|
-
const results = [];
|
|
29
|
-
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
|
|
30
|
-
let srv = null; let browser = null;
|
|
31
|
-
const finish = async (code) => {
|
|
32
|
-
if (browser) await browser.close().catch(() => {});
|
|
33
|
-
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
34
|
-
T.killTmux();
|
|
35
|
-
const bad = results.filter((x) => !x.cond).length;
|
|
36
|
-
console.log(`\n${results.length - bad}/${results.length} c3-reports assertions passed`);
|
|
37
|
-
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
38
|
-
};
|
|
39
|
-
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
40
|
-
|
|
41
|
-
const HARNESS = '/__c3-reports-harness.html';
|
|
42
|
-
const HARNESS_HTML = `<!doctype html><html lang="en" data-pm-page-theme="light"><head><meta charset="utf-8" />
|
|
43
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" /><meta name="pmos-nonce" content="" />
|
|
44
|
-
<title>Reports harness</title><link rel="stylesheet" href="/pm/tokens.css" />
|
|
45
|
-
<style>html,body{margin:0;background:var(--background);color:var(--foreground)} #c3-root{padding:16px}</style></head>
|
|
46
|
-
<body><div id="c3-root" class="c3 c3pg" data-pm-theme="light"><div data-c3-pane="rep" id="host"></div></div>
|
|
47
|
-
<script type="module">
|
|
48
|
-
const demo = await import('/pm/c3-demo.js');
|
|
49
|
-
demo.installDemo(); if (window.__c3demoReady) await window.__c3demoReady;
|
|
50
|
-
const { ensureC3Css, c3Phone } = await import('/pm/pm-work-view.js');
|
|
51
|
-
const { pmGet } = await import('/pm/http.js');
|
|
52
|
-
const { mountReports } = await import('/pm/c3-reports.js');
|
|
53
|
-
ensureC3Css(); c3Phone(document.getElementById('c3-root'));
|
|
54
|
-
const ws = demo.DEMO_WS;
|
|
55
|
-
mountReports(document.getElementById('host'), { ws, pmGet });
|
|
56
|
-
document.getElementById('c3-root').setAttribute('data-c3-demo', '1');
|
|
57
|
-
</script></body></html>`;
|
|
58
|
-
|
|
59
|
-
const D = '[data-rp3-pane="dash"]';
|
|
60
|
-
const ACT = '[data-rp3]'; // Send, Edit dashboard and Reset sit on the tab row at desktop width (c3-quiet-pages), inside the pane on a phone
|
|
61
|
-
const order = (page) => page.$$eval(D + ' [data-rp3-w]', (a) => a.map((n) => n.getAttribute('data-rp3-w')));
|
|
62
|
-
const DEF_P = ['north', 'outcomes', 'signals', 'delivery', 'bets', 'synergy', 'maturity'];
|
|
63
|
-
|
|
64
|
-
(async () => {
|
|
65
|
-
const exe = findBrowser();
|
|
66
|
-
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the c3-reports suite cannot run'); return finish(1); }
|
|
67
|
-
let chromium;
|
|
68
|
-
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed — the c3-reports suite cannot run'); return finish(1); }
|
|
69
|
-
|
|
70
|
-
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
71
|
-
await T.waitForServer(BASE);
|
|
72
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
73
|
-
require('./lib/c3-full-console').fullConsole(browser); // the desktop layout at phone width (c3-phone-companion)
|
|
74
|
-
|
|
75
|
-
const errors = [];
|
|
76
|
-
const watch = (page) => {
|
|
77
|
-
page.on('pageerror', (e) => errors.push('pageerror: ' + String((e && e.message) || e)));
|
|
78
|
-
page.on('console', (m) => { if (m.type() === 'error') errors.push('console: ' + m.text()); });
|
|
79
|
-
page.on('dialog', (d) => d.dismiss().catch(() => {}));
|
|
80
|
-
};
|
|
81
|
-
/* the shell when it mounts the dashboards, else the harness (see the header) */
|
|
82
|
-
let mode = null;
|
|
83
|
-
const open = async (page) => {
|
|
84
|
-
await page.route(BASE + HARNESS, (r) => r.fulfill({ status: 200, contentType: 'text/html', body: HARNESS_HTML }));
|
|
85
|
-
if (mode !== 'harness') {
|
|
86
|
-
await page.goto(BASE + '/console.html?demo=1&tab=rep');
|
|
87
|
-
const inShell = await until(() => page.$('[data-c3-pane="rep"] [data-rp3]'), mode === 'shell' ? 15000 : 4000);
|
|
88
|
-
if (inShell) { mode = 'shell'; return true; }
|
|
89
|
-
}
|
|
90
|
-
mode = 'harness';
|
|
91
|
-
await page.goto(BASE + HARNESS);
|
|
92
|
-
return !!(await until(() => page.$('[data-c3-pane="rep"] [data-rp3]'), 15000));
|
|
93
|
-
};
|
|
94
|
-
const loaded = (page, n) => until(() => page.$$eval(D + ' [data-rp3-w]', (a, k) => a.length === k && a.every((w) => w.querySelector('section.card') && !w.querySelector('[data-rp3-loading]')), n));
|
|
95
|
-
/* counts this page's reads of the data route and its POSTs, from the outermost fetch wrapper (demo answers never reach the network) */
|
|
96
|
-
const spy = (page) => page.evaluate(() => {
|
|
97
|
-
if (window.__rp3spy) { window.__rp3spy.reads = []; window.__rp3spy.posts = []; return; }
|
|
98
|
-
const S = window.__rp3spy = { reads: [], posts: [], fail: null };
|
|
99
|
-
const f = window.fetch;
|
|
100
|
-
window.fetch = (input, init) => {
|
|
101
|
-
const u = new URL(typeof input === 'string' ? input : input.url, location.origin);
|
|
102
|
-
const m = String((init && init.method) || 'GET').toUpperCase();
|
|
103
|
-
if (m === 'GET' && u.pathname === '/api/report-dashboards/data') S.reads.push(u.searchParams.get('scope') + '|' + (u.searchParams.get('id') || ''));
|
|
104
|
-
if (m === 'POST') { let b = null; try { b = JSON.parse(init.body); } catch { b = null; } S.posts.push({ path: u.pathname, body: b }); if (S.fail && u.pathname === S.fail) return Promise.resolve(new Response(JSON.stringify({ ok: false, error: 'the store is read-only' }), { status: 500, headers: { 'content-type': 'application/json' } })); }
|
|
105
|
-
return f(input, init);
|
|
106
|
-
};
|
|
107
|
-
});
|
|
108
|
-
const posts = (page, p) => page.evaluate((x) => window.__rp3spy.posts.filter((q) => q.path === x), p);
|
|
109
|
-
|
|
110
|
-
const ctx = await browser.newContext({ viewport: { width: 1440, height: 1000 } });
|
|
111
|
-
const page = await ctx.newPage();
|
|
112
|
-
watch(page);
|
|
113
|
-
const up = await open(page);
|
|
114
|
-
ok('the Reports dashboards come up in demo mode (' + mode + ')', up);
|
|
115
|
-
if (!up) return finish(1);
|
|
116
|
-
|
|
117
|
-
/* ── tabs ── */
|
|
118
|
-
const tabs = await page.$$eval('[data-rp3] [role="tab"]', (a) => a.map((b) => [b.getAttribute('data-rp3-tab'), b.textContent.trim(), b.getAttribute('aria-selected')]));
|
|
119
|
-
ok('three tabs: Dashboards, Reports, Charts, with Dashboards selected', tabs.length === 3 && tabs[0][0] === 'dash' && /^Dashboards/.test(tabs[0][1]) && tabs[0][2] === 'true' && /^Reports/.test(tabs[1][1]) && /^Charts/.test(tabs[2][1]), JSON.stringify(tabs));
|
|
120
|
-
ok('a rule line under the tabs says how Reports is organised', /HOW REPORTS IS ORGANISED/.test(await page.textContent('[data-rp3-rule]')) && /Live/.test(await page.textContent('[data-rp3-rule]')) && /Building blocks/.test(await page.textContent('[data-rp3-rule]')));
|
|
121
|
-
|
|
122
|
-
ok('the tab row is the mockup\'s calbar: tabs on the left, the scope pills on the same row (no intro paragraph)', await until(() => page.evaluate(() => {
|
|
123
|
-
const bar = document.querySelector('[data-rp3] > .calbar'); if (!bar || !bar.querySelector("[data-rp3-scope]")) return false;
|
|
124
|
-
const t = bar.querySelector('.rp3-tabs').getBoundingClientRect(); const s = bar.querySelector('[data-rp3-scope]').getBoundingClientRect();
|
|
125
|
-
return Math.abs(t.top - s.top) < 40 && !document.querySelector('.rp3-intro') && bar.querySelectorAll('.pill').length === 3;
|
|
126
|
-
})));
|
|
127
|
-
ok('the Charts tab carries its count as a badge', /7/.test(await page.textContent('[data-rp3-tab="charts"] .bdg')));
|
|
128
|
-
if (mode === 'shell') ok('the headline deck sits above the tabs (shell)', !!(await until(() => page.$('[data-rp3-deck] .deck > *'))) && await page.evaluate(() => document.querySelector('[data-rp3-deck]').getBoundingClientRect().top < document.querySelector('[data-rp3] > .calbar').getBoundingClientRect().top));
|
|
129
|
-
|
|
130
|
-
/* ── portfolio ── */
|
|
131
|
-
ok('Portfolio draws its seven default reports, each a builder card', !!(await loaded(page, 7)), JSON.stringify(await order(page)));
|
|
132
|
-
ok('the portfolio order is the default order', JSON.stringify(await order(page)) === JSON.stringify(DEF_P), JSON.stringify(await order(page)));
|
|
133
|
-
const kinds = await page.$$eval(D + ' [data-rp3-w]', (a) => a.map((w) => { const c = w.querySelector('section.card'); return w.getAttribute('data-rp3-w') + ':' + (c && c.getAttribute('data-cs')); }));
|
|
134
|
-
ok('each widget is the Calendar builder of its report (data-cs matches, delivery included)', kinds.every((k) => { const [a, b] = k.split(':'); return a === b; }), JSON.stringify(kinds));
|
|
135
|
-
ok('no widget failed to draw', !(await page.$(D + ' [data-rp3-fail]')));
|
|
136
|
-
ok('the dashboard says it shows the default layout', /7 reports, the default layout/.test(await page.textContent(D + ' [data-rp3-count]')));
|
|
137
|
-
const pRows = await page.$$eval(D + ' [data-rp3-w="delivery"] [data-cs-row]', (a) => a.map((g) => g.getAttribute('data-cs-row')));
|
|
138
|
-
ok('portfolio delivery holds initiatives and tasks', pRows.includes('checkout') && pRows.includes('sso') && pRows.some((r) => r.startsWith('t-')), JSON.stringify(pRows));
|
|
139
|
-
ok('no scope chooser on Portfolio', !(await page.$(D + ' [data-rp3-pick]')));
|
|
140
|
-
|
|
141
|
-
/* ── scopes, the chooser, and one read per scope ── */
|
|
142
|
-
await spy(page);
|
|
143
|
-
await page.click('[data-rp3-scope="board"]');
|
|
144
|
-
ok('Board shows a chooser of the boards', !!(await until(async () => (await page.$$eval(D + ' [data-rp3-pick="board"] option', (a) => a.map((o) => o.value))).join(',') === 'shop,enterprise')));
|
|
145
|
-
ok('Board draws its five default reports', !!(await loaded(page, 5)), JSON.stringify(await order(page)));
|
|
146
|
-
const bRows = await page.$$eval(D + ' [data-rp3-w="delivery"] [data-cs-row]', (a) => a.map((g) => g.getAttribute('data-cs-row')));
|
|
147
|
-
ok('Board Shop: delivery shows only the Shop initiatives', bRows.length > 0 && bRows.every((r) => ['checkout', 'search', 'returns', 'onb'].includes(r)), JSON.stringify(bRows));
|
|
148
|
-
ok('the title names the board', /Board: Shop/.test(await page.textContent(D + ' [data-rp3-title]')));
|
|
149
|
-
await page.selectOption(D + ' [data-rp3-pick="board"]', 'enterprise');
|
|
150
|
-
await until(async () => /Enterprise/.test(await page.textContent(D + ' [data-rp3-title]')));
|
|
151
|
-
await loaded(page, 5);
|
|
152
|
-
const eRows = await page.$$eval(D + ' [data-rp3-w="delivery"] [data-cs-row]', (a) => a.map((g) => g.getAttribute('data-cs-row')));
|
|
153
|
-
ok('Board Enterprise: delivery shows only SSO', JSON.stringify(eRows) === '["sso"]', JSON.stringify(eRows));
|
|
154
|
-
await page.click('[data-rp3-scope="initiative"]');
|
|
155
|
-
ok('Initiative shows a chooser of the five initiatives', !!(await until(async () => (await page.$$(D + ' [data-rp3-pick="initiative"] option')).length === 5)));
|
|
156
|
-
await page.selectOption(D + ' [data-rp3-pick="initiative"]', 'sso');
|
|
157
|
-
await until(async () => /Initiative: SSO/.test(await page.textContent(D + ' [data-rp3-title]')));
|
|
158
|
-
ok('Initiative draws its four default reports', !!(await loaded(page, 4)), JSON.stringify(await order(page)));
|
|
159
|
-
const sigs = await page.$$eval(D + ' [data-rp3-w="signals"] [data-cs-sig]', (a) => a.map((g) => g.getAttribute('data-cs-sig')).sort());
|
|
160
|
-
ok('Initiative SSO: early signals are only the ones about SSO', JSON.stringify(sigs) === '["dep","ent"]', JSON.stringify(sigs));
|
|
161
|
-
await page.selectOption(D + ' [data-rp3-pick="initiative"]', 'onb');
|
|
162
|
-
await until(async () => /onboarding/.test(await page.textContent(D + ' [data-rp3-title]')));
|
|
163
|
-
await loaded(page, 4);
|
|
164
|
-
ok('a scope with nothing for a report draws that report\'s own empty card', !!(await page.$(D + ' [data-rp3-w="signals"] [data-cs-empty="true"]')));
|
|
165
|
-
await page.click('[data-rp3-scope="portfolio"]'); await loaded(page, 7);
|
|
166
|
-
await page.click('[data-rp3-scope="board"]'); await loaded(page, 5);
|
|
167
|
-
const reads = await page.evaluate(() => window.__rp3spy.reads);
|
|
168
|
-
ok('the data route is read once per scope and id, and not again within the minute', JSON.stringify(reads) === JSON.stringify(['board|shop', 'board|enterprise', 'initiative|checkout', 'initiative|sso', 'initiative|onb']), JSON.stringify(reads));
|
|
169
|
-
await page.click(ACT + ' [data-rp3-edit]');
|
|
170
|
-
const freeB = await page.$$eval(D + ' [data-rp3-free]', (a) => a.map((n) => n.getAttribute('data-rp3-free')));
|
|
171
|
-
ok('the Board add list holds only reports that fit a board (no north star, no maturity)', !freeB.includes('north') && !freeB.includes('maturity'), JSON.stringify(freeB));
|
|
172
|
-
await page.click(ACT + ' [data-rp3-edit]');
|
|
173
|
-
await page.click('[data-rp3-scope="portfolio"]'); await loaded(page, 7);
|
|
174
|
-
|
|
175
|
-
/* ── edit ── */
|
|
176
|
-
await spy(page);
|
|
177
|
-
await page.click(ACT + ' [data-rp3-edit]');
|
|
178
|
-
ok('Edit dashboard turns edit mode on, with arrows and Remove on each widget', await page.getAttribute(ACT + ' [data-rp3-edit]', 'aria-pressed') === 'true' && (await page.$$(D + ' [data-rp3-rm]')).length === 7 && (await page.$$(D + ' [data-rp3-up]')).length === 7);
|
|
179
|
-
ok('the first widget cannot move up, the last cannot move down', await page.$eval(D + ' [data-rp3-up="north"]', (b) => b.disabled) && await page.$eval(D + ' [data-rp3-down="maturity"]', (b) => b.disabled));
|
|
180
|
-
ok('Reset to default is off while the scope shows its default', await page.$eval(ACT + ' [data-rp3-reset]', (b) => b.disabled));
|
|
181
|
-
await page.click(D + ' [data-rp3-up="outcomes"]');
|
|
182
|
-
ok('up moves a report up', !!(await until(async () => JSON.stringify(await order(page)) === JSON.stringify(['outcomes', 'north', 'signals', 'delivery', 'bets', 'synergy', 'maturity']))), JSON.stringify(await order(page)));
|
|
183
|
-
let P = await posts(page, '/api/report-dashboards/layout');
|
|
184
|
-
ok('the move POSTs { key: portfolio, reports } with the new order', P.length === 1 && P[0].body.key === 'portfolio' && JSON.stringify(P[0].body.reports) === JSON.stringify(['outcomes', 'north', 'signals', 'delivery', 'bets', 'synergy', 'maturity']), JSON.stringify(P));
|
|
185
|
-
await page.click(D + ' [data-rp3-down="north"]');
|
|
186
|
-
ok('down moves a report down', !!(await until(async () => (await order(page)).join(',') === 'outcomes,signals,north,delivery,bets,synergy,maturity')), JSON.stringify(await order(page)));
|
|
187
|
-
ok('the dashboard now says it shows your layout', /your layout/.test(await page.textContent(D + ' [data-rp3-count]')));
|
|
188
|
-
await page.click(D + ' [data-rp3-rm="signals"]');
|
|
189
|
-
ok('Remove takes the report off the dashboard', !!(await until(async () => !(await order(page)).includes('signals'))));
|
|
190
|
-
const tt = await until(() => page.$('[data-c3-toast]'));
|
|
191
|
-
ok('Remove shows a toast that says the report stays in the library, with Undo', !!tt && /stays in the library/.test(await tt.textContent()) && !!(await tt.$('[data-c3-toast-action]')));
|
|
192
|
-
ok('the removed report is offered under Add from the report library', !!(await until(() => page.$(D + ' [data-rp3-add="signals"]'))));
|
|
193
|
-
await page.click('[data-c3-toast-action]');
|
|
194
|
-
ok('Undo puts the report back where it was', !!(await until(async () => (await order(page)).join(',') === 'outcomes,signals,north,delivery,bets,synergy,maturity')), JSON.stringify(await order(page)));
|
|
195
|
-
await page.click(D + ' [data-rp3-rm="maturity"]');
|
|
196
|
-
await until(async () => !(await order(page)).includes('maturity'));
|
|
197
|
-
await page.click(D + ' [data-rp3-add="maturity"]');
|
|
198
|
-
ok('Add puts a library report at the end of the dashboard', !!(await until(async () => (await order(page)).slice(-1)[0] === 'maturity')));
|
|
199
|
-
P = await posts(page, '/api/report-dashboards/layout');
|
|
200
|
-
ok('every change POSTed its layout (move, move, remove, undo, remove, add)', P.length === 6 && P.every((q) => q.body.key === 'portfolio' && Array.isArray(q.body.reports)), String(P.length));
|
|
201
|
-
ok('Reset to default is on once the scope has its own layout', !(await page.$eval(ACT + ' [data-rp3-reset]', (b) => b.disabled)));
|
|
202
|
-
// a failed POST: the page keeps the change and says why
|
|
203
|
-
await page.evaluate(() => { window.__rp3spy.fail = '/api/report-dashboards/layout'; });
|
|
204
|
-
await page.click(D + ' [data-rp3-down="outcomes"]');
|
|
205
|
-
ok('a failed POST keeps the change on the page', !!(await until(async () => (await order(page)).join(',') === 'signals,outcomes,north,delivery,bets,synergy,maturity')), JSON.stringify(await order(page)));
|
|
206
|
-
ok('a failed POST is toasted with its reason', !!(await until(async () => { const t = await page.$('[data-c3-toast]'); return t && /not saved: the store is read-only/.test(await t.textContent()); })));
|
|
207
|
-
await page.evaluate(() => { window.__rp3spy.fail = null; });
|
|
208
|
-
await page.click(D + ' [data-rp3-up="outcomes"]');
|
|
209
|
-
await until(async () => (await order(page)).join(',') === 'outcomes,signals,north,delivery,bets,synergy,maturity');
|
|
210
|
-
await page.click(ACT + ' [data-rp3-edit]');
|
|
211
|
-
ok('Done editing leaves edit mode', await page.getAttribute(ACT + ' [data-rp3-edit]', 'aria-pressed') === 'false' && !(await page.$(D + ' [data-rp3-rm]')));
|
|
212
|
-
|
|
213
|
-
/* ── the layout survives a reload ── */
|
|
214
|
-
await open(page); await loaded(page, 7);
|
|
215
|
-
ok('a stored layout is there after a reload', (await order(page)).join(',') === 'outcomes,signals,north,delivery,bets,synergy,maturity', JSON.stringify(await order(page)));
|
|
216
|
-
await spy(page);
|
|
217
|
-
await page.click(ACT + ' [data-rp3-edit]'); await page.click(ACT + ' [data-rp3-reset]');
|
|
218
|
-
ok('Reset to default returns the default order', !!(await until(async () => JSON.stringify(await order(page)) === JSON.stringify(DEF_P))), JSON.stringify(await order(page)));
|
|
219
|
-
P = await posts(page, '/api/report-dashboards/layout');
|
|
220
|
-
ok('Reset POSTs reports: null', P.length === 1 && P[0].body.reports === null && P[0].body.key === 'portfolio', JSON.stringify(P));
|
|
221
|
-
await page.click(ACT + ' [data-rp3-edit]');
|
|
222
|
-
// a board layout is kept per key
|
|
223
|
-
await page.click('[data-rp3-scope="board"]'); await loaded(page, 5);
|
|
224
|
-
await page.click(ACT + ' [data-rp3-edit]'); await page.click(D + ' [data-rp3-rm="synergy"]'); await until(async () => (await order(page)).length === 4);
|
|
225
|
-
await page.click(ACT + ' [data-rp3-edit]');
|
|
226
|
-
P = await posts(page, '/api/report-dashboards/layout');
|
|
227
|
-
ok('a board layout is POSTed under board:<id>', P.length === 2 && P[1].body.key === 'board:shop', JSON.stringify(P.map((q) => q.body.key)));
|
|
228
|
-
await page.click('[data-rp3-scope="portfolio"]'); await loaded(page, 7);
|
|
229
|
-
ok('the portfolio keeps its own layout when a board changes', JSON.stringify(await order(page)) === JSON.stringify(DEF_P));
|
|
230
|
-
|
|
231
|
-
/* ── send this as a report ── */
|
|
232
|
-
ok('the head has Send this as a report and no Share button and no schedule line', !!(await page.$(ACT + ' [data-rp3-send]')) && !(await page.$(ACT + ' [data-rp3-share]')) && !(await page.$(ACT + ' [data-rp3-schedline]')) && /Send this as a report/.test(await page.textContent(ACT + ' [data-rp3-send]')));
|
|
233
|
-
await spy(page);
|
|
234
|
-
await page.click(ACT + ' [data-rp3-send]');
|
|
235
|
-
ok('the send sheet shows the proposed report with Output, Schedule and Audience, and says nothing is sent', !!(await until(async () => { const t = await page.textContent('[data-rs-send-sheet]').catch(() => ''); return /Proposed report/.test(t) && /Output/.test(t) && /Schedule/.test(t) && /Audience/.test(t) && /Nothing is sent/.test(t); }))
|
|
236
|
-
&& !(await page.$('[data-rp3-sched]')));
|
|
237
|
-
await page.click('[data-rs-act="send-go"]');
|
|
238
|
-
ok('Set up posts ONE from-dashboard with the dashboard key, a name, an output, a schedule and an audience', !!(await until(async () => (await posts(page, '/api/report-setups/from-dashboard')).length === 1)) && (await (async () => { const b = (await posts(page, '/api/report-setups/from-dashboard'))[0].body; return b.key === 'portfolio' && b.name && b.output && b.schedule && b.schedule.cadence && b.audience; })()));
|
|
239
|
-
ok('after Set up the Reports tab is open', !!(await until(async () => await page.getAttribute('[data-rp3-tab="reports"]', 'aria-selected') === 'true')));
|
|
240
|
-
await page.click('[data-rp3-tab="dash"]');
|
|
241
|
-
|
|
242
|
-
/* ── library and one home ── */
|
|
243
|
-
ok('the dashboard has no data-home row; every widget carries data-ref-row', !(await page.$(D + ' [data-home]')) && (await page.$$(D + ' section.rp3-w[data-ref-row]')).length === 7);
|
|
244
|
-
await page.click(D + ' [data-rp3-about="outcomes"]');
|
|
245
|
-
ok('a widget opens its case in place (question, source, where used)', !!(await until(async () => { const x = await page.$(D + ' [data-rp3-w="outcomes"] .xp.open'); return x && /Used on: Portfolio/.test(await x.textContent()); })));
|
|
246
|
-
await page.click(D + ' [data-rp3-golib="outcomes"]');
|
|
247
|
-
ok('Open in Charts goes to the Charts tab', !!(await until(async () => await page.getAttribute('[data-rp3-tab="charts"]', 'aria-selected') === 'true')));
|
|
248
|
-
const L = '[data-rp3-pane="charts"]';
|
|
249
|
-
const libRows = await page.$$eval(L + ' [data-home]', (a) => a.map((r) => r.getAttribute('data-home')));
|
|
250
|
-
ok('the library has one row per report, each its home', libRows.length === 7 && new Set(libRows).size === 7, JSON.stringify(libRows));
|
|
251
|
-
ok('library rows are not references', !(await page.$(L + ' [data-ref-row]')));
|
|
252
|
-
const lrow = await page.textContent(L + ' [data-home="maturity"]');
|
|
253
|
-
ok('a library row shows the question, the source and where it is used (Dashboards: Portfolio, Reports: none)', /Where does each pillar stand/.test(lrow) && /Pillar maturity records/.test(lrow) && /Dashboards: Portfolio/.test(lrow) && /Reports: /.test(lrow), lrow.slice(0, 200));
|
|
254
|
-
ok('the row opened from the widget is open, with its card', !!(await until(() => page.$(L + ' [data-home="outcomes"][aria-expanded="true"] [data-cs="outcomes"]'))));
|
|
255
|
-
await page.click(L + ' [data-home="bets"]');
|
|
256
|
-
ok('a library row opens the report\'s card in place', !!(await until(() => page.$(L + ' [data-home="bets"] .xp.open [data-cs="bets"]'))));
|
|
257
|
-
ok('a board layout shows in where it is used', /Dashboards: .*Board/.test(await page.textContent(L + ' [data-home="synergy"]')));
|
|
258
|
-
|
|
259
|
-
/* ── reports ── */
|
|
260
|
-
await page.click('[data-rp3-tab="reports"]');
|
|
261
|
-
ok('the Reports tab mounts Ask PMOS, Found in your work, Set up and Documents; the old Drafts content is gone', !!(await until(() => page.$('[data-rs-tab] [data-rs-askbox]'))) && !!(await until(() => page.$('[data-rs-found]'))) && !!(await page.$('[data-rs-setups]')) && !!(await page.$('[data-rs-docs]')) && !(await page.$('[data-rp3-draftlist]')) && !(await page.$('[data-report-families]')));
|
|
262
|
-
ok('the dashboards are hidden while Reports is open', await page.$eval(D, (n) => n.hidden));
|
|
263
|
-
await page.click('[data-rp3-tab="dash"]');
|
|
264
|
-
|
|
265
|
-
/* ── phone ── */
|
|
266
|
-
const ph = await browser.newContext({ viewport: { width: 400, height: 860 }, hasTouch: true, isMobile: true });
|
|
267
|
-
const pp = await ph.newPage(); watch(pp);
|
|
268
|
-
await open(pp); await loaded(pp, 7);
|
|
269
|
-
const noScroll = (pg) => pg.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1);
|
|
270
|
-
ok('400px: no horizontal page scroll on the dashboard', await noScroll(pp), String(await pp.evaluate(() => document.documentElement.scrollWidth)));
|
|
271
|
-
const lefts = await pp.$$eval(D + ' [data-rp3-w]', (a) => [...new Set(a.map((w) => Math.round(w.getBoundingClientRect().left)))]);
|
|
272
|
-
ok('400px: the widgets stack in one column', lefts.length === 1, JSON.stringify(lefts));
|
|
273
|
-
await pp.click('[data-rp3-scope="initiative"]'); await loaded(pp, 4);
|
|
274
|
-
await pp.click(ACT + ' [data-rp3-edit]');
|
|
275
|
-
ok('400px: Initiative scope in edit mode has no horizontal scroll', await noScroll(pp));
|
|
276
|
-
await pp.click(ACT + ' [data-rp3-edit]');
|
|
277
|
-
await pp.click(ACT + ' [data-rp3-send]'); await until(() => pp.$('[data-rs-send-sheet]'));
|
|
278
|
-
ok('400px: the send sheet has no horizontal scroll', await noScroll(pp));
|
|
279
|
-
await pp.keyboard.press('Escape');
|
|
280
|
-
await pp.click('[data-rp3-tab="charts"]'); await pp.click('[data-rp3-pane="charts"] [data-home="delivery"]');
|
|
281
|
-
await until(() => pp.$('[data-rp3-pane="charts"] [data-home="delivery"] .xp.open [data-cs="delivery"]'));
|
|
282
|
-
ok('400px: Charts with an open row has no horizontal scroll', await noScroll(pp));
|
|
283
|
-
await ph.close();
|
|
284
|
-
|
|
285
|
-
await sleep(300); // a late error from a closing view would land here
|
|
286
|
-
ok('no script error and no console error', errors.length === 0, errors.slice(0, 4).join(' | '));
|
|
287
|
-
return finish();
|
|
288
|
-
})();
|