rvlib-shipkit 2.29.0 → 2.30.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/CHANGELOG.md +20 -1
- package/package.json +2 -1
- package/src/advisors/app-graph.ts +1 -1
- package/src/advisors/expose.ts +5 -1
- package/src/advisors/r2.ts +7 -9
- package/src/advisors/routes.ts +29 -2
- package/src/advisors/scan.ts +11 -0
- package/src/agent-time/accounts-usage.ts +8 -0
- package/src/agent-time/claude-sessions.ts +32 -0
- package/src/agent-time/hooks.ts +1 -1
- package/src/agent-time/live.ts +5 -2
- package/src/agent-time/registry.ts +186 -89
- package/src/agent-time/store.ts +6 -4
- package/src/asks/ask-doc.ts +2 -2
- package/src/asks/ask-store.ts +22 -7
- package/src/check.ts +9 -1
- package/src/checks/SK001-package-json-shape.check.ts +1 -0
- package/src/checks/SK003-claude-md-shape.check.ts +1 -0
- package/src/checks/SK004-gitignore-policy.check.ts +12 -6
- package/src/checks/SK008-reviewer-agent.check.ts +4 -7
- package/src/checks/SK013-one-way-in-policy.check.ts +1 -0
- package/src/checks/SK017-vscode-hub-task.check.ts +1 -0
- package/src/checks/SK024-identity-colors.check.ts +1 -1
- package/src/checks/SK027-agent-wiki-links.check.ts +2 -1
- package/src/checks/SK033-global-contribution.check.ts +1 -0
- package/src/checks/SK034-commit-gates-armed.check.ts +1 -0
- package/src/checks/SK039-vscode-watch-generated.check.ts +1 -0
- package/src/checks/SK049-thread-answers-hook.check.ts +9 -5
- package/src/checks/SK050-retired-commands.check.ts +1 -0
- package/src/checks/SK051-no-formatter.check.ts +1 -0
- package/src/cli/channel-run.ts +17 -0
- package/src/cli/cmd_Advisors.ts +28 -7
- package/src/cli/cmd_Asks.ts +2 -2
- package/src/cli/cmd_Backup.ts +5 -1
- package/src/cli/cmd_CacheAudit.ts +1 -1
- package/src/cli/cmd_Channel.ts +43 -0
- package/src/cli/cmd_GlobalProcesses.ts +1 -0
- package/src/cli/cmd_Home.ts +12 -5
- package/src/cli/cmd_Hooks.ts +1 -1
- package/src/cli/cmd_Hq.ts +43 -0
- package/src/cli/cmd_Lanes.ts +15 -3
- package/src/cli/cmd_Media.ts +8 -3
- package/src/cli/cmd_Orchestrator.ts +253 -84
- package/src/cli/cmd_OrchestratorRole.ts +163 -0
- package/src/cli/cmd_Review.ts +142 -165
- package/src/cli/cmd_Secret.ts +44 -14
- package/src/cli/cmd_Shot.ts +2 -4
- package/src/cli/cmd_Sound.ts +1 -0
- package/src/cli/cmd_Urls.ts +3 -3
- package/src/cli/inbox-hook-run.ts +109 -0
- package/src/cli/registry.ts +6 -2
- package/src/cli/review-here.ts +136 -0
- package/src/cli.ts +45 -14
- package/src/collections/actions.ts +5 -4
- package/src/collections/checks.ts +5 -0
- package/src/collections/collection-types.ts +4 -3
- package/src/collections/pings.ts +4 -1
- package/src/collections/providers.ts +6 -4
- package/src/collections/tests.ts +7 -4
- package/src/core/app-icon-frame.ts +62 -0
- package/src/core/app-icon.ts +179 -17
- package/src/core/archived.ts +10 -7
- package/src/core/check-ctx.ts +38 -4
- package/src/core/check-pass.ts +7 -0
- package/src/core/foreign.ts +87 -0
- package/src/core/gui-color.ts +75 -0
- package/src/core/hub-theme.ts +1 -3
- package/src/core/layout.ts +3 -0
- package/src/core/machine-commit.ts +9 -1
- package/src/core/one-lib.ts +2 -1
- package/src/core/one-way-in-policy.ts +17 -12
- package/src/core/owner-word-policy.ts +123 -0
- package/src/core/panel-shades.ts +140 -0
- package/src/core/repo-gui-color.ts +16 -0
- package/src/core/role-policy.ts +17 -0
- package/src/core/scope.ts +6 -3
- package/src/core/tmux-policy.ts +264 -0
- package/src/core/unit-icon.ts +43 -0
- package/src/fleet/push-fleet.ts +2 -0
- package/src/fleet/scan-fleet.ts +3 -0
- package/src/gate/cache-audit.ts +7 -1
- package/src/gate/gate-checks.ts +14 -9
- package/src/gate/run-fix.ts +30 -5
- package/src/gate/run-fixers.ts +8 -3
- package/src/home/activity-shape.ts +2 -0
- package/src/home/activity.ts +2 -1
- package/src/home/daemon-guard.ts +20 -2
- package/src/home/daemon-jobs.ts +26 -18
- package/src/home/gui-app/ShipkitGui.swift +2012 -144
- package/src/home/gui-app/icon.svg +8 -0
- package/src/home/gui-app.ts +94 -30
- package/src/home/home-routes.ts +53 -9
- package/src/home/home-start.ts +27 -3
- package/src/home/inbox-shape.ts +7 -3
- package/src/home/log-follow.ts +117 -0
- package/src/home/machine-fold.ts +1 -1
- package/src/home/open-app.ts +9 -3
- package/src/home/page-build.ts +5 -1
- package/src/home/page-held.ts +1 -1
- package/src/home/pm-config.ts +0 -8
- package/src/home/pm.ts +62 -5
- package/src/home/process-apps.ts +70 -23
- package/src/home/process-rows.ts +16 -1
- package/src/home/push-sources.ts +18 -13
- package/src/home/resources.ts +16 -7
- package/src/home/run-daemon.ts +4 -1
- package/src/home/run-pm.ts +1 -1
- package/src/home/serve-daemon.ts +13 -4
- package/src/home/serve-web.ts +141 -17
- package/src/home/space-page.ts +3 -3
- package/src/home/space-route.ts +2 -2
- package/src/home/supervise.ts +2 -1
- package/src/home/vault-page.ts +2 -1
- package/src/home/web-places.ts +239 -0
- package/src/home/widgets.ts +16 -2
- package/src/hooks/commit-message.ts +11 -9
- package/src/hooks/one-way-in-guard.ts +145 -68
- package/src/hooks/run-hooks.ts +15 -5
- package/src/hooks/shared-file.ts +273 -83
- package/src/hooks/shell-writes.ts +620 -0
- package/src/hooks/write-log.ts +149 -0
- package/src/hq/door-route.ts +63 -7
- package/src/hq/door.ts +45 -12
- package/src/hq/history-send.ts +3 -1
- package/src/hq/hq-db.ts +10 -3
- package/src/hq/hq-local.ts +24 -5
- package/src/hq/hq-routes.ts +3 -1
- package/src/hq/hq-store.ts +9 -3
- package/src/hq/kinds/index.ts +2 -1
- package/src/hq/kinds/kind.ts +9 -4
- package/src/hq/kinds/presence-rule.ts +56 -0
- package/src/hq/kinds/presence.ts +210 -0
- package/src/hq/kinds/report.ts +8 -5
- package/src/hq/lead-order.ts +68 -0
- package/src/hq/outbox.ts +7 -0
- package/src/hq/replica.ts +5 -7
- package/src/hq/report-facts.ts +14 -7
- package/src/hq/report.ts +47 -2
- package/src/hq/switch.ts +1 -0
- package/src/hq/terminal-hop.ts +64 -0
- package/src/hq/thread-sync.ts +13 -6
- package/src/http/door-forward.ts +10 -12
- package/src/http/door-names.ts +9 -0
- package/src/http/hop-caller.ts +23 -0
- package/src/http/hop-names.ts +14 -0
- package/src/http/loopback-serve.ts +28 -6
- package/src/http/owner-word.ts +128 -0
- package/src/http/same-origin.ts +12 -0
- package/src/{serve → http}/secret-gate.ts +3 -3
- package/src/ledger/run-log.ts +25 -1
- package/src/media-store/backup/sources.ts +53 -6
- package/src/media-store/backup/thread-copy.ts +9 -5
- package/src/media-store/copy/config.ts +10 -9
- package/src/media-store/daemon.ts +5 -2
- package/src/media-store/put.ts +3 -0
- package/src/media-store/space.ts +14 -16
- package/src/media-store/upload.ts +4 -0
- package/src/messages/collection.ts +2 -2
- package/src/messages/model.ts +6 -1
- package/src/messages/routes.ts +3 -0
- package/src/orchestrator/brief.md +8 -6
- package/src/orchestrator/channel-declare.ts +58 -0
- package/src/orchestrator/channel.ts +226 -0
- package/src/orchestrator/guards.ts +12 -3
- package/src/orchestrator/host.ts +35 -0
- package/src/orchestrator/lead-shape.ts +86 -0
- package/src/orchestrator/now.ts +88 -0
- package/src/orchestrator/phone.ts +4 -1
- package/src/orchestrator/places-file.ts +38 -0
- package/src/orchestrator/places-look.ts +180 -0
- package/src/orchestrator/places-shape.ts +151 -0
- package/src/orchestrator/places.ts +50 -0
- package/src/orchestrator/presence-shape.ts +13 -2
- package/src/orchestrator/presence.ts +26 -15
- package/src/orchestrator/push.ts +5 -10
- package/src/orchestrator/role-shape.ts +270 -0
- package/src/orchestrator/role.ts +242 -0
- package/src/orchestrator/routes.ts +136 -31
- package/src/orchestrator/sessions-shape.ts +78 -0
- package/src/orchestrator/sessions.ts +86 -0
- package/src/orchestrator/share.ts +71 -0
- package/src/orchestrator/start-notice.ts +61 -0
- package/src/orchestrator/start.ts +137 -0
- package/src/orchestrator/started.ts +55 -0
- package/src/orchestrator/stuck.ts +196 -0
- package/src/orchestrator/unheard.ts +18 -7
- package/src/pages/frame-client.ts +44 -6
- package/src/problems/failure-words.ts +80 -0
- package/src/release/run-bump.ts +26 -5
- package/src/release/run-release.ts +34 -14
- package/src/repo-config.ts +37 -9
- package/src/review/aside-at.ts +19 -0
- package/src/review/band.ts +3 -3
- package/src/review/doc-save.ts +1 -1
- package/src/review/inbox-hook.ts +12 -4
- package/src/review/inbox-read.ts +20 -7
- package/src/review/instruction-guards.ts +137 -0
- package/src/review/instructions.ts +14 -2
- package/src/review/item-db.ts +52 -2
- package/src/review/mentions.ts +6 -4
- package/src/review/model.ts +3 -2
- package/src/review/parties.ts +88 -19
- package/src/review/push.ts +32 -15
- package/src/review/routes.ts +12 -4
- package/src/review/secret-route.ts +5 -5
- package/src/review/snooze.ts +1 -16
- package/src/review/store-parties.ts +4 -2
- package/src/review/take-back.ts +2 -1
- package/src/review/threads.ts +13 -2
- package/src/review/unit.ts +3 -2
- package/src/review/view-layout.ts +8 -1
- package/src/review/watchers.ts +25 -4
- package/src/secrets/key-pair.ts +14 -0
- package/src/secrets/lapse.ts +3 -3
- package/src/secrets/manager.ts +5 -1
- package/src/secrets/name-template.ts +83 -0
- package/src/secrets/name.ts +3 -0
- package/src/secrets/read.ts +10 -6
- package/src/secrets/secrets-view.ts +299 -0
- package/src/secrets/who-reads.ts +2 -1
- package/src/serve/frame-part.ts +49 -0
- package/src/serve/hub-app/accounts-line.tsx +33 -45
- package/src/serve/hub-app/activity-st.ts +6 -5
- package/src/serve/hub-app/activity-view.tsx +10 -9
- package/src/serve/hub-app/advice-box.tsx +6 -5
- package/src/serve/hub-app/advisor-app.tsx +2 -0
- package/src/serve/hub-app/advisor-face.tsx +3 -2
- package/src/serve/hub-app/advisor.html +1 -0
- package/src/serve/hub-app/advisors-view.tsx +52 -10
- package/src/serve/hub-app/advisors.css +4 -0
- package/src/serve/hub-app/app-bridge.ts +31 -5
- package/src/serve/hub-app/asked-page.ts +24 -0
- package/src/serve/hub-app/asks-page.tsx +10 -6
- package/src/serve/hub-app/auto-text.tsx +7 -5
- package/src/serve/hub-app/card-head.tsx +3 -2
- package/src/serve/hub-app/check-view.tsx +10 -9
- package/src/serve/hub-app/checks-svc.ts +96 -32
- package/src/serve/hub-app/clock-svc.ts +24 -8
- package/src/serve/hub-app/code-copy.ts +1 -1
- package/src/serve/hub-app/col-card.tsx +2 -1
- package/src/serve/hub-app/col-list-page.tsx +12 -6
- package/src/serve/hub-app/col-list-st.ts +12 -2
- package/src/serve/hub-app/col-tables-view.tsx +8 -44
- package/src/serve/hub-app/col-tables.ts +0 -14
- package/src/serve/hub-app/cols-svc.ts +6 -12
- package/src/serve/hub-app/columns.ts +94 -0
- package/src/serve/hub-app/comfy-view.tsx +8 -7
- package/src/serve/hub-app/commands/commands-page.tsx +4 -3
- package/src/serve/hub-app/commands/commands-st.ts +2 -2
- package/src/serve/hub-app/controls.css +69 -23
- package/src/serve/hub-app/cycle-button.tsx +2 -1
- package/src/serve/hub-app/database-st.ts +1 -1
- package/src/serve/hub-app/database-view.tsx +4 -2
- package/src/serve/hub-app/deaf.tsx +27 -0
- package/src/serve/hub-app/dock-st.ts +21 -16
- package/src/serve/hub-app/dock-view.tsx +19 -12
- package/src/serve/hub-app/empty-section.tsx +30 -0
- package/src/serve/hub-app/entry-bar.css +1 -1
- package/src/serve/hub-app/entry-bar.tsx +11 -6
- package/src/serve/hub-app/entry-list.css +32 -0
- package/src/serve/hub-app/entry-list.tsx +123 -0
- package/src/serve/hub-app/entry-pick.ts +1 -1
- package/src/serve/hub-app/entry-sections.ts +140 -0
- package/src/serve/hub-app/event-stream-reader.ts +56 -0
- package/src/serve/hub-app/floating.tsx +68 -14
- package/src/serve/hub-app/geometry-view.tsx +3 -2
- package/src/serve/hub-app/git-view.tsx +3 -2
- package/src/serve/hub-app/hash-route.ts +14 -2
- package/src/serve/hub-app/header-bar.tsx +53 -36
- package/src/serve/hub-app/home-st.ts +131 -14
- package/src/serve/hub-app/home-strip.css +24 -13
- package/src/serve/hub-app/home-strip.tsx +131 -66
- package/src/serve/hub-app/home.html +5 -0
- package/src/serve/hub-app/hub-app.tsx +94 -102
- package/src/serve/hub-app/hub.css +61 -94
- package/src/serve/hub-app/icons.tsx +16 -0
- package/src/serve/hub-app/identities-st.ts +19 -54
- package/src/serve/hub-app/identities-view.tsx +25 -24
- package/src/serve/hub-app/identity-address.ts +2 -2
- package/src/serve/hub-app/in-sight.ts +10 -0
- package/src/serve/hub-app/inbox-st.ts +20 -2
- package/src/serve/hub-app/inbox-view.tsx +16 -9
- package/src/serve/hub-app/inbox.css +1 -0
- package/src/serve/hub-app/index.html +5 -0
- package/src/serve/hub-app/insights-view.tsx +6 -5
- package/src/serve/hub-app/instructions.css +4 -1
- package/src/serve/hub-app/kept-cols.tsx +83 -20
- package/src/serve/hub-app/kept-width.tsx +76 -0
- package/src/serve/hub-app/keys.ts +116 -38
- package/src/serve/hub-app/layout-st.ts +109 -99
- package/src/serve/hub-app/lightbox-zoom.css +36 -0
- package/src/serve/hub-app/list-filter.tsx +15 -6
- package/src/serve/hub-app/list-head.tsx +29 -0
- package/src/serve/hub-app/list-row.ts +8 -0
- package/src/serve/hub-app/list-walk.ts +26 -105
- package/src/serve/hub-app/live-socket.ts +274 -0
- package/src/serve/hub-app/live-sources.ts +189 -0
- package/src/serve/hub-app/live-svc.ts +2 -2
- package/src/serve/hub-app/machine-st.ts +75 -14
- package/src/serve/hub-app/main-panel.css +211 -0
- package/src/serve/hub-app/main-panel.tsx +259 -0
- package/src/serve/hub-app/md.ts +4 -4
- package/src/serve/hub-app/media-svc.ts +5 -5
- package/src/serve/hub-app/media-view.tsx +13 -12
- package/src/serve/hub-app/messages/messages-page.tsx +8 -7
- package/src/serve/hub-app/messages/messages-st.ts +5 -2
- package/src/serve/hub-app/new-thread-st.ts +170 -0
- package/src/serve/hub-app/new-thread.tsx +133 -107
- package/src/serve/hub-app/orchestrator-line.tsx +115 -45
- package/src/serve/hub-app/orchestrator-places.tsx +86 -0
- package/src/serve/hub-app/orchestrator.css +57 -5
- package/src/serve/hub-app/page-keys.ts +107 -68
- package/src/serve/hub-app/page-reload.ts +46 -6
- package/src/serve/hub-app/pages-frames.tsx +40 -3
- package/src/serve/hub-app/pages-svc.ts +3 -1
- package/src/serve/hub-app/palette-st.ts +198 -43
- package/src/serve/hub-app/palette-view.tsx +32 -8
- package/src/serve/hub-app/panel-head-action.tsx +39 -0
- package/src/serve/hub-app/panel-head.tsx +70 -0
- package/src/serve/hub-app/panel-repo.ts +42 -0
- package/src/serve/hub-app/panel-source.ts +195 -0
- package/src/serve/hub-app/panel-tint.css +6 -0
- package/src/serve/hub-app/panel-tint.ts +23 -0
- package/src/serve/hub-app/panel-walk.ts +107 -0
- package/src/serve/hub-app/pill-row.tsx +2 -1
- package/src/serve/hub-app/place-path.ts +4 -0
- package/src/serve/hub-app/places-svc.ts +75 -0
- package/src/serve/hub-app/plan-view.tsx +3 -2
- package/src/serve/hub-app/polled.ts +11 -1
- package/src/serve/hub-app/presence-st.ts +66 -32
- package/src/serve/hub-app/processes-view.tsx +2 -2
- package/src/serve/hub-app/project-bar.tsx +116 -0
- package/src/serve/hub-app/project-list.css +20 -173
- package/src/serve/hub-app/project-list.tsx +30 -298
- package/src/serve/hub-app/projects-svc.ts +59 -32
- package/src/serve/hub-app/push-sign.tsx +2 -1
- package/src/serve/hub-app/push-svc.ts +86 -69
- package/src/serve/hub-app/quiet-st.ts +5 -3
- package/src/serve/hub-app/rail-groups.ts +144 -0
- package/src/serve/hub-app/reader-chips.tsx +2 -1
- package/src/serve/hub-app/recordings-st.ts +2 -1
- package/src/serve/hub-app/recordings-view.tsx +19 -47
- package/src/serve/hub-app/recordings.css +0 -2
- package/src/serve/hub-app/reflections-page.tsx +10 -6
- package/src/serve/hub-app/releases/releases-page.tsx +6 -5
- package/src/serve/hub-app/repo-sections.ts +127 -38
- package/src/serve/hub-app/repo-st.ts +57 -36
- package/src/serve/hub-app/review/advisor-bar.tsx +3 -2
- package/src/serve/hub-app/review/ask-proof.tsx +79 -0
- package/src/serve/hub-app/review/attach-view.tsx +11 -10
- package/src/serve/hub-app/review/box-view.ts +479 -0
- package/src/serve/hub-app/review/box-zoom.tsx +70 -0
- package/src/serve/hub-app/review/diff-view.tsx +3 -2
- package/src/serve/hub-app/review/doc-body.tsx +2 -1
- package/src/serve/hub-app/review/dock.tsx +3 -2
- package/src/serve/hub-app/review/draft-body.tsx +4 -3
- package/src/serve/hub-app/review/faces.tsx +0 -8
- package/src/serve/hub-app/review/group-block.tsx +8 -7
- package/src/serve/hub-app/review/heard-line.tsx +4 -3
- package/src/serve/hub-app/review/instructions-view.tsx +3 -2
- package/src/serve/hub-app/review/item-verdict.tsx +40 -40
- package/src/serve/hub-app/review/kind-states.tsx +5 -4
- package/src/serve/hub-app/review/kit.tsx +24 -4
- package/src/serve/hub-app/review/lane-bar.tsx +30 -28
- package/src/serve/hub-app/review/lightbox.tsx +6 -4
- package/src/serve/hub-app/review/live-bar.tsx +7 -6
- package/src/serve/hub-app/review/live-view.tsx +6 -5
- package/src/serve/hub-app/review/object-card.tsx +2 -1
- package/src/serve/hub-app/review/object-panel.tsx +11 -10
- package/src/serve/hub-app/review/pano-view.tsx +3 -2
- package/src/serve/hub-app/review/question-views.tsx +6 -5
- package/src/serve/hub-app/review/review-cells.tsx +21 -20
- package/src/serve/hub-app/review/review-host.ts +3 -0
- package/src/serve/hub-app/review/review-kit.ts +7 -5
- package/src/serve/hub-app/review/review-list.tsx +98 -52
- package/src/serve/hub-app/review/review-page.tsx +3 -3
- package/src/serve/hub-app/review/review-st.ts +70 -14
- package/src/serve/hub-app/review/review-thread.tsx +234 -138
- package/src/serve/hub-app/review/review-views.tsx +166 -191
- package/src/serve/hub-app/review/space3d.tsx +17 -9
- package/src/serve/hub-app/review/thread-close.tsx +24 -32
- package/src/serve/hub-app/review/thread-st.ts +39 -25
- package/src/serve/hub-app/review/trailer-body.tsx +5 -4
- package/src/serve/hub-app/review/trailer-page.tsx +18 -16
- package/src/serve/hub-app/review/trailer-st.ts +3 -2
- package/src/serve/hub-app/review/trailer-timeline.tsx +10 -9
- package/src/serve/hub-app/review/trailer-voices.tsx +29 -28
- package/src/serve/hub-app/review.css +159 -42
- package/src/serve/hub-app/row-acts.tsx +126 -0
- package/src/serve/hub-app/row-face.tsx +29 -0
- package/src/serve/hub-app/running-rows.tsx +142 -0
- package/src/serve/hub-app/running-st.ts +110 -0
- package/src/serve/hub-app/search-view.tsx +3 -2
- package/src/serve/hub-app/secrets-page.tsx +290 -0
- package/src/serve/hub-app/secrets-st.ts +181 -0
- package/src/serve/hub-app/secrets.css +65 -0
- package/src/serve/hub-app/section-head.tsx +3 -2
- package/src/serve/hub-app/session-chips.tsx +55 -0
- package/src/serve/hub-app/shell.ts +56 -0
- package/src/serve/hub-app/site/site-part.tsx +6 -5
- package/src/serve/hub-app/site/site-st.ts +0 -6
- package/src/serve/hub-app/site.css +0 -1
- package/src/serve/hub-app/social/calendar.tsx +7 -6
- package/src/serve/hub-app/social/comms-page.tsx +29 -26
- package/src/serve/hub-app/social/group-editor.tsx +2 -1
- package/src/serve/hub-app/social/kit.tsx +12 -11
- package/src/serve/hub-app/social/next-release.tsx +3 -2
- package/src/serve/hub-app/social/post-card.tsx +21 -20
- package/src/serve/hub-app/social/post-page.tsx +2 -1
- package/src/serve/hub-app/social/problems.tsx +3 -2
- package/src/serve/hub-app/social/social-page.tsx +29 -27
- package/src/serve/hub-app/social/social-st.ts +4 -2
- package/src/serve/hub-app/social/stage-popup.tsx +11 -10
- package/src/serve/hub-app/social.css +7 -5
- package/src/serve/hub-app/source-acts.ts +79 -0
- package/src/serve/hub-app/source-page.tsx +17 -0
- package/src/serve/hub-app/space-view.tsx +5 -4
- package/src/serve/hub-app/stores/stores-page.tsx +21 -19
- package/src/serve/hub-app/stores/stores-st.ts +1 -1
- package/src/serve/hub-app/stores.css +1 -1
- package/src/serve/hub-app/terminal-history-st.ts +112 -0
- package/src/serve/hub-app/terminal-keys.ts +79 -0
- package/src/serve/hub-app/terminal-lib.ts +110 -0
- package/src/serve/hub-app/terminal-links.ts +55 -0
- package/src/serve/hub-app/terminal-list-st.ts +304 -0
- package/src/serve/hub-app/terminal-log-st.ts +242 -0
- package/src/serve/hub-app/terminal-out.ts +135 -0
- package/src/serve/hub-app/terminal-pages.tsx +115 -0
- package/src/serve/hub-app/terminal-panel.tsx +60 -9
- package/src/serve/hub-app/terminal-sources.tsx +335 -0
- package/src/serve/hub-app/terminal-st.ts +447 -167
- package/src/serve/hub-app/terminal-stream.ts +233 -0
- package/src/serve/hub-app/terminal-tab.tsx +64 -0
- package/src/serve/hub-app/terminal-widths.ts +30 -0
- package/src/serve/hub-app/terminal.css +50 -4
- package/src/serve/hub-app/test-view.tsx +5 -3
- package/src/serve/hub-app/tests-view.tsx +16 -15
- package/src/serve/hub-app/theme-st.ts +5 -0
- package/src/serve/hub-app/thread-row.tsx +39 -31
- package/src/serve/hub-app/time-ago.tsx +3 -2
- package/src/serve/hub-app/time-view.tsx +2 -1
- package/src/serve/hub-app/time.css +1 -1
- package/src/serve/hub-app/timeline-chart.tsx +5 -4
- package/src/serve/hub-app/timeline-view.tsx +10 -9
- package/src/serve/hub-app/tips.ts +247 -0
- package/src/serve/hub-app/tree-build.ts +40 -8
- package/src/serve/hub-app/tree-svc.ts +167 -134
- package/src/serve/hub-app/unit-icons.ts +26 -0
- package/src/serve/hub-app/url-address.ts +154 -0
- package/src/serve/hub-app/url-faces.ts +88 -0
- package/src/serve/hub-app/url-forms.tsx +183 -0
- package/src/serve/hub-app/urls-svc.ts +167 -5
- package/src/serve/hub-app/urls-view.tsx +56 -20
- package/src/serve/hub-app/urls.css +26 -0
- package/src/serve/hub-app/vault-view.tsx +5 -4
- package/src/serve/hub-app/veille/veille-page.tsx +34 -33
- package/src/serve/hub-app/veille/veille-st.ts +6 -3
- package/src/serve/hub-app/view-layout.css +3 -3
- package/src/serve/hub-app/when-view.tsx +5 -4
- package/src/serve/hub-app/wikis-view.tsx +6 -5
- package/src/serve/hub-app/words.tsx +9 -2
- package/src/serve/hub-runtime.ts +3 -2
- package/src/serve/orchestrator-host.ts +58 -0
- package/src/serve/page-live.ts +147 -0
- package/src/serve/project-gutter-route.ts +63 -2
- package/src/serve/read-worker.ts +7 -2
- package/src/serve/runs-stamp.ts +33 -0
- package/src/serve/secrets-read.ts +156 -0
- package/src/serve/serve-hub.ts +71 -22
- package/src/serve/terminal-claudes.ts +185 -0
- package/src/serve/terminal-guard.ts +10 -5
- package/src/serve/terminal-host.ts +517 -0
- package/src/serve/terminal-record.ts +104 -0
- package/src/serve/terminal-route.ts +466 -103
- package/src/serve/terminal-shells.ts +3 -0
- package/src/serve/terminal-watch.ts +102 -0
- package/src/shipkit-files.ts +9 -4
- package/src/shot/client.ts +4 -9
- package/src/shot/shooter.ts +2 -4
- package/src/shot/shot-ask.ts +2 -7
- package/src/shot/shot-theme.ts +6 -17
- package/src/social/routes.ts +2 -2
- package/src/social/writes.ts +3 -0
- package/src/suite/test-units.ts +6 -2
- package/src/trailer/sound/eleven.ts +1 -0
- package/src/urls/added.ts +111 -0
- package/src/urls/icons.ts +294 -0
- package/src/urls/places.ts +139 -0
- package/src/urls/routes.ts +17 -7
- package/src/urls/rows.ts +48 -15
- package/src/urls/unit.ts +57 -3
- package/src/urls/write-routes.ts +207 -0
- package/src/vault/vault-destroy.ts +2 -1
- package/src/vault/vault-import.ts +4 -11
- package/src/vault/vault-restore.ts +3 -2
- package/src/veille/chrome.ts +18 -3
- package/src/veille/identity.ts +6 -0
- package/src/view3d/cam.ts +30 -46
- package/src/view3d/lib.ts +20 -2
- package/src/view3d/viewer.ts +62 -88
- package/src/wiki/agent-paths.ts +2 -1
- package/src/orchestrator/deliver.ts +0 -81
- package/src/orchestrator/drill.ts +0 -129
- package/src/orchestrator/keeper.ts +0 -332
- package/src/orchestrator/pm.ts +0 -20
- package/src/orchestrator/state.ts +0 -92
- package/src/orchestrator/switch.ts +0 -86
- package/src/orchestrator/tmux.ts +0 -82
- package/src/serve/hub-app/rail-fly.tsx +0 -95
- package/src/serve/hub-app/side-lists.ts +0 -72
- package/src/serve/hub-app/sidebar.tsx +0 -62
- package/src/serve/hub-app/tree-row.tsx +0 -125
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
// THE row of a thread in a list, on every page that lists threads (the threads page, the inbox).
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// line: the
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
1
|
+
// THE row of a thread in a list, on every page that lists threads (the threads page, the inbox). The title starts at
|
|
2
|
+
// the row's own padding, the list panel's one token, so every title of a list is on one x and no column sits empty;
|
|
3
|
+
// only where a list spans several projects the project's icon comes first, a small square that differs row to row. ONE
|
|
4
|
+
// icon at most, in the meta line: the verb of his turn (what waits says its name on hover), a dimmer one still owed, or
|
|
5
|
+
// a green check once he validated it all; a picture is a small still beside it. An unread word is a dot in the gutter,
|
|
6
|
+
// the row's left padding. Where a list is wide enough, ONE line: the title cut with an ellipsis (the whole title and
|
|
7
|
+
// the hidden words on hover), then muted at the right the verb and the age, the holder's light on hover. Narrower, the
|
|
8
|
+
// title on two lines at most and one meta line under it, on its x. A thread that waits on nothing of his (no verb)
|
|
9
|
+
// reads idle: a dim title, no glyph. Rows part by a hairline, never a box each. Its look lives in controls.css
|
|
10
|
+
// (.rv-row, .tr*) and nowhere else.
|
|
8
11
|
//
|
|
9
12
|
// the one constraint a reader breaks first: a row carries at most ONE pill, and only for what is exceptional and needs
|
|
10
|
-
// him (broken, on his turn)
|
|
11
|
-
// tests/hub-thread-row.test.ts fails a row that grows a pill
|
|
12
|
-
// a thread row of its own
|
|
13
|
+
// him (broken, on his turn), and at most ONE icon, never one every row of a list wears alike. Who acts now, the lane,
|
|
14
|
+
// the state are muted words, a glyph or a dot, never a pill: tests/hub-thread-row.test.ts fails a row that grows a pill
|
|
15
|
+
// set or a lead icon again, that loses its one line, and a list that draws a thread row of its own
|
|
16
|
+
import { listRow } from './list-row.ts'
|
|
13
17
|
import type { ReactNode } from 'react'
|
|
14
18
|
import { BAND_WORDS, type Band } from '../../review/band.ts'
|
|
15
19
|
import type { OwnerWait } from '../../review/wait.ts'
|
|
@@ -17,6 +21,7 @@ import type { ClockSvc } from './clock-svc.ts'
|
|
|
17
21
|
import { Tip } from './floating.tsx'
|
|
18
22
|
import { Icon, ICON } from './icons.tsx'
|
|
19
23
|
import { TimeAgo } from './time-ago.tsx'
|
|
24
|
+
import { tip } from './tips.ts'
|
|
20
25
|
|
|
21
26
|
/** who acts now on a thread, its band (review/band.ts): his turn, set aside, a live agent, an agent's move nobody works, nobody */
|
|
22
27
|
export type RowTurn = Band
|
|
@@ -27,6 +32,9 @@ export type RowPill = { words: string; tone: 'red' | 'warn'; title?: string }
|
|
|
27
32
|
export type ThreadRowProps = {
|
|
28
33
|
/** the thread's head id, `data-head` on the row */
|
|
29
34
|
head: string
|
|
35
|
+
/** its id in the list panel that draws it (columns.ts listRow): a row of a list the keys step says it; none, a
|
|
36
|
+
* search result */
|
|
37
|
+
row?: string
|
|
30
38
|
title: string
|
|
31
39
|
/** the row the page shows open */
|
|
32
40
|
on?: boolean
|
|
@@ -34,7 +42,7 @@ export type ThreadRowProps = {
|
|
|
34
42
|
muted?: boolean
|
|
35
43
|
/** agent words he has not read */
|
|
36
44
|
unread?: boolean
|
|
37
|
-
/** a real picture's url; no picture, no square */
|
|
45
|
+
/** a real picture's url, a small still in the meta line; no picture, no square */
|
|
38
46
|
thumb?: string | null
|
|
39
47
|
/** the dot of who acts now; leave it out where the group's head already says it */
|
|
40
48
|
turn?: RowTurn
|
|
@@ -44,8 +52,8 @@ export type ThreadRowProps = {
|
|
|
44
52
|
needSays?: string
|
|
45
53
|
/** on an agent's move after his last word, the verb that still waits on him: a dimmer glyph, never his turn */
|
|
46
54
|
owed?: OwnerWait
|
|
47
|
-
/**
|
|
48
|
-
glyph?: { name: string;
|
|
55
|
+
/** what waits on him first (review/object-panel.tsx waitGlyph), said by the verb's glyph on hover: its name, its words */
|
|
56
|
+
glyph?: { name: string; says: string } | null
|
|
49
57
|
/** the project, where a list spans several */
|
|
50
58
|
project?: string
|
|
51
59
|
/** the project's icon (project-list.tsx Face), a small square in front of the lead, where a list spans several */
|
|
@@ -94,31 +102,31 @@ export const owedSays = (v: OwnerWait): string => `${OWED[v]} still waits, after
|
|
|
94
102
|
|
|
95
103
|
/** a verb of his turn as its glyph, the word for a screen reader and on hover: the row, the threads filter and the
|
|
96
104
|
* inbox's « what to do » draw the same four */
|
|
97
|
-
export const VerbGlyph = ({ verb, says, owed }: { verb: OwnerWait; says?: string; owed?: boolean }) => (
|
|
98
|
-
<span className={`trverb v-${verb}${owed ? ' owed' : ''}`}
|
|
105
|
+
export const VerbGlyph = ({ verb, says, owed, waits }: { verb: OwnerWait; says?: string; owed?: boolean; waits?: string }) => (
|
|
106
|
+
<span className={`trverb v-${verb}${owed ? ' owed' : ''}`} {...tip(says ?? verb)} role="img" aria-label={verb} data-waits={waits}><Icon d={ICON[verb]} /></span>
|
|
99
107
|
)
|
|
100
108
|
|
|
101
109
|
export const ThreadRow = (p: ThreadRowProps) => {
|
|
102
110
|
const cls = `rv-row one${p.match != null ? ' matched' : ''}${p.on ? ' on' : ''}${p.muted ? ' muted' : ''}${p.need ? ' waiting' : ' idle'}${p.validated ? ' validated' : ''}`
|
|
111
|
+
// the verb's hover: what waits first, then what the verb asks of him
|
|
112
|
+
const says = [p.glyph?.says, p.needSays].filter((w) => w != null && w !== '').join('\n')
|
|
103
113
|
const body = (
|
|
104
114
|
<>
|
|
105
115
|
{p.unread ? <UnreadDot className="trunread" /> : null}
|
|
106
|
-
{p.face != null ? <span className="trproj"
|
|
107
|
-
<span className="trlead">
|
|
108
|
-
{p.thumb ? (
|
|
109
|
-
<img className="trthumb" src={p.thumb} alt="" loading="lazy" />
|
|
110
|
-
) : p.glyph ? (
|
|
111
|
-
<span className="trglyph" data-glyph={p.glyph.name} title={p.glyph.says} role="img" aria-label={p.glyph.says} {...(p.glyph.hue != null ? { 'data-hue': '', style: { ['--kh' as string]: p.glyph.hue } } : {})}><Icon d={p.glyph.d} /></span>
|
|
112
|
-
) : p.validated ? (
|
|
113
|
-
<span className="trok" title={VALIDATED} role="img" aria-label={VALIDATED}><Icon d={ICON.check} /></span>
|
|
114
|
-
) : null}
|
|
115
|
-
</span>
|
|
116
|
+
{p.face != null ? <span className="trproj" {...tip(p.project)}>{p.face}</span> : null}
|
|
116
117
|
<div className="trbody">
|
|
117
|
-
<div className="rv-rowtitle"
|
|
118
|
+
<div className="rv-rowtitle" {...tip(p.hint ? `${p.title}\n${p.hint}` : p.title)}>{p.title}</div>
|
|
118
119
|
<div className="trmeta">
|
|
119
|
-
{p.turn ? <i className={`trturn turn-${p.turn}`}
|
|
120
|
-
{p.pill ? <span className={`trpill ${p.pill.tone}`}
|
|
121
|
-
{p.
|
|
120
|
+
{p.turn ? <i className={`trturn turn-${p.turn}`} {...tip(TURN_TIP[p.turn])} aria-label={TURN_TIP[p.turn]} /> : null}
|
|
121
|
+
{p.pill ? <span className={`trpill ${p.pill.tone}`} {...tip(p.pill.title)}>{p.pill.words}</span> : null}
|
|
122
|
+
{p.thumb ? <img className="trthumb" src={p.thumb} alt="" loading="lazy" /> : null}
|
|
123
|
+
{p.need ? (
|
|
124
|
+
<VerbGlyph verb={p.need} {...(says ? { says } : {})} {...(p.glyph ? { waits: p.glyph.name } : {})} />
|
|
125
|
+
) : p.owed ? (
|
|
126
|
+
<VerbGlyph verb={p.owed} says={owedSays(p.owed)} owed />
|
|
127
|
+
) : p.validated ? (
|
|
128
|
+
<span className="trok" {...tip(VALIDATED)} role="img" aria-label={VALIDATED}><Icon d={ICON.check} /></span>
|
|
129
|
+
) : null}
|
|
122
130
|
{p.project ? <span className="trm">{p.project}</span> : null}
|
|
123
131
|
{p.holder ? <span className="trm trholder">{p.holder}</span> : null}
|
|
124
132
|
{(p.words ?? []).map((w, i) => <span key={i} className="trm">{w}</span>)}
|
|
@@ -129,8 +137,8 @@ export const ThreadRow = (p: ThreadRowProps) => {
|
|
|
129
137
|
</>
|
|
130
138
|
)
|
|
131
139
|
return p.href != null ? (
|
|
132
|
-
<a ref={p.ref} data-head={p.head} className={cls} href={p.href}
|
|
140
|
+
<a ref={p.ref} data-head={p.head} {...(p.row == null ? {} : listRow(p.row, p.on === true))} className={cls} href={p.href} {...tip(p.tip)} onClick={p.onClick} onPointerEnter={p.onPointerEnter}>{body}</a>
|
|
133
141
|
) : (
|
|
134
|
-
<div ref={p.ref} data-head={p.head} className={cls}
|
|
142
|
+
<div ref={p.ref} data-head={p.head} {...(p.row == null ? {} : listRow(p.row, p.on === true))} className={cls} {...tip(p.tip)} onClick={p.onClick} onPointerEnter={p.onPointerEnter}>{body}</div>
|
|
135
143
|
)
|
|
136
144
|
}
|
|
@@ -6,6 +6,7 @@ import { observer } from 'mobx-react-lite'
|
|
|
6
6
|
import { useMemo } from 'react'
|
|
7
7
|
import { ageWords } from '../../core/words.ts'
|
|
8
8
|
import type { ClockSvc } from './clock-svc.ts'
|
|
9
|
+
import { tip } from './tips.ts'
|
|
9
10
|
|
|
10
11
|
/** the absolute stamp, which is what a reader compares against their own
|
|
11
12
|
* edits. It never moves, so it is not observable */
|
|
@@ -46,7 +47,7 @@ export const Age = observer(({ clock, at, short }: { clock: Pick<ClockSvc, 'now'
|
|
|
46
47
|
|
|
47
48
|
export const TimeAgo = observer(({ clock, at, stamp, short }: { clock: Pick<ClockSvc, 'now'>; at: number; stamp?: boolean; short?: boolean }) => {
|
|
48
49
|
const words = useAge(at, clock, short === true)
|
|
49
|
-
return <span className="ago"
|
|
50
|
+
return <span className="ago" {...tip(stampWords(at))}>{stamp === true ? `${stampWords(at)} ` : ''}{words}</span>
|
|
50
51
|
})
|
|
51
52
|
|
|
52
53
|
/** a moment ahead, in words that move with the clock, with the exact stamp in
|
|
@@ -54,5 +55,5 @@ export const TimeAgo = observer(({ clock, at, stamp, short }: { clock: Pick<Cloc
|
|
|
54
55
|
* component only has to be the thing that observes the tick */
|
|
55
56
|
export const TimeAhead = observer(({ clock, words }: { clock: ClockSvc; words: (now: number) => { words: string; at: number | null } }) => {
|
|
56
57
|
const w = words(clock.now)
|
|
57
|
-
return <span className="ago"
|
|
58
|
+
return <span className="ago" {...tip(w.at == null ? undefined : stampWords(w.at))}>{w.words}</span>
|
|
58
59
|
})
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// The constraint a reader breaks first: the left panel is the page's only
|
|
6
6
|
// navigation, and each entry shows one figure, so the panel alone already
|
|
7
7
|
// answers « what is big ». The address is `/time#<repo>/<entry>`.
|
|
8
|
+
import { listRow } from './list-row.ts'
|
|
8
9
|
import { observer } from 'mobx-react-lite'
|
|
9
10
|
import { Panel, Separator } from 'react-resizable-panels'
|
|
10
11
|
import { ALL, SINCES, type Since } from '../../home/time-page-shape.ts'
|
|
@@ -25,7 +26,7 @@ const EntryList = observer(({ app }: { app: HomeSt }) => {
|
|
|
25
26
|
{entries.map((e, i) => (
|
|
26
27
|
<div key={e.id}>
|
|
27
28
|
{i === 0 || entries[i - 1]?.group !== e.group ? <SectionHead label={e.group} n={entries.filter((x) => x.group === e.group).length} open={st.folds.isOpen(e.group, true)} onFold={() => st.folds.flipFold(e.group, true)} title={null} /> : null}
|
|
28
|
-
{st.entry !== e.id && !st.folds.isOpen(e.group, true) ? null : <button type="button" className={`tventry${st.entry === e.id ? ' on' : ''}`}
|
|
29
|
+
{st.entry !== e.id && !st.folds.isOpen(e.group, true) ? null : <button type="button" className={`tventry${st.entry === e.id ? ' on' : ''}`} {...listRow(e.id, st.entry === e.id)} onClick={() => st.setEntry(e.id)}>
|
|
29
30
|
<Hint tip={TITLES[e.id]}>{e.label}</Hint>
|
|
30
31
|
<em>{d == null ? '' : e.figure(d)}</em>
|
|
31
32
|
</button>}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
.tventry span{overflow:hidden;text-overflow:ellipsis}
|
|
15
15
|
.tventry em{flex:none;font-style:normal;font-size:11.5px;font-variant-numeric:tabular-nums}
|
|
16
16
|
.tventry:hover{background:var(--panel2);color:var(--ink)}
|
|
17
|
-
.tventry.on{
|
|
17
|
+
.tventry.on{color:var(--ink);font-weight:600}
|
|
18
18
|
.tventry.on em{font-weight:400}
|
|
19
19
|
|
|
20
20
|
/* the page of one entry */
|
|
@@ -13,6 +13,7 @@ import type { ChartTip, ChartView } from './chart-view.ts'
|
|
|
13
13
|
import { durationTone, fmtMs } from './dur.ts'
|
|
14
14
|
import { bandLabels, gapSlices, ROWS, ticks, type GapSlice, type PlacedBar, type PlacedGroup, type RowSize } from './timeline-geometry.ts'
|
|
15
15
|
import { CACHED } from '../../core/outcome-words.ts'
|
|
16
|
+
import { tip } from './tips.ts'
|
|
16
17
|
|
|
17
18
|
/** who started a run, in words. A starter this build does not name reads as
|
|
18
19
|
* the word the record holds */
|
|
@@ -277,12 +278,12 @@ export const TimelineChart = observer(({ view, compact = false, rows, follow = f
|
|
|
277
278
|
{body}
|
|
278
279
|
<span className="tlfloat">
|
|
279
280
|
{follow && !view.follow
|
|
280
|
-
? <button className="tllive" onClick={() => view.attach()}
|
|
281
|
+
? <button className="tllive" onClick={() => view.attach()} {...tip('the view stays where it is: a click goes back to now and follows it', FOLLOW_KEY)}>● live</button>
|
|
281
282
|
: null}
|
|
282
283
|
{zoomable ? <span className="seg tlzoom">
|
|
283
|
-
<button onClick={() => zoomBy(1 / 2)} disabled={view.level <= 1}
|
|
284
|
-
<button onClick={() => zoomBy(1 / view.level)} disabled={view.level <= 1}
|
|
285
|
-
<button onClick={() => zoomBy(2)} disabled={view.level >= view.maxZoom}
|
|
284
|
+
<button onClick={() => zoomBy(1 / 2)} disabled={view.level <= 1} {...tip('zoom out')}>−</button>
|
|
285
|
+
<button onClick={() => zoomBy(1 / view.level)} disabled={view.level <= 1} {...tip('fit the whole record')}>fit</button>
|
|
286
|
+
<button onClick={() => zoomBy(2)} disabled={view.level >= view.maxZoom} {...tip('zoom in (or the wheel over the chart)')}>+</button>
|
|
286
287
|
</span> : null}
|
|
287
288
|
</span>
|
|
288
289
|
</div>
|
|
@@ -23,6 +23,7 @@ import { RUNS_TABS, runsTab, runsTabId, type RunsTab } from './runs-tabs.ts'
|
|
|
23
23
|
export { RUNS_TABS, runsTab, runsTabId, type RunsTab }
|
|
24
24
|
import type { Resource } from './hub-types.ts'
|
|
25
25
|
import { Caret } from './icons.tsx'
|
|
26
|
+
import { tip } from './tips.ts'
|
|
26
27
|
|
|
27
28
|
export type TabBadge = { n: number; tone: 'red' | 'warn' | 'zero' }
|
|
28
29
|
|
|
@@ -49,7 +50,7 @@ export const byTag = (by: string): string => BY_TAG[by] ?? by
|
|
|
49
50
|
/** a check's verdict, as the label's colour class: the tree's `tl` tones */
|
|
50
51
|
const verdictTone = (b: TimelineBar): string => (b.status === 'fail' ? 'red' : b.status === 'warn' ? 'warn' : b.status === 'skip' ? 'quiet' : 'ok')
|
|
51
52
|
|
|
52
|
-
const Who = ({ by }: { by: string }) => <span className="rwho"
|
|
53
|
+
const Who = ({ by }: { by: string }) => <span className="rwho" {...tip(`started from ${byWords(by)}`)}>{byTag(by)}</span>
|
|
53
54
|
|
|
54
55
|
const Reds = ({ n }: { n: number }) => <span className="rred">{n > 0 ? `${n} red` : ''}</span>
|
|
55
56
|
|
|
@@ -95,7 +96,7 @@ export function childOrder(bars: readonly TimelineBar[]): TimelineBar[] {
|
|
|
95
96
|
* column its run counts it in */
|
|
96
97
|
const CheckLine = ({ app, b, name }: { app: RepoSt; b: TimelineBar; name: ChildName }) => (
|
|
97
98
|
<div className={`rline rchild${b.status === 'fail' ? ' red' : ''}`} onClick={() => app.timeline.openCheck(b.id)}
|
|
98
|
-
|
|
99
|
+
{...tip([name.description ?? '', `${b.id}: ${verdictWords(b)}`, stampWords(b.start)].filter((x) => x !== '').join('\n'))}>
|
|
99
100
|
<span />
|
|
100
101
|
<span className="rid"><span className={`rname tl ${verdictTone(b)}`}>{name.tag == null ? null : <span className="tid">{name.tag}</span>}{name.title}</span></span>
|
|
101
102
|
<span className={`rnum ${b.replayed ? 'dim' : durationTone(b.ms) ?? ''}`}>{b.replayed ? '' : fmtMs(b.ms)}</span>
|
|
@@ -155,10 +156,10 @@ const TestFiles = ({ app, rows, recorded }: { app: RepoSt; rows: SuiteToFix[]; r
|
|
|
155
156
|
<>
|
|
156
157
|
{rows.map((r) => {
|
|
157
158
|
return (
|
|
158
|
-
<div key={`${r.check}:${r.file}`} className={`rline rtest${r.red ? ' red' : ''}`}
|
|
159
|
-
<span className={`rtag${r.check === '' ? ' dim' : ''}`}
|
|
159
|
+
<div key={`${r.check}:${r.file}`} className={`rline rtest${r.red ? ' red' : ''}`} {...tip(r.failLine ?? undefined)} onClick={() => app.timeline.openTest(r.file)}>
|
|
160
|
+
<span className={`rtag${r.check === '' ? ' dim' : ''}`} {...tip(r.check === '' ? 'recorded before the record named its check' : `the check that ran it: ${r.check}`)}
|
|
160
161
|
onClick={(e) => { if (r.check === '') return; e.stopPropagation(); app.timeline.openCheck(r.check) }}>{r.check === '' ? 'unnamed' : r.check}</span>
|
|
161
|
-
<span className="rwhat"
|
|
162
|
+
<span className="rwhat" {...tip(r.file)}>{inUnit(r)}</span>
|
|
162
163
|
<span className={`rnum ${r.slow ? 'bad' : ''}`}>{fmtMs(r.ms)}</span>
|
|
163
164
|
<span className={r.red ? 'rflag red' : 'rflag warn'}>{suiteWords(r)}</span>
|
|
164
165
|
<TimeAgo clock={app.clock} at={r.at} />
|
|
@@ -180,9 +181,9 @@ const Slowest = ({ app, rows }: { app: RepoSt; rows: SlowCheck[] }) => {
|
|
|
180
181
|
{rows.map((r) => (
|
|
181
182
|
<div key={r.id} className="rline rslow" onClick={() => app.timeline.openCheck(r.id)}>
|
|
182
183
|
<span className="rtag">{r.id}</span>
|
|
183
|
-
<span className={`rnum ${durationTone(r.meanMs, r.ceilingMs, r.budgetMs) ?? ''}`}
|
|
184
|
-
<span className={`rnum ${durationTone(r.worstMs, r.ceilingMs, r.budgetMs) ?? ''}`}
|
|
185
|
-
<span className={r.flag === 'over' ? 'rflag red' : 'rflag warn'}
|
|
184
|
+
<span className={`rnum ${durationTone(r.meanMs, r.ceilingMs, r.budgetMs) ?? ''}`} {...tip('mean of the runs that ran')}>{fmtMs(r.meanMs)}</span>
|
|
185
|
+
<span className={`rnum ${durationTone(r.worstMs, r.ceilingMs, r.budgetMs) ?? ''}`} {...tip('the worst run that ran')}>{fmtMs(r.worstMs)}</span>
|
|
186
|
+
<span className={r.flag === 'over' ? 'rflag red' : 'rflag warn'} {...tip([r.budgetMs == null ? null : `budget ${fmtMs(r.budgetMs)}`, r.ceilingMs == null ? null : `ceiling ${fmtMs(r.ceilingMs)}`].filter((x) => x != null).join(', ') || undefined)}>{r.flag == null ? '' : FLAG_WORD[r.flag]}</span>
|
|
186
187
|
</div>
|
|
187
188
|
))}
|
|
188
189
|
</>
|
|
@@ -194,7 +195,7 @@ const Longest = ({ app, rows }: { app: RepoSt; rows: InvocationSummary[] }) => {
|
|
|
194
195
|
return (
|
|
195
196
|
<>
|
|
196
197
|
{rows.map((r) => (
|
|
197
|
-
<div key={r.runId} className={`rline rrun${r.reds > 0 ? ' red' : ''}`}
|
|
198
|
+
<div key={r.runId} className={`rline rrun${r.reds > 0 ? ' red' : ''}`} {...tip(stampWords(r.started))}>
|
|
198
199
|
<span />
|
|
199
200
|
<TimeAgo clock={app.clock} at={r.started} />
|
|
200
201
|
<Who by={r.by} />
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
// THE tooltip of the hub: one listener for the page, no component per button. An element says its words with
|
|
2
|
+
// `{...tip('words', key?)}`; the pointer resting on it, or Tab reaching it, shows them at once, placed by
|
|
3
|
+
// @floating-ui (floating.tsx `middleware`: flipped and shifted to stay in the window, outside its element).
|
|
4
|
+
// The one constraint a reader breaks first: no element of the hub carries a `title` (hub-tips.test.ts fails one). A
|
|
5
|
+
// title this listener still meets (markdown, a script, a file nobody moved) is taken off its element for the time
|
|
6
|
+
// of the hover and shown as the same tip, so the browser never draws its own.
|
|
7
|
+
import { computePosition, type Placement, type VirtualElement } from '@floating-ui/react'
|
|
8
|
+
import { FIRST_MS, middleware, tipShown, tipsWarm } from './floating.tsx'
|
|
9
|
+
|
|
10
|
+
// the rest before the first tip and the warm time after one, one clock with a flyout on a rest (floating.tsx)
|
|
11
|
+
export { FIRST_MS, WARM_MS } from './floating.tsx'
|
|
12
|
+
/** an element wider or taller than this is no point to hang a tip under: the tip follows the pointer on that axis */
|
|
13
|
+
const WIDE = 320
|
|
14
|
+
const TALL = 80
|
|
15
|
+
|
|
16
|
+
export type TipAttrs = { 'data-tip'?: string; 'data-tip-key'?: string; 'data-tip-side'?: Placement }
|
|
17
|
+
|
|
18
|
+
/** the attributes that give an element its tip: what it does in plain words (a `\n` starts a line), the key that
|
|
19
|
+
* does the same, the side it opens on when under is wrong (a row of a vertical list). No words: no tip */
|
|
20
|
+
export const tip = (words: string | false | null | undefined, key?: string | null, side?: Placement): TipAttrs =>
|
|
21
|
+
!words ? {} : { 'data-tip': words, ...(key ? { 'data-tip-key': key } : {}), ...(side ? { 'data-tip-side': side } : {}) }
|
|
22
|
+
|
|
23
|
+
const TIPPED = '[data-tip],[title]:not(iframe)'
|
|
24
|
+
const MODIFIERS = new Set(['Shift', 'Control', 'Alt', 'Meta', 'CapsLock'])
|
|
25
|
+
|
|
26
|
+
type Taken = { el: Element; text: string; named: boolean }
|
|
27
|
+
|
|
28
|
+
/** an element a screen reader has no name for once its title is gone */
|
|
29
|
+
const nameless = (el: Element): boolean => !el.hasAttribute('aria-label') && !el.hasAttribute('aria-labelledby') && (el.textContent ?? '').trim() === ''
|
|
30
|
+
|
|
31
|
+
/** installs the page's tips; returns the way to take them off again */
|
|
32
|
+
export function installTips(doc: Document = document): () => void {
|
|
33
|
+
const win = doc.defaultView ?? window
|
|
34
|
+
let box: HTMLElement | null = null
|
|
35
|
+
/** the element whose tip shows or waits, and what the pointer is on inside it */
|
|
36
|
+
let at: Element | null = null
|
|
37
|
+
let under: Element | null = null
|
|
38
|
+
let byFocus = false
|
|
39
|
+
let shown = false
|
|
40
|
+
let text = ''
|
|
41
|
+
let keyText: string | null = null
|
|
42
|
+
let timer: ReturnType<typeof setTimeout> | null = null
|
|
43
|
+
let point = { x: 0, y: 0 }
|
|
44
|
+
let tabbed = false
|
|
45
|
+
let run = 0
|
|
46
|
+
/** the titles off their elements for the time of the hover */
|
|
47
|
+
let taken: Taken[] = []
|
|
48
|
+
|
|
49
|
+
/** every title from the hovered element up leaves the page: the browser shows the nearest one it finds */
|
|
50
|
+
const take = (from: Element): void => {
|
|
51
|
+
for (let el: Element | null = from; el !== null; el = el.parentElement) {
|
|
52
|
+
const title = el.getAttribute('title')
|
|
53
|
+
if (title === null || el.localName === 'iframe') continue
|
|
54
|
+
el.removeAttribute('title')
|
|
55
|
+
const had = taken.find((t) => t.el === el)
|
|
56
|
+
if (had) had.text = title
|
|
57
|
+
else {
|
|
58
|
+
const named = title !== '' && nameless(el)
|
|
59
|
+
if (named) el.setAttribute('aria-label', title)
|
|
60
|
+
taken.push({ el, text: title, named })
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const giveBack = (): void => {
|
|
65
|
+
for (const t of taken) {
|
|
66
|
+
if (t.named) t.el.removeAttribute('aria-label')
|
|
67
|
+
if (t.el.isConnected && !t.el.hasAttribute('title')) t.el.setAttribute('title', t.text)
|
|
68
|
+
}
|
|
69
|
+
taken = []
|
|
70
|
+
}
|
|
71
|
+
const wordsOf = (el: Element): string => (el.getAttribute('data-tip') ?? taken.find((t) => t.el === el)?.text ?? '').trim()
|
|
72
|
+
|
|
73
|
+
const make = (): HTMLElement => {
|
|
74
|
+
const el = doc.createElement('div')
|
|
75
|
+
el.className = 'ftip htip'
|
|
76
|
+
el.setAttribute('role', 'tooltip')
|
|
77
|
+
// the top layer where the browser has one: over a lightbox and a menu alike
|
|
78
|
+
if ('showPopover' in el) el.setAttribute('popover', 'manual')
|
|
79
|
+
Object.assign(el.style, { position: 'fixed', inset: '0 auto auto 0', margin: '0', whiteSpace: 'pre-line', overflowWrap: 'anywhere', zIndex: '1000' })
|
|
80
|
+
return el
|
|
81
|
+
}
|
|
82
|
+
/** the words, then the key as the hub's key hint */
|
|
83
|
+
const fill = (el: HTMLElement, from: Element): void => {
|
|
84
|
+
text = wordsOf(from)
|
|
85
|
+
keyText = from.getAttribute('data-tip-key')
|
|
86
|
+
const line = doc.createElement('span')
|
|
87
|
+
line.textContent = text
|
|
88
|
+
el.replaceChildren(line)
|
|
89
|
+
if (!keyText) return
|
|
90
|
+
const kbd = doc.createElement('kbd')
|
|
91
|
+
kbd.className = 'pjkey'
|
|
92
|
+
kbd.textContent = keyText
|
|
93
|
+
el.append(kbd)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** what the tip hangs beside: its element, or the pointer along an axis the element is too long on */
|
|
97
|
+
const anchor = (el: Element): VirtualElement => {
|
|
98
|
+
const r = el.getBoundingClientRect()
|
|
99
|
+
const wide = !byFocus && r.width > WIDE
|
|
100
|
+
const tall = !byFocus && r.height > TALL
|
|
101
|
+
if (!wide && !tall) return el
|
|
102
|
+
// room for the cursor's own picture, so the tip never sits under it
|
|
103
|
+
const left = wide ? point.x - 4 : r.left
|
|
104
|
+
const right = wide ? point.x + 12 : r.right
|
|
105
|
+
const top = tall ? point.y - 4 : r.top
|
|
106
|
+
const bottom = tall ? point.y + 20 : r.bottom
|
|
107
|
+
return { contextElement: el, getBoundingClientRect: () => ({ x: left, y: top, left, top, right, bottom, width: right - left, height: bottom - top }) }
|
|
108
|
+
}
|
|
109
|
+
const place = (): void => {
|
|
110
|
+
const el = at
|
|
111
|
+
const b = box
|
|
112
|
+
if (el === null || b === null) return
|
|
113
|
+
const mine = ++run
|
|
114
|
+
const side = (el.getAttribute('data-tip-side') as Placement | null) ?? 'bottom'
|
|
115
|
+
const fallbacks: Placement[] = side.startsWith('bottom') || side.startsWith('top') ? ['top', 'bottom', 'right', 'left'] : ['right', 'left', 'bottom', 'top']
|
|
116
|
+
void computePosition(anchor(el), b, { strategy: 'fixed', placement: side, middleware: middleware(6, fallbacks) }).then(({ x, y }) => {
|
|
117
|
+
if (mine !== run || !shown) return
|
|
118
|
+
b.style.transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`
|
|
119
|
+
b.style.visibility = ''
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const watch = new MutationObserver(() => {
|
|
124
|
+
if (at === null) return
|
|
125
|
+
// its element left the page, or the page hid it
|
|
126
|
+
if (!at.isConnected || at.getClientRects().length === 0) return leave()
|
|
127
|
+
// a title the page wrote again under the pointer
|
|
128
|
+
if (under?.isConnected) take(under)
|
|
129
|
+
if (!shown || box === null) return
|
|
130
|
+
const now = wordsOf(at)
|
|
131
|
+
if (now === text && keyText === at.getAttribute('data-tip-key')) return
|
|
132
|
+
if (now === '') return hide()
|
|
133
|
+
fill(box, at)
|
|
134
|
+
place()
|
|
135
|
+
})
|
|
136
|
+
const scrolled = (): void => silence()
|
|
137
|
+
const blurred = (): void => leave()
|
|
138
|
+
|
|
139
|
+
const open = (): void => {
|
|
140
|
+
timer = null
|
|
141
|
+
if (at === null || !at.isConnected) return leave()
|
|
142
|
+
if (wordsOf(at) === '') return
|
|
143
|
+
box ??= make()
|
|
144
|
+
fill(box, at)
|
|
145
|
+
box.style.visibility = 'hidden'
|
|
146
|
+
box.hidden = false
|
|
147
|
+
if (!box.isConnected) doc.body.append(box)
|
|
148
|
+
if (box.hasAttribute('popover')) box.showPopover()
|
|
149
|
+
shown = true
|
|
150
|
+
tipShown(true)
|
|
151
|
+
win.addEventListener('scroll', scrolled, { capture: true, passive: true })
|
|
152
|
+
place()
|
|
153
|
+
}
|
|
154
|
+
const hide = (): void => {
|
|
155
|
+
if (timer !== null) clearTimeout(timer)
|
|
156
|
+
timer = null
|
|
157
|
+
if (!shown) return
|
|
158
|
+
shown = false
|
|
159
|
+
run++
|
|
160
|
+
tipShown(false)
|
|
161
|
+
win.removeEventListener('scroll', scrolled, { capture: true })
|
|
162
|
+
if (box === null) return
|
|
163
|
+
if (box.hasAttribute('popover')) box.hidePopover()
|
|
164
|
+
box.hidden = true
|
|
165
|
+
}
|
|
166
|
+
/** a press, a key or a scroll: the tip goes and stays gone while the pointer rests where it is (the same element
|
|
167
|
+
* opens none twice), its titles off the page meanwhile */
|
|
168
|
+
const silence = (): void => hide()
|
|
169
|
+
/** the pointer or the focus left: the tip goes, and every title returns to its element */
|
|
170
|
+
function leave(): void {
|
|
171
|
+
hide()
|
|
172
|
+
watch.disconnect()
|
|
173
|
+
giveBack()
|
|
174
|
+
at = null
|
|
175
|
+
under = null
|
|
176
|
+
byFocus = false
|
|
177
|
+
}
|
|
178
|
+
const enter = (target: Element, el: Element, focus: boolean): void => {
|
|
179
|
+
const warm = shown || tipsWarm()
|
|
180
|
+
leave()
|
|
181
|
+
at = el
|
|
182
|
+
under = target
|
|
183
|
+
byFocus = focus
|
|
184
|
+
take(target)
|
|
185
|
+
watch.observe(doc.documentElement, { subtree: true, childList: true, attributes: true, attributeFilter: ['title', 'data-tip', 'data-tip-key'] })
|
|
186
|
+
if (wordsOf(el) === '') return
|
|
187
|
+
if (focus || warm) open()
|
|
188
|
+
else timer = setTimeout(open, FIRST_MS)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const over = (e: PointerEvent): void => {
|
|
192
|
+
// a finger has no hover; a drag in progress reads no button
|
|
193
|
+
if (e.pointerType === 'touch') return
|
|
194
|
+
point = { x: e.clientX, y: e.clientY }
|
|
195
|
+
const target = e.target instanceof Element ? e.target : null
|
|
196
|
+
const el = e.buttons !== 0 ? null : (target?.closest(TIPPED) ?? null)
|
|
197
|
+
if (el !== null && el === at && !byFocus) {
|
|
198
|
+
under = target
|
|
199
|
+
return
|
|
200
|
+
}
|
|
201
|
+
if (el === null || target === null) return leave()
|
|
202
|
+
enter(target, el, false)
|
|
203
|
+
}
|
|
204
|
+
const out = (e: PointerEvent): void => {
|
|
205
|
+
// out of the window, or into a frame
|
|
206
|
+
if (e.relatedTarget === null && !byFocus) leave()
|
|
207
|
+
}
|
|
208
|
+
const down = (): void => {
|
|
209
|
+
tabbed = false
|
|
210
|
+
silence()
|
|
211
|
+
}
|
|
212
|
+
const key = (e: KeyboardEvent): void => {
|
|
213
|
+
if (MODIFIERS.has(e.key)) return
|
|
214
|
+
tabbed = e.key === 'Tab'
|
|
215
|
+
silence()
|
|
216
|
+
}
|
|
217
|
+
const focused = (e: FocusEvent): void => {
|
|
218
|
+
const target = e.target instanceof Element ? e.target : null
|
|
219
|
+
// Tab only: a focus the page moves itself (a list stepping its rows) reads no tip at each step
|
|
220
|
+
if (!tabbed || target === null || !target.matches(':focus-visible')) return
|
|
221
|
+
const el = target.closest(TIPPED)
|
|
222
|
+
if (el !== null) enter(target, el, true)
|
|
223
|
+
}
|
|
224
|
+
const unfocused = (): void => {
|
|
225
|
+
if (byFocus) leave()
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const on = { capture: true, passive: true } as const
|
|
229
|
+
doc.addEventListener('pointerover', over, on)
|
|
230
|
+
doc.addEventListener('pointerout', out, on)
|
|
231
|
+
doc.addEventListener('pointerdown', down, on)
|
|
232
|
+
doc.addEventListener('keydown', key, on)
|
|
233
|
+
doc.addEventListener('focusin', focused, on)
|
|
234
|
+
doc.addEventListener('focusout', unfocused, on)
|
|
235
|
+
win.addEventListener('blur', blurred)
|
|
236
|
+
return () => {
|
|
237
|
+
leave()
|
|
238
|
+
box?.remove()
|
|
239
|
+
doc.removeEventListener('pointerover', over, on)
|
|
240
|
+
doc.removeEventListener('pointerout', out, on)
|
|
241
|
+
doc.removeEventListener('pointerdown', down, on)
|
|
242
|
+
doc.removeEventListener('keydown', key, on)
|
|
243
|
+
doc.removeEventListener('focusin', focused, on)
|
|
244
|
+
doc.removeEventListener('focusout', unfocused, on)
|
|
245
|
+
win.removeEventListener('blur', blurred)
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -17,6 +17,7 @@ import type { WhenAt } from './hub-types.ts'
|
|
|
17
17
|
import { durationTone, fmtMs, type DurTone } from './dur.ts'
|
|
18
18
|
import type { HashSel } from './hash-route.ts'
|
|
19
19
|
import { SECTION_LETTER, sectionLabel, type SectionId } from './keys.ts'
|
|
20
|
+
import type { GroupId } from './rail-groups.ts'
|
|
20
21
|
|
|
21
22
|
export type TreeNode = {
|
|
22
23
|
/** stable across reloads: the expansion set and the cursor are keys */
|
|
@@ -28,8 +29,10 @@ export type TreeNode = {
|
|
|
28
29
|
/** a group: the kind it gathers, so its row wears that kind's mark.
|
|
29
30
|
* null on a section and on a leaf */
|
|
30
31
|
kind: string | null
|
|
31
|
-
/** a
|
|
32
|
+
/** a section row: the section it is, a top row or a part of a group (rail-groups.ts). null on every other row */
|
|
32
33
|
section: SectionId | null
|
|
34
|
+
/** a group of the rail (rail-groups.ts): its parts are its children */
|
|
35
|
+
group?: GroupId
|
|
33
36
|
/** leaves under this node, and how many of them are red */
|
|
34
37
|
total: number
|
|
35
38
|
reds: number
|
|
@@ -51,6 +54,7 @@ export type TreeRow = {
|
|
|
51
54
|
res: Resource | null
|
|
52
55
|
kind: string | null
|
|
53
56
|
section: SectionId | null
|
|
57
|
+
group?: GroupId
|
|
54
58
|
total: number
|
|
55
59
|
reds: number
|
|
56
60
|
checks: string[]
|
|
@@ -107,12 +111,14 @@ export const processResources = (rows: readonly ProcessRow[]): Resource[] =>
|
|
|
107
111
|
state: PROCESS_STATE[r.dot],
|
|
108
112
|
}))
|
|
109
113
|
|
|
110
|
-
/** the repo's urls as tree leaves (urls-svc.ts): a dev one wears the state of the process that serves it,
|
|
111
|
-
*
|
|
112
|
-
export const urlResources = (rows: readonly UrlRow[], procs: readonly ProcessRow[]): Resource[] =>
|
|
113
|
-
|
|
114
|
+
/** the repo's urls as tree leaves (urls-svc.ts): a dev one wears the state of the process that serves it, any other
|
|
115
|
+
* is plain. A label's « / » makes its folders: the leaf wears the last part, `group` the parts before */
|
|
116
|
+
export const urlResources = (rows: readonly UrlRow[], procs: readonly ProcessRow[]): Resource[] => {
|
|
117
|
+
// urls of two envs or more: the env is the first folder, the label's own folders under it
|
|
118
|
+
const byEnv = new Set(rows.map((u) => u.env)).size > 1
|
|
119
|
+
return rows.map((u) => {
|
|
114
120
|
const dot = u.process == null ? null : (procs.find((p) => p.id === u.process)?.dot ?? 'unknown')
|
|
115
|
-
const parts = labelParts(u.label)
|
|
121
|
+
const parts = [...(byEnv ? [u.env] : []), ...labelParts(u.label)]
|
|
116
122
|
return {
|
|
117
123
|
id: `url:${u.id}`,
|
|
118
124
|
type: 'url',
|
|
@@ -126,6 +132,7 @@ export const urlResources = (rows: readonly UrlRow[], procs: readonly ProcessRow
|
|
|
126
132
|
...(parts.length > 1 ? { group: parts.slice(0, -1).join('/') } : {}),
|
|
127
133
|
}
|
|
128
134
|
})
|
|
135
|
+
}
|
|
129
136
|
|
|
130
137
|
/** the project CLI's commands as tree leaves, read from the CLI itself (commands-st.ts), never from
|
|
131
138
|
* /api/resources.json. A family of more than one command is a branch named by its first word, its leaves by the
|
|
@@ -275,12 +282,37 @@ export function flattenTree(nodes: TreeNode[], expanded: Set<string>, depth = 0)
|
|
|
275
282
|
const out: TreeRow[] = []
|
|
276
283
|
for (const n of nodes) {
|
|
277
284
|
const dir = n.res == null && n.children.length > 0
|
|
278
|
-
out.push({ key: n.key, label: n.label, depth, dir, state: n.state, res: n.res, kind: n.kind, section: n.section, total: n.total, reds: n.reds, checks: n.checks, page: n.page })
|
|
285
|
+
out.push({ key: n.key, label: n.label, depth, dir, state: n.state, res: n.res, kind: n.kind, section: n.section, ...(n.group != null ? { group: n.group } : {}), total: n.total, reds: n.reds, checks: n.checks, page: n.page })
|
|
279
286
|
if (dir && expanded.has(n.key)) out.push(...flattenTree(n.children, expanded, depth + 1))
|
|
280
287
|
}
|
|
281
288
|
return out
|
|
282
289
|
}
|
|
283
290
|
|
|
291
|
+
/** whether the page shown is the one this row opens (tree-svc.ts activate, repo-st.ts openResource): the active entry
|
|
292
|
+
* of the section panel. A section row is never asked, it is the active one when no row under it is */
|
|
293
|
+
export function rowShows(row: Pick<TreeRow, 'res' | 'page'>, sel: HashSel | null): boolean {
|
|
294
|
+
if (sel == null) return false
|
|
295
|
+
const r = row.res
|
|
296
|
+
if (r == null) {
|
|
297
|
+
const p = row.page
|
|
298
|
+
return p != null && ((p.t === 'cat' && sel.t === 'cat' && sel.cat === p.cat) || (p.t === 'col' && sel.t === 'col' && sel.id === p.id))
|
|
299
|
+
}
|
|
300
|
+
const id = r.id.slice(r.id.indexOf(':') + 1)
|
|
301
|
+
switch (r.type) {
|
|
302
|
+
case 'process': return sel.t === 'processes' && sel.id === id
|
|
303
|
+
case 'url': return sel.t === 'urls' && sel.id === id
|
|
304
|
+
case 'command': return sel.t === 'commands' && sel.cmd === id
|
|
305
|
+
case 'thread': return sel.t === 'review' && sel.id === id
|
|
306
|
+
case 'store': return sel.t === 'stores' && sel.store === id
|
|
307
|
+
case 'release': return sel.t === 'releases' && sel.version === id
|
|
308
|
+
case 'message': return sel.t === 'messages' && sel.tab === id
|
|
309
|
+
case 'cut': return sel.t === 'trailer' && `${sel.trailer}/${sel.cut}` === id
|
|
310
|
+
case 'veille': case 'voice': return false
|
|
311
|
+
}
|
|
312
|
+
if (r.collection === 'media' && sel.t === 'asset') return sel.id === r.id.replace(/^media:/, '')
|
|
313
|
+
return sel.t === 'item' && sel.col === r.collection && sel.id === r.id
|
|
314
|
+
}
|
|
315
|
+
|
|
284
316
|
/** the line at the top of the checks page: how much of this repo runs on
|
|
285
317
|
* every gate, and how much does not. Counts CHECKS only, because nothing
|
|
286
318
|
* else declares a place to run */
|
|
@@ -442,7 +474,7 @@ export const TYPE_MARK: Record<string, TypeMark> = {
|
|
|
442
474
|
test: { glyph: '\u2263', hue: 'k5', word: 'a test file: the check that runs it, its last runs against its budget, the command that runs it alone' },
|
|
443
475
|
reflection: { glyph: '\u203b', hue: 'k2', word: 'a reflection: friction this repo logged against the wiki, waiting to be folded in' },
|
|
444
476
|
process: { glyph: '\u223f', hue: 'k1', word: 'a global process this repo declares: its state, its menu, its log' },
|
|
445
|
-
url: { glyph: '\u2197', hue: 'k3', word: 'a url of this repo, dev or
|
|
477
|
+
url: { glyph: '\u2197', hue: 'k3', word: 'a url of this repo, dev, prod or ext: framed in the hub, its logins as copy chips above it' },
|
|
446
478
|
urldir: { glyph: '\u25a6', hue: 'k3', word: 'a folder of urls: the part of their names before the « / »' },
|
|
447
479
|
command: { glyph: '$', hue: 'k6', word: "a command of the repo's project CLI: its examples, its args, run from the page with its log live" },
|
|
448
480
|
thread: { glyph: '\u25a3', hue: 'k2', word: 'a thread waiting on you: approve, fix, reject, circle a detail, answer a question' },
|