create-pmos 0.399.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 +18 -13
- 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 +2 -2
- package/workspace/briefing-premium-doc-edit-test.js +2 -8
- package/workspace/briefing-premium-test.js +3 -2
- package/workspace/briefing-premium-work-test.js +9 -4
- package/workspace/c3-capture-test.js +0 -17
- package/workspace/changelog.json +17 -0
- package/workspace/guide/briefing-premium.md +2 -2
- package/workspace/guide/home.md +20 -2
- 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/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 +2 -2
- 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 +20 -5
- package/workspace/public/pm/cozy-today.css +5 -2
- 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 +47 -26
- package/workspace/public/pm/home-chat.js +10 -4
- package/workspace/public/pm/home-data.js +3 -1
- package/workspace/public/pm/home-dictate.js +7 -4
- package/workspace/public/pm/home-ini.js +12 -2
- package/workspace/public/pm/home-list.js +20 -7
- 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 +10 -6
- package/workspace/public/pm/home-work.js +15 -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/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 +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/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
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* routes-slash.js — the chat box's / menu (testing fixes: the menu listed 3 commands; it lists every command Claude Code takes).
|
|
3
|
+
*
|
|
4
|
+
* GET /api/slash-commands[?ws=<id>] → { ok, commands: [{ cmd, name, say, src }] } src 'pmos' | 'claude' | 'project' | 'yours'
|
|
5
|
+
*
|
|
6
|
+
* READ ONLY. The commands are, in this order:
|
|
7
|
+
* pmos /goal, which PMOS answers itself (goal-chat.js)
|
|
8
|
+
* claude the commands built into Claude Code
|
|
9
|
+
* project the workspace's own: .claude/commands/<name>.md and .claude/skills/<name>/SKILL.md under the workspace root
|
|
10
|
+
* yours the PM's own: the same two folders under ~/.claude
|
|
11
|
+
* A custom command's `say` is its frontmatter `description`, else its first line of text. A file that cannot be read is left out. */
|
|
12
|
+
const fs = require('fs');
|
|
13
|
+
const os = require('os');
|
|
14
|
+
const path = require('path');
|
|
15
|
+
|
|
16
|
+
const PMOS = [{ cmd: '/goal', name: 'Give Claude a goal', say: 'It asks a few questions to make the goal SMART, then works on it after you press Start.' }];
|
|
17
|
+
const CLAUDE = [
|
|
18
|
+
['/compact', 'Compact the conversation', 'Claude Code summarises the conversation so far to free room.'],
|
|
19
|
+
['/clear', 'Clear the conversation', 'Claude Code starts again with an empty context in the same session.'],
|
|
20
|
+
['/context', 'Show the context', 'How full the context window is, and what fills it.'],
|
|
21
|
+
['/cost', 'Show the cost', 'The tokens and cost of this session so far.'],
|
|
22
|
+
['/model', 'Change the model', 'Pick the model the session uses from now on.'],
|
|
23
|
+
['/review', 'Review a pull request', 'Claude Code reviews a pull request.'],
|
|
24
|
+
['/security-review', 'Security review', 'Claude Code checks the pending changes for security issues.'],
|
|
25
|
+
['/pr-comments', 'Pull request comments', 'Claude Code reads the comments on a pull request.'],
|
|
26
|
+
['/init', 'Write CLAUDE.md', 'Claude Code writes a CLAUDE.md that describes this repository.'],
|
|
27
|
+
['/memory', 'Edit memory', 'Open the CLAUDE.md memory files.'],
|
|
28
|
+
['/add-dir', 'Add a folder', 'Let the session read and work in another folder.'],
|
|
29
|
+
['/agents', 'Subagents', 'List and manage the subagents.'],
|
|
30
|
+
['/mcp', 'MCP servers', 'The MCP servers and their state.'],
|
|
31
|
+
['/permissions', 'Permissions', 'What the session may do without asking.'],
|
|
32
|
+
['/hooks', 'Hooks', 'The hooks that run on tool calls.'],
|
|
33
|
+
['/todos', 'To-dos', 'The session’s current to-do list.'],
|
|
34
|
+
['/export', 'Export the conversation', 'Save the conversation to a file or the clipboard.'],
|
|
35
|
+
['/status', 'Status', 'The version, the model, the account and the connections.'],
|
|
36
|
+
['/doctor', 'Check the install', 'Claude Code checks its own installation.'],
|
|
37
|
+
['/help', 'Help', 'The commands Claude Code takes.'],
|
|
38
|
+
].map(([cmd, name, say]) => ({ cmd, name, say }));
|
|
39
|
+
|
|
40
|
+
const NAME = /^[A-Za-z0-9][A-Za-z0-9_:.-]{0,63}$/;
|
|
41
|
+
function read(file) { try { return fs.readFileSync(file, 'utf8').slice(0, 8000); } catch { return null; } }
|
|
42
|
+
/** The description of a command or skill file: frontmatter `description`, else the first line of text. */
|
|
43
|
+
function sayOf(text) {
|
|
44
|
+
const t = String(text || '');
|
|
45
|
+
const fm = /^---\r?\n([\s\S]*?)\r?\n---/.exec(t);
|
|
46
|
+
const d = fm && /^description:\s*(.+)$/m.exec(fm[1]);
|
|
47
|
+
if (d) return d[1].trim().replace(/^["']|["']$/g, '').slice(0, 200);
|
|
48
|
+
const body = fm ? t.slice(fm[0].length) : t;
|
|
49
|
+
const line = body.split('\n').map((l) => l.replace(/^#+\s*/, '').trim()).find(Boolean);
|
|
50
|
+
return (line || '').slice(0, 200);
|
|
51
|
+
}
|
|
52
|
+
/** The commands and skills under one .claude folder. */
|
|
53
|
+
function customOf(dir, src) {
|
|
54
|
+
const out = [];
|
|
55
|
+
let names = [];
|
|
56
|
+
try { names = fs.readdirSync(path.join(dir, 'commands')); } catch { names = []; }
|
|
57
|
+
for (const f of names) {
|
|
58
|
+
const n = f.replace(/\.md$/, '');
|
|
59
|
+
if (!f.endsWith('.md') || !NAME.test(n)) continue;
|
|
60
|
+
const t = read(path.join(dir, 'commands', f)); if (t == null) continue;
|
|
61
|
+
out.push({ cmd: '/' + n, name: n, say: sayOf(t), src });
|
|
62
|
+
}
|
|
63
|
+
try { names = fs.readdirSync(path.join(dir, 'skills')); } catch { names = []; }
|
|
64
|
+
for (const n of names) {
|
|
65
|
+
if (!NAME.test(n)) continue;
|
|
66
|
+
const t = read(path.join(dir, 'skills', n, 'SKILL.md')); if (t == null) continue;
|
|
67
|
+
out.push({ cmd: '/' + n, name: n, say: sayOf(t), src });
|
|
68
|
+
}
|
|
69
|
+
return out.sort((a, b) => a.cmd.localeCompare(b.cmd));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** deps: { root (the workspace's folder), home (the PM's home folder) } */
|
|
73
|
+
function list(deps = {}) {
|
|
74
|
+
const seen = new Set(), out = [];
|
|
75
|
+
const add = (x, src) => { if (seen.has(x.cmd)) return; seen.add(x.cmd); out.push({ ...x, src: x.src || src }); };
|
|
76
|
+
PMOS.forEach((x) => add(x, 'pmos'));
|
|
77
|
+
CLAUDE.forEach((x) => add(x, 'claude'));
|
|
78
|
+
if (deps.root) customOf(path.join(deps.root, '.claude'), 'project').forEach((x) => add(x));
|
|
79
|
+
if (deps.home) customOf(path.join(deps.home, '.claude'), 'yours').forEach((x) => add(x));
|
|
80
|
+
return { status: 200, body: { ok: true, commands: out } };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
module.exports = {
|
|
84
|
+
prefixes: ['/api/slash-commands'],
|
|
85
|
+
list, sayOf, CLAUDE,
|
|
86
|
+
handle: async (req, res, url, ctx) => {
|
|
87
|
+
if (url.pathname !== '/api/slash-commands') return false;
|
|
88
|
+
if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
|
|
89
|
+
const ws = url.searchParams.get('ws');
|
|
90
|
+
const w = ws && ctx.getWs ? ctx.getWs(ws) : null;
|
|
91
|
+
const r = list({ root: w ? w.root : ctx.root || null, home: os.homedir() });
|
|
92
|
+
ctx.json(res, r.body, r.status);
|
|
93
|
+
return true;
|
|
94
|
+
},
|
|
95
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.400.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.400.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.400.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"start": "node server.js",
|
|
12
12
|
"test": "node run-tests.js unit",
|
|
13
13
|
"test:modules": "node run-tests.js modules",
|
|
14
|
-
"test:ui": "node ui-test.js",
|
|
15
14
|
"test:all": "node run-tests.js all && npm run test:offline",
|
|
16
15
|
"doctor": "node doctor.js",
|
|
17
16
|
"test:panels": "node run-tests.js panels",
|
|
@@ -43,7 +43,7 @@ const look = () => {
|
|
|
43
43
|
return { tab: vw ? 'out' : 'chat', shut: !gp, layer: false, out: vw ? Math.round(vw.getBoundingClientRect().width) : 0, vh: innerHeight,
|
|
44
44
|
cardInChat: !!document.querySelector('#hmLog .gcard'), chip: (document.querySelector('#hmLog [data-goal-open]') || {}).textContent || null,
|
|
45
45
|
smart: !!document.querySelector('#hmLog .smart'), start: !!document.querySelector('#hmLog [data-goal="start"]'),
|
|
46
|
-
tabs: gp ? ['Goal'] : [], on: vw ? (vw.querySelector('.cz-vw-kind') || {}).textContent || null : null,
|
|
46
|
+
tabs: gp ? ['Goal'] : [], on: vw ? (vw.querySelector('.cz-vw-kind') || vw.querySelector('.cz-vw-title') || {}).textContent || null : null, // a kind that repeats the title is not drawn
|
|
47
47
|
pane: gp ? gp.textContent.replace(/\s+/g, ' ').trim() : null, stop: !!document.querySelector('#czViewer [data-goal="stop"]'),
|
|
48
48
|
peek: peek && !peek.hidden ? peek.textContent.trim() : null,
|
|
49
49
|
railOff: !document.querySelector('nav.rail'), wide: document.documentElement.scrollWidth > innerWidth + 1 };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* header, so the icon sits in the box's toolbar; nothing links to the console)
|
|
7
7
|
* O2 an ended chat: the icon copies the line that resumes it
|
|
8
8
|
* O3 no session: no icon
|
|
9
|
-
* O4 /console.html?term=<id> opens that session's sheet on the terminal, also at phone width
|
|
10
9
|
* Set CHAT_TERM_SHOTS=<dir> to save the header at 1280 light and 390 dark. */
|
|
11
10
|
const { findBrowser } = require('./lib/find-browser');
|
|
12
11
|
require('./test-run').configure({ name: 'premium-chat-term' });
|
|
@@ -80,14 +79,5 @@ const pressTerm = async (p) => { await p.click('#hmAdd'); await p.click('#hmTerm
|
|
|
80
79
|
ok('O3 no session and nothing to resume: no icon', i && !i.shown, JSON.stringify(i));
|
|
81
80
|
await ctx.close();
|
|
82
81
|
}
|
|
83
|
-
for (const width of [1280, 390]) {
|
|
84
|
-
const ctx = await browser.newContext({ viewport: { width, height: 800 } });
|
|
85
|
-
const p = await ctx.newPage();
|
|
86
|
-
await p.route('**/api/sessions', (r) => r.fulfill({ json: { sessions: [{ id: 'sess-7', name: 'chat: PSLE sheet', agent: 'claude', state: 'working', shown: 'working' }] } }));
|
|
87
|
-
await p.goto(`${F.BASE}/console.html?term=sess-7&ws=${encodeURIComponent(F.ws)}`);
|
|
88
|
-
const v = await until(() => p.evaluate(() => { const s = document.querySelector('[data-c3-session="sess-7"]'); const b = document.querySelector('[data-c3-view="term"]'); return s && b ? b.getAttribute('aria-pressed') : null; }), 15000);
|
|
89
|
-
ok(`O4 at ${width} /console.html?term= opens that session's sheet on its terminal`, v === 'true', String(v));
|
|
90
|
-
await ctx.close();
|
|
91
|
-
}
|
|
92
82
|
finish();
|
|
93
83
|
})();
|
|
@@ -16,7 +16,7 @@ const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); c
|
|
|
16
16
|
const PUB = path.join(__dirname, 'public');
|
|
17
17
|
const ORIGIN = 'http://pmos-menus.test';
|
|
18
18
|
const TYPES = { '.css': 'text/css', '.woff2': 'font/woff2', '.html': 'text/html', '.svg': 'image/svg+xml' };
|
|
19
|
-
const SHEETS = ['pm/premium.css', 'pm/premium-
|
|
19
|
+
const SHEETS = ['pm/premium.css', 'pm/premium-vw-doc.css', 'pm/premium-vw-rec.css'];
|
|
20
20
|
|
|
21
21
|
const LONG = ['Migration off Okta (tender, award, migration), incl. the Okta CIS renewal runway', 'Inline login for eShop onsite checkout',
|
|
22
22
|
'MAGW migration to auth-service (Java to Go) — Phase 1 and Phase 2', 'Email OTP'];
|
|
@@ -108,7 +108,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
108
108
|
|
|
109
109
|
p = await scene({ time: at(18, 0), today: [A], needs: [{ key: 'k1', kind: 'overdue', id: i1.id, headline: 'Send the partner onboarding list to Lina', days_late: 1 }], name: 'recap' });
|
|
110
110
|
c = await wait(p, /How today went/);
|
|
111
|
-
ok('M7 the evening: the recap counts come from phone-day', c && c.kind === 'recap' && /2\s*meetings/.test(c.text) && /3
|
|
111
|
+
ok('M7 the evening: the recap counts come from phone-day', c && c.kind === 'recap' && /2\s*meetings/.test(c.text) && /3 items done/.test(c.text) && /Sandbox dates agreed/.test(c.text) && /One thing tonight/.test(c.text), c && c.text);
|
|
112
112
|
await p.__ctx.close();
|
|
113
113
|
|
|
114
114
|
p = await scene({ time: at(21, 0), today: [A], name: 'night' });
|
|
@@ -155,7 +155,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
155
155
|
await p.__ctx.close();
|
|
156
156
|
p = await scene({ time: at(18, 0), today: [A], dayFail: true });
|
|
157
157
|
c = await wait(p, /Today could not be read/);
|
|
158
|
-
ok('E2 a failed phone-day read is named in the recap, and the open items still show', c && /
|
|
158
|
+
ok('E2 a failed phone-day read is named in the recap, and the open items still show', c && /could not be read/.test(c.text) && /(One thing tonight|Nothing of yours is still open)/.test(c.text), c && c.text);
|
|
159
159
|
await p.__ctx.close();
|
|
160
160
|
|
|
161
161
|
/* W: desktop width and the POST allow-list */
|
|
@@ -196,14 +196,7 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
|
|
|
196
196
|
ok('D5 Undo all rejects the proposal with a reason for the Edit log, and the file is left as it is', C.S.posts[0].route === 'reject' && C.S.posts[0].body.id === 'prop-a' && /Undo all/.test(C.S.posts[0].body.why) && !C.S.posts.some((x) => x.route === 'edit' || x.route === 'accept'));
|
|
197
197
|
await until(() => q.evaluate((v) => !document.querySelector(v + ' .vwag'), V));
|
|
198
198
|
ok('D5 after Undo all the page shows the file with no highlight', await q.evaluate((v) => !document.querySelector(v + ' .vwchg') && /a first call without help/.test(document.querySelector(v + ' .cfb').textContent), V));
|
|
199
|
-
await q.
|
|
200
|
-
await q.fill(V + ' #vwAsk', 'tighten the goal'); await q.click(V + ' [data-vd="ask"]');
|
|
201
|
-
await until(() => C.S.posts.length > 1);
|
|
202
|
-
ok('D6 Ask posts path and prompt to /api/doc-sheet/ask', C.S.posts[1].route === 'ask' && C.S.posts[1].body.prompt === 'tighten the goal' && C.S.posts[1].body.path === PATH);
|
|
203
|
-
ok('D6 while the agent works the page says so', await until(() => q.evaluate((v) => /The agent is reading the document/.test(document.querySelector(v).textContent), V)));
|
|
204
|
-
C.S.props = [prop({ id: 'prop-c', hash: 'hc', prompt: 'tighten the goal', sections: [prop().sections[1]], after: TEXT.replace('- a first call without help', '- a first call in under ten minutes') })];
|
|
205
|
-
C.S.ask = { ok: true, id: 'ask-1', state: 'proposed' };
|
|
206
|
-
ok('D6 when the agent answers, its edit shows applied and highlighted', await until(() => q.evaluate((v) => !!document.querySelector(v + ' .vwchg[data-sec="Goal"]') && /The agent changed 1 place/.test(document.querySelector(v + ' .vwag').textContent), V), 9000));
|
|
199
|
+
ok('D6 the read bar has no Ask the agent (testing fixes: the chat beside the page asks for a change)', await q.evaluate((v) => !document.querySelector(v + ' [data-vd="askt"]') && !/Ask the agent/.test(document.querySelector(v).textContent), V));
|
|
207
200
|
ok('0 no page error', C.S.errors.length === 0, C.S.errors.join(' | '));
|
|
208
201
|
await C.ctx.close();
|
|
209
202
|
}
|
|
@@ -69,8 +69,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
69
69
|
await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
|
|
70
70
|
await page.goto(BASE + '/premium.html?theme=' + theme);
|
|
71
71
|
await until(() => page.evaluate(() => !!document.querySelector('#czFab')), 15000);
|
|
72
|
-
await page.
|
|
73
|
-
await page.locator('#hmMenu button').filter({ hasText: 'My work' }).first().click();
|
|
72
|
+
await page.evaluate(() => import('/pm/home-work.js').then((M) => { M.openMyWork(); })); // the page itself: Home no longer opens it (testing fixes); an item and Focus open alone
|
|
74
73
|
const up = await until(() => page.evaluate(() => document.querySelectorAll('#czViewer:not([hidden]) .mw-list .wrow').length > 0), 20000);
|
|
75
74
|
return { ctx, page, errors, posts, up, replies, setModel: (m) => { current = m; }, refuse: (f) => { fail = f; }, last: () => posts[posts.length - 1] };
|
|
76
75
|
};
|
|
@@ -348,7 +347,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
348
347
|
await pg.goto(BASE + '/premium-work.html');
|
|
349
348
|
// re-pointed for premium-agreed-design: /premium-work.html opens Home; My work is the card from the place menu, and an added line is opened from Your list
|
|
350
349
|
await until(() => pg.evaluate(() => /\/premium\.html$/.test(location.pathname) && !!document.querySelector('#czFab')), 15000);
|
|
351
|
-
await pg.
|
|
350
|
+
await pg.evaluate(() => import('/pm/home-work.js').then((M) => { M.openMyWork(); })); // the page itself: Home no longer opens it (testing fixes); an item and Focus open alone
|
|
352
351
|
ok('E1 on an empty scratch state My work says the list is empty and Focus has nothing to suggest', await until(() => pg.evaluate(() => /Nothing is open/.test((document.querySelector('#czViewer .mw-list') || {}).textContent || '') && /Nothing to suggest/.test(document.querySelector('#xFocus .xfq').getAttribute('aria-label'))), 20000));
|
|
353
352
|
await pg.fill('#hxLine', 'Reply to Rina about SSO !p1'); await pg.click('#czViewer [data-x="add"]');
|
|
354
353
|
await until(() => pg.evaluate(() => !!document.querySelector('.mw-list .wrh')), 8000);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" data-pm-page-theme="light">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="pmos-nonce" content="" />
|
|
7
|
+
<title>PMOS capture</title>
|
|
8
|
+
<!-- The popup of the PMOS Chrome extension (extension/popup.js frames /console.html?capture=1&pop=1). The console is
|
|
9
|
+
deleted (workspace-legacy-cleanup); the server serves this page for that address only, and pm/c3-capture.js is the
|
|
10
|
+
whole page. The nonce meta is filled by the server, so Add carries it. -->
|
|
11
|
+
<link rel="stylesheet" href="/pm/tokens.css" />
|
|
12
|
+
<style>
|
|
13
|
+
html { background: var(--background); }
|
|
14
|
+
body { margin: 0; background: var(--background); color: var(--foreground); }
|
|
15
|
+
noscript { display: block; padding: 16px; font-family: var(--font-mono, monospace); }
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="c3-root" class="c3 c3pg" data-pm-theme="light"></div>
|
|
20
|
+
<noscript>This page needs JavaScript.</noscript>
|
|
21
|
+
<script type="module" src="/pm/c3-capture.js"></script>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* pm/c3-base.js — the console3 look that more than My work uses: console3.css, the icon sprite and the phone class.
|
|
2
|
+
* It was in pm-work-view.js (My work). It is here so that the notes engine and the sheets do not load My work
|
|
3
|
+
* (workspace-legacy-cleanup). pm-work-view.js re-exports it. */
|
|
4
|
+
|
|
5
|
+
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
6
|
+
/* The mockup's icon sprite (console3.html lines 970 to 1026, ids renamed c3i-*, plus the c3 layer's edit and trash). */
|
|
7
|
+
const SPRITE = '<symbol id="c3i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></symbol><symbol id="c3i-star" viewBox="0 0 24 24"><path d="M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.5 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z"/></symbol><symbol id="c3i-moon" viewBox="0 0 24 24"><path d="M20 14a8 8 0 11-10-10 6 6 0 0010 10z"/></symbol><symbol id="c3i-cal" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="2"/><path d="M4 10h16M8 3v4M16 3v4"/></symbol><symbol id="c3i-inbox" viewBox="0 0 24 24"><path d="M4 13l2-8h12l2 8M4 13v6h16v-6M4 13h5l1 2h4l1-2h5"/></symbol><symbol id="c3i-todo" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="M8 12l3 3 5-6"/></symbol><symbol id="c3i-init" viewBox="0 0 24 24"><path d="M12 3l9 5-9 5-9-5 9-5zM3 13l9 5 9-5"/></symbol><symbol id="c3i-report" viewBox="0 0 24 24"><path d="M5 20V10M12 20V4M19 20v-7"/></symbol><symbol id="c3i-notes" viewBox="0 0 24 24"><path d="M6 3h9l4 4v14H6zM14 3v5h5M9 13h7M9 17h5"/></symbol><symbol id="c3i-user" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4 4-6 8-6s8 2 8 6"/></symbol><symbol id="c3i-doc" viewBox="0 0 24 24"><path d="M6 3h9l4 4v14H6zM14 3v5h5"/></symbol><symbol id="c3i-sheet" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="2"/><path d="M4 10h16M4 15h16M10 4v16"/></symbol><symbol id="c3i-img" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="9" cy="10" r="2"/><path d="M21 16l-5-5-9 9"/></symbol><symbol id="c3i-pdf" viewBox="0 0 24 24"><path d="M6 3h9l4 4v14H6zM14 3v5h5M9 15h6M9 18h4"/></symbol><symbol id="c3i-term" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M7 9l3 3-3 3M13 15h4"/></symbol><symbol id="c3i-branch" viewBox="0 0 24 24"><circle cx="6" cy="5" r="2"/><circle cx="6" cy="19" r="2"/><circle cx="18" cy="9" r="2"/><path d="M6 7v10M18 11c0 4-6 3-12 6"/></symbol><symbol id="c3i-repo" viewBox="0 0 24 24"><path d="M5 4h11a3 3 0 013 3v13H8a3 3 0 01-3-3zM5 17a3 3 0 013-3h11"/></symbol><symbol id="c3i-flag" viewBox="0 0 24 24"><path d="M6 21V4M6 5h11l-2 4 2 4H6"/></symbol><symbol id="c3i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol><symbol id="c3i-alert" viewBox="0 0 24 24"><path d="M12 3l10 18H2zM12 10v5M12 18v.5"/></symbol><symbol id="c3i-check" viewBox="0 0 24 24"><path d="M5 12l5 5 9-10"/></symbol><symbol id="c3i-x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18"/></symbol><symbol id="c3i-eye" viewBox="0 0 24 24"><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></symbol><symbol id="c3i-undo" viewBox="0 0 24 24"><path d="M4 12a8 8 0 108-8M4 4v6h6"/></symbol><symbol id="c3i-out" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></symbol><symbol id="c3i-shield" viewBox="0 0 24 24"><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/></symbol><symbol id="c3i-mic" viewBox="0 0 24 24"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0014 0M12 18v3"/></symbol><symbol id="c3i-clip" viewBox="0 0 24 24"><rect x="6" y="4" width="12" height="17" rx="2"/><path d="M9 4h6v3H9zM9 12h6M9 16h4"/></symbol><symbol id="c3i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-5-5"/></symbol><symbol id="c3i-phone" viewBox="0 0 24 24"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 18h2"/></symbol><symbol id="c3i-cloud" viewBox="0 0 24 24"><path d="M7 18a4 4 0 010-8 5 5 0 019.6-1A4.5 4.5 0 0117 18z"/></symbol><symbol id="c3i-bolt" viewBox="0 0 24 24"><path d="M13 2L4 14h7l-1 8 9-12h-7z"/></symbol><symbol id="c3i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol><symbol id="c3i-scale" viewBox="0 0 24 24"><path d="M12 3v18M5 7h14M5 7l-3 7a3 3 0 006 0zM19 7l-3 7a3 3 0 006 0z"/></symbol><symbol id="c3i-reply" viewBox="0 0 24 24"><path d="M9 7L4 12l5 5M4 12h10a6 6 0 016 6"/></symbol><symbol id="c3i-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/></symbol><symbol id="c3i-wait" viewBox="0 0 24 24"><path d="M7 3h10M7 21h10M8 3c0 5 8 5 8 9s-8 4-8 9"/></symbol><symbol id="c3i-up" viewBox="0 0 24 24"><path d="M7 11v9H4v-9zM7 11l4-8c2 0 3 1 3 3v3h5a2 2 0 012 2l-1 6a2 2 0 01-2 2H7"/></symbol><symbol id="c3i-cols" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16M15 4v16"/></symbol><symbol id="c3i-fold" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16"/></symbol><symbol id="c3i-spark" viewBox="0 0 24 24"><path d="M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z"/></symbol><symbol id="c3i-target" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="5"/><circle cx="12" cy="12" r="1"/></symbol><symbol id="c3i-filter" viewBox="0 0 24 24"><path d="M3 5h18l-7 8v6l-4-2v-4z"/></symbol><symbol id="c3i-mail" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 7l9 6 9-6"/></symbol><symbol id="c3i-lock" viewBox="0 0 24 24"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 018 0v3"/></symbol><symbol id="c3i-play" viewBox="0 0 24 24"><path d="M7 4l13 8-13 8z"/></symbol><symbol id="c3i-stop" viewBox="0 0 24 24"><rect x="6" y="6" width="12" height="12" rx="1"/></symbol><symbol id="i-pause" viewBox="0 0 24 24"><path d="M8 5v14M16 5v14"/></symbol><symbol id="c3i-prev" viewBox="0 0 24 24"><path d="M15 6l-6 6 6 6"/></symbol><symbol id="c3i-next" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6"/></symbol><symbol id="c3i-tree" viewBox="0 0 24 24"><path d="M5 4h7v4H5zM13 10h7v4h-7zM13 17h7v4h-7zM8 8v11h5M8 12h5"/></symbol><symbol id="c3i-org" viewBox="0 0 24 24"><path d="M9 3h6v5H9zM3 16h6v5H3zM15 16h6v5h-6zM12 8v4M6 16v-4h12v4"/></symbol><symbol id="c3i-drop" viewBox="0 0 24 24"><path d="M12 3c4 5 6 8 6 11a6 6 0 01-12 0c0-3 2-6 6-11z"/></symbol><symbol id="c3i-more" viewBox="0 0 24 24"><path d="M5 12h.01M12 12h.01M19 12h.01" stroke-width="3"/></symbol><symbol id="c3i-zin" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-5-5M8 11h6M11 8v6"/></symbol><symbol id="c3i-zout" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-5-5M8 11h6"/></symbol><symbol id="c3i-bell" viewBox="0 0 24 24"><path d="M6 17v-6a6 6 0 0112 0v6l2 2H4zM10 21h4"/></symbol><symbol id="c3i-vol" viewBox="0 0 24 24"><path d="M4 9v6h4l5 4V5L8 9zM16.5 8.5a5 5 0 010 7M19 6a8.5 8.5 0 010 12"/></symbol><symbol id="c3i-menu" viewBox="0 0 24 24"><path d="M4 7h16M4 12h16M4 17h16"/></symbol><symbol id="c3i-edit" viewBox="0 0 24 24"><path d="M4 20h4L19 9l-4-4L4 16v4zM13.5 6.5l4 4"/></symbol><symbol id="c3i-trash" viewBox="0 0 24 24"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"/></symbol><symbol id="c3i-bold" viewBox="0 0 24 24"><path d="M7 4h6a4 4 0 010 8H7zM7 12h7a4 4 0 010 8H7z"/></symbol><symbol id="c3i-italic" viewBox="0 0 24 24"><path d="M10 4h8M6 20h8M14 4l-4 16"/></symbol><symbol id="c3i-code" viewBox="0 0 24 24"><path d="M8 7l-5 5 5 5M16 7l5 5-5 5"/></symbol><symbol id="c3i-link" viewBox="0 0 24 24"><path d="M10 14a4 4 0 006 0l3-3a4 4 0 00-6-6l-1 1M14 10a4 4 0 00-6 0l-3 3a4 4 0 006 6l1-1"/></symbol><symbol id="c3i-ul" viewBox="0 0 24 24"><path d="M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01" /></symbol><symbol id="c3i-ol" viewBox="0 0 24 24"><path d="M10 6h10M10 12h10M10 18h10M4 4h1v4M4 8h2M4 14.5c0-1 2-1 2 0s-2 2-2 3.5h2"/></symbol><symbol id="c3i-task" viewBox="0 0 24 24"><rect x="3" y="4" width="6" height="6" rx="1"/><path d="M4.5 7l1 1 2-2M12 7h9M3 14h6v6H3zM12 17h9"/></symbol><symbol id="c3i-quote" viewBox="0 0 24 24"><path d="M4 6h16M8 12h12M8 18h12M4 11v8"/></symbol><symbol id="c3i-table" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 10h18M3 15h18M10 4v16"/></symbol><symbol id="c3i-hr" viewBox="0 0 24 24"><path d="M3 12h18M7 6h10M7 18h10"/></symbol><symbol id="c3i-redo" viewBox="0 0 24 24"><path d="M20 12a8 8 0 11-8-8M20 4v6h-6"/></symbol><symbol id="c3i-git" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M3 12h6M15 12h6"/></symbol><symbol id="c3i-md" viewBox="0 0 24 24"><rect x="2" y="5" width="20" height="14" rx="2"/><path d="M6 15V9l3 3 3-3v6M16 9v6M14 13l2 2 2-2"/></symbol><symbol id="c3i-copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 8V5a1 1 0 00-1-1H5a1 1 0 00-1 1v10a1 1 0 001 1h3"/></symbol>';
|
|
8
|
+
|
|
9
|
+
/** Link console3.css once, from this module's own folder (the same way primitives.js links components.css). */
|
|
10
|
+
export function ensureC3Css() {
|
|
11
|
+
if (typeof document === 'undefined' || document.querySelector('link[data-c3]')) return;
|
|
12
|
+
const l = document.createElement('link');
|
|
13
|
+
l.rel = 'stylesheet';
|
|
14
|
+
l.href = new URL('./console3.css', import.meta.url).href;
|
|
15
|
+
l.setAttribute('data-c3', '');
|
|
16
|
+
document.head.appendChild(l);
|
|
17
|
+
if (!document.getElementById('c3-sprite') && document.body) {
|
|
18
|
+
const d = document.createElement('div');
|
|
19
|
+
d.id = 'c3-sprite';
|
|
20
|
+
d.className = 'c3-sprite';
|
|
21
|
+
d.setAttribute('aria-hidden', 'true');
|
|
22
|
+
d.innerHTML = '<svg width="0" height="0" aria-hidden="true"><defs>' + SPRITE + '</defs></svg>';
|
|
23
|
+
document.body.appendChild(d);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** The mockup's ic(): <svg class="ic sm"><use href="#c3i-name"/></svg>. */
|
|
28
|
+
export function c3ic(name, cls) {
|
|
29
|
+
const s = document.createElementNS(SVG_NS, 'svg');
|
|
30
|
+
s.setAttribute('class', 'ic' + (cls ? ' ' + cls : ''));
|
|
31
|
+
s.setAttribute('aria-hidden', 'true');
|
|
32
|
+
const u = document.createElementNS(SVG_NS, 'use');
|
|
33
|
+
u.setAttribute('href', '#c3i-' + name);
|
|
34
|
+
s.appendChild(u);
|
|
35
|
+
return s;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** The mockup's `.ph` phone class, driven by one media query so the view and a real phone behave the same. Returns the stop function. */
|
|
39
|
+
export function c3Phone(root) {
|
|
40
|
+
if (typeof matchMedia !== 'function') return () => {};
|
|
41
|
+
const q = matchMedia('(max-width:640px)');
|
|
42
|
+
const on = () => root.classList.toggle('ph', q.matches);
|
|
43
|
+
on();
|
|
44
|
+
if (q.addEventListener) q.addEventListener('change', on); else q.addListener(on);
|
|
45
|
+
return () => { if (q.removeEventListener) q.removeEventListener('change', on); else q.removeListener(on); };
|
|
46
|
+
}
|
|
47
|
+
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { el } from './dom.js';
|
|
12
12
|
import { icon, pbtn, plural } from './c3-ini-ui.js';
|
|
13
13
|
import { pmGet, pmPost } from './http.js';
|
|
14
|
-
import { ensureC3Css } from './
|
|
14
|
+
import { ensureC3Css } from './c3-base.js';
|
|
15
15
|
|
|
16
16
|
const q = new URLSearchParams(location.search);
|
|
17
17
|
const KIND = ['deck', 'doc', 'page'].includes(q.get('pkind')) ? q.get('pkind') : 'page';
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { el, frag } from './dom.js';
|
|
27
27
|
import { button, ensureComponentsCss } from './primitives.js';
|
|
28
|
-
import { c3ic } from './
|
|
28
|
+
import { c3ic } from './c3-base.js';
|
|
29
29
|
import { makeXp, attachExpand } from './c3-expand.js';
|
|
30
30
|
|
|
31
31
|
export const CATS = ['Discover', 'Plan', 'Do', 'Learn'];
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Pure parts (Node-testable): trapNext, dragDismiss, bodyNodes, DRAG_CLOSE.
|
|
18
18
|
*/
|
|
19
19
|
import { el } from './dom.js';
|
|
20
|
-
import { ensureC3Css, c3ic, c3Phone } from './
|
|
20
|
+
import { ensureC3Css, c3ic, c3Phone } from './c3-base.js';
|
|
21
21
|
|
|
22
22
|
export const DRAG_CLOSE = 90;
|
|
23
23
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Undo button when the action can be taken back. One at a time. Two call shapes: toast('text', undoFn) like the mockup, or
|
|
3
3
|
* toast({ text, actionLabel, onAction, timeout, tone }) for a view that names its own button. The CSS is `.c3 .toast` in console3.css. */
|
|
4
4
|
import { el } from './dom.js';
|
|
5
|
-
import { ensureC3Css } from './
|
|
5
|
+
import { ensureC3Css } from './c3-base.js';
|
|
6
6
|
|
|
7
7
|
let host = null; let timer = null;
|
|
8
8
|
export function toast(arg, undo) {
|
|
@@ -2419,3 +2419,6 @@
|
|
|
2419
2419
|
.c3 [data-c3pg="mentions"] .mn-acts{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-top:4px}
|
|
2420
2420
|
.c3 [data-c3pg="mentions"] .mn-tabs{flex-wrap:wrap;margin-bottom:var(--sp-2)}
|
|
2421
2421
|
.c3 [data-c3pg="mentions"] .sh2{justify-content:space-between}
|
|
2422
|
+
|
|
2423
|
+
/* c3-base.js: the icon sprite holder */
|
|
2424
|
+
.c3-sprite{position:absolute;width:0;height:0;overflow:hidden}
|
|
@@ -104,6 +104,7 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
|
|
|
104
104
|
.hm-ckh b { font-weight: 700; color: var(--cz-ink); } .hm-ckh span { margin-left: auto; color: var(--cz-ink3); }
|
|
105
105
|
.hm-it { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; color: var(--cz-ink2); border: 0; background: none; padding: 0; width: 100%; text-align: left; font-family: var(--cz-sans); }
|
|
106
106
|
.hm-it .l { flex: 1; min-width: 0; }
|
|
107
|
+
.hm-it .l small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--cz-ink3); }
|
|
107
108
|
.hm-it.donerow { cursor: pointer; } .hm-it.donerow .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
108
109
|
.hm-mk { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; box-sizing: border-box; font-size: 11px; font-weight: 800; }
|
|
109
110
|
.hm-mk.done { background: var(--cz-done); color: var(--cz-onsolid); }
|
|
@@ -219,6 +220,10 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
|
|
|
219
220
|
.hm-pmenu[hidden] { display: none; }
|
|
220
221
|
.hm-pmenu button { border: 0 !important; border-radius: 10px !important; text-align: left; }
|
|
221
222
|
.hm-addm { left: 0; right: auto; bottom: 44px; min-width: 240px; } /* the box's + menu: Attach a file, Notes, the terminal */
|
|
223
|
+
/* testing fixes: in the basic box the + sits at the right end of the In: row, so its menu opens from the right edge, never past the screen;
|
|
224
|
+
the floating menu button steps aside while it is open, so nothing covers it */
|
|
225
|
+
.hm-scope .hm-addm { left: auto; right: 0; max-width: calc(100vw - 32px); }
|
|
226
|
+
body:has(.hm-addm:not([hidden])) .cz-fab { visibility: hidden; }
|
|
222
227
|
.hm-addm button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 6px 10px; background: none; color: var(--cz-ink); cursor: pointer; font-family: var(--cz-sans); font-size: 13.5px; }
|
|
223
228
|
.hm-addm button:hover, .hm-addm button:focus-visible { background: var(--cz-well); }
|
|
224
229
|
.hm-addm em { font-style: normal; font-size: 11.5px; color: var(--cz-ink3); }
|
|
@@ -282,9 +287,10 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
282
287
|
@supports (anchor-name: --hm-anc) { .hm-menu { position-anchor: --hm-anc; left: anchor(left); top: anchor(bottom); bottom: auto; margin: 6px 0; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; } }
|
|
283
288
|
/* on a phone the menu is always the sheet at the bottom: the buttons that open it sit low on the screen, so a menu under them would leave it */
|
|
284
289
|
@media (max-width: 760px) { .hm-menu.hm-menu { position-anchor: auto; left: 12px; top: auto; bottom: 12px; margin: 0; }
|
|
285
|
-
.hm-menu.hm-menu.top { left: auto; right: 12px; top: 64px; bottom: auto; max-height: calc(100vh - 80px); } } /* the ⋯ menu of the top bar opens under its button */
|
|
290
|
+
.hm-menu.hm-menu.top { left: auto; right: 12px; top: 64px; bottom: auto; max-height: calc(100vh - 80px); } } /* top: set from the button when it opened the menu */ /* the ⋯ menu of the top bar opens under its button */
|
|
286
291
|
.hm-ml { margin: 6px 10px; font-size: 11px; font-weight: 700; color: var(--cz-ink3); }
|
|
287
|
-
.hm-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px;
|
|
292
|
+
.hm-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; flex-shrink: 0; /* a long row keeps its height in a menu that scrolls (testing fixes: rows drew over each other) */
|
|
293
|
+
padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--cz-ink); cursor: pointer; text-align: left; font-family: var(--cz-sans); font-size: 13.5px; }
|
|
288
294
|
.hm-menu button:hover, .hm-menu button:focus-visible { background: var(--cz-well); }
|
|
289
295
|
.hm-menu em { font-style: normal; font-size: 12px; color: var(--cz-ink3); }
|
|
290
296
|
.hm-toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translate(-50%, 20px); max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 14px; background: var(--cz-ink); color: var(--cz-card); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
|
|
@@ -414,12 +420,14 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
414
420
|
.hm-peek[hidden] { display: none; }
|
|
415
421
|
.hm-peek span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
416
422
|
.hm-peek em { font-style: normal; font-weight: 700; color: var(--cz-blueink); }
|
|
417
|
-
.hm-slash { display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--cz-card); box-shadow: var(--cz-sheet); border: 1px solid var(--cz-hair); }
|
|
423
|
+
.hm-slash { display: flex; flex-direction: column; max-height: min(320px, 45vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 16px; background: var(--cz-card); box-shadow: var(--cz-sheet); border: 1px solid var(--cz-hair); }
|
|
418
424
|
.hm-slash[hidden] { display: none; }
|
|
419
|
-
.hm-slash button { display: flex; align-items:
|
|
425
|
+
.hm-slash button { display: flex; flex-direction: column; align-items: stretch; gap: 1px; min-height: 40px; flex-shrink: 0; padding: 6px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; color: var(--cz-ink); font-family: var(--cz-sans); }
|
|
420
426
|
.hm-slash button[aria-selected="true"], .hm-slash button:hover { background: var(--cz-well); }
|
|
421
427
|
.hm-slash code { font-family: var(--cz-mono); font-size: 12px; color: var(--cz-blueink); }
|
|
422
|
-
.hm-slash em { font-style: normal; font-size: 12px; color: var(--cz-ink3); }
|
|
428
|
+
.hm-slash em { font-style: normal; font-size: 12px; color: var(--cz-ink3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
|
|
429
|
+
.hm-slash .l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
|
|
430
|
+
.hm-slash .l1 b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
423
431
|
.hm-scope + .hm-files { margin-bottom: 6px; }
|
|
424
432
|
/* the phone moment card (home-phone-card.js) at the top of the phone's sheet; not in the Agreed design, so marked Waiting for design */
|
|
425
433
|
.hm-phc { display: grid; gap: 6px; margin: 2px 2px 14px; padding: 14px 16px; border-radius: 18px; background: var(--cz-card); box-shadow: inset 3px 0 0 var(--cz-blue), var(--cz-float); color: var(--cz-ink); }
|
|
@@ -440,6 +448,13 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
440
448
|
.hm-phc .phstats div { display: grid; padding: 8px 10px; border-radius: 12px; background: var(--cz-well); }
|
|
441
449
|
.hm-phc .phstats b { font-size: 20px; }
|
|
442
450
|
.hm-phc .phstats span { font-size: 12px; color: var(--cz-ink3); }
|
|
451
|
+
/* the evening recap's What moved: plain rows, a quiet kind word, the text clamped to two lines, where it came from under it */
|
|
452
|
+
.hm-phc .phmv { display: grid; gap: 8px; margin-top: 4px; }
|
|
453
|
+
.hm-phc .phmv p { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--cz-ink); }
|
|
454
|
+
.hm-phc .phmv p b { font-size: 12px; font-weight: 700; color: var(--cz-ink3); }
|
|
455
|
+
.hm-phc .phmv p span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
456
|
+
.hm-phc .phmv p em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
457
|
+
.hm-phc .phq { color: var(--cz-ink3); }
|
|
443
458
|
|
|
444
459
|
/* the first-run card after an import (premium-first.js): plain, Waiting for design */
|
|
445
460
|
.hm-first { display: grid; gap: 8px; margin: 2px 2px 14px; padding: 14px 16px; border-radius: 18px; background: var(--cz-card); box-shadow: var(--cz-float); color: var(--cz-ink); }
|
|
@@ -134,9 +134,9 @@ body.cz-home .hm-r.lr .hm-tile { width: 32px; height: 32px; }
|
|
|
134
134
|
.hm-all { display: none; }
|
|
135
135
|
|
|
136
136
|
/* ── the small menus: the products picker and Later (home-app.js menu()) ── */
|
|
137
|
-
.hm-menu .ut-mi { flex-direction: row; align-items: center; gap: 10px; min-height: 40px; }
|
|
137
|
+
.hm-menu .ut-mi { flex-shrink: 0; flex-direction: row; align-items: center; gap: 10px; min-height: 40px; }
|
|
138
138
|
.hm-menu .ut-mi.tall { min-height: 52px; }
|
|
139
|
-
.hm-menu .ut-mi > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
139
|
+
.hm-menu .ut-mi > span:not(.ut-it) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
140
140
|
.hm-menu .ut-mi .k { margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; flex: none; }
|
|
141
141
|
.hm-menu .ut-mi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--cz-ink2); flex: none; }
|
|
142
142
|
.hm-menu .ut-it { width: 28px; height: 28px; border-radius: 9px; background: var(--cz-well2); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
|
|
@@ -215,3 +215,6 @@ body.cz-home .hm-r.lr .hm-tile { width: 32px; height: 32px; }
|
|
|
215
215
|
.ut-dec .ut-acts .ut-btn { height: 48px; }
|
|
216
216
|
}
|
|
217
217
|
.hm-top .hm-back { display: none; }
|
|
218
|
+
/* the Focus chip beside the filters (testing fixes: it came over from the My work page) */
|
|
219
|
+
.hm-flt .hm-fc { margin-left: auto; }
|
|
220
|
+
.hm-flt .hm-fc em { font-style: normal; color: var(--cz-ink3); font-weight: 600; }
|
|
@@ -52,14 +52,16 @@ const svg = (d, w) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBo
|
|
|
52
52
|
const V = { el: null, cur: null, back: null, subs: [] };
|
|
53
53
|
|
|
54
54
|
/** The header's markup for one item; pure, so a unit test can read it. */
|
|
55
|
+
/** "PRD" over "PRD", or "File · plans/x.md" over "x.md": the kind is left out when it only repeats the title */
|
|
56
|
+
const sameAs = (kind, title) => { const k = String(kind || '').trim().toLowerCase().replace(/^file · /, ''), t = String(title || '').trim().toLowerCase(); return !!t && (k === t || k.split('/').pop() === t || k.split('/').pop().replace(/\.[a-z]+$/, '') === t); };
|
|
55
57
|
export function headHtml(it) {
|
|
56
58
|
const o = it || {};
|
|
57
59
|
const nm = o.full ? 'Open full' : 'Open in a new tab', ico = o.full ? OPEN_FULL : OPEN_NEW, cls = o.full ? 'cz-vw-ib cz-vw-wide' : 'cz-vw-ib';
|
|
58
60
|
const tab = o.url
|
|
59
61
|
? `<button type="button" class="${cls}" data-cz-vw="tab" aria-label="${nm}" title="${nm}">${svg(ico, 16)}</button>`
|
|
60
|
-
:
|
|
62
|
+
: ''; // no greyed "Open in a new tab" when there is nothing to open: it read as a second share button (testing fixes)
|
|
61
63
|
return `<span class="cz-vw-tile" aria-hidden="true">${svg(path(o.icon), 18)}</span>`
|
|
62
|
-
+ `<div class="cz-vw-t${o.full ? ' cz-vw-t2' : ''}"
|
|
64
|
+
+ `<div class="cz-vw-t${o.full ? ' cz-vw-t2' : ''}">${o.kind && !sameAs(o.kind, o.title) ? `<p class="cz-vw-kind">${esc(o.kind)}</p>` : ''}<h3 class="cz-vw-title" id="czVwTitle">${esc(o.title || '')}</h3></div>`
|
|
63
65
|
+ tab
|
|
64
66
|
+ `<button type="button" class="cz-vw-ib" data-cz-vw="close" aria-label="Close the viewer" title="Close the viewer">${svg(CLOSE, 16)}</button>`;
|
|
65
67
|
}
|
|
@@ -252,3 +252,12 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
252
252
|
--well:var(--cz-well);--solid:var(--cz-blueink);--on-solid:var(--cz-card);--spot:var(--cz-bluebg);--bad:var(--cz-red);--sans:var(--cz-sans);--mono:var(--cz-mono);--card-shadow:var(--cz-lift)}
|
|
253
253
|
/* the report slide kicker (ReportPanel.dc.html): 20px, 700 */
|
|
254
254
|
.sl-cv[data-th="report"] .r-kicker .sl-tx{display:inline-block;width:auto;height:auto;padding:6px 16px;border-radius:8px;background:var(--sso);color:var(--sfg);font-size:20px;font-weight:700;letter-spacing:.06em}
|
|
255
|
+
|
|
256
|
+
/* testing fixes: a phone zooms the page into any field typed in under 16 px, and the page then sits off the screen's right edge with
|
|
257
|
+
the keyboard open. On a touch screen every field is at least 16 px. */
|
|
258
|
+
@media (hover: none) and (pointer: coarse) {
|
|
259
|
+
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px !important; }
|
|
260
|
+
}
|
|
261
|
+
/* testing fixes: nothing may widen the page on a phone (a menu past the right edge made the whole page zoom out) */
|
|
262
|
+
/* on body only: an overflow set on html stops body.cz-home's overflow:hidden from reaching the viewport, and the whole page then scrolls */
|
|
263
|
+
@media (max-width: 760px) { body { overflow-x: clip; } }
|
|
@@ -9,8 +9,12 @@ export const SLASH = [
|
|
|
9
9
|
{ cmd: '/compact', name: 'Compact the conversation', say: 'Claude Code summarises the conversation so far to free room.' },
|
|
10
10
|
{ cmd: '/clear', name: 'Clear the conversation', say: 'Claude Code starts again with an empty context in the same session.' },
|
|
11
11
|
];
|
|
12
|
+
/* every command Claude Code takes (GET /api/slash-commands: its own, the workspace's and the PM's commands and skills), read once;
|
|
13
|
+
* until it answers, and when it cannot, the three above */
|
|
14
|
+
let ALL = null;
|
|
15
|
+
export function loadSlash(get) { if (ALL || !get) return Promise.resolve(ALL); return get('/api/slash-commands').then((r) => { if (r && r.ok && Array.isArray(r.commands) && r.commands.length) ALL = r.commands; return ALL; }).catch(() => null); }
|
|
12
16
|
/** The menu items for what is in the box, or [] when the menu stays shut (no leading `/`, or a space typed). */
|
|
13
|
-
export const slashMatches = (v) => (/^\/[a-
|
|
17
|
+
export const slashMatches = (v) => (/^\/[a-z0-9:_.-]*$/i.test(String(v || '')) ? (ALL || SLASH).filter((x) => x.cmd.toLowerCase().startsWith(String(v).toLowerCase())) : []);
|
|
14
18
|
|
|
15
19
|
/** { text, block }: the words with the last `pmos-goal` block taken out, and that block parsed (null when there is none or it does not parse). */
|
|
16
20
|
export function splitGoal(text) {
|