create-pmos 0.398.0 → 0.400.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +30 -25
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-adddoc-test.js +19 -15
- package/workspace/briefing-premium-board-test.js +82 -50
- package/workspace/briefing-premium-calendar-2-test.js +36 -36
- package/workspace/briefing-premium-calendar-3-test.js +39 -39
- package/workspace/briefing-premium-calendar-test.js +23 -24
- package/workspace/briefing-premium-doc-edit-test.js +8 -10
- package/workspace/briefing-premium-initiative-test.js +38 -16
- package/workspace/briefing-premium-insights-test.js +114 -37
- package/workspace/briefing-premium-metrics-test.js +6 -4
- package/workspace/briefing-premium-products-test.js +10 -7
- package/workspace/briefing-premium-sources-test.js +25 -22
- package/workspace/briefing-premium-test.js +48 -43
- package/workspace/briefing-premium-work-test.js +16 -11
- package/workspace/c3-capture-test.js +0 -17
- package/workspace/changelog.json +29 -0
- package/workspace/ev-everywhere-test.js +210 -0
- package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
- package/workspace/guide/briefing-premium.md +2 -2
- package/workspace/guide/home.md +58 -19
- package/workspace/guide/index.md +1 -1
- package/workspace/guide/layout.md +2 -2
- package/workspace/guide/notes.md +2 -2
- package/workspace/guide/phone-companion.md +1 -1
- package/workspace/lib/board-grill.js +63 -0
- package/workspace/lib/board-premium.js +36 -5
- package/workspace/lib/initiative-layout.js +77 -0
- package/workspace/lib/insights-premium.js +3 -2
- package/workspace/lib/insights-records.js +21 -7
- package/workspace/lib/meeting-points.js +52 -0
- package/workspace/lib/news-for-you.js +88 -0
- package/workspace/lib/notes-series.js +29 -6
- package/workspace/lib/report-confirm.js +48 -0
- package/workspace/lib/route-modules.js +9 -9
- package/workspace/lib/routes-board-docs.js +46 -0
- package/workspace/lib/routes-board-grill.js +90 -0
- package/workspace/lib/routes-home-review.js +108 -0
- package/workspace/lib/routes-initiative-layout.js +57 -0
- package/workspace/lib/routes-insights-premium.js +4 -1
- package/workspace/lib/routes-insights-records.js +8 -4
- package/workspace/lib/routes-meeting-points.js +37 -0
- package/workspace/lib/routes-news.js +57 -0
- package/workspace/lib/routes-notes.js +2 -1
- package/workspace/lib/routes-phone-day.js +18 -9
- package/workspace/lib/routes-report-confirm.js +31 -0
- package/workspace/lib/routes-search.js +38 -0
- package/workspace/lib/routes-slash.js +95 -0
- package/workspace/lib/search-index.js +176 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -2
- package/workspace/premium-board-actions-test.js +86 -50
- package/workspace/premium-briefing-depth-test.js +55 -54
- package/workspace/premium-chat-chart-tab-test.js +4 -2
- package/workspace/premium-chat-goal-view-test.js +1 -1
- package/workspace/premium-chat-report-tab-test.js +16 -2
- package/workspace/premium-chat-term-test.js +0 -10
- package/workspace/premium-core-doc-issue-test.js +15 -13
- package/workspace/premium-menu-rows-test.js +1 -1
- package/workspace/premium-phone-card-test.js +7 -5
- package/workspace/premium-report-read-test.js +55 -18
- package/workspace/premium-vw-backlog-test.js +2 -2
- package/workspace/premium-vw-cal-test.js +50 -35
- package/workspace/premium-vw-doc-test.js +10 -11
- package/workspace/premium-vw-item-test.js +1 -1
- package/workspace/premium-vw-jira-test.js +2 -2
- package/workspace/premium-vw-meet-test.js +37 -40
- package/workspace/premium-vw-notes-test.js +21 -19
- package/workspace/premium-vw-rec-test.js +11 -12
- package/workspace/premium-welcome-test.js +3 -3
- package/workspace/premium-work-depth-test.js +5 -6
- package/workspace/public/capture.html +23 -0
- package/workspace/public/pm/bd-acts.js +303 -225
- package/workspace/public/pm/bd-asks.js +261 -0
- package/workspace/public/pm/bd-pop.js +59 -0
- package/workspace/public/pm/bd-span.js +49 -13
- package/workspace/public/pm/bd-views.js +169 -0
- package/workspace/public/pm/c3-base.js +47 -0
- package/workspace/public/pm/c3-capture.js +1 -1
- package/workspace/public/pm/c3-ini-ui.js +1 -1
- package/workspace/public/pm/c3-sheet.js +1 -1
- package/workspace/public/pm/c3-toast.js +1 -1
- package/workspace/public/pm/console3.css +3 -0
- package/workspace/public/pm/cozy-board.css +301 -0
- package/workspace/public/pm/cozy-ev.css +228 -0
- package/workspace/public/pm/cozy-evmodel.js +106 -0
- package/workspace/public/pm/cozy-evui.js +47 -0
- package/workspace/public/pm/cozy-home.css +20 -5
- package/workspace/public/pm/cozy-insights.css +148 -10
- package/workspace/public/pm/cozy-nav.js +103 -39
- package/workspace/public/pm/cozy-news.js +140 -0
- package/workspace/public/pm/cozy-search.js +203 -0
- package/workspace/public/pm/cozy-settings.js +198 -0
- package/workspace/public/pm/cozy-sources.js +89 -0
- package/workspace/public/pm/cozy-today.css +220 -0
- package/workspace/public/pm/cozy-viewer.js +5 -2
- package/workspace/public/pm/cozy-vw-mtg.css +350 -0
- package/workspace/public/pm/cozy-vw-rp.css +152 -0
- package/workspace/public/pm/cozy.css +9 -0
- package/workspace/public/pm/goal-chat.js +5 -1
- package/workspace/public/pm/home-adddoc.js +5 -5
- package/workspace/public/pm/home-app.js +365 -70
- package/workspace/public/pm/home-around.js +24 -126
- package/workspace/public/pm/home-chat.js +77 -18
- package/workspace/public/pm/home-data.js +9 -7
- package/workspace/public/pm/home-dictate.js +57 -0
- package/workspace/public/pm/home-draft.js +6 -6
- package/workspace/public/pm/home-ini-model.js +190 -0
- package/workspace/public/pm/home-ini.css +171 -0
- package/workspace/public/pm/home-ini.js +466 -0
- package/workspace/public/pm/home-list.js +289 -0
- package/workspace/public/pm/home-more.js +18 -135
- package/workspace/public/pm/home-phone-card.js +13 -8
- package/workspace/public/pm/home-review.js +103 -0
- package/workspace/public/pm/home-task.js +67 -0
- package/workspace/public/pm/home-today.js +148 -0
- package/workspace/public/pm/home-work.js +63 -28
- package/workspace/public/pm/note-dock.js +1 -2
- package/workspace/public/pm/notes-links.js +1 -2
- package/workspace/public/pm/notes-task.js +3 -4
- package/workspace/public/pm/premium-board.js +164 -40
- package/workspace/public/pm/premium-chart-tab.js +4 -5
- package/workspace/public/pm/premium-first.js +5 -7
- package/workspace/public/pm/premium-initiative-head.js +3 -3
- package/workspace/public/pm/premium-insights.js +499 -202
- package/workspace/public/pm/premium-mtg-present.js +138 -0
- package/workspace/public/pm/premium-mtg-replay.js +142 -0
- package/workspace/public/pm/premium-report-read.js +216 -52
- package/workspace/public/pm/premium-report-tab.js +44 -19
- package/workspace/public/pm/premium-shell.js +7 -7
- package/workspace/public/pm/premium-vw-cal.js +150 -60
- package/workspace/public/pm/premium-vw-doc.css +20 -2
- package/workspace/public/pm/premium-vw-doc.js +22 -7
- package/workspace/public/pm/premium-vw-mtg.js +488 -261
- package/workspace/public/pm/premium-vw-notes.js +61 -0
- package/workspace/public/pm/rp-parts.js +269 -0
- package/workspace/public/pm/view-notes.js +2 -2
- package/workspace/public/premium-board.html +4 -3
- package/workspace/public/premium-insights.html +10 -10
- package/workspace/public/premium.html +3 -1
- package/workspace/r/m1.png +0 -0
- package/workspace/r/m2.png +0 -0
- package/workspace/r/m3.png +0 -0
- package/workspace/r/nl.png +0 -0
- package/workspace/replaced-tests.json +435 -0
- package/workspace/run-tests.js +323 -28
- package/workspace/server.js +15 -10
- package/workspace/test-files.json +3 -140
- package/workspace/test-lists/base.json +1 -2
- package/workspace/test-lists/c3-desktop-light-load.json +1 -2
- package/workspace/test-lists/c3-initiative-boards.json +1 -2
- package/workspace/test-lists/c3-meeting-focus.json +2 -12
- package/workspace/test-lists/c3-work-agent.json +1 -2
- package/workspace/test-lists/calendar-tidy-up.json +1 -2
- package/workspace/test-lists/console3-reports.json +1 -2
- package/workspace/test-lists/docs-three-way-sync.json +1 -2
- package/workspace/test-lists/extension-capture.json +5 -0
- package/workspace/test-lists/initiative-layout.json +9 -0
- package/workspace/test-lists/jira-wbs.json +1 -2
- package/workspace/test-lists/legacy-cleanup-a.json +9 -0
- package/workspace/test-lists/meeting-material.json +1 -2
- package/workspace/test-lists/meeting-notes.json +2 -36
- package/workspace/test-lists/meeting-replay.json +1 -2
- package/workspace/test-lists/mm-capture.json +2 -12
- package/workspace/test-lists/my-work.json +2 -10
- package/workspace/test-lists/onboarding-firstrun.json +2 -12
- package/workspace/test-lists/people-directory.json +1 -2
- package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
- package/workspace/test-lists/premium-uncovered-reports.json +9 -0
- package/workspace/test-lists/run2-a.json +1 -2
- package/workspace/test-lists/run2-d.json +2 -19
- package/workspace/test-lists/run3-b.json +1 -2
- package/workspace/test-lists/run3-c.json +2 -12
- package/workspace/test-lists/run4-b.json +1 -2
- package/workspace/test-lists/run4-d.json +1 -5
- package/workspace/test-lists/run5-c.json +1 -11
- package/workspace/test-lists/run6.json +1 -5
- package/workspace/test-lists/uf-everywhere.json +15 -0
- package/workspace/test-lists/uf-home.json +9 -0
- package/workspace/test-lists/uncovered-board.json +9 -0
- package/workspace/test-lists/workspace-launch-flags.json +2 -12
- package/workspace/test-lists/workspace-profile-detection.json +2 -10
- package/workspace/test-timings.json +242 -123
- package/workspace/c3-briefing-test.js +0 -136
- package/workspace/c3-core-docs-test.js +0 -170
- package/workspace/c3-driver-fixture.js +0 -64
- package/workspace/c3-driver-test.js +0 -169
- package/workspace/c3-foundation-test.js +0 -163
- package/workspace/c3-ib-items-test.js +0 -114
- package/workspace/c3-ib-more-test.js +0 -146
- package/workspace/c3-ib-triage-backlog-test.js +0 -128
- package/workspace/c3-ini-harness.js +0 -66
- package/workspace/c3-ini-life-test.js +0 -167
- package/workspace/c3-initiatives-test.js +0 -186
- package/workspace/c3-light-load-test.js +0 -112
- package/workspace/c3-one-home-test.js +0 -149
- package/workspace/c3-phone-test.js +0 -289
- package/workspace/c3-quiet-test.js +0 -157
- package/workspace/c3-report-design-real-test.js +0 -264
- package/workspace/c3-report-design-test.js +0 -442
- package/workspace/c3-report-setup-test.js +0 -192
- package/workspace/c3-report-structure-real-test.js +0 -248
- package/workspace/c3-report-structure-test.js +0 -397
- package/workspace/c3-reports-test.js +0 -288
- package/workspace/c3-scan-test.js +0 -517
- package/workspace/c3-sessions-panel-test.js +0 -365
- package/workspace/c3-settings-test.js +0 -204
- package/workspace/c3-updates-test.js +0 -131
- package/workspace/c3-work-test.js +0 -260
- package/workspace/cut-stub.js +0 -40
- package/workspace/first-paint-audit.js +0 -160
- package/workspace/lib/c3-full-console.js +0 -15
- package/workspace/lib/engine/derived/trust.js +0 -3
- package/workspace/lib/engine/plan-forecast.js +0 -342
- package/workspace/lib/engine/report-families.js +0 -175
- package/workspace/lib/engine/truth-table.js +0 -57
- package/workspace/lib/routes-c3-init.js +0 -54
- package/workspace/lib/routes-c3-life.js +0 -120
- package/workspace/lib/routes-c3-timeline.js +0 -192
- package/workspace/lib/routes-forecast.js +0 -86
- package/workspace/lib/routes-releases.js +0 -130
- package/workspace/lib/routes-report-facts.js +0 -85
- package/workspace/lib/routes-report-families.js +0 -33
- package/workspace/lib/routes-signals.js +0 -51
- package/workspace/lib/routes-timeline.js +0 -197
- package/workspace/public/c3.html +0 -35
- package/workspace/public/index.html +0 -156
- package/workspace/public/pm/app.js +0 -831
- package/workspace/public/pm/bd-board.js +0 -159
- package/workspace/public/pm/bd-drag.js +0 -59
- package/workspace/public/pm/bd-model.js +0 -152
- package/workspace/public/pm/bd-timeline.js +0 -233
- package/workspace/public/pm/bd-tree.js +0 -244
- package/workspace/public/pm/board-copy.js +0 -59
- package/workspace/public/pm/board-read.js +0 -38
- package/workspace/public/pm/branches-sheet.js +0 -56
- package/workspace/public/pm/breakdown-api.js +0 -58
- package/workspace/public/pm/breakdown-copy.js +0 -138
- package/workspace/public/pm/briefing-deck.js +0 -441
- package/workspace/public/pm/briefing-model.js +0 -251
- package/workspace/public/pm/c3-ambient.js +0 -100
- package/workspace/public/pm/c3-audience-link.js +0 -21
- package/workspace/public/pm/c3-audience.js +0 -46
- package/workspace/public/pm/c3-boot.js +0 -13
- package/workspace/public/pm/c3-breakdown.js +0 -240
- package/workspace/public/pm/c3-brief-data.js +0 -11
- package/workspace/public/pm/c3-brief-mentions.js +0 -137
- package/workspace/public/pm/c3-brief-needs.js +0 -288
- package/workspace/public/pm/c3-brief-pulse.js +0 -112
- package/workspace/public/pm/c3-brief-summary.js +0 -139
- package/workspace/public/pm/c3-brief-today.js +0 -79
- package/workspace/public/pm/c3-brief.js +0 -279
- package/workspace/public/pm/c3-cal-strategy.js +0 -529
- package/workspace/public/pm/c3-calendar.js +0 -965
- package/workspace/public/pm/c3-calpop.js +0 -111
- package/workspace/public/pm/c3-case.js +0 -196
- package/workspace/public/pm/c3-core-docs.css +0 -18
- package/workspace/public/pm/c3-core-docs.js +0 -236
- package/workspace/public/pm/c3-daypart.js +0 -176
- package/workspace/public/pm/c3-demo-boards.js +0 -764
- package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
- package/workspace/public/pm/c3-demo-brief-page.js +0 -70
- package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
- package/workspace/public/pm/c3-demo-cal2.js +0 -66
- package/workspace/public/pm/c3-demo-cal3.js +0 -173
- package/workspace/public/pm/c3-demo-cal4.js +0 -169
- package/workspace/public/pm/c3-demo-cal5.js +0 -52
- package/workspace/public/pm/c3-demo-coredocs.js +0 -221
- package/workspace/public/pm/c3-demo-data.js +0 -552
- package/workspace/public/pm/c3-demo-focus.js +0 -181
- package/workspace/public/pm/c3-demo-init.js +0 -430
- package/workspace/public/pm/c3-demo-life.js +0 -77
- package/workspace/public/pm/c3-demo-material.js +0 -58
- package/workspace/public/pm/c3-demo-misc2.js +0 -34
- package/workspace/public/pm/c3-demo-phone.js +0 -48
- package/workspace/public/pm/c3-demo-plan2.js +0 -30
- package/workspace/public/pm/c3-demo-rd.js +0 -432
- package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
- package/workspace/public/pm/c3-demo-rep2.js +0 -130
- package/workspace/public/pm/c3-demo-rep3.js +0 -138
- package/workspace/public/pm/c3-demo-rs.js +0 -287
- package/workspace/public/pm/c3-demo-term.js +0 -153
- package/workspace/public/pm/c3-demo-time.js +0 -49
- package/workspace/public/pm/c3-demo-work-ix.js +0 -32
- package/workspace/public/pm/c3-demo.js +0 -131
- package/workspace/public/pm/c3-design-studio.js +0 -369
- package/workspace/public/pm/c3-doc-formats.js +0 -153
- package/workspace/public/pm/c3-doc-sheet.js +0 -1230
- package/workspace/public/pm/c3-dock.js +0 -206
- package/workspace/public/pm/c3-docs.js +0 -291
- package/workspace/public/pm/c3-driver-work.js +0 -110
- package/workspace/public/pm/c3-driver.css +0 -18
- package/workspace/public/pm/c3-driver.js +0 -298
- package/workspace/public/pm/c3-focus.css +0 -304
- package/workspace/public/pm/c3-focus.js +0 -983
- package/workspace/public/pm/c3-ib-docs.js +0 -92
- package/workspace/public/pm/c3-ib-initiatives.js +0 -201
- package/workspace/public/pm/c3-ib-items.js +0 -210
- package/workspace/public/pm/c3-ib-releases.js +0 -48
- package/workspace/public/pm/c3-ib-sprints.js +0 -201
- package/workspace/public/pm/c3-ib-triage.js +0 -177
- package/workspace/public/pm/c3-ii-tabs.js +0 -252
- package/workspace/public/pm/c3-ini-life.css +0 -34
- package/workspace/public/pm/c3-ini-life.js +0 -379
- package/workspace/public/pm/c3-ini-records.js +0 -197
- package/workspace/public/pm/c3-ini-timeline.js +0 -278
- package/workspace/public/pm/c3-ini-work.js +0 -139
- package/workspace/public/pm/c3-init-extras.js +0 -170
- package/workspace/public/pm/c3-initiatives.js +0 -852
- package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
- package/workspace/public/pm/c3-look.js +0 -27
- package/workspace/public/pm/c3-material.css +0 -22
- package/workspace/public/pm/c3-material.js +0 -321
- package/workspace/public/pm/c3-md.js +0 -3
- package/workspace/public/pm/c3-misc-panels.js +0 -89
- package/workspace/public/pm/c3-new-session.js +0 -110
- package/workspace/public/pm/c3-notes.js +0 -751
- package/workspace/public/pm/c3-phone-boot.js +0 -47
- package/workspace/public/pm/c3-phone-detail.js +0 -97
- package/workspace/public/pm/c3-phone-model.js +0 -3
- package/workspace/public/pm/c3-phone.css +0 -66
- package/workspace/public/pm/c3-phone.js +0 -444
- package/workspace/public/pm/c3-plan-panels.js +0 -163
- package/workspace/public/pm/c3-plan.js +0 -193
- package/workspace/public/pm/c3-quiet.css +0 -113
- package/workspace/public/pm/c3-quiet.js +0 -177
- package/workspace/public/pm/c3-replay.css +0 -133
- package/workspace/public/pm/c3-replay.js +0 -429
- package/workspace/public/pm/c3-report-deck.css +0 -163
- package/workspace/public/pm/c3-report-deck.js +0 -598
- package/workspace/public/pm/c3-report-frame.css +0 -20
- package/workspace/public/pm/c3-report-print.css +0 -20
- package/workspace/public/pm/c3-report-setup.css +0 -67
- package/workspace/public/pm/c3-report-setup.js +0 -298
- package/workspace/public/pm/c3-report-store.js +0 -244
- package/workspace/public/pm/c3-report-structure.css +0 -44
- package/workspace/public/pm/c3-report-structure.js +0 -473
- package/workspace/public/pm/c3-reports.css +0 -68
- package/workspace/public/pm/c3-reports.js +0 -377
- package/workspace/public/pm/c3-roadmap.js +0 -249
- package/workspace/public/pm/c3-scan-api.js +0 -167
- package/workspace/public/pm/c3-scan-next.js +0 -248
- package/workspace/public/pm/c3-scan-setup.js +0 -313
- package/workspace/public/pm/c3-scan-words.js +0 -41
- package/workspace/public/pm/c3-scan.css +0 -74
- package/workspace/public/pm/c3-scan.js +0 -93
- package/workspace/public/pm/c3-session-chat.js +0 -103
- package/workspace/public/pm/c3-session-conv.js +0 -165
- package/workspace/public/pm/c3-session-term.js +0 -216
- package/workspace/public/pm/c3-settings.css +0 -85
- package/workspace/public/pm/c3-settings.js +0 -1045
- package/workspace/public/pm/c3-shell.js +0 -628
- package/workspace/public/pm/c3-signals.js +0 -196
- package/workspace/public/pm/c3-strategy-panels.js +0 -45
- package/workspace/public/pm/c3-swipe.js +0 -230
- package/workspace/public/pm/c3-terminal-data.js +0 -48
- package/workspace/public/pm/c3-terminal-edge.js +0 -91
- package/workspace/public/pm/c3-terminal-icons.js +0 -40
- package/workspace/public/pm/c3-terminal-results.js +0 -141
- package/workspace/public/pm/c3-terminal.js +0 -52
- package/workspace/public/pm/c3-tickets.js +0 -163
- package/workspace/public/pm/c3-timeline.js +0 -201
- package/workspace/public/pm/calendar-views.js +0 -1049
- package/workspace/public/pm/console3-lift.md +0 -220
- package/workspace/public/pm/cozy-home.js +0 -172
- package/workspace/public/pm/cozy-initiative.css +0 -138
- package/workspace/public/pm/cycle-review.js +0 -125
- package/workspace/public/pm/data.js +0 -1577
- package/workspace/public/pm/dest-board.js +0 -444
- package/workspace/public/pm/dest-docs.js +0 -530
- package/workspace/public/pm/dest-initiatives.js +0 -162
- package/workspace/public/pm/dest-mywork.js +0 -307
- package/workspace/public/pm/dest-notes.js +0 -537
- package/workspace/public/pm/dest-people.js +0 -449
- package/workspace/public/pm/dest-reports.js +0 -383
- package/workspace/public/pm/dest-settings.js +0 -601
- package/workspace/public/pm/dest-today.js +0 -267
- package/workspace/public/pm/display-word.js +0 -56
- package/workspace/public/pm/doc-editor.js +0 -473
- package/workspace/public/pm/doc-graph.js +0 -272
- package/workspace/public/pm/doc-health-panel.js +0 -110
- package/workspace/public/pm/doc-rail.js +0 -167
- package/workspace/public/pm/doc-remote.js +0 -180
- package/workspace/public/pm/dock-sessions.js +0 -472
- package/workspace/public/pm/dock.js +0 -216
- package/workspace/public/pm/fixture.js +0 -821
- package/workspace/public/pm/flag-picker.js +0 -104
- package/workspace/public/pm/frame-copy.js +0 -278
- package/workspace/public/pm/freshness-line.js +0 -149
- package/workspace/public/pm/handoff-box.js +0 -82
- package/workspace/public/pm/initiative-list.js +0 -235
- package/workspace/public/pm/initiative-sheet.js +0 -331
- package/workspace/public/pm/initiatives-api.js +0 -95
- package/workspace/public/pm/initiatives-copy.js +0 -287
- package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
- package/workspace/public/pm/initiatives-timeline.js +0 -410
- package/workspace/public/pm/initiatives-ui.js +0 -291
- package/workspace/public/pm/item-sheet.js +0 -268
- package/workspace/public/pm/keep-card.js +0 -204
- package/workspace/public/pm/lifecycle-lens-model.js +0 -246
- package/workspace/public/pm/lifecycle-lens.js +0 -276
- package/workspace/public/pm/lifecycle.js +0 -111
- package/workspace/public/pm/mobile.css +0 -366
- package/workspace/public/pm/mobile.js +0 -581
- package/workspace/public/pm/modes-live.js +0 -453
- package/workspace/public/pm/modes.js +0 -147
- package/workspace/public/pm/my-work-card.js +0 -51
- package/workspace/public/pm/my-work-data.js +0 -36
- package/workspace/public/pm/new-initiative-sheet.js +0 -169
- package/workspace/public/pm/next-step-ui.js +0 -190
- package/workspace/public/pm/outbox-panel.js +0 -125
- package/workspace/public/pm/palette-copy.js +0 -55
- package/workspace/public/pm/palette.js +0 -343
- package/workspace/public/pm/panel-breakdown.js +0 -702
- package/workspace/public/pm/panel-cockpit.js +0 -425
- package/workspace/public/pm/panel-detail.js +0 -1513
- package/workspace/public/pm/panel-initiatives.js +0 -929
- package/workspace/public/pm/panel-newsess.js +0 -709
- package/workspace/public/pm/panel-repos.js +0 -741
- package/workspace/public/pm/panel-tabs.js +0 -1506
- package/workspace/public/pm/panel-trees.js +0 -204
- package/workspace/public/pm/people-link.js +0 -106
- package/workspace/public/pm/phone-deck.js +0 -167
- package/workspace/public/pm/pm-work-view.js +0 -1533
- package/workspace/public/pm/portfolio-report.js +0 -61
- package/workspace/public/pm/premium-acts.js +0 -280
- package/workspace/public/pm/premium-brief.js +0 -111
- package/workspace/public/pm/premium-chat.js +0 -22
- package/workspace/public/pm/premium-doc-sheet.js +0 -312
- package/workspace/public/pm/premium-initiative.js +0 -324
- package/workspace/public/pm/premium-insights.css +0 -228
- package/workspace/public/pm/premium-metric-tiles.js +0 -68
- package/workspace/public/pm/premium-report-brief.js +0 -132
- package/workspace/public/pm/premium-vw-rec.js +0 -67
- package/workspace/public/pm/premium-wide.css +0 -30
- package/workspace/public/pm/print.css +0 -44
- package/workspace/public/pm/provider-cards.js +0 -136
- package/workspace/public/pm/registry.js +0 -203
- package/workspace/public/pm/release-card.js +0 -110
- package/workspace/public/pm/releases-view.js +0 -248
- package/workspace/public/pm/report-families-view.js +0 -505
- package/workspace/public/pm/report-slides.js +0 -438
- package/workspace/public/pm/report-tab.js +0 -33
- package/workspace/public/pm/report-view.js +0 -337
- package/workspace/public/pm/reports-copy.js +0 -134
- package/workspace/public/pm/roadmap.js +0 -294
- package/workspace/public/pm/run-card.js +0 -260
- package/workspace/public/pm/sessions-panel.js +0 -219
- package/workspace/public/pm/sheet-jira.js +0 -353
- package/workspace/public/pm/shell-bell.js +0 -163
- package/workspace/public/pm/shell-model.js +0 -83
- package/workspace/public/pm/shell-phone.js +0 -124
- package/workspace/public/pm/shell-readaloud.js +0 -53
- package/workspace/public/pm/shell-recording.js +0 -274
- package/workspace/public/pm/shell-ticker.js +0 -90
- package/workspace/public/pm/sig-watch.js +0 -41
- package/workspace/public/pm/slide-confirm.js +0 -163
- package/workspace/public/pm/slides-copy.js +0 -52
- package/workspace/public/pm/status-banner.js +0 -95
- package/workspace/public/pm/tab-doc.js +0 -859
- package/workspace/public/pm/tab-gone.js +0 -21
- package/workspace/public/pm/tab-term.js +0 -1210
- package/workspace/public/pm/tab-web.js +0 -90
- package/workspace/public/pm/timeline-copy.js +0 -48
- package/workspace/public/pm/timeline-forecast-view.js +0 -164
- package/workspace/public/pm/today-agenda.js +0 -331
- package/workspace/public/pm/today-cards.js +0 -244
- package/workspace/public/pm/today-copy.js +0 -506
- package/workspace/public/pm/today-day.js +0 -1371
- package/workspace/public/pm/today-goals.js +0 -297
- package/workspace/public/pm/today-jobs.js +0 -84
- package/workspace/public/pm/today-mentions.js +0 -50
- package/workspace/public/pm/topbar.js +0 -202
- package/workspace/public/pm/triage-card.js +0 -60
- package/workspace/public/pm/undo-hold.js +0 -103
- package/workspace/public/pm/view-addrepo.js +0 -208
- package/workspace/public/pm/view-files.js +0 -197
- package/workspace/public/pm/view-livenotes.js +0 -399
- package/workspace/public/pm/view-today.js +0 -13
- package/workspace/public/pm/view-validate.js +0 -171
- package/workspace/public/pm/welcome.js +0 -391
- package/workspace/public/pm/work-place.js +0 -68
- package/workspace/public/pm/xlsx-read.js +0 -117
- package/workspace/public/welcome.html +0 -22
- package/workspace/test-lists/browser-suites-green.json +0 -5
- package/workspace/test-lists/c3-core-docs.json +0 -9
- package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
- package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
- package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
- package/workspace/test-lists/c3-ib-items.json +0 -9
- package/workspace/test-lists/c3-ib-more.json +0 -9
- package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
- package/workspace/test-lists/c3-ini-life.json +0 -9
- package/workspace/test-lists/c3-meeting-board.json +0 -5
- package/workspace/test-lists/c3-meeting-card.json +0 -5
- package/workspace/test-lists/c3-notes-place.json +0 -5
- package/workspace/test-lists/c3-notes-series.json +0 -5
- package/workspace/test-lists/calendar-time-page.json +0 -5
- package/workspace/test-lists/calpop.json +0 -4
- package/workspace/test-lists/console3-briefing.json +0 -9
- package/workspace/test-lists/console3-foundation.json +0 -9
- package/workspace/test-lists/console3-work-page.json +0 -9
- package/workspace/test-lists/premium-brief-parity.json +0 -9
- package/workspace/test-lists/report-design-studio-ui.json +0 -5
- package/workspace/test-lists/report-structure-ui.json +0 -11
- package/workspace/test-lists/report-workspace-ui.json +0 -5
- package/workspace/test-lists/run3-a.json +0 -5
- package/workspace/test-lists/run3-d.json +0 -6
- package/workspace/test-lists/run4-c.json +0 -13
- package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
- package/workspace/test-lists/today-mentions-cards.json +0 -5
- package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
/* pm/c3-session-term.js — a session inside console3, in a sheet, so "Open the session" no longer leaves /c3.html.
|
|
2
|
-
* openSessionTerm({ id, name, view }) view: 'conv' (the default) or 'term'
|
|
3
|
-
* The sheet opens on the conversation (c3-session-conv.js); Terminal shows the session's real terminal and Conversation comes back.
|
|
4
|
-
* The terminal is mounted on first use and stays attached while the sheet is open, so switching never restarts anything.
|
|
5
|
-
* The terminal is tab-term.js's own (the one the main app draws): the same socket, attach, resize and input. Closing the sheet detaches the
|
|
6
|
-
* pane and leaves the session running, as closing a tab in the main app does. xterm and its addons are the main app's vendored globals,
|
|
7
|
-
* loaded here on the first open because /c3.html does not load them up front. */
|
|
8
|
-
import { el } from './dom.js';
|
|
9
|
-
import { openSheet } from './c3-sheet.js';
|
|
10
|
-
import { toast } from './c3-toast.js';
|
|
11
|
-
import { pmGet, pmPost } from './http.js';
|
|
12
|
-
import { button } from './primitives.js';
|
|
13
|
-
import { c3ic } from './pm-work-view.js';
|
|
14
|
-
import { convView } from './c3-session-conv.js';
|
|
15
|
-
|
|
16
|
-
/* a primitives button (keyboard, role) carrying the console3 look and children (the pattern c3-dock.js uses) */
|
|
17
|
-
const c3btn = (attrs, onClick, ...kids) => { const b = button({ variant: 'ghost', attrs, onClick }); b.replaceChildren(...kids); return b; };
|
|
18
|
-
const store = {
|
|
19
|
-
get(k) { try { return localStorage.getItem(k); } catch { return null; } },
|
|
20
|
-
set(k, v) { try { localStorage.setItem(k, v); } catch { /* no storage */ } },
|
|
21
|
-
};
|
|
22
|
-
export const SIZE_KEY = 'pmos.workspace.c3.term-size';
|
|
23
|
-
export const PAD_KEY = 'pmos.workspace.c3.term-pad';
|
|
24
|
-
export const PAD_H_KEY = 'pmos.workspace.c3.term-pad-h';
|
|
25
|
-
/* the session the PM opened last (its terminal here, or its row in the Sessions panel): the panel opens on it */
|
|
26
|
-
export const LAST_SESSION_KEY = 'pmos.workspace.c3.last-session';
|
|
27
|
-
export const rememberSession = (id) => { if (id) store.set(LAST_SESSION_KEY, String(id)); };
|
|
28
|
-
export const lastSession = () => store.get(LAST_SESSION_KEY) || null;
|
|
29
|
-
|
|
30
|
-
/** The header's Sessions button: the terminal of the session opened last, when it still runs; else the Sessions panel (c3-terminal.js).
|
|
31
|
-
* The terminal sheet has "All sessions", which opens the panel. */
|
|
32
|
-
export async function openLastSession() {
|
|
33
|
-
const id = lastSession();
|
|
34
|
-
const r = id ? await pmGet('/api/sessions').catch(() => null) : null;
|
|
35
|
-
const s = r && Array.isArray(r.sessions) ? r.sessions.find((x) => x.id === id && x.state !== 'exited' && x.shown !== 'exited') : null;
|
|
36
|
-
if (s) return openSessionTerm({ id: s.id, name: s.name });
|
|
37
|
-
const m = await import('./c3-terminal.js');
|
|
38
|
-
return m.openTerminalPage();
|
|
39
|
-
}
|
|
40
|
-
const PAD_ROWS = 4; // the default height
|
|
41
|
-
/** The pad's height in rows: at least 2, and at most what leaves the terminal its room in a column `room` px high with `lh` px rows. Pure, for Node. */
|
|
42
|
-
export const clampPad = (rows, room, lh) => Math.max(2, Math.min(Math.round(rows), Math.max(2, Math.floor((room - 200) / (lh || 18)))));
|
|
43
|
-
|
|
44
|
-
/* The grip above the pad: drag it (or press the up and down arrow keys on it) to give the pad or the terminal more room.
|
|
45
|
-
* The drag is read on the document, as the dock's grip is (dock.js): a press on a grip starts it, the moves and the release are the window's. */
|
|
46
|
-
const padGrips = new WeakMap(); // grip -> { get(), set(px) }
|
|
47
|
-
let padDrag = null;
|
|
48
|
-
if (typeof document !== 'undefined') document.addEventListener('pointerdown', (e) => {
|
|
49
|
-
const g = e.button === 0 && e.target && e.target.closest ? e.target.closest('[data-c3-pad="grip"]') : null;
|
|
50
|
-
const r = g && padGrips.get(g);
|
|
51
|
-
if (!r) return;
|
|
52
|
-
e.preventDefault();
|
|
53
|
-
padDrag = { g, r, y: e.clientY, rows0: r.get() };
|
|
54
|
-
g.setAttribute('data-dragging', '');
|
|
55
|
-
});
|
|
56
|
-
if (typeof window !== 'undefined') window.addEventListener('pointermove', (e) => { if (padDrag) padDrag.r.set(padDrag.rows0 + (padDrag.y - e.clientY) / padDrag.r.lh()); });
|
|
57
|
-
const endPadDrag = () => { if (padDrag) { padDrag.g.removeAttribute('data-dragging'); padDrag.r.done(); padDrag = null; } };
|
|
58
|
-
if (typeof window !== 'undefined') { window.addEventListener('pointerup', endPadDrag); window.addEventListener('pointercancel', endPadDrag); }
|
|
59
|
-
/* the sheet widths: Normal is the 600px wide sheet; the others are classes in console3.css (desktop only) */
|
|
60
|
-
export const SIZES = [['normal', 'Normal', 'Normal'], ['half', 'Half', 'Half of the window'], ['two-thirds', '2/3', 'Two-thirds of the window'], ['whole', 'Whole', 'Whole window']];
|
|
61
|
-
export const sizeOf = (v) => (SIZES.some((x) => x[0] === v) ? v : 'normal');
|
|
62
|
-
|
|
63
|
-
const VENDOR = ['/vendor/xterm.js', '/vendor/addon-fit.js', '/vendor/addon-web-links.js'];
|
|
64
|
-
let vendor = null;
|
|
65
|
-
|
|
66
|
-
function script(src) {
|
|
67
|
-
return new Promise((resolve) => {
|
|
68
|
-
if (document.querySelector('script[src="' + src + '"]')) { resolve(true); return; }
|
|
69
|
-
const s = document.createElement('script');
|
|
70
|
-
s.src = src; s.onload = () => resolve(true); s.onerror = () => resolve(false);
|
|
71
|
-
document.head.append(s);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function loadVendor() {
|
|
75
|
-
if (typeof window.Terminal === 'function') return Promise.resolve(true);
|
|
76
|
-
if (!vendor) {
|
|
77
|
-
if (!document.querySelector('link[href="/vendor/xterm.css"]')) document.head.append(el('link', { rel: 'stylesheet', href: '/vendor/xterm.css' }));
|
|
78
|
-
// the addons read window.Terminal when they run, so xterm goes first
|
|
79
|
-
vendor = script(VENDOR[0]).then((ok) => (ok ? Promise.all(VENDOR.slice(1).map(script)).then(() => true) : false));
|
|
80
|
-
}
|
|
81
|
-
return vendor;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* the scratchpad under the terminal: the classic app's per-session pad (panel-tabs.js), kept through /api/scratchpad */
|
|
85
|
-
function makePad(id, term, tab) {
|
|
86
|
-
const url = '/api/scratchpad?session=' + encodeURIComponent(id);
|
|
87
|
-
let typed = false; let timer = null; let pending = null; let closed = false;
|
|
88
|
-
const flush = () => {
|
|
89
|
-
if (timer) { clearTimeout(timer); timer = null; }
|
|
90
|
-
if (pending === null) return;
|
|
91
|
-
const text = pending; pending = null;
|
|
92
|
-
pmPost('/api/scratchpad', { session: id, text }).catch(() => { /* the text stays in the box */ });
|
|
93
|
-
};
|
|
94
|
-
const ta = el('textarea', { class: 'c3t-pad-ta', rows: String(PAD_ROWS), placeholder: 'Scratchpad. One pad for each session. Saved on this machine.', 'aria-label': 'Scratchpad', 'data-c3-pad': 'text',
|
|
95
|
-
oninput: () => { typed = true; pending = ta.value; if (timer) clearTimeout(timer); timer = setTimeout(flush, 500); sync(); } });
|
|
96
|
-
const send = c3btn({ class: 'pill', 'data-c3-pad': 'send', title: 'Type the pad into this session. Enter is not pressed.' }, () => {
|
|
97
|
-
if (!ta.value.trim()) return;
|
|
98
|
-
if (!term.sendToTerm(tab, ta.value)) { toast({ text: 'The text was not sent. The terminal is not connected.', tone: 'error' }); return; }
|
|
99
|
-
if (typeof term.focusTerm === 'function') term.focusTerm(tab);
|
|
100
|
-
}, c3ic('out', 'sm'), 'Send to terminal');
|
|
101
|
-
const open0 = store.get(PAD_KEY) !== 'closed';
|
|
102
|
-
const box = el('div', { class: 'c3t-pad', 'data-c3-pad': 'box' });
|
|
103
|
-
const grip = el('div', { class: 'c3t-pad-grip', 'data-c3-pad': 'grip', role: 'separator', 'aria-orientation': 'horizontal', tabindex: '0',
|
|
104
|
-
'aria-label': 'Resize the scratchpad', 'aria-valuemin': '2', title: 'Drag to resize the scratchpad. Double-click for the default size.' });
|
|
105
|
-
// the height is the textarea's own rows, so no inline style; 0 is the default
|
|
106
|
-
let rows = Number(store.get(PAD_H_KEY)) || 0;
|
|
107
|
-
const room = () => { const w = box.parentNode; return w && w.getBoundingClientRect ? w.getBoundingClientRect().height : window.innerHeight; };
|
|
108
|
-
const lh = () => parseFloat(getComputedStyle(ta).lineHeight) || 18;
|
|
109
|
-
const applyH = () => { ta.rows = rows || PAD_ROWS; grip.setAttribute('aria-valuenow', String(rows || PAD_ROWS)); };
|
|
110
|
-
const resize = {
|
|
111
|
-
lh,
|
|
112
|
-
get: () => rows || PAD_ROWS,
|
|
113
|
-
set: (n) => { const next = clampPad(n, room(), lh()); if (next === (rows || PAD_ROWS)) return; rows = next; applyH(); term.refitVisible(); },
|
|
114
|
-
done: () => { store.set(PAD_H_KEY, rows ? String(rows) : ''); },
|
|
115
|
-
};
|
|
116
|
-
padGrips.set(grip, resize);
|
|
117
|
-
grip.addEventListener('dblclick', () => { rows = 0; applyH(); resize.done(); requestAnimationFrame(() => term.refitVisible()); });
|
|
118
|
-
grip.addEventListener('keydown', (e) => {
|
|
119
|
-
if (e.key !== 'ArrowUp' && e.key !== 'ArrowDown') return;
|
|
120
|
-
e.preventDefault();
|
|
121
|
-
resize.set(resize.get() + (e.key === 'ArrowUp' ? 1 : -1)); resize.done();
|
|
122
|
-
});
|
|
123
|
-
const toggle = c3btn({ class: 'chip2 lk', 'data-c3-pad': 'toggle' }, () => { const on = box.dataset.open !== 'true'; store.set(PAD_KEY, on ? 'open' : 'closed'); set(on); },
|
|
124
|
-
c3ic('edit', 'sm'), 'Scratchpad');
|
|
125
|
-
function set(on) {
|
|
126
|
-
box.dataset.open = String(on);
|
|
127
|
-
toggle.setAttribute('aria-expanded', String(on));
|
|
128
|
-
toggle.title = on ? 'Hide the scratchpad. The text is kept.' : 'Show the scratchpad';
|
|
129
|
-
ta.hidden = !on; grip.hidden = !on;
|
|
130
|
-
requestAnimationFrame(() => term.refitVisible());
|
|
131
|
-
}
|
|
132
|
-
function sync() { send.disabled = !ta.value.trim(); }
|
|
133
|
-
box.append(grip, el('div', { class: 'c3t-pad-h' }, toggle, send), ta);
|
|
134
|
-
set(open0); sync(); applyH();
|
|
135
|
-
pmGet(url).then((r) => { if (!typed && r && typeof r.text === 'string') { ta.value = r.text; sync(); } }).catch(() => { /* an empty pad */ });
|
|
136
|
-
const onHide = () => flush();
|
|
137
|
-
window.addEventListener('pagehide', onHide);
|
|
138
|
-
return { box, ta, dispose() { if (closed) return; closed = true; window.removeEventListener('pagehide', onHide); flush(); } };
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* the sheet's two views: the conversation (c3-session-conv.js) first, the live terminal one press away. VIEWS: [key, label, title] */
|
|
142
|
-
export const VIEWS = [['conv', 'Conversation', 'The conversation: your messages and Claude\'s replies'], ['term', 'Terminal', 'The live terminal of this session']];
|
|
143
|
-
/** Which view a session opens on: the one asked for, else Terminal for an agent that keeps no Claude transcript, else Conversation. Pure. */
|
|
144
|
-
export const firstView = (agent, asked) => (asked === 'term' || asked === 'conv' ? asked : agent && agent !== 'claude' && agent !== 'shell' ? 'term' : 'conv');
|
|
145
|
-
/* the running sessions the sheet's list shows (at 2/3 and Whole): newest first, background runs left out */
|
|
146
|
-
const listed = (all) => (Array.isArray(all) ? all : []).filter((x) => x && x.id && x.state !== 'exited' && x.shown !== 'exited' && !x.headless && !x.automatic)
|
|
147
|
-
.sort((a, b) => String(b.created || '').localeCompare(String(a.created || '')));
|
|
148
|
-
|
|
149
|
-
/** The session sheet: Conversation | Terminal, All sessions and the sizes. `view` 'term' opens straight on the terminal (Set up Laya). */
|
|
150
|
-
export async function openSessionTerm({ id, name, view } = {}) {
|
|
151
|
-
if (!id) return null;
|
|
152
|
-
rememberSession(id);
|
|
153
|
-
const r = await pmGet('/api/sessions').catch(() => null);
|
|
154
|
-
const all = r && Array.isArray(r.sessions) ? r.sessions : [];
|
|
155
|
-
const me = all.find((y) => y.id === id) || null;
|
|
156
|
-
if (!name) name = me ? me.name : id;
|
|
157
|
-
const tab = { id: 'c3-session:' + id, kind: 'term', sessionId: id, spawn: false, sess: id };
|
|
158
|
-
const host = el('div', { class: 'c3t-term', 'data-c3-session-term': id });
|
|
159
|
-
let term = null; let pad = null; let mounted = false;
|
|
160
|
-
const wrap = el('div', { class: 'c3t-tw', 'data-c3-view-pane': 'term' }, host);
|
|
161
|
-
const conv = convView({ id, onTerminal: () => show('term') });
|
|
162
|
-
conv.node.setAttribute('data-c3-view-pane', 'conv');
|
|
163
|
-
const list = el('nav', { class: 'c3t-cv-list', 'aria-label': 'Running sessions', 'data-c3-sess-list': '' },
|
|
164
|
-
el('div', { class: 'eyebrow' }, 'Running'),
|
|
165
|
-
...listed(all).map((x) => c3btn({ 'aria-current': String(x.id === id), 'data-c3-sess-pick': x.id, title: x.name },
|
|
166
|
-
() => { if (x.id !== id) openSessionTerm({ id: x.id, name: x.name }); },
|
|
167
|
-
el('span', { class: 'nm' }, x.name || x.id), el('span', { class: 'sub' }, [x.agent === 'shell' ? 'Shell' : x.agent, x.shown || x.state].filter(Boolean).join(' · ')))));
|
|
168
|
-
const body = el('div', { class: 'c3t-cv', 'data-c3-session': id }, list, el('div', { class: 'c3t-cv-panes' }, conv.node, wrap));
|
|
169
|
-
|
|
170
|
-
// the size control: Normal is the 600px sheet, the others are the classic dock's presets. Hidden on a phone, where the sheet is full width.
|
|
171
|
-
let size = sizeOf(store.get(SIZE_KEY));
|
|
172
|
-
const sizeBtns = SIZES.map(([k, label, title]) => c3btn({ 'aria-pressed': String(k === size), 'data-c3-size': k, title, 'aria-label': title }, () => setSize(k), label));
|
|
173
|
-
const seg = el('div', { class: 'seg c3t-size', role: 'group', 'aria-label': 'Terminal size', 'data-c3-size-seg': '' }, ...sizeBtns);
|
|
174
|
-
let cur = firstView(me && me.agent, view);
|
|
175
|
-
const viewBtns = VIEWS.map(([k, label, title]) => c3btn({ 'aria-pressed': String(k === cur), 'data-c3-view': k, title, 'aria-label': label }, () => show(k),
|
|
176
|
-
c3ic(k === 'conv' ? 'reply' : 'term', 'sm'), el('span', { class: 'lb' }, label)));
|
|
177
|
-
const views = el('div', { class: 'seg c3t-views', role: 'group', 'aria-label': 'View', 'data-c3-view-seg': '' }, ...viewBtns);
|
|
178
|
-
// the way back to every session: the Sessions panel, in place of this sheet
|
|
179
|
-
const allBtn = c3btn({ class: 'chip2 lk c3t-all', 'data-c3-all-sessions': '', title: 'All sessions: the Sessions panel', 'aria-label': 'All sessions' }, () => { sheet.close(); import('./c3-terminal.js').then((m) => m.openTerminalPage()); },
|
|
180
|
-
c3ic('menu', 'sm'), el('span', { class: 'lb' }, 'All sessions'));
|
|
181
|
-
const cls = (k) => 'tsz-' + k;
|
|
182
|
-
// Esc and Tab belong to the shell while the terminal has focus (Esc interrupts an agent); the close button and a press outside still close.
|
|
183
|
-
// The scratchpad and the conversation are outside the terminal host, so their keys are the page's own.
|
|
184
|
-
const sheet = openSheet({ title: name || id, icon: 'term', wide: true, body, actions: [views, allBtn, seg], cls: 'c3t-ss ' + cls(size),
|
|
185
|
-
onClose: () => { conv.stop(); if (pad) pad.dispose(); if (term && mounted) term.disposeTerm(tab); }, passKeys: (e) => host.contains(e.target) });
|
|
186
|
-
|
|
187
|
-
async function mountTerminal() {
|
|
188
|
-
if (mounted) return true;
|
|
189
|
-
const [ok, t] = await Promise.all([loadVendor(), import('./tab-term.js').catch(() => null)]);
|
|
190
|
-
if (!ok || !t) { toast({ text: 'The terminal could not be loaded on this page.', tone: 'error' }); return false; }
|
|
191
|
-
if (mounted || !host.isConnected) return mounted;
|
|
192
|
-
term = t; mounted = true;
|
|
193
|
-
pad = makePad(id, term, tab);
|
|
194
|
-
wrap.append(pad.box);
|
|
195
|
-
term.mountTerm(host, tab);
|
|
196
|
-
return true;
|
|
197
|
-
}
|
|
198
|
-
async function show(k) {
|
|
199
|
-
cur = k === 'term' ? 'term' : 'conv';
|
|
200
|
-
viewBtns.forEach((b) => b.setAttribute('aria-pressed', String(b.dataset.c3View === cur)));
|
|
201
|
-
body.dataset.view = cur;
|
|
202
|
-
conv.node.hidden = cur !== 'conv'; wrap.hidden = cur !== 'term';
|
|
203
|
-
if (cur === 'conv') { conv.start(); requestAnimationFrame(() => conv.input.focus()); return; }
|
|
204
|
-
conv.stop(); // the hidden conversation does not read the transcript; it reads it again on the way back
|
|
205
|
-
if (!await mountTerminal()) return;
|
|
206
|
-
requestAnimationFrame(() => { term.refitVisible(); term.focusTerm(tab); });
|
|
207
|
-
}
|
|
208
|
-
function setSize(k) {
|
|
209
|
-
sheet.sheet.classList.remove(cls(size)); size = sizeOf(k); sheet.sheet.classList.add(cls(size));
|
|
210
|
-
store.set(SIZE_KEY, size);
|
|
211
|
-
sizeBtns.forEach((b) => b.setAttribute('aria-pressed', String(b.dataset.c3Size === size)));
|
|
212
|
-
if (term) requestAnimationFrame(() => { term.refitVisible(); requestAnimationFrame(() => term.refitVisible()); });
|
|
213
|
-
}
|
|
214
|
-
await show(cur);
|
|
215
|
-
return sheet;
|
|
216
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* pm/c3-settings.css — the console3 Settings page (c3-settings.js, initiative console3-settings). The page is drawn with console3
|
|
2
|
-
* classes (.card.sect, ul.list > li.nrow, .seg, .tag, .chip2, .fold, .lh). The rules here are the approved mockup's Settings rules
|
|
3
|
-
* (mockup src/pages/35-settings.css, .mk-settings), under the product class .c3set, plus the switch and the effects of two settings. */
|
|
4
|
-
/* The controls are primitives.js buttons (.pmc-btn); this resets them to the look each console3 class gives them. */
|
|
5
|
-
:where(.c3set) .c3set-b{height:auto;min-height:0;padding:0;border:0;background:transparent;font:inherit;color:inherit;gap:6px;justify-content:flex-start;line-height:inherit;white-space:normal;text-align:left}
|
|
6
|
-
.c3 .c3set,.c3 .c3set .calwrap,.c3 .c3set .calwrap>*,.c3 .c3set .st-hd .tools{min-width:0;max-width:100%}
|
|
7
|
-
.c3 .c3set .st-hd{display:flex;gap:var(--sp-3);align-items:center;justify-content:space-between;flex-wrap:wrap}
|
|
8
|
-
.c3 .c3set .st-lead{font-size:var(--fs-3)}
|
|
9
|
-
.c3 .c3set .st-hd .tools{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
|
|
10
|
-
.c3 .c3set .st-hd input[type=text]{width:240px;max-width:100%}
|
|
11
|
-
.c3 .c3set .st-wrap{display:grid;grid-template-columns:230px minmax(0,1fr);gap:var(--sp-4);align-items:start}
|
|
12
|
-
.c3 .c3set .st-nav{position:sticky;top:12px}
|
|
13
|
-
.c3 .c3set .st-nav .list>li{display:block}
|
|
14
|
-
.c3 .c3set .st-nav .nrow{display:grid;width:100%;cursor:pointer;border-radius:8px;padding:var(--sp-2);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;border-bottom:1px solid var(--border)}
|
|
15
|
-
.c3 .c3set .st-nav .nrow[aria-current=true]{background:var(--muted)}
|
|
16
|
-
.c3 .c3set .st-nav .nrow .nb{padding-right:0;align-self:center}
|
|
17
|
-
.c3 .c3set .st-nav .nrow[aria-current=true] .tt{color:var(--acc)}
|
|
18
|
-
.c3 .c3set .st-body,.c3 .c3set .st-sec{display:grid;gap:var(--sp-4);min-width:0}
|
|
19
|
-
.c3 .c3set .st-seg{display:none}
|
|
20
|
-
.c3 .c3set .nrow{cursor:default}
|
|
21
|
-
.c3 .c3set .nrow .nb{padding-right:0}
|
|
22
|
-
.c3 .c3set .list>.nrow{grid-template-columns:auto minmax(0,1fr) auto}
|
|
23
|
-
.c3 .c3set .nrow.st-row{grid-template-columns:minmax(0,1fr) auto;padding:var(--sp-3) var(--sp-2)}
|
|
24
|
-
.c3 .c3set .nrow.st-row.has-ki{grid-template-columns:auto minmax(0,1fr) auto}
|
|
25
|
-
.c3 .c3set .acts{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}
|
|
26
|
-
.c3 .c3set .st-row.wide{grid-template-columns:minmax(0,1fr)}
|
|
27
|
-
.c3 .c3set .st-row.wide .acts{display:grid;justify-content:stretch}
|
|
28
|
-
.c3 .c3set .st-row.wide textarea{width:100%;min-height:112px;resize:vertical}
|
|
29
|
-
.c3 .c3set .st-row .acts input[type=text]{width:340px;max-width:100%}
|
|
30
|
-
.c3 .c3set .st-help{font-size:var(--fs-2);line-height:1.4;margin-top:4px}
|
|
31
|
-
.c3 .c3set .nb>.fold{margin-top:6px}
|
|
32
|
-
.c3 .c3set .st-count{font-size:var(--fs-1)}
|
|
33
|
-
.c3 .c3set .st-now{font-size:var(--fs-3);padding-top:var(--sp-2)}
|
|
34
|
-
.c3 .c3set .st-pad{padding:var(--sp-2)}
|
|
35
|
-
.c3 .c3set .st-wrap-text{overflow-wrap:anywhere}
|
|
36
|
-
.c3 .c3set .iacts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-top:var(--sp-2)}
|
|
37
|
-
.c3 .c3set .st-flow{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;margin-top:6px}
|
|
38
|
-
.c3 .c3set .st-stages{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
|
|
39
|
-
.c3 .c3set .st-stages li{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
|
|
40
|
-
.c3 .c3set .st-stages input[type=text]{flex:1 1 160px}
|
|
41
|
-
.c3 .c3set .st-dot{width:7px;height:7px;border-radius:50%;background:var(--acc)}
|
|
42
|
-
.c3 .c3set .st-cat-dot{width:7px;height:7px;border-radius:50%;background:var(--muted-foreground)}
|
|
43
|
-
.c3 .c3set .st-cat-dot[data-cat="Plan"]{background:var(--ring)}
|
|
44
|
-
.c3 .c3set .st-cat-dot[data-cat="Do"]{background:var(--acc)}
|
|
45
|
-
.c3 .c3set .st-cat-dot[data-cat="Learn"]{background:var(--foreground)}
|
|
46
|
-
.c3 .c3set .tag.ok{color:var(--foreground)}
|
|
47
|
-
.c3 .c3set .tag.warn{color:var(--warning)}
|
|
48
|
-
.c3 .c3set .tag.acc{color:var(--acc)}
|
|
49
|
-
.c3 .c3set .sw{position:relative;flex:0 0 auto;width:38px;height:22px;min-height:0;padding:0;border-radius:8px;border:1px solid var(--border);background:var(--muted);transition:background .15s,border-color .15s}
|
|
50
|
-
.c3 .c3set .sw-dot{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--muted-foreground);transition:transform .15s,background .15s}
|
|
51
|
-
.c3 .c3set .sw[aria-checked=true]{background:var(--acc);border-color:var(--acc)}
|
|
52
|
-
.c3 .c3set .sw[aria-checked=true] .sw-dot{transform:translateX(16px);background:var(--on-accent)}
|
|
53
|
-
.c3 .c3set .sw:disabled,.c3 .c3set .seg button:disabled,.c3 .c3set select:disabled,.c3 .c3set input:disabled{opacity:.5;cursor:not-allowed}
|
|
54
|
-
.c3 .c3set :is(input,select,textarea,button):focus-visible{outline:2px solid var(--ring);outline-offset:1px}
|
|
55
|
-
@media (hover:hover){.c3 .c3set .st-nav .nrow:hover{background:var(--muted)}}
|
|
56
|
-
@media (max-width:860px){
|
|
57
|
-
.c3 .c3set .st-wrap{grid-template-columns:minmax(0,1fr)}
|
|
58
|
-
.c3 .c3set .st-nav{display:none}
|
|
59
|
-
.c3 .c3set .st-seg{display:block;overflow-x:auto;max-width:100%}
|
|
60
|
-
.c3 .c3set .st-seg .seg{flex-wrap:nowrap}
|
|
61
|
-
.c3 .c3set .st-seg .seg button{white-space:nowrap}
|
|
62
|
-
.c3 .c3set .list>.nrow.st-row{grid-template-columns:minmax(0,1fr)}
|
|
63
|
-
.c3 .c3set .list>.nrow.st-row>.acts{grid-column:auto}
|
|
64
|
-
.c3 .c3set .list>.nrow.st-row.has-ki{grid-template-columns:auto minmax(0,1fr)}
|
|
65
|
-
.c3 .c3set .list>.nrow.st-row.has-ki>.acts{grid-column:2}
|
|
66
|
-
.c3 .c3set .list>.nrow:not(.st-row){grid-template-columns:auto minmax(0,1fr)}
|
|
67
|
-
.c3 .c3set .list>.nrow:not(.st-row)>.acts{grid-column:2}
|
|
68
|
-
.c3 .c3set .acts{justify-content:flex-start}
|
|
69
|
-
}
|
|
70
|
-
@media (prefers-reduced-motion:reduce){.c3 .c3set .sw,.c3 .c3set .sw-dot{transition:none}}
|
|
71
|
-
.c3 .c3pg-pane:has(>.c3set){grid-template-columns:minmax(0,1fr)}
|
|
72
|
-
/* The effects of two Day and time settings, on the console root. */
|
|
73
|
-
[data-c3-tint="off"][data-daypart]{background-image:none!important}
|
|
74
|
-
[data-c3-strip="off"] .c3pg-daylight{display:none!important}
|
|
75
|
-
/* Data refresh: the source icon sits in the title line; the schedule editor opens under the row. */
|
|
76
|
-
.c3 .c3set .rf-row .tt{display:flex;align-items:center;gap:var(--sp-2)}
|
|
77
|
-
.c3 .c3set .rf-ed{margin-top:var(--sp-3);padding-top:var(--sp-2);border-top:1px solid var(--border)}
|
|
78
|
-
.c3 .c3set .rf-ed .acts select+select,.c3 .c3set .rf-ed .acts select{margin-right:4px}
|
|
79
|
-
.c3 .c3set .rf-ed .mk-lbl{margin:var(--sp-2) 0 2px;text-transform:uppercase}
|
|
80
|
-
.c3 .c3set .rf-row .fold .c3set-b{margin-left:auto}
|
|
81
|
-
@media (max-width:860px){
|
|
82
|
-
.c3 .c3set .list>.nrow.st-row.rf-row{grid-template-columns:minmax(0,1fr)}
|
|
83
|
-
.c3 .c3set .list>.nrow.st-row.rf-row>.acts{justify-content:flex-start}
|
|
84
|
-
}
|
|
85
|
-
.c3.ph .c3set .nrow.st-row .acts{grid-column:auto;justify-content:flex-start}
|