rvlib-shipkit 2.12.0 → 2.14.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 +75 -21
- package/README.md +1 -1
- package/package.json +4 -2
- package/src/agent-time/store.ts +2 -2
- package/src/assets/run-assets.ts +2 -2
- package/src/assets/server/studio-server.ts +27 -23
- package/src/check.ts +4 -4
- package/src/checks/SK001-package-json-shape.check.ts +8 -4
- package/src/checks/SK002-contracts-fulfillness.check.ts +2 -2
- package/src/checks/SK003-claude-md-shape.check.ts +20 -13
- package/src/checks/SK004-gitignore-policy.check.ts +45 -6
- package/src/checks/SK005-rvlib-versions.check.ts +2 -2
- package/src/checks/SK006-npm-publish-safety.check.ts +3 -3
- package/src/checks/SK007-github-visibility.check.ts +2 -2
- package/src/checks/SK008-reviewer-agent.check.ts +3 -3
- package/src/checks/SK010-undeclared-unit.check.ts +2 -2
- package/src/checks/SK011-sibling-unit-ranges.check.ts +2 -2
- package/src/checks/SK012-config-barrel-import.check.ts +2 -2
- package/src/checks/SK013-one-way-in-policy.check.ts +2 -2
- package/src/checks/SK015-nested-repo.check.ts +3 -3
- package/src/checks/SK016-legacy-check-shapes.check.ts +2 -2
- package/src/checks/SK017-vscode-hub-task.check.ts +2 -2
- package/src/checks/SK018-test-files-run.check.ts +2 -2
- package/src/checks/SK019-tests-run-in-units.check.ts +2 -2
- package/src/checks/SK020-self-spawning-check.check.ts +2 -2
- package/src/checks/SK022-machine-runs-the-pin.check.ts +2 -2
- package/src/checks/SK024-identity-colors.check.ts +1 -1
- package/src/checks/SK025-release-drift.check.ts +2 -2
- package/src/checks/SK026-asks-autoclose.check.ts +2 -2
- package/src/checks/SK027-agent-wiki-links.check.ts +8 -2
- package/src/checks/SK028-readme.check.ts +2 -2
- package/src/checks/SK029-explicit-check-files.check.ts +3 -3
- package/src/checks/SK030-cache-audit.check.ts +7 -5
- package/src/checks/SK031-trace-audit.check.ts +7 -7
- package/src/checks/SK032-ignored-inputs.check.ts +3 -3
- package/src/checks/SK033-global-contribution.check.ts +11 -4
- package/src/checks/SK034-commit-gates-armed.check.ts +2 -2
- package/src/checks/SK035-public-clean.check.ts +46 -0
- package/src/checks/SK036-draft-media-size.check.ts +28 -0
- package/src/checks/SK037-keyword-additions.check.ts +43 -0
- package/src/cli/cmd_Backup.ts +152 -0
- package/src/cli/cmd_Ci.ts +8 -11
- package/src/cli/cmd_Commands.ts +4 -4
- package/src/cli/cmd_ConfigKeys.ts +2 -2
- package/src/cli/cmd_Drill.ts +145 -0
- package/src/cli/cmd_Home.ts +50 -3
- package/src/cli/cmd_Init.ts +1 -1
- package/src/cli/cmd_Media.ts +10 -8
- package/src/cli/cmd_Mv.ts +14 -7
- package/src/cli/cmd_Review.ts +6 -4
- package/src/cli/cmd_Shot.ts +5 -2
- package/src/cli/cmd_Smoke.ts +5 -2
- package/src/cli/cmd_Social.ts +226 -0
- package/src/cli/cmd_Sound.ts +1 -1
- package/src/cli/cmd_Start.ts +1 -1
- package/src/cli/cmd_Time.ts +1 -1
- package/src/cli/cmd_TraceAudit.ts +6 -6
- package/src/cli/cmd_Trailer.ts +7 -4
- package/src/cli/cmd_Veille.ts +173 -0
- package/src/cli/cmd_When.ts +2 -2
- package/src/cli/family-pages.ts +19 -16
- package/src/cli/registry.ts +13 -2
- package/src/cli.ts +5 -2
- package/src/collections/actions.ts +1 -49
- package/src/collections/checks.ts +2 -1
- package/src/collections/collection-types.ts +12 -3
- package/src/collections/providers.ts +4 -4
- package/src/collections/review.ts +3 -2
- package/src/collections/tests.ts +19 -8
- package/src/comfy/comfy-panel.ts +2 -2
- package/src/contracts/apply-contracts.ts +1 -3
- package/src/contracts/contract-manifests.ts +2 -3
- package/src/contracts/contract-types.ts +0 -1
- package/src/contracts/contracts-engine.ts +0 -3
- package/src/contracts/manifests/discord.contract.ts +1 -1
- package/src/contracts/manifests/identity.contract.ts +1 -1
- package/src/contracts/manifests/itch.contract.ts +1 -1
- package/src/contracts/manifests/steam.contract.ts +1 -1
- package/src/core/agent-dir-at.ts +12 -0
- package/src/core/agent-dir.ts +16 -0
- package/src/core/app-icon.ts +9 -3
- package/src/core/budget.ts +1 -1
- package/src/core/bun-builtins.ts +2 -2
- package/src/core/canonical-scripts.ts +2 -2
- package/src/core/discover-checks.ts +38 -6
- package/src/core/fix-scope.ts +4 -2
- package/src/core/floor-resolve.ts +68 -48
- package/src/core/floor.ts +9 -0
- package/src/core/git-root.ts +24 -0
- package/src/core/global-contribution.ts +4 -1
- package/src/core/ignored-block.ts +1 -1
- package/src/core/ignored-inputs.ts +3 -2
- package/src/core/last-good.ts +3 -1
- package/src/core/layout.ts +8 -0
- package/src/core/log-stamp.ts +36 -0
- package/src/core/loop-watch.ts +93 -0
- package/src/core/machine-link.ts +134 -0
- package/src/core/memory-watch.ts +41 -0
- package/src/core/motherhome.ts +2 -2
- package/src/core/one-way-in-policy.ts +34 -26
- package/src/core/run-ci.ts +9 -11
- package/src/core/run-fixers.ts +9 -9
- package/src/core/runs-matrix.ts +1 -1
- package/src/core/slots.ts +30 -0
- package/src/core/trace-audit.ts +50 -9
- package/src/core/tree-rev.ts +60 -0
- package/src/core/unit-files.ts +42 -0
- package/src/drill/render.ts +140 -0
- package/src/drill/run.ts +269 -0
- package/src/fleet/scan-fleet.ts +6 -5
- package/src/home/daemon-jobs.ts +201 -0
- package/src/home/global-context.ts +44 -8
- package/src/home/gui-app/ShipkitGui.swift +91 -2
- package/src/home/home-routes.ts +22 -15
- package/src/home/hubs.ts +10 -3
- package/src/home/inbox-shape.ts +54 -5
- package/src/home/inbox.ts +17 -2
- package/src/home/lib-watch.ts +10 -3
- package/src/home/machine-stores.ts +15 -29
- package/src/home/pm-config.ts +4 -1
- package/src/home/pm-inputs.ts +2 -0
- package/src/home/resources.ts +7 -2
- package/src/home/run-daemon.ts +15 -18
- package/src/home/run-pm.ts +3 -1
- package/src/home/serve-daemon.ts +4 -3
- package/src/home/serve-web.ts +104 -1
- package/src/hooks/commit-message.ts +29 -20
- package/src/hooks/hook-gates.ts +1 -1
- package/src/hooks/leak-guard.ts +69 -9
- package/src/hooks/run-hooks.ts +18 -22
- package/src/identities/identities.ts +334 -0
- package/src/identities/machine-route.ts +126 -0
- package/src/identities/machine.ts +62 -0
- package/src/init-repo.ts +3 -3
- package/src/ledger/check-stats.ts +10 -9
- package/src/ledger/gate-checks.ts +32 -1
- package/src/ledger/record-kept.ts +112 -0
- package/src/ledger/repo-view.ts +10 -0
- package/src/ledger/run-log.ts +17 -12
- package/src/ledger/run-timeline.ts +8 -4
- package/src/ledger/store.ts +7 -0
- package/src/ledger/suite-log.ts +17 -13
- package/src/media-kinds.ts +3 -2
- package/src/media-store/backup/daemon.ts +73 -0
- package/src/media-store/backup/keys.ts +25 -0
- package/src/media-store/backup/manifest.ts +193 -0
- package/src/media-store/backup/restore.ts +192 -0
- package/src/media-store/backup/run.ts +278 -0
- package/src/media-store/backup/secret.ts +86 -0
- package/src/media-store/backup/snapshot.ts +64 -0
- package/src/media-store/backup/sources.ts +199 -0
- package/src/media-store/content.ts +1 -1
- package/src/media-store/daemon.ts +56 -70
- package/src/media-store/db.ts +1 -1
- package/src/media-store/fact.ts +1 -1
- package/src/media-store/hand.ts +1 -1
- package/src/media-store/kind.ts +1 -1
- package/src/media-store/purge.ts +1 -1
- package/src/media-store/put.ts +5 -3
- package/src/media-store/remote.ts +1 -1
- package/src/media-store/space.ts +24 -5
- package/src/mv/mv-md.ts +63 -22
- package/src/pages/forward.ts +35 -0
- package/src/pages/frame-client.ts +118 -0
- package/src/pages/routes.ts +29 -0
- package/src/pages/unit.ts +92 -0
- package/src/plan/planner.ts +12 -0
- package/src/plan/repo-source.ts +19 -5
- package/src/reflect/transcript.ts +35 -10
- package/src/release/public-clean.ts +319 -0
- package/src/release/published-here.ts +22 -0
- package/src/release/run-bump.ts +3 -2
- package/src/release/run-release.ts +7 -4
- package/src/repo-config.ts +71 -13
- package/src/review/anim.ts +1 -1
- package/src/review/auto.ts +1 -1
- package/src/review/cells.ts +15 -1
- package/src/review/format.ts +2 -2
- package/src/review/http.ts +16 -2
- package/src/review/marks.ts +1 -1
- package/src/review/media-kind.ts +1 -1
- package/src/review/media-read.ts +1 -1
- package/src/review/model.ts +27 -6
- package/src/review/notes.ts +125 -0
- package/src/review/previews.ts +1 -1
- package/src/review/project.ts +7 -39
- package/src/review/role.ts +1 -1
- package/src/review/routes.ts +18 -14
- package/src/review/store.ts +42 -2
- package/src/review/threads.ts +1 -1
- package/src/review/trailer-desk.ts +3 -3
- package/src/review/trailer-media.ts +8 -5
- package/src/review/trailer-model.ts +1 -1
- package/src/review/trailer-routes.ts +1 -1
- package/src/review/trailer-shots.ts +22 -5
- package/src/review/unit.ts +2 -2
- package/src/scaffold/files/agent-handoff.md +3 -0
- package/src/scaffold/files/agent-index.md +4 -12
- package/src/scaffold/files/tsconfig.json +1 -1
- package/src/scaffold/project-scaffold.ts +6 -5
- package/src/serve/embed.ts +2 -2
- package/src/serve/hub-app/check-words.ts +1 -1
- package/src/serve/hub-app/col-card.tsx +3 -17
- package/src/serve/hub-app/col-tables-view.tsx +2 -1
- package/src/serve/hub-app/cols-svc.ts +0 -13
- package/src/serve/hub-app/dock-st.ts +4 -2
- package/src/serve/hub-app/dock-view.tsx +2 -0
- package/src/serve/hub-app/frames-st.ts +35 -0
- package/src/serve/hub-app/hash-route.ts +64 -1
- package/src/serve/hub-app/home-st.ts +32 -8
- package/src/serve/hub-app/home-strip.css +9 -1
- package/src/serve/hub-app/home-strip.tsx +7 -6
- package/src/serve/hub-app/home.html +5 -0
- package/src/serve/hub-app/hub-app.tsx +51 -7
- package/src/serve/hub-app/hub.css +29 -11
- package/src/serve/hub-app/icons.tsx +16 -1
- package/src/serve/hub-app/identities-st.ts +210 -0
- package/src/serve/hub-app/identities-view.tsx +353 -0
- package/src/serve/hub-app/identities.css +48 -0
- package/src/serve/hub-app/identity-address.ts +52 -0
- package/src/serve/hub-app/inbox-st.ts +60 -7
- package/src/serve/hub-app/inbox-view.tsx +49 -7
- package/src/serve/hub-app/inbox.css +12 -1
- package/src/serve/hub-app/index.html +3 -0
- package/src/serve/hub-app/kept-cols.tsx +30 -0
- package/src/serve/hub-app/keys.ts +10 -2
- package/src/serve/hub-app/list-walk.ts +89 -0
- package/src/serve/hub-app/machine-st.ts +12 -0
- package/src/serve/hub-app/media-svc.ts +1 -1
- package/src/serve/hub-app/media-view.tsx +2 -1
- package/src/serve/hub-app/pages-frames.tsx +134 -0
- package/src/serve/hub-app/pages-svc.ts +111 -0
- package/src/serve/hub-app/palette-st.ts +18 -3
- package/src/serve/hub-app/palette-view.tsx +9 -2
- package/src/serve/hub-app/planned-view.tsx +2 -1
- package/src/serve/hub-app/project-list.css +18 -14
- package/src/serve/hub-app/project-list.tsx +88 -49
- package/src/serve/hub-app/projects-svc.ts +33 -3
- package/src/serve/hub-app/repo-sections.ts +19 -2
- package/src/serve/hub-app/repo-st.ts +76 -20
- package/src/serve/hub-app/review/review-board.tsx +1 -1
- package/src/serve/hub-app/review/review-cells.tsx +6 -5
- package/src/serve/hub-app/review/review-kit.ts +30 -7
- package/src/serve/hub-app/review/review-page.tsx +6 -5
- package/src/serve/hub-app/review/review-st.ts +34 -15
- package/src/serve/hub-app/review/review-thread.tsx +63 -14
- package/src/serve/hub-app/review/review-views.tsx +133 -51
- package/src/serve/hub-app/review/thread-st.ts +80 -37
- package/src/serve/hub-app/review/trailer-page.tsx +7 -5
- package/src/serve/hub-app/review/trailer-st.ts +1 -1
- package/src/serve/hub-app/review.css +26 -9
- package/src/serve/hub-app/site/site-part.tsx +173 -0
- package/src/serve/hub-app/site/site-st.ts +157 -0
- package/src/serve/hub-app/site.css +35 -0
- package/src/serve/hub-app/social/calendar.tsx +182 -0
- package/src/serve/hub-app/social/comms-page.tsx +330 -0
- package/src/serve/hub-app/social/kit.tsx +244 -0
- package/src/serve/hub-app/social/post-card.tsx +456 -0
- package/src/serve/hub-app/social/problems.tsx +60 -0
- package/src/serve/hub-app/social/social-model.ts +154 -0
- package/src/serve/hub-app/social/social-page.tsx +681 -0
- package/src/serve/hub-app/social/social-st.ts +1014 -0
- package/src/serve/hub-app/social.css +289 -0
- package/src/serve/hub-app/stores/stores-page.tsx +312 -0
- package/src/serve/hub-app/stores/stores-st.ts +286 -0
- package/src/serve/hub-app/stores.css +54 -0
- package/src/serve/hub-app/timeline-geometry.ts +1 -1
- package/src/serve/hub-app/timeline-view.tsx +3 -2
- package/src/serve/hub-app/tree-build.ts +6 -0
- package/src/serve/hub-app/tree-row.tsx +27 -4
- package/src/serve/hub-app/tree-svc.ts +18 -49
- package/src/serve/hub-app/veille/veille-page.tsx +515 -0
- package/src/serve/hub-app/veille/veille-st.ts +443 -0
- package/src/serve/hub-app/veille.css +84 -0
- package/src/serve/hub-runtime.ts +20 -11
- package/src/serve/project-gutter-route.ts +44 -12
- package/src/serve/run-lanes.ts +7 -4
- package/src/serve/same-origin.ts +1 -1
- package/src/serve/serve-hub.ts +20 -12
- package/src/serve/tracked-watch.ts +24 -3
- package/src/serve/warm-cell.ts +5 -1
- package/src/shipkit-files.ts +15 -4
- package/src/shipkit.ts +0 -1
- package/src/shot/box.ts +160 -0
- package/src/shot/browser-slot.ts +74 -0
- package/src/shot/client.ts +42 -7
- package/src/shot/clip-encoder.ts +108 -24
- package/src/shot/film-box.ts +292 -0
- package/src/shot/shooter.ts +71 -17
- package/src/shot/shot-ask.ts +10 -2
- package/src/shot/stepped-clip.ts +5 -4
- package/src/site/desk.ts +242 -0
- package/src/site/routes.ts +66 -0
- package/src/site/unit.ts +62 -0
- package/src/social/brands.ts +22 -0
- package/src/social/card-drafts.ts +24 -0
- package/src/social/compose.ts +97 -0
- package/src/social/desk-index.ts +123 -0
- package/src/social/desk-wire.ts +64 -0
- package/src/social/drafts.ts +183 -0
- package/src/social/house.ts +24 -0
- package/src/social/load.ts +332 -0
- package/src/social/md.ts +70 -0
- package/src/social/media-facts.ts +53 -0
- package/src/social/media-kind.ts +189 -0
- package/src/social/media-limit.ts +42 -0
- package/src/social/media-of.ts +30 -0
- package/src/social/migrate.ts +123 -0
- package/src/social/open.ts +17 -0
- package/src/social/post-url.ts +158 -0
- package/src/social/presence.ts +332 -0
- package/src/social/public-read.ts +53 -0
- package/src/social/publish/bluesky.ts +168 -0
- package/src/social/publish/discord.ts +76 -0
- package/src/social/publish/index.ts +24 -0
- package/src/social/publish/secret.ts +13 -0
- package/src/social/push.ts +37 -0
- package/src/social/richtext.ts +37 -0
- package/src/social/routes.ts +186 -0
- package/src/social/stats.ts +134 -0
- package/src/social/text.ts +267 -0
- package/src/social/tracker-route.ts +39 -0
- package/src/social/tracker.ts +255 -0
- package/src/social/unit.ts +53 -0
- package/src/social/writes.ts +130 -0
- package/src/start-repo.ts +14 -9
- package/src/stores/collection.ts +27 -0
- package/src/stores/desk.ts +336 -0
- package/src/stores/model.ts +187 -0
- package/src/stores/routes.ts +126 -0
- package/src/stores/unit.ts +57 -0
- package/src/suite/calibrate.ts +127 -0
- package/src/suite/core-counters.ts +91 -0
- package/src/suite/judge-suites.ts +95 -35
- package/src/suite/suite-cli.ts +44 -10
- package/src/suite/suite-cpu-preload.ts +34 -9
- package/src/trace/tracer.ts +12 -5
- package/src/trailer/adapter.ts +5 -1
- package/src/trailer/build.ts +45 -12
- package/src/trailer/ffmpeg.ts +11 -0
- package/src/trailer/footage.ts +30 -13
- package/src/trailer/grammar.ts +18 -2
- package/src/trailer/graph.ts +28 -6
- package/src/trailer/holes.ts +1 -1
- package/src/trailer/passage.ts +18 -6
- package/src/trailer/plan.ts +74 -3
- package/src/trailer/prune.ts +1 -1
- package/src/trailer/states.ts +1 -1
- package/src/trailer/stitch.ts +67 -26
- package/src/trailer/url.ts +1 -1
- package/src/trailer/versions.ts +24 -0
- package/src/trailer/words.ts +1 -1
- package/src/ts/gate-typecheck.ts +32 -0
- package/src/ts/typecheck-cli.ts +9 -11
- package/src/tui/run-tui.ts +1 -1
- package/src/tui/tui-app.tsx +0 -1
- package/src/tui/tui-store.ts +1 -1
- package/src/veille/asks.ts +155 -0
- package/src/veille/auto.ts +31 -0
- package/src/veille/batch.ts +27 -0
- package/src/veille/chrome.ts +127 -0
- package/src/veille/collection.ts +28 -0
- package/src/veille/desk.ts +242 -0
- package/src/veille/identity.ts +80 -0
- package/src/veille/import.ts +68 -0
- package/src/veille/log.ts +183 -0
- package/src/veille/platforms.ts +118 -0
- package/src/veille/reads.ts +66 -0
- package/src/veille/replied.ts +110 -0
- package/src/veille/routes.ts +185 -0
- package/src/veille/service.ts +81 -0
- package/src/veille/watch.ts +116 -0
- package/src/veille/worth.ts +46 -0
- package/src/wiki/scan-md.ts +18 -0
- package/src/collections/posts.ts +0 -142
- package/src/contracts/manifests/social.contract.ts +0 -20
- package/src/scaffold/files/agent-coding.md +0 -35
- package/src/ts/typecheck-cache.ts +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// HomeSt: THE root of the page (
|
|
1
|
+
// HomeSt: THE root of the page (patterns/app-state-tree), exposed as window.app.
|
|
2
2
|
// One tree for every page the home serves, '/', '/planned', '/activity' and
|
|
3
3
|
// '/r/<repo>/': the machine, the project list, the plan, the activity, and one RepoSt per repo visited, built on
|
|
4
4
|
// the first visit and kept for the life of the page (same name, same
|
|
@@ -15,11 +15,14 @@ import { currentHash, hashFor } from './hash-route.ts'
|
|
|
15
15
|
import { MachineSt, type MachineOpts } from './machine-st.ts'
|
|
16
16
|
import { LayoutSt } from './layout-st.ts'
|
|
17
17
|
import { ThemeSt } from './theme-st.ts'
|
|
18
|
+
import { FrameCache } from './frames-st.ts'
|
|
18
19
|
import { DockSt } from './dock-st.ts'
|
|
19
20
|
import { PaletteSt } from './palette-st.ts'
|
|
20
21
|
import { PlannedSt } from './planned-st.ts'
|
|
21
22
|
import { ActivitySt } from './activity-st.ts'
|
|
22
23
|
import { InsightsSt } from './insights-st.ts'
|
|
24
|
+
import { IdentitiesSt } from './identities-st.ts'
|
|
25
|
+
import { identityAddress, parseIdentityHash, type IdentitySel } from './identity-address.ts'
|
|
23
26
|
import { InboxSt } from './inbox-st.ts'
|
|
24
27
|
import { ProjectsSvc } from './projects-svc.ts'
|
|
25
28
|
import { parseFilter, RepoSt } from './repo-st.ts'
|
|
@@ -29,10 +32,10 @@ import { openSection, repoSections, sectionOfRepo } from './repo-sections.ts'
|
|
|
29
32
|
export const PREFETCH_WAIT_MS = 10_000
|
|
30
33
|
|
|
31
34
|
/** what the page shows: the machine overview, the inbox, the plan, the activity, the insights, the archived repos, or one repo */
|
|
32
|
-
export type Page = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights' | 'archived' | 'repo'
|
|
35
|
+
export type Page = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights' | 'identities' | 'archived' | 'repo'
|
|
33
36
|
|
|
34
37
|
/** the address of each page of the home that is no repo's */
|
|
35
|
-
export const PLACE_PATH = { overview: '/', inbox: '/inbox', planned: '/planned', activity: '/activity', insights: '/insights', archived: '/archived' } as const
|
|
38
|
+
export const PLACE_PATH = { overview: '/', inbox: '/inbox', planned: '/planned', activity: '/activity', insights: '/insights', identities: '/identities', archived: '/archived' } as const
|
|
36
39
|
|
|
37
40
|
/** where a repo's hub answers on the home */
|
|
38
41
|
export const repoBase = (name: string): string => `/r/${encodeURIComponent(name)}`
|
|
@@ -54,6 +57,7 @@ export function routeOf(pathname: string): { page: Page; repo: string | null } {
|
|
|
54
57
|
if (/^\/planned\/?$/.test(pathname)) return { page: 'planned', repo: null }
|
|
55
58
|
if (/^\/activity\/?$/.test(pathname)) return { page: 'activity', repo: null }
|
|
56
59
|
if (/^\/insights\/?$/.test(pathname)) return { page: 'insights', repo: null }
|
|
60
|
+
if (/^\/identities\/?$/.test(pathname)) return { page: 'identities', repo: null }
|
|
57
61
|
if (/^\/archived\/?$/.test(pathname)) return { page: 'archived', repo: null }
|
|
58
62
|
return { page: 'overview', repo: null }
|
|
59
63
|
}
|
|
@@ -80,6 +84,8 @@ export class HomeSt {
|
|
|
80
84
|
/** what every repo committed and holds, polled while it is the page */
|
|
81
85
|
activity: ActivitySt
|
|
82
86
|
insights: InsightsSt
|
|
87
|
+
/** who speaks for each repo, read while it is the page */
|
|
88
|
+
identities: IdentitiesSt
|
|
83
89
|
/** everything that waits on the owner in every repo, polled while it is the page */
|
|
84
90
|
inbox: InboxSt
|
|
85
91
|
/** the one picker, cmd+j */
|
|
@@ -90,6 +96,8 @@ export class HomeSt {
|
|
|
90
96
|
dock: DockSt
|
|
91
97
|
/** dark, light or the system's */
|
|
92
98
|
readonly theme = new ThemeSt()
|
|
99
|
+
/** the repo pages' frames kept alive, across repos (frames-st.ts) */
|
|
100
|
+
readonly frames = new FrameCache()
|
|
93
101
|
page: Page
|
|
94
102
|
/** the key of the repo picked last: its name on the home, '' for the one
|
|
95
103
|
* repo of a hub of its own. A global page keeps it (only `shown` says
|
|
@@ -110,13 +118,14 @@ export class HomeSt {
|
|
|
110
118
|
this.planned = new PlannedSt(this)
|
|
111
119
|
this.activity = new ActivitySt(this)
|
|
112
120
|
this.insights = new InsightsSt(this)
|
|
121
|
+
this.identities = new IdentitiesSt(this)
|
|
113
122
|
this.inbox = new InboxSt(this)
|
|
114
123
|
this.palette = new PaletteSt(this)
|
|
115
124
|
this.layout = new LayoutSt()
|
|
116
125
|
this.dock = new DockSt(this)
|
|
117
126
|
this.machine = o.home ? new MachineSt(this, o) : null
|
|
118
127
|
this.page = o.home ? 'overview' : 'repo'
|
|
119
|
-
makeAutoObservable<this, 'disposers' | 'onUrl' | 'prefetching' | 'base'>(this, { base: false, machine: false, projects: false, planned: false, activity: false, insights: false, inbox: false, palette: false, layout: false, theme: false, dock: false, repos: observableShallow, disposers: false, onUrl: false, prefetching: false })
|
|
128
|
+
makeAutoObservable<this, 'disposers' | 'onUrl' | 'prefetching' | 'base'>(this, { base: false, machine: false, projects: false, planned: false, activity: false, insights: false, identities: false, inbox: false, palette: false, layout: false, theme: false, frames: false, dock: false, repos: observableShallow, disposers: false, onUrl: false, prefetching: false })
|
|
120
129
|
const m = this.machine
|
|
121
130
|
if (m != null) {
|
|
122
131
|
this.projects.onSelect = (name) => this.select(name)
|
|
@@ -125,6 +134,8 @@ export class HomeSt {
|
|
|
125
134
|
this.projects.onPicker = () => this.palette.toggle()
|
|
126
135
|
this.projects.pickerOpen = () => this.palette.open
|
|
127
136
|
this.projects.onArchived = () => this.navigate(PLACE_PATH.archived)
|
|
137
|
+
this.projects.onIdentity = (id) => this.openIdentity({ id, part: null, place: null })
|
|
138
|
+
this.projects.identityLit = () => (this.page === 'identities' ? this.identities.shownId : null)
|
|
128
139
|
this.projects.dotOf = (name) => m.dotOf(name)
|
|
129
140
|
this.projects.warnOf = (name) => m.warnOf(name)
|
|
130
141
|
} else {
|
|
@@ -156,6 +167,7 @@ export class HomeSt {
|
|
|
156
167
|
if (this.page === 'planned') return 'planned'
|
|
157
168
|
if (this.page === 'activity') return 'activity'
|
|
158
169
|
if (this.page === 'insights') return 'insights'
|
|
170
|
+
if (this.page === 'identities') return this.identities.shown?.name ?? 'identities'
|
|
159
171
|
if (this.page === 'archived') return 'archived'
|
|
160
172
|
const r = this.shown
|
|
161
173
|
return r == null || r.name === '' ? 'hub' : `${r.name} · hub`
|
|
@@ -248,6 +260,12 @@ export class HomeSt {
|
|
|
248
260
|
this.show(r.page, r.repo, 'push')
|
|
249
261
|
}
|
|
250
262
|
|
|
263
|
+
/** an identity, one of its sections or accounts: the home's identity view on it, in place */
|
|
264
|
+
openIdentity(sel: IdentitySel): void {
|
|
265
|
+
this.identities.select(sel)
|
|
266
|
+
this.show('identities', null, 'push')
|
|
267
|
+
}
|
|
268
|
+
|
|
251
269
|
/** the inbox on one item, or on its list: an item is a history entry of its own, so back returns to the list */
|
|
252
270
|
openInbox(item: { repo: string; id: string } | null): void {
|
|
253
271
|
const was = this.inbox.open
|
|
@@ -273,6 +291,7 @@ export class HomeSt {
|
|
|
273
291
|
if (r.page === 'overview' && this.inbox.phone && location.search === '') return this.show('inbox', null, 'replace')
|
|
274
292
|
if (r.page === 'inbox') this.inbox.fromSearch(location.search)
|
|
275
293
|
if (r.page === 'planned') this.planned.query = new URLSearchParams(location.search).get('q') ?? ''
|
|
294
|
+
if (r.page === 'identities') this.identities.select(parseIdentityHash(location.hash))
|
|
276
295
|
if (r.page === 'repo') this.repo(r.repo!).filter = parseFilter(location.search)
|
|
277
296
|
this.show(r.page, r.repo, 'none')
|
|
278
297
|
this.shown?.applyHash()
|
|
@@ -285,7 +304,7 @@ export class HomeSt {
|
|
|
285
304
|
const prevPage = this.page
|
|
286
305
|
const next = page === 'repo' && repo != null ? this.repo(repo) : null
|
|
287
306
|
// the page already shown is never a second history entry
|
|
288
|
-
if (how === 'push' && page === this.page && next === prev && page !== 'planned' && page !== 'inbox') how = 'none'
|
|
307
|
+
if (how === 'push' && page === this.page && next === prev && page !== 'planned' && page !== 'inbox' && page !== 'identities') how = 'none'
|
|
289
308
|
if (prev != null && prev !== next) prev.pause()
|
|
290
309
|
next?.markSeen()
|
|
291
310
|
this.page = page
|
|
@@ -293,17 +312,22 @@ export class HomeSt {
|
|
|
293
312
|
if (next != null) this.selected = next.key
|
|
294
313
|
this.projects.selected = this.selected
|
|
295
314
|
this.projects.away = next == null
|
|
296
|
-
this.projects.place = page === 'repo' || page === 'archived' ? null : page
|
|
315
|
+
this.projects.place = page === 'repo' || page === 'archived' || page === 'identities' ? null : page
|
|
297
316
|
if (how !== 'none') {
|
|
298
|
-
const to = next != null ? `${repoPage(next.key)}${next.search}${next.hash}` : page === 'planned' ? this.planned.address : page === 'inbox' ? `${PLACE_PATH.inbox}${this.inbox.search}` : page === 'activity' || page === 'insights' || page === 'archived' ? PLACE_PATH[page] : '/'
|
|
317
|
+
const to = next != null ? `${repoPage(next.key)}${next.search}${next.hash}` : page === 'planned' ? this.planned.address : page === 'inbox' ? `${PLACE_PATH.inbox}${this.inbox.search}` : page === 'identities' ? identityAddress(this.identities.sel) : page === 'activity' || page === 'insights' || page === 'archived' ? PLACE_PATH[page] : '/'
|
|
318
|
+
// the identity view picked again is never a second entry
|
|
319
|
+
if (how === 'push' && page === 'identities' && prevPage === 'identities' && `${location.pathname}${location.hash}` === to) how = 'none'
|
|
320
|
+
// a walk with the arrows is one entry, so back returns to where it started
|
|
321
|
+
if (how === 'push' && page === 'identities' && this.identities.entry.how() === 'replace' && prevPage === 'identities') how = 'replace'
|
|
299
322
|
// an inbox item marks its entry, so its back button goes back rather than forward to the list
|
|
300
323
|
const state = page === 'inbox' && this.inbox.open != null ? { inbox: 'item' } : null
|
|
301
324
|
if (how === 'push') history.pushState(state, '', to)
|
|
302
|
-
else history.replaceState(state, '', to)
|
|
325
|
+
else if (how === 'replace') history.replaceState(state, '', to)
|
|
303
326
|
}
|
|
304
327
|
if (page === 'planned') this.planned.start()
|
|
305
328
|
else this.planned.stop()
|
|
306
329
|
if (page === 'insights' && prevPage !== 'insights') this.insights.start()
|
|
330
|
+
if (page === 'identities' && prevPage !== 'identities') this.identities.start()
|
|
307
331
|
if (page === 'inbox') this.inbox.start()
|
|
308
332
|
else this.inbox.stop()
|
|
309
333
|
if (page === 'activity') this.activity.start()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* the home's strip over a hub page, and the overview. hub.css owns every
|
|
2
2
|
token and the base controls: no colour is written here. */
|
|
3
|
-
.hstrip{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--s2);height:
|
|
3
|
+
.hstrip{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--s2);height:40px;flex:none;padding:0 var(--s3);border-bottom:1px solid var(--line);background:var(--bg-top);overflow:hidden;white-space:nowrap}
|
|
4
4
|
.hstrip .sp{flex:1}
|
|
5
5
|
.hplace{font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
|
|
6
6
|
.hrepo{display:inline-flex;align-items:center;gap:var(--s2);min-width:0;flex:0 1 auto}
|
|
@@ -159,3 +159,11 @@
|
|
|
159
159
|
.pdetail>.cstitle{margin:var(--s3) 0 var(--s1)}
|
|
160
160
|
.pdetail>.cstitle:first-child{margin-top:0}
|
|
161
161
|
.pdetail .hlog{margin-top:0}
|
|
162
|
+
/* the identities after the places (wiki tools/shipkit/social.md, Identities): one round avatar each, its initial on
|
|
163
|
+
its colour without one, ringed in its colour while its view shows */
|
|
164
|
+
.hids{flex:none;display:inline-flex;align-items:center;gap:var(--s1);margin-right:var(--s2);padding-right:var(--s2);border-right:1px solid var(--line)}
|
|
165
|
+
.hid{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:none;--idr:transparent}
|
|
166
|
+
.hid:hover{--idr:var(--line)}
|
|
167
|
+
.hid.cur{--idr:var(--idc,var(--accent))}
|
|
168
|
+
.hidm{width:28px;height:28px;border-radius:50%;object-fit:cover;pointer-events:none;box-shadow:0 0 0 2px var(--idr)}
|
|
169
|
+
.hidi{display:grid;place-items:center;background:var(--idc,var(--dim));color:var(--bg);font-size:13px;font-weight:700;user-select:none}
|
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
// repo page the shown repo (its icon, its name in its own colour, the two
|
|
3
3
|
// swatches that set those colours), its check… button and a spinner while
|
|
4
4
|
// it runs, then on the right its processes and its editor icons
|
|
5
|
-
// (header-bar.tsx); on the overview and the plan, the page's name.
|
|
5
|
+
// (header-bar.tsx); on the overview and the plan, the page's name. It starts with the home's places as icon
|
|
6
|
+
// buttons (project-list.tsx Places), then the identities' avatars (Identities), so the rail holds only the repos. The strip
|
|
6
7
|
// carries no trouble text: the shown hub's trouble and the machine's (the
|
|
7
8
|
// daemon, pm or the web not answering, a child or a global process crashed, a
|
|
8
9
|
// failed poll) are cards floating under it at the top right, only while they
|
|
9
10
|
// last (float-cards.tsx). The machine not answering is said there and nowhere
|
|
10
|
-
// else (reach.ts). The places
|
|
11
|
-
// are the place buttons at the top of the project list (the picker's ⌘J,
|
|
12
|
-
// then ⌘K, ⌘L, ⌘') and the first three entries of the
|
|
13
|
-
// picker. What administers one repo (reload its hub, keep it active, archive
|
|
11
|
+
// else (reach.ts). The places are also the first entries of the picker. What administers one repo (reload its hub, keep it active, archive
|
|
14
12
|
// it) is its admin page (admin-view.tsx). NotUp stands in for the hub page
|
|
15
13
|
// while its hub cannot answer, with the fix. Every link of the home is a
|
|
16
14
|
// page of the same app: a plain click moves it in place.
|
|
@@ -31,6 +29,7 @@ import { Pop, Tip } from './floating.tsx'
|
|
|
31
29
|
import { renderMd } from './md.ts'
|
|
32
30
|
import { FloatCards, type Card } from './float-cards.tsx'
|
|
33
31
|
import { hubCards, notUp, RepoOpeners, RepoRun, RepoTools } from './header-bar.tsx'
|
|
32
|
+
import { Identities, Places } from './project-list.tsx'
|
|
34
33
|
|
|
35
34
|
const STATUS_WORD: Record<WorkerView['status'], string> = { up: 'up', starting: 'starting', crashed: 'crashed', down: 'down', stopping: 'stopping' }
|
|
36
35
|
|
|
@@ -249,7 +248,7 @@ const ShownRepo = observer(({ app, name }: { app: HomeSt; name: string }) => {
|
|
|
249
248
|
const downCard = (m: MachineSt): Card[] => {
|
|
250
249
|
const web = m.down !== '' && m.downWho === 'web'
|
|
251
250
|
const pm = m.pmDown !== '' && !web
|
|
252
|
-
if (m.down === '' && !pm) return []
|
|
251
|
+
if (m.down === '' && !pm) return m.restarting === '' ? [] : [{ key: 'down', tone: 'warn', head: 'restarting', body: m.restarting }]
|
|
253
252
|
const head = m.down === '' ? 'pm down' : pm ? 'daemon and pm down' : `${m.downWho} down`
|
|
254
253
|
return [{ key: 'down', tone: 'red', head, body: m.down === '' ? m.pmDown : pm ? <>{m.down}<br />{m.pmDown}</> : m.down }]
|
|
255
254
|
}
|
|
@@ -343,6 +342,8 @@ export const HomeStrip = observer(({ app }: { app: HomeSt }) => {
|
|
|
343
342
|
return (
|
|
344
343
|
<>
|
|
345
344
|
<div className="hstrip">
|
|
345
|
+
<Places s={app.projects} />
|
|
346
|
+
<Identities s={app.projects} />
|
|
346
347
|
{name == null ? <span className="hplace">{app.page === 'overview' ? 'overview' : app.page}</span> : <ShownRepo app={app} name={name} />}
|
|
347
348
|
{name == null ? null : <RepoProcesses m={m} name={name} />}
|
|
348
349
|
<span className="sp" />
|
|
@@ -11,10 +11,15 @@
|
|
|
11
11
|
<link rel="stylesheet" href="./when.css" />
|
|
12
12
|
<link rel="stylesheet" href="./activity.css" />
|
|
13
13
|
<link rel="stylesheet" href="./insights.css" />
|
|
14
|
+
<link rel="stylesheet" href="./identities.css" />
|
|
15
|
+
<link rel="stylesheet" href="./site.css" />
|
|
14
16
|
<link rel="stylesheet" href="./readme.css" />
|
|
15
17
|
<link rel="stylesheet" href="./dock.css" />
|
|
16
18
|
<link rel="stylesheet" href="./controls.css" />
|
|
17
19
|
<link rel="stylesheet" href="./review.css" />
|
|
20
|
+
<link rel="stylesheet" href="./stores.css" />
|
|
21
|
+
<link rel="stylesheet" href="./veille.css" />
|
|
22
|
+
<link rel="stylesheet" href="./social.css" />
|
|
18
23
|
<link rel="stylesheet" href="./inbox.css" />
|
|
19
24
|
</head>
|
|
20
25
|
<body data-home>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THE page (Bun.serve HTML import — no vite, no build step), one single page
|
|
2
2
|
// app for every page the home serves ('/', '/planned', '/activity', '/r/<repo>/') and for a
|
|
3
|
-
// hub serving on its own at '/'. mobx+react per
|
|
3
|
+
// hub serving on its own at '/'. mobx+react per patterns/app-state-tree: HomeSt
|
|
4
4
|
// is the single root (window.app), each repo a RepoSt under it, services own
|
|
5
5
|
// state, components read and call. A repo's page is ONE tree whose top rows
|
|
6
6
|
// are its sections and whose rows under them are every repo resource
|
|
@@ -32,6 +32,10 @@ import { AdminPage } from './admin-view.tsx'
|
|
|
32
32
|
import { ReadmeView } from './readme-view.tsx'
|
|
33
33
|
import { ReviewPage } from './review/review-page.tsx'
|
|
34
34
|
import { TrailerPage } from './review/trailer-page.tsx'
|
|
35
|
+
import { StoresPage } from './stores/stores-page.tsx'
|
|
36
|
+
import { VeillePage } from './veille/veille-page.tsx'
|
|
37
|
+
import { CommsPage } from './social/comms-page.tsx'
|
|
38
|
+
import { SocialPage } from './social/social-page.tsx'
|
|
35
39
|
import { ProjectList } from './project-list.tsx'
|
|
36
40
|
import { Group, Panel, Separator, usePanelRef, type Layout } from 'react-resizable-panels'
|
|
37
41
|
import { LIST, SIDEBAR } from './layout-st.ts'
|
|
@@ -39,9 +43,11 @@ import { ArchivedView, HomeStrip, NotUp, Overview } from './home-strip.tsx'
|
|
|
39
43
|
import { PlannedView } from './planned-view.tsx'
|
|
40
44
|
import { ActivityView } from './activity-view.tsx'
|
|
41
45
|
import { InsightsView } from './insights-view.tsx'
|
|
46
|
+
import { IdentitiesView } from './identities-view.tsx'
|
|
42
47
|
import { Palette } from './palette-view.tsx'
|
|
43
48
|
import { SCREEN_WAIT_MS } from './screen-cache.ts'
|
|
44
|
-
import { isSearchKey, pageKey, sectionKey } from './keys.ts'
|
|
49
|
+
import { isSearchKey, pageKey, pageLetterKey, sectionKey } from './keys.ts'
|
|
50
|
+
import { PageFrames } from './pages-frames.tsx'
|
|
45
51
|
import { repoSections } from './repo-sections.ts'
|
|
46
52
|
import { Dock } from './dock-view.tsx'
|
|
47
53
|
import { DOCK } from './dock-st.ts'
|
|
@@ -50,9 +56,12 @@ import { animateDock } from './dock-anim.ts'
|
|
|
50
56
|
// home.html marks the home's page; index.html is a hub serving on its own; `<base>/embed/?page=review` is one repo's
|
|
51
57
|
// review or trailer page alone, for another tool's frame (embed.ts), its base read from where it sits
|
|
52
58
|
const embedAt = /^(.*)\/embed\/?$/.exec(location.pathname)
|
|
53
|
-
const
|
|
59
|
+
const EMBED_PAGES = ['review', 'trailer', 'stores', 'veille', 'comms', 'social'] as const
|
|
60
|
+
type EmbedPage = (typeof EMBED_PAGES)[number]
|
|
61
|
+
const asked = new URLSearchParams(location.search).get('page')
|
|
62
|
+
const embed: EmbedPage | null = embedAt == null ? null : (EMBED_PAGES.find((p) => p === asked) ?? 'review')
|
|
54
63
|
const home = new HomeSt(embedAt == null ? { home: document.body.dataset.home != null } : { home: false, base: embedAt[1] ?? '' })
|
|
55
|
-
// the root as a global — app code, console debugging (
|
|
64
|
+
// the root as a global — app code, console debugging (patterns/app-state-tree)
|
|
56
65
|
;(window as unknown as { app: HomeSt }).app = home
|
|
57
66
|
home.boot()
|
|
58
67
|
|
|
@@ -88,6 +97,10 @@ const Main = observer(({ app }: { app: RepoSt }) => {
|
|
|
88
97
|
)
|
|
89
98
|
if (app.sel?.t === 'review') return <main>{errs}<ReviewPage app={app} /></main>
|
|
90
99
|
if (app.sel?.t === 'trailer') return <main>{errs}<TrailerPage app={app} /></main>
|
|
100
|
+
if (app.sel?.t === 'stores') return <main>{errs}<StoresPage app={app} /></main>
|
|
101
|
+
if (app.sel?.t === 'veille') return <main>{errs}<VeillePage app={app} /></main>
|
|
102
|
+
if (app.sel?.t === 'comms') return <main>{errs}<CommsPage app={app} /></main>
|
|
103
|
+
if (app.sel?.t === 'social') return <main>{errs}<SocialPage app={app} /></main>
|
|
91
104
|
if (app.sel?.t === 'tests') return <main>{errs}<div className="stagewrap"><TestsPage app={app} check={app.sel.check} /></div></main>
|
|
92
105
|
if (app.sel?.t === 'admin') return <main>{errs}<div className="stagewrap"><AdminPage app={app} /></div></main>
|
|
93
106
|
if (app.sel?.t === 'plan') return <main>{errs}<div className="stagewrap"><PlanPage app={app} /></div></main>
|
|
@@ -96,6 +109,8 @@ const Main = observer(({ app }: { app: RepoSt }) => {
|
|
|
96
109
|
if (app.sel?.t === 'when') return <main>{errs}<div className="stagewrap"><WhenPage app={app} /></div></main>
|
|
97
110
|
if (app.sel?.t === 'processes') return <main>{errs}<div className="stagewrap"><ProcessesPage app={app} id={app.sel.id} /></div></main>
|
|
98
111
|
if (app.sel?.t === 'status') return <main>{errs}<div className="stagewrap"><StatusCard app={app} /></div></main>
|
|
112
|
+
// a repo's own page is its kept frame, drawn beside this (pages-frames.tsx)
|
|
113
|
+
if (app.sel?.t === 'page') return null
|
|
99
114
|
if (app.sel?.t === 'cat') return <main>{errs}<CatGrid app={app} /></main>
|
|
100
115
|
if (app.sel?.t === 'asset') return (
|
|
101
116
|
<main>
|
|
@@ -132,6 +147,22 @@ const FILTER_BY_KEY: Record<string, Filter | undefined> = { a: 'all', n: 'needs'
|
|
|
132
147
|
* overflow is the one inline style the library lets a panel set */
|
|
133
148
|
const PANEL = { overflow: 'hidden' } as const
|
|
134
149
|
|
|
150
|
+
/** the identity view's keys: its lightbox first, then `/` and the list's arrows, the repo tree's (list-walk.ts) */
|
|
151
|
+
function identityKey(e: KeyboardEvent): void {
|
|
152
|
+
const st = home.identities
|
|
153
|
+
const t = e.target as HTMLElement
|
|
154
|
+
if (t.tagName === 'TEXTAREA' || t.tagName === 'INPUT' || e.metaKey || e.ctrlKey || e.altKey) return
|
|
155
|
+
if (st.desk?.lightbox != null && st.desk.key(e, 'social')) return e.preventDefault()
|
|
156
|
+
if (isSearchKey(e)) {
|
|
157
|
+
e.preventDefault()
|
|
158
|
+
st.searchEl?.focus()
|
|
159
|
+
return
|
|
160
|
+
}
|
|
161
|
+
// the arrows need no focus, Enter and space only where no button or link claims them
|
|
162
|
+
const own = e.key.startsWith('Arrow') || t.closest('button, a, select, [role="button"]') == null
|
|
163
|
+
if (own && st.key(e.key)) e.preventDefault()
|
|
164
|
+
}
|
|
165
|
+
|
|
135
166
|
/** a drag of a separator ended: the width of the panel on its left, in px,
|
|
136
167
|
* from the group's layout (a percentage of the group's width) */
|
|
137
168
|
const leftPx = (el: HTMLElement | null, layout: Layout, id: string): number | null => {
|
|
@@ -158,6 +189,7 @@ const Body = observer(({ app }: { app: RepoSt }) => {
|
|
|
158
189
|
<Separator className="rsep" />
|
|
159
190
|
<Panel id="main" minSize={320} className="pmain" style={PANEL} onPointerDownCapture={() => app.tree.leave()}>
|
|
160
191
|
<Main app={app} />
|
|
192
|
+
<PageFrames app={app} />
|
|
161
193
|
</Panel>
|
|
162
194
|
</Group>
|
|
163
195
|
)
|
|
@@ -215,6 +247,7 @@ function onKey(e: KeyboardEvent): void {
|
|
|
215
247
|
return
|
|
216
248
|
}
|
|
217
249
|
if (home.palette.open) return // the picker's input owns its keys
|
|
250
|
+
if (home.page === 'identities') return identityKey(e)
|
|
218
251
|
const app = home.shown
|
|
219
252
|
if (app == null) return
|
|
220
253
|
const t = e.target as HTMLElement
|
|
@@ -231,6 +264,16 @@ function onKey(e: KeyboardEvent): void {
|
|
|
231
264
|
e.preventDefault()
|
|
232
265
|
return
|
|
233
266
|
}
|
|
267
|
+
// a repo's own page, ⌥⇧ and its letter
|
|
268
|
+
const letter = pageLetterKey(e)
|
|
269
|
+
if (letter != null) {
|
|
270
|
+
const p = app.pages.byKey(letter)
|
|
271
|
+
if (p != null) {
|
|
272
|
+
e.preventDefault()
|
|
273
|
+
app.showPage(p.id)
|
|
274
|
+
}
|
|
275
|
+
return
|
|
276
|
+
}
|
|
234
277
|
const sk = sectionKey(e)
|
|
235
278
|
if (sk != null) {
|
|
236
279
|
const s = repoSections(app).find((x) => x.id === sk)
|
|
@@ -348,6 +391,7 @@ const App = observer(() => {
|
|
|
348
391
|
{home.page === 'planned' ? <PlannedView app={home} /> : null}
|
|
349
392
|
{home.page === 'activity' ? <ActivityView app={home} /> : null}
|
|
350
393
|
{home.page === 'insights' ? <InsightsView app={home} /> : null}
|
|
394
|
+
{home.page === 'identities' ? <IdentitiesView app={home} /> : null}
|
|
351
395
|
{home.page === 'archived' ? <ArchivedView app={home} /> : null}
|
|
352
396
|
{home.visited.map((r) => <RepoView key={r.key} app={r} />)}
|
|
353
397
|
</Panel>
|
|
@@ -365,7 +409,7 @@ const App = observer(() => {
|
|
|
365
409
|
|
|
366
410
|
/** the embed page: the one page, no tree, no list, no dock. Its address and the frame's host follow each other: every
|
|
367
411
|
* page move is posted to the parent, and the parent's `{ shipkit: 'go', hash }` moves the page; both only on this origin */
|
|
368
|
-
const EmbedApp = observer(({ page }: { page:
|
|
412
|
+
const EmbedApp = observer(({ page }: { page: EmbedPage }) => {
|
|
369
413
|
const app = home.shown
|
|
370
414
|
useEffect(() => {
|
|
371
415
|
document.addEventListener('keydown', onKey)
|
|
@@ -382,7 +426,7 @@ const EmbedApp = observer(({ page }: { page: 'review' | 'trailer' }) => {
|
|
|
382
426
|
}, [])
|
|
383
427
|
useEffect(() => {
|
|
384
428
|
if (app == null) return
|
|
385
|
-
if (app.sel?.t !== page) app.go(page === 'review' ? { t: 'review', id: null } : { t: 'trailer', trailer: null, cut: null })
|
|
429
|
+
if (app.sel?.t !== page) app.go(page === 'review' ? { t: 'review', id: null } : page === 'trailer' ? { t: 'trailer', trailer: null, cut: null } : page === 'veille' ? { t: 'veille', post: null } : page === 'comms' ? { t: 'comms', draft: null } : page === 'social' ? { t: 'social', identity: null } : { t: 'stores', store: null })
|
|
386
430
|
if (window.parent === window) return
|
|
387
431
|
return reaction(
|
|
388
432
|
() => (app.sel == null ? '' : (hashFor(app.sel) ?? '')),
|
|
@@ -391,7 +435,7 @@ const EmbedApp = observer(({ page }: { page: 'review' | 'trailer' }) => {
|
|
|
391
435
|
)
|
|
392
436
|
}, [app, page])
|
|
393
437
|
if (app == null) return null
|
|
394
|
-
return <main className="embed" style={{ position: 'fixed', inset: 0 }}>{page === 'review' ? <ReviewPage app={app} /> : <TrailerPage app={app} />}</main>
|
|
438
|
+
return <main className="embed" style={{ position: 'fixed', inset: 0 }}>{page === 'review' ? <ReviewPage app={app} /> : page === 'trailer' ? <TrailerPage app={app} /> : page === 'veille' ? <VeillePage app={app} /> : page === 'comms' ? <CommsPage app={app} /> : page === 'social' ? <SocialPage app={app} /> : <StoresPage app={app} />}</main>
|
|
395
439
|
})
|
|
396
440
|
|
|
397
441
|
// the shown repo's kept screen is read before the first paint, so a refresh
|
|
@@ -31,17 +31,19 @@
|
|
|
31
31
|
--s0:2px;--s1:4px;--s2:8px;--s3:12px;--s4:16px}
|
|
32
32
|
/* THE LIGHT TOKENS: the same names, read on a light page (theme-st.ts sets
|
|
33
33
|
<html data-theme>). Every token of the block above has its light value
|
|
34
|
-
here, and tests/hub-css-invariants.test.ts fails a missing one
|
|
35
|
-
:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
--
|
|
34
|
+
here, and tests/hub-css-invariants.test.ts fails a missing one. Each ink
|
|
35
|
+
holds its contrast on every surface, sel included: ink 13:1, dim 6.5:1, a
|
|
36
|
+
state or kind hue 4.6:1 (tests/hub-css-invariants.test.ts) */
|
|
37
|
+
:root[data-theme=light]{--bg:#f1f3f6;--panel:#ffffff;
|
|
38
|
+
--bg-side:#e6e9ee;--bg-top:#eaedf1;--bg-dock:#e3e7ec;--panel2:#e3e7ec;--line:#bcc4ce;--ink:#16191d;--dim:#464b51;
|
|
39
|
+
--accent:#355e87;--sel:#d2e0ef;--chk1:#e3e7ec;--chk2:#f7f8fa;
|
|
40
|
+
--red:#a83733;--warn:#86550b;--ok:#256e45;--blue:#275fa0;
|
|
39
41
|
--scrim:rgba(20,24,30,.35);--shadow:rgba(20,24,30,.16);--solid:#000;
|
|
40
42
|
--hi1:rgba(0,0,0,.2);--hi2:rgba(0,0,0,.11);--hi3:rgba(0,0,0,.045);
|
|
41
43
|
--ground:#e3ede6;--groundline:#c6d6cb;--tag:#eef2f6;
|
|
42
|
-
--k1:#
|
|
43
|
-
--review:#
|
|
44
|
-
--ref-lazy:#
|
|
44
|
+
--k1:#3b6087;--k2:#695099;--k3:#24676f;--k4:#8e4470;--k5:#585f67;--k6:#4f56a8;
|
|
45
|
+
--review:#a72288;
|
|
46
|
+
--ref-lazy:#944d0a;--ref-eager:#1d5abd;
|
|
45
47
|
--wash:rgba(59,104,150,.12);--wash2:rgba(59,104,150,.08);--hair:rgba(59,104,150,.45);
|
|
46
48
|
--errbg:#fbe9e8;--errline:#efc4c2;--errink:#8a2520;
|
|
47
49
|
--okbg:#e6f3eb;--okline:#9ccdaf}
|
|
@@ -74,6 +76,11 @@ a,a:visited{color:var(--accent)}
|
|
|
74
76
|
.pside > aside{flex:1}
|
|
75
77
|
.pmain{display:flex;flex-direction:column}
|
|
76
78
|
.pmain > main{flex:1}
|
|
79
|
+
/* a repo's own pages (pages-frames.tsx): every kept frame, the shown one alone displayed */
|
|
80
|
+
.pframes{flex:1;min-height:0;display:flex;flex-direction:column}
|
|
81
|
+
.pframes[hidden],.pframe[hidden]{display:none}
|
|
82
|
+
.pframe{flex:1;min-height:0;display:flex;flex-direction:column}
|
|
83
|
+
.pframe iframe{flex:1;width:100%;min-height:0;border:0;display:block}
|
|
77
84
|
|
|
78
85
|
/* ── a repo's bar: on the home the strip (home-strip.css .hstrip), on a hub
|
|
79
86
|
of its own the header (.hdr). Its name, its check… button and a spinner
|
|
@@ -97,6 +104,15 @@ a,a:visited{color:var(--accent)}
|
|
|
97
104
|
.hicon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:22px;padding:0;border:0;background:none;color:var(--dim)}
|
|
98
105
|
.hicon:hover{color:var(--accent)}
|
|
99
106
|
.hicon .hico{width:15px;height:15px}
|
|
107
|
+
/* the home's places at the start of the top bar, apart from the page's own pieces; the page shown is lit */
|
|
108
|
+
.hplaces{flex:none;display:inline-flex;align-items:center;gap:var(--s0);margin-right:var(--s2);padding-right:var(--s2);border-right:1px solid var(--line)}
|
|
109
|
+
.hpl.cur{color:var(--accent);background:var(--sel);border-radius:4px}
|
|
110
|
+
/* every fold's caret (icons.tsx Caret): 14 px, turned by its state, never a text glyph a font draws at 6 px */
|
|
111
|
+
.caret{flex:none;display:inline-block;width:14px;height:14px;vertical-align:-2px;transition:transform .12s ease}
|
|
112
|
+
.caret.open{transform:rotate(90deg)}
|
|
113
|
+
.caret.v{transform:rotate(90deg)}
|
|
114
|
+
.caret.v.open{transform:rotate(-90deg)}
|
|
115
|
+
@media (prefers-reduced-motion:reduce){.caret{transition:none}}
|
|
100
116
|
|
|
101
117
|
/* a row of a (?) legend: one glyph or word, then its meaning */
|
|
102
118
|
.lrow{display:flex;gap:var(--s2);align-items:center;height:29px;flex:none;padding:0 var(--s3)}
|
|
@@ -111,8 +127,8 @@ aside > .tscroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scroll
|
|
|
111
127
|
aside > .tscroll::-webkit-scrollbar{width:6px}
|
|
112
128
|
aside > .tscroll::-webkit-scrollbar-track{background:transparent}
|
|
113
129
|
aside > .tscroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
|
|
114
|
-
/* a section, the tree's top row: the project list's
|
|
115
|
-
.
|
|
130
|
+
/* a section, the tree's top row: the project list's rows (project-list.css
|
|
131
|
+
.pjrow), a little shorter, the current one lit and marked in the accent.
|
|
116
132
|
The chevron column is the tree's own, so a section's rows line up under it */
|
|
117
133
|
.tsec{display:grid;grid-template-columns:14px 16px minmax(0,1fr) auto auto;align-items:center;gap:var(--s2);height:26px;padding:0 var(--s1) 0 var(--s2);color:var(--dim);font-size:13px;cursor:pointer;white-space:nowrap}
|
|
118
134
|
.tsec:hover{background:var(--panel2);color:var(--ink)}
|
|
@@ -122,6 +138,8 @@ aside > .tscroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:3
|
|
|
122
138
|
.tsec.on{box-shadow:inset 2px 0 0 var(--accent)}
|
|
123
139
|
.tsec.cur{background:var(--sel);color:var(--ink);box-shadow:inset 3px 0 0 var(--accent);font-weight:600}
|
|
124
140
|
.tsec .hico{width:16px;height:16px}
|
|
141
|
+
.tsec.tpfirst{margin-top:var(--s2);box-shadow:inset 0 1px 0 var(--line)}
|
|
142
|
+
.tsec.tpfirst.cur{box-shadow:inset 3px 0 0 var(--accent),inset 0 1px 0 var(--line)}
|
|
125
143
|
.tsec:hover .tw{color:var(--ink)}
|
|
126
144
|
.rsecl{min-width:0;overflow:hidden;text-overflow:ellipsis}
|
|
127
145
|
.rsecn{min-width:16px;height:16px;padding:0 var(--s1);border-radius:8px;font-size:10px;font-weight:700;line-height:16px;text-align:center;color:var(--bg)}
|
|
@@ -689,7 +707,7 @@ a.tok{color:var(--accent)}
|
|
|
689
707
|
.ctgrp:hover td{color:var(--accent)}
|
|
690
708
|
.ctgrp.g-fail td{color:var(--red)}
|
|
691
709
|
.ctgrp.g-warn td{color:var(--warn)}
|
|
692
|
-
.ctcaret{display:inline-
|
|
710
|
+
.ctcaret{display:inline-flex;width:18px}
|
|
693
711
|
.ctrow{cursor:pointer}
|
|
694
712
|
.ctrow:hover{background:var(--panel2)}
|
|
695
713
|
.ctdot{font-size:10px}
|
|
@@ -22,6 +22,9 @@ export const ICON = {
|
|
|
22
22
|
activity: 'M6 3v14M6 6.5a2 2 0 1 0 0 .01M6 13.5a2 2 0 1 0 0 .01M10 6.5h7M10 13.5h7M10 10h5',
|
|
23
23
|
fork: 'M6 5v10M6 3a2 2 0 1 0 0 .01M6 17a2 2 0 1 0 0 .01M14 5a2 2 0 1 0 0 .01M14 7c0 4.5-8 3.5-8 7',
|
|
24
24
|
search: 'M8.5 3a5.5 5.5 0 1 0 0 11a5.5 5.5 0 1 0 0-11M12.5 12.5 17 17',
|
|
25
|
+
// fold every cell: two chevrons meeting; unfold every cell: two chevrons apart
|
|
26
|
+
foldAll: 'M6 3.5l4 4 4-4M6 16.5l4-4 4 4',
|
|
27
|
+
unfoldAll: 'M6 7.5l4-4 4 4M6 12.5l4 4 4-4',
|
|
25
28
|
// a repo page's sections, then its two runs and its editor
|
|
26
29
|
readme: 'M5 2.5h7l3 3v12H5zM12 2.5v3h3M7.5 9h5M7.5 12h5M7.5 15h3',
|
|
27
30
|
checks: 'M4 10.5 7.5 14 16 5.5',
|
|
@@ -30,11 +33,17 @@ export const ICON = {
|
|
|
30
33
|
secrets: 'M7 7a3 3 0 1 0 0 6a3 3 0 1 0 0-6M10 10h7.5M15 10v2.5M17.5 10v2',
|
|
31
34
|
runs: 'M3 5h8M3 10h12M3 15h6',
|
|
32
35
|
asks: 'M3 4h14v9H8l-4 3.5V13H3z',
|
|
33
|
-
//
|
|
36
|
+
// a review bubble with a pen (rate_review), and a clapper (movie)
|
|
34
37
|
review: 'M3 3.5h14v10H7.5L3 17zM7 10.5l4.5-4.5 1.5 1.5L8.5 12H7z',
|
|
35
38
|
tests: 'M8 3h4M8.5 3v5L4 16.5h12L11.5 8V3M6.2 12.5h7.6',
|
|
36
39
|
media: 'M3 4h14v12H3zM3 13l4-4 4 4 2-2 4 4M13 7.5h.01',
|
|
37
40
|
trailer: 'M2.5 4.5h15v11h-15zM2.5 8.5h15M6 4.5 7.5 8.5M10 4.5l1.5 4M14 4.5l1.5 4',
|
|
41
|
+
// a shop front: an awning over a door
|
|
42
|
+
veille: 'M10 4.5c-4 0-7 3.5-7.5 5.5.5 2 3.5 5.5 7.5 5.5s7-3.5 7.5-5.5c-.5-2-3.5-5.5-7.5-5.5zM10 7a3 3 0 1 0 0 6 3 3 0 0 0 0-6z',
|
|
43
|
+
stores: 'M3 4h14l1 4H2zM2 8c0 1.4 1.3 2.5 2.7 2.5S7.3 9.4 7.3 8c0 1.4 1.3 2.5 2.7 2.5S12.7 9.4 12.7 8c0 1.4 1.3 2.5 2.7 2.5S18 9.4 18 8M4 10.5V17h12v-6.5M8 17v-4h4v4',
|
|
44
|
+
// a megaphone (the drafts he posts), two people (the identities and their accounts)
|
|
45
|
+
comms: 'M3 8h3l8-4v12l-8-4H3zM6 12l1.5 4.5',
|
|
46
|
+
social: 'M7 9a2.5 2.5 0 1 0 0-5a2.5 2.5 0 1 0 0 5M2.5 16c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5M13.5 9a2 2 0 1 0 0-4M13 11.5c2.5 0 4.5 1.8 4.5 4.5',
|
|
38
47
|
wikis: 'M10 5.5C8.5 4 6 3.5 3 4v11c3-.5 5.5 0 7 1.5c1.5-1.5 4-2 7-1.5V4c-3-.5-5.5 0-7 1.5zM10 5.5v11',
|
|
39
48
|
admin: 'M4 5h12M4 10h12M4 15h12M7 3.5v3M13 8.5v3M9 13.5v3',
|
|
40
49
|
health: 'M2 10h3.5l2-5 5 10 2-5H18',
|
|
@@ -62,6 +71,12 @@ export const ICON = {
|
|
|
62
71
|
restart: 'M15.5 10a5.5 5.5 0 1 1-1.6-3.9M14.2 3v3.3h-3.3',
|
|
63
72
|
} as const
|
|
64
73
|
|
|
74
|
+
/** every fold's caret: a chevron that points at what a click shows. `v`: a word button that unfolds below
|
|
75
|
+
* (« more », « show »), down while folded and up once open; else right while folded, down once open */
|
|
76
|
+
export const Caret = ({ open, v = false }: { open: boolean; v?: boolean }) => (
|
|
77
|
+
<svg className={`caret${v ? ' v' : ''}${open ? ' open' : ''}`} viewBox="0 0 20 20" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"><path d="M7.5 4.5 13 10l-5.5 5.5" /></svg>
|
|
78
|
+
)
|
|
79
|
+
|
|
65
80
|
export const Icon = ({ d }: { d: string }) => (
|
|
66
81
|
<svg className="hico" viewBox="0 0 20 20" width="16" height="16" aria-hidden="true" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"><path d={d} /></svg>
|
|
67
82
|
)
|