rvlib-shipkit 2.11.0 → 2.13.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 +56 -12
- package/README.md +1 -1
- package/package.json +4 -2
- package/src/agent-time/store.ts +2 -2
- package/src/check.ts +1 -1
- package/src/checks/SK001-package-json-shape.check.ts +4 -0
- package/src/checks/SK003-claude-md-shape.check.ts +1 -1
- package/src/checks/SK004-gitignore-policy.check.ts +27 -2
- package/src/checks/SK005-rvlib-versions.check.ts +1 -1
- package/src/checks/SK008-reviewer-agent.check.ts +2 -2
- package/src/checks/SK012-config-barrel-import.check.ts +1 -1
- package/src/checks/SK015-nested-repo.check.ts +1 -1
- package/src/checks/SK035-public-clean.check.ts +46 -0
- package/src/checks/SK036-draft-media-size.check.ts +28 -0
- package/src/cli/cmd_Backup.ts +152 -0
- package/src/cli/cmd_Ci.ts +8 -11
- package/src/cli/cmd_Drill.ts +145 -0
- package/src/cli/cmd_Home.ts +50 -3
- package/src/cli/cmd_Media.ts +96 -5
- package/src/cli/cmd_Review.ts +8 -2
- package/src/cli/cmd_Shot.ts +5 -2
- package/src/cli/cmd_Smoke.ts +4 -1
- package/src/cli/cmd_Social.ts +226 -0
- package/src/cli/cmd_Start.ts +1 -1
- package/src/cli/cmd_Time.ts +1 -1
- package/src/cli/cmd_Trailer.ts +9 -2
- package/src/cli/cmd_Veille.ts +173 -0
- package/src/cli/family-pages.ts +3 -0
- 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 +11 -2
- package/src/collections/providers.ts +4 -4
- package/src/collections/review.ts +2 -1
- package/src/collections/tests.ts +19 -8
- 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/core/app-icon.ts +9 -3
- package/src/core/bun-builtins.ts +2 -2
- package/src/core/discover-checks.ts +37 -5
- 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/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/one-way-in-policy.ts +27 -19
- package/src/core/run-ci.ts +6 -8
- package/src/core/run-fixers.ts +9 -9
- package/src/core/slots.ts +21 -0
- 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 +34 -1
- package/src/home/home-routes.ts +22 -15
- package/src/home/hubs.ts +10 -3
- package/src/home/inbox-shape.ts +61 -6
- package/src/home/inbox.ts +75 -4
- package/src/home/lib-watch.ts +10 -3
- package/src/home/machine-stores.ts +15 -29
- package/src/home/run-daemon.ts +15 -18
- package/src/home/run-pm.ts +2 -0
- package/src/home/serve-daemon.ts +4 -3
- package/src/home/serve-web.ts +110 -1
- package/src/hooks/commit-message.ts +28 -19
- package/src/hooks/leak-guard.ts +10 -3
- package/src/hooks/run-hooks.ts +2 -6
- 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 +1 -1
- 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 +9 -1
- 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 +11 -1
- package/src/media-store/daemon.ts +56 -70
- package/src/media-store/hand.ts +58 -0
- package/src/media-store/put.ts +122 -0
- package/src/media-store/space.ts +73 -11
- 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 +301 -0
- package/src/release/published-here.ts +22 -0
- package/src/release/run-bump.ts +2 -1
- package/src/release/run-release.ts +4 -1
- package/src/repo-config.ts +53 -2
- package/src/review/http.ts +16 -2
- package/src/review/media-kind.ts +3 -3
- package/src/review/media-read.ts +3 -3
- package/src/review/model.ts +24 -5
- package/src/review/notes.ts +77 -0
- package/src/review/project.ts +6 -38
- package/src/review/routes.ts +8 -13
- package/src/review/store.ts +46 -4
- package/src/review/trailer-media.ts +24 -3
- package/src/review/trailer-shots.ts +106 -0
- package/src/review/unit.ts +1 -1
- package/src/scaffold/files/agent-handoff.md +3 -0
- package/src/scaffold/files/agent-index.md +4 -12
- package/src/scaffold/project-scaffold.ts +5 -4
- package/src/serve/embed.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 +12 -14
- 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 +31 -7
- 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 +49 -5
- 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 +352 -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 +59 -6
- package/src/serve/hub-app/inbox-view.tsx +48 -6
- package/src/serve/hub-app/inbox.css +12 -1
- package/src/serve/hub-app/index.html +3 -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-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 +75 -19
- package/src/serve/hub-app/review/review-cells.tsx +3 -3
- package/src/serve/hub-app/review/review-kit.ts +30 -7
- package/src/serve/hub-app/review/review-page.tsx +1 -1
- package/src/serve/hub-app/review/review-st.ts +33 -11
- package/src/serve/hub-app/review/review-thread.tsx +11 -9
- package/src/serve/hub-app/review/review-views.tsx +84 -19
- package/src/serve/hub-app/review/thread-st.ts +1 -10
- package/src/serve/hub-app/review/trailer-page.tsx +2 -1
- package/src/serve/hub-app/review.css +17 -8
- 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 +306 -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 +674 -0
- package/src/serve/hub-app/social/social-st.ts +986 -0
- package/src/serve/hub-app/social.css +289 -0
- package/src/serve/hub-app/stores/stores-page.tsx +311 -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/test-view.tsx +9 -2
- package/src/serve/hub-app/tests-svc.ts +16 -1
- 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 +514 -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 +14 -9
- package/src/serve/project-gutter-route.ts +44 -12
- package/src/serve/resources-wire.ts +48 -0
- package/src/serve/run-lanes.ts +7 -4
- package/src/serve/same-origin.ts +1 -1
- package/src/serve/serve-hub.ts +27 -18
- 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 +162 -0
- package/src/shot/browser-slot.ts +62 -0
- package/src/shot/client.ts +43 -7
- package/src/shot/clip-encoder.ts +93 -12
- package/src/shot/film-box.ts +188 -0
- package/src/shot/shooter.ts +50 -15
- 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/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 +319 -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 +31 -0
- package/src/social/richtext.ts +37 -0
- package/src/social/routes.ts +180 -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 +94 -34
- package/src/suite/suite-cli.ts +44 -10
- package/src/suite/suite-cpu-preload.ts +34 -9
- package/src/trailer/adapter.ts +4 -0
- package/src/trailer/build.ts +42 -11
- 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/passage.ts +21 -6
- package/src/trailer/plan.ts +74 -3
- package/src/trailer/shelf.ts +16 -0
- package/src/trailer/stitch.ts +67 -26
- package/src/trailer/url.ts +1 -1
- package/src/trailer/versions.ts +24 -0
- package/src/ts/gate-typecheck.ts +32 -0
- package/src/ts/typecheck-cli.ts +9 -11
- package/src/tui/tui-app.tsx +0 -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
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
here AND as attributes on the img (ROW_ICON), so a sheet that fails to
|
|
6
6
|
apply still draws a row, never a 512px icon. */
|
|
7
7
|
.pjlist{flex:1;width:100%;height:100%;display:flex;flex-direction:column;background:var(--bg-side);min-width:0}
|
|
8
|
-
/* the
|
|
9
|
-
a thin divider before the repos */
|
|
8
|
+
/* the list's trouble line, above the identities: the places are the top bar's (home-strip.tsx) */
|
|
10
9
|
.pjhead{flex:none;display:flex;flex-direction:column;padding:var(--s1) 0;border-bottom:1px solid var(--line)}
|
|
11
10
|
/* the rows scroll, the head does not, and no scrollbar draws a band beside
|
|
12
11
|
them: WebKit (the macOS app) ignores scrollbar-width, hence the pseudo */
|
|
13
|
-
.
|
|
12
|
+
/* the list's own controls, drawn in the dock's bar (dock-view.tsx ListFoot): one line, no rule of its own */
|
|
13
|
+
.pjfoot{flex:none;display:flex;align-items:center;gap:var(--s1);margin-left:auto}
|
|
14
14
|
/* the archived rows, just above the foot while its archived button is on:
|
|
15
15
|
the rows panel gives up the room, the foot stays put */
|
|
16
16
|
.pjarch{flex:none;border-top:1px solid var(--line);max-height:40%;overflow-y:auto;scrollbar-width:none;padding:var(--s1) 0}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
color:var(--dim);font-size:11px;cursor:pointer}
|
|
27
27
|
.pgsort{flex:0 1 auto;min-width:0}
|
|
28
28
|
/* the step keys, a hint: the repo above or below */
|
|
29
|
-
.pjstep{flex:none;display:inline-flex;gap:var(--s0);
|
|
29
|
+
.pjstep{flex:none;display:inline-flex;gap:var(--s0);color:var(--dim);font-size:11px}
|
|
30
30
|
.pjstep kbd{padding:0 var(--s1);border:1px solid var(--line);border-radius:3px;font:inherit}
|
|
31
31
|
.pgsortl{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
32
32
|
.pgsort .hico,.pjarbtn .hico,.pjfold .hico{flex:none;width:14px;height:14px}
|
|
@@ -45,16 +45,15 @@
|
|
|
45
45
|
.pjrows{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:var(--s1) 0;scrollbar-width:none}
|
|
46
46
|
.pjrows::-webkit-scrollbar{display:none}
|
|
47
47
|
.pjwait{display:flex;align-items:center;gap:var(--s2);padding:var(--s1) var(--s3);font-size:12px;color:var(--dim)}
|
|
48
|
-
.pjrow
|
|
48
|
+
.pjrow{position:relative;display:flex;align-items:center;gap:var(--s2);width:100%;height:28px;padding:0 var(--s3);
|
|
49
49
|
background:transparent;border:0;border-radius:0;text-align:left;color:var(--dim);font-size:13px;cursor:pointer}
|
|
50
|
-
.pjrow:hover
|
|
50
|
+
.pjrow:hover{background:var(--panel2);color:var(--ink)}
|
|
51
51
|
/* the shown repo: its row lit, marked on the left in its identity colour
|
|
52
52
|
(a global page's line: in the accent) */
|
|
53
53
|
/* the repo's colour for the theme: colorDark, or colorLight on a light page (projects-svc idVars) */
|
|
54
54
|
.pjrow{--pjc:var(--idd)}
|
|
55
55
|
:root[data-theme=light] .pjrow{--pjc:var(--idl)}
|
|
56
|
-
.pjrow.cur
|
|
57
|
-
.pjpl .hico{flex:none;width:18px;height:18px;color:inherit}
|
|
56
|
+
.pjrow.cur{background:var(--sel);color:var(--pjc,var(--ink));box-shadow:inset 3px 0 0 var(--pjc,var(--accent));font-weight:600}
|
|
58
57
|
/* the selected repo while a global page is up: still marked, dimmer */
|
|
59
58
|
.pjrow.cur.away{background:none;font-weight:500}
|
|
60
59
|
.pjrow img,.pjrow .pgi{flex:none;width:18px;height:18px;border-radius:4px;object-fit:contain;pointer-events:none}
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
.pjrow.dim .pjname{opacity:.5}
|
|
74
73
|
/* ⌘1 to ⌘9 select the first nine rows (keys.ts): the hint sits at the row's end */
|
|
75
74
|
.pjkey{flex:none;font:10px/1 ui-monospace,Menlo,monospace;color:var(--dim);opacity:.6;background:none;border:0;padding:0}
|
|
76
|
-
.pjrow:hover .pjkey,.pjrow.cur .pjkey
|
|
75
|
+
.pjrow:hover .pjkey,.pjrow.cur .pjkey{opacity:1}
|
|
77
76
|
/* what waits on the owner, at the end of the row: the review cards (a click opens them), then the open asks */
|
|
78
77
|
.pga,.pgr{flex:none;min-width:16px;height:16px;padding:0 var(--s1);border-radius:8px;
|
|
79
78
|
font-size:10px;font-weight:700;line-height:16px;text-align:center;color:var(--bg);background:var(--warn)}
|
|
@@ -129,18 +128,23 @@
|
|
|
129
128
|
⌘ hints and the step hint hide, every icon centres, the badge and the dots
|
|
130
129
|
ride the icon's corner, the foot stacks its buttons */
|
|
131
130
|
.pjlist.rail .pjname,.pjlist.rail .pjkey,.pjlist.rail .pjstep,.pjlist.rail .pgsortl,.pjlist.rail .pjarow span,.pjlist.rail .pgerr{display:none}
|
|
132
|
-
.pjlist.rail .pjrow,.pjlist.rail .
|
|
131
|
+
.pjlist.rail .pjrow,.pjlist.rail .pjarow{justify-content:center;padding:0}
|
|
133
132
|
/* the rail's icon size (layout-st RAIL_ICONS, the foot's S M L button): the repo icons and the row under them grow */
|
|
134
133
|
.pjlist.rail .pjrow{height:calc(var(--ri,24px) + 6px)}
|
|
135
134
|
.pjlist.rail .pjrow img,.pjlist.rail .pjrow .pgi{width:var(--ri,24px);height:var(--ri,24px);border-radius:6px}
|
|
136
135
|
.pjlist.rail .pjrow .pgi{font-size:calc(var(--ri,24px) * .5)}
|
|
137
136
|
/* the app icon is a rounded plate already (core/app-icon.ts) */
|
|
138
|
-
.pjlist.rail .pjrow
|
|
137
|
+
.pjlist.rail .pjrow .pjapp img{border-radius:0}
|
|
138
|
+
/* the plates are loud colours, so only the shown repo's is lit: a row not shown wears its faded plate
|
|
139
|
+
(core/app-icon.ts plateAlpha) at 70%, its mark still readable, hover lights it, the badges stay lit */
|
|
140
|
+
.pjapp{position:relative;flex:none;display:flex;pointer-events:none}
|
|
141
|
+
.pjapp .pjdim{position:absolute;inset:0;opacity:0}
|
|
142
|
+
.pjlist.rail .pjrow img,.pjlist.rail .pjrow .pgi{transition:opacity .12s,background .12s}
|
|
143
|
+
.pjlist.rail .pjrow:not(.cur):not(:hover) .pjapp img{opacity:0}
|
|
144
|
+
.pjlist.rail .pjrow:not(.cur):not(:hover) .pjapp .pjdim,.pjlist.rail .pjrow:not(.cur):not(:hover) > img{opacity:.7}
|
|
145
|
+
.pjlist.rail .pjrow:not(.cur):not(:hover) .pgi{opacity:.7;background:color-mix(in srgb,var(--c) 10%,transparent)}
|
|
139
146
|
.pjsize{font:600 10px/1 ui-monospace,Menlo,monospace}
|
|
140
147
|
.pjlist.rail .pga,.pjlist.rail .pgr{position:absolute;top:0;min-width:14px;height:14px;padding:0 var(--s0);border-radius:7px;font-size:9px;line-height:14px}
|
|
141
148
|
.pjlist.rail .pga{right:calc(50% - var(--ri,24px) / 2 - 4px)}
|
|
142
149
|
.pjlist.rail .pgr{left:calc(50% - var(--ri,24px) / 2 - 4px)}
|
|
143
150
|
.pjlist.rail .pgd,.pjlist.rail .pgw{position:absolute;bottom:var(--s0);right:calc(50% - var(--ri,24px) / 2 - 2px)}
|
|
144
|
-
.pjlist.rail .pjfoot{flex-direction:column;height:auto;padding:var(--s1) 0}
|
|
145
|
-
.pjlist.rail .pjfoot button{justify-content:center;width:28px;padding:0}
|
|
146
|
-
.pjlist.rail .pjarbtn span{display:none}
|
|
@@ -17,11 +17,9 @@
|
|
|
17
17
|
// the foot never moving. ⌘B (or the foot's fold button, or a drag of the
|
|
18
18
|
// separator below the list's min) folds the list to its icon rail: the
|
|
19
19
|
// names, the ⌘ hints and the step hint hide, the pills ride the icon's
|
|
20
|
-
// corners, the hover card still names the row; a phone width is always the rail.
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
// renders from the first paint with the list this browser kept, so a load
|
|
24
|
-
// moves nothing.
|
|
20
|
+
// corners, the hover card still names the row; a phone width is always the rail. The home's places and the identities
|
|
21
|
+
// ride the top bar (Places, Identities: home-strip.tsx), so the list holds only the repos. It renders from the first paint with the list this browser kept, so a
|
|
22
|
+
// load moves nothing.
|
|
25
23
|
import { autoUpdate, FloatingPortal, useDismiss, useFloating, useHover, useInteractions, useRole } from '@floating-ui/react'
|
|
26
24
|
import { observer } from 'mobx-react-lite'
|
|
27
25
|
import { useEffect, type CSSProperties } from 'react'
|
|
@@ -29,6 +27,7 @@ import { middleware, OPEN_MS } from './floating.tsx'
|
|
|
29
27
|
import { Icon, ICON } from './icons.tsx'
|
|
30
28
|
import { plainClick } from './home-st.ts'
|
|
31
29
|
import { PICKER_KEY, PLACE_KEY, RAIL_KEY, STEP_KEYS } from './keys.ts'
|
|
30
|
+
import type { RailIdentity } from '../../identities/machine.ts'
|
|
32
31
|
import { cardModel, faceOf, hueOf, idVars, SORTS, type Place, type Project, type ProjectsSvc } from './projects-svc.ts'
|
|
33
32
|
import { THEMES, type ThemePick } from './theme-st.ts'
|
|
34
33
|
import { RAIL_ICONS, type RailIcon } from './layout-st.ts'
|
|
@@ -99,7 +98,12 @@ export const Row = observer(({ app, p, i }: { app: ListHost; p: Project; i: numb
|
|
|
99
98
|
onDragEnd: () => s.dragEnd(),
|
|
100
99
|
})}>
|
|
101
100
|
{app.layout?.folded === true && p.appIcon != null
|
|
102
|
-
?
|
|
101
|
+
? (
|
|
102
|
+
<span className="pjapp">
|
|
103
|
+
<img src={p.appIcon} alt="" width={ROW_ICON} height={ROW_ICON} draggable={false} />
|
|
104
|
+
<img className="pjdim" src={p.appIconDim ?? p.appIcon} alt="" width={ROW_ICON} height={ROW_ICON} draggable={false} />
|
|
105
|
+
</span>
|
|
106
|
+
)
|
|
103
107
|
: <Face p={p} px={ROW_ICON} />}
|
|
104
108
|
<span className="pjname">{p.name}</span>
|
|
105
109
|
{face.cards != null ? (
|
|
@@ -123,6 +127,30 @@ export const Row = observer(({ app, p, i }: { app: ListHost; p: Project; i: numb
|
|
|
123
127
|
)
|
|
124
128
|
})
|
|
125
129
|
|
|
130
|
+
/** an identity in the top bar: its avatar, else its initial on its colour; lit in its colour while its view shows,
|
|
131
|
+
* its name in the hover, a click its view */
|
|
132
|
+
const IdentityFace = observer(({ s, i }: { s: ProjectsSvc; i: RailIdentity }) => {
|
|
133
|
+
const style = i.colour == null ? undefined : ({ '--idc': i.colour } as CSSProperties)
|
|
134
|
+
const on = s.identityLit() === i.id
|
|
135
|
+
const repos = s.list.filter((p) => p.speaksAs === i.id || (p.speaksAs == null && i.default)).length
|
|
136
|
+
return (
|
|
137
|
+
<button className={`hid${on ? ' cur' : ''}`} style={style} aria-label={`identity ${i.name}`}
|
|
138
|
+
title={`${i.name}${i.default ? ', the default identity' : ''}: its profile, its company, every account on its own page; ${repos} repo${repos === 1 ? '' : 's'} speak as it`}
|
|
139
|
+
onClick={() => s.onIdentity?.(i.id)}>
|
|
140
|
+
{i.mark != null ? <img className="hidm" src={i.mark} alt="" width={ID_ICON} height={ID_ICON} draggable={false} /> : <span className="hidm hidi">{i.name.charAt(0).toUpperCase()}</span>}
|
|
141
|
+
</button>
|
|
142
|
+
)
|
|
143
|
+
})
|
|
144
|
+
|
|
145
|
+
const ID_ICON = 28
|
|
146
|
+
|
|
147
|
+
/** the identities as avatars in the top bar, after the places (home-strip.tsx); nothing when the home has none */
|
|
148
|
+
export const Identities = observer(({ s }: { s: ProjectsSvc }) => (s.onIdentity == null || s.identities.length === 0 ? null : (
|
|
149
|
+
<span className="hids" aria-label="identities">
|
|
150
|
+
{s.identities.map((i) => <IdentityFace key={i.id} s={s} i={i} />)}
|
|
151
|
+
</span>
|
|
152
|
+
)))
|
|
153
|
+
|
|
126
154
|
// the img carries its size as attributes too: an icon file is 512px, and
|
|
127
155
|
// without them a sheet that fails to apply draws it at that size
|
|
128
156
|
export const Face = ({ p, px }: { p: Project; px: number }) => (p.icon != null
|
|
@@ -180,25 +208,7 @@ export const ProjectList = observer(({ app }: { app: ListHost }) => {
|
|
|
180
208
|
const rail = lay?.folded === true
|
|
181
209
|
return (
|
|
182
210
|
<nav className={`pjlist${rail ? ' rail' : ''}`} aria-label="projects" style={rail ? ({ '--ri': `${RAIL_ICONS[lay!.railIcon]}px` } as CSSProperties) : undefined}>
|
|
183
|
-
{s.
|
|
184
|
-
<div className="pjhead">
|
|
185
|
-
{PLACES.map((pl) => {
|
|
186
|
-
const id = pl.id
|
|
187
|
-
const run = id === 'picker' ? s.onPicker : s.onPlace == null ? null : () => s.onPlace?.(id)
|
|
188
|
-
if (run == null) return null
|
|
189
|
-
const on = id === 'picker' ? s.pickerOpen() : s.place === id
|
|
190
|
-
const key = id === 'picker' ? PICKER_KEY : PLACE_KEY[id]
|
|
191
|
-
return (
|
|
192
|
-
<button key={id} className={`pjpl${on ? ' cur' : ''}`} aria-label={pl.label} title={key == null ? pl.title : `${pl.title} (${key})`} onClick={run}>
|
|
193
|
-
<Icon d={ICON[id === 'picker' ? 'search' : id === 'overview' ? 'home' : id]} />
|
|
194
|
-
<span className="pjname">{pl.label}</span>
|
|
195
|
-
{key == null ? null : <kbd className="pjkey">{key}</kbd>}
|
|
196
|
-
</button>
|
|
197
|
-
)
|
|
198
|
-
})}
|
|
199
|
-
{s.error !== '' ? <span className="pgerr" title={s.error}>! {s.error}</span> : null}
|
|
200
|
-
</div>
|
|
201
|
-
)}
|
|
211
|
+
{s.error !== '' ? <div className="pjhead"><span className="pgerr" title={s.error}>! {s.error}</span></div> : null}
|
|
202
212
|
<div className="pjrows">
|
|
203
213
|
{s.list.length === 0 && s.error === '' ? <span className="pjwait"><span className="spin" />reading the repos…</span> : null}
|
|
204
214
|
{s.list.map((p, i) => <Row key={p.name} app={app} p={p} i={i} />)}
|
|
@@ -217,34 +227,63 @@ export const ProjectList = observer(({ app }: { app: ListHost }) => {
|
|
|
217
227
|
))}
|
|
218
228
|
</div>
|
|
219
229
|
) : null}
|
|
220
|
-
<div className="pjfoot">
|
|
221
|
-
{lay == null ? null : (
|
|
222
|
-
<button className="pjfold" aria-pressed={rail} title={`${rail ? 'show the names' : 'fold the list to its icons'} (${RAIL_KEY})`} onClick={() => lay.toggleRail()}>
|
|
223
|
-
<Icon d={ICON.rail} />
|
|
224
|
-
</button>
|
|
225
|
-
)}
|
|
226
|
-
{lay == null || !rail ? null : (
|
|
227
|
-
<button className="pjfold pjsize" aria-label={`icon size: ${lay.railIcon}`} title={`the icons: ${SIZE_WORDS[lay.railIcon]}; click for the next size`} onClick={() => lay.cycleRailIcon()}>
|
|
228
|
-
{lay.railIcon.toUpperCase()}
|
|
229
|
-
</button>
|
|
230
|
-
)}
|
|
231
|
-
{app.theme == null ? null : <ThemeButton t={app.theme} />}
|
|
232
|
-
<SortButton s={s} />
|
|
233
|
-
<span className="pjstep" title={`${STEP_KEYS[0]} and ${STEP_KEYS[1]} open the repo above or below, from any page`}>
|
|
234
|
-
{STEP_KEYS.map((k) => <kbd key={k}>{k}</kbd>)}
|
|
235
|
-
</span>
|
|
236
|
-
{s.archived.length === 0 || s.onArchived == null ? null : (
|
|
237
|
-
<button className={`pjarbtn${s.archivedOpen ? ' on' : ''}`} aria-pressed={s.archivedOpen}
|
|
238
|
-
title={`${s.archivedOpen ? 'hide' : 'show'} the ${s.archived.length} archived repos: nothing runs there, a row opens the archived page`}
|
|
239
|
-
onClick={() => s.toggleArchivedOpen()}>
|
|
240
|
-
<Icon d={ICON.archived} /><span>{s.archived.length}</span>
|
|
241
|
-
</button>
|
|
242
|
-
)}
|
|
243
|
-
</div>
|
|
244
230
|
</nav>
|
|
245
231
|
)
|
|
246
232
|
})
|
|
247
233
|
|
|
234
|
+
/** the home's places as icon buttons (the picker's ⌘J, then each place's key): the top bar draws them
|
|
235
|
+
* (home-strip.tsx), the list holds only the repos */
|
|
236
|
+
export const Places = observer(({ s }: { s: ProjectsSvc }) => (
|
|
237
|
+
<span className="hplaces" aria-label="the home's pages">
|
|
238
|
+
{PLACES.map((pl) => {
|
|
239
|
+
const id = pl.id
|
|
240
|
+
const run = id === 'picker' ? s.onPicker : s.onPlace == null ? null : () => s.onPlace?.(id)
|
|
241
|
+
if (run == null) return null
|
|
242
|
+
const on = id === 'picker' ? s.pickerOpen() : s.place === id
|
|
243
|
+
const key = id === 'picker' ? PICKER_KEY : PLACE_KEY[id]
|
|
244
|
+
return (
|
|
245
|
+
<button key={id} className={`hicon hpl${on ? ' cur' : ''}`} aria-label={pl.label} title={key == null ? pl.title : `${pl.title} (${key})`} onClick={run}>
|
|
246
|
+
<Icon d={ICON[id === 'picker' ? 'search' : id === 'overview' ? 'home' : id]} />
|
|
247
|
+
</button>
|
|
248
|
+
)
|
|
249
|
+
})}
|
|
250
|
+
</span>
|
|
251
|
+
))
|
|
252
|
+
|
|
253
|
+
/** the list's own controls (fold it to its rail, its icon size, the theme, the sort, the step keys, the archived
|
|
254
|
+
* repos): the dock's bar draws them (dock-view.tsx), so the rail's foot holds nothing */
|
|
255
|
+
export const ListFoot = observer(({ app }: { app: ListHost }) => {
|
|
256
|
+
const s = app.projects
|
|
257
|
+
const lay = app.layout
|
|
258
|
+
const rail = lay?.folded === true
|
|
259
|
+
return (
|
|
260
|
+
<span className="pjfoot">
|
|
261
|
+
{lay == null ? null : (
|
|
262
|
+
<button className="pjfold" aria-pressed={rail} title={`${rail ? 'show the names' : 'fold the list to its icons'} (${RAIL_KEY})`} onClick={() => lay.toggleRail()}>
|
|
263
|
+
<Icon d={ICON.rail} />
|
|
264
|
+
</button>
|
|
265
|
+
)}
|
|
266
|
+
{lay == null || !rail ? null : (
|
|
267
|
+
<button className="pjfold pjsize" aria-label={`icon size: ${lay.railIcon}`} title={`the icons: ${SIZE_WORDS[lay.railIcon]}; click for the next size`} onClick={() => lay.cycleRailIcon()}>
|
|
268
|
+
{lay.railIcon.toUpperCase()}
|
|
269
|
+
</button>
|
|
270
|
+
)}
|
|
271
|
+
{app.theme == null ? null : <ThemeButton t={app.theme} />}
|
|
272
|
+
<SortButton s={s} />
|
|
273
|
+
<span className="pjstep" title={`${STEP_KEYS[0]} and ${STEP_KEYS[1]} open the repo above or below, from any page`}>
|
|
274
|
+
{STEP_KEYS.map((k) => <kbd key={k}>{k}</kbd>)}
|
|
275
|
+
</span>
|
|
276
|
+
{s.archived.length === 0 || s.onArchived == null ? null : (
|
|
277
|
+
<button className={`pjarbtn${s.archivedOpen ? ' on' : ''}`} aria-pressed={s.archivedOpen}
|
|
278
|
+
title={`${s.archivedOpen ? 'hide' : 'show'} the ${s.archived.length} archived repos: nothing runs there, a row opens the archived page`}
|
|
279
|
+
onClick={() => s.toggleArchivedOpen()}>
|
|
280
|
+
<Icon d={ICON.archived} /><span>{s.archived.length}</span>
|
|
281
|
+
</button>
|
|
282
|
+
)}
|
|
283
|
+
</span>
|
|
284
|
+
)
|
|
285
|
+
})
|
|
286
|
+
|
|
248
287
|
const SIZE_WORDS: Record<RailIcon, string> = { s: 'small', m: 'medium', l: 'large' }
|
|
249
288
|
|
|
250
289
|
const THEME_ICON: Record<ThemePick, keyof typeof ICON> = { dark: 'moon', light: 'sun', auto: 'auto' }
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
// server measures at most once per 5s whatever the number of tabs, so this
|
|
4
4
|
// poll is cheap.
|
|
5
5
|
import { makeAutoObservable, observableRef, runInAction } from 'mobx'
|
|
6
|
-
import type { ArchivedRow, ProjectRow as Project
|
|
6
|
+
import type { ArchivedRow, ProjectRow as Project } from '../project-gutter-route.ts'
|
|
7
|
+
import type { RailIdentity } from '../../identities/machine.ts'
|
|
7
8
|
import { identityOfName, type Identity } from '../../core/identity-color.ts'
|
|
8
9
|
import { ownTrouble, reach } from './reach.ts'
|
|
9
10
|
|
|
@@ -69,6 +70,18 @@ export function loadList(): Project[] {
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
/** where this browser keeps the identities the rail's band draws */
|
|
74
|
+
export const IDENTITIES_KEY = 'hub:identities'
|
|
75
|
+
|
|
76
|
+
export function loadIdentityList(): RailIdentity[] {
|
|
77
|
+
try {
|
|
78
|
+
const v = JSON.parse(globalThis.localStorage?.getItem(IDENTITIES_KEY) ?? '[]') as unknown
|
|
79
|
+
return Array.isArray(v) && v.every((i) => typeof (i as RailIdentity)?.id === 'string') ? (v as RailIdentity[]) : []
|
|
80
|
+
} catch {
|
|
81
|
+
return []
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
72
85
|
/** keeps the list for the next load; false when storage refused it */
|
|
73
86
|
export function saveList(list: Project[]): boolean {
|
|
74
87
|
try {
|
|
@@ -198,6 +211,12 @@ export class ProjectsSvc {
|
|
|
198
211
|
/** the repos whose repo.config.ts says `archived: true`: never in `list`,
|
|
199
212
|
* only on the archived page */
|
|
200
213
|
archived: ArchivedRow[] = []
|
|
214
|
+
/** every identity of the machine, in their order: the rail's middle band (wiki build/shipkit/social.md, Identities) */
|
|
215
|
+
identities: RailIdentity[] = loadIdentityList()
|
|
216
|
+
/** a click on an identity: the home opens its identity view; a hub of its own has none */
|
|
217
|
+
onIdentity: ((id: string) => void) | null = null
|
|
218
|
+
/** the identity whose view the home shows, lit in the band; null on any other page */
|
|
219
|
+
identityLit: () => string | null = () => null
|
|
201
220
|
/** the archived button at the foot of the rail is on, its rows shown, per browser */
|
|
202
221
|
archivedOpen = keptOpen()
|
|
203
222
|
/** the sort menu at the foot of the rail is open */
|
|
@@ -249,7 +268,7 @@ export class ProjectsSvc {
|
|
|
249
268
|
private orderGen = 0
|
|
250
269
|
|
|
251
270
|
constructor() {
|
|
252
|
-
makeAutoObservable<this, 'gen' | 'orderGen' | 'identitySaves' | 'saveIdentity' | 'kept' | 'keep'>(this, { gen: false, orderGen: false, identitySaves: false, saveIdentity: false, kept: false, keep: false, list: observableRef, onSelect: false, onPlace: false, onPicker: false, pickerOpen: false, onArchived: false, dotOf: false, warnOf: false })
|
|
271
|
+
makeAutoObservable<this, 'gen' | 'orderGen' | 'identitySaves' | 'saveIdentity' | 'kept' | 'keep' | 'keptIds'>(this, { gen: false, orderGen: false, identitySaves: false, saveIdentity: false, kept: false, keep: false, keptIds: false, list: observableRef, identities: observableRef, onIdentity: false, identityLit: false, onSelect: false, onPlace: false, onPicker: false, pickerOpen: false, onArchived: false, dotOf: false, warnOf: false })
|
|
253
272
|
}
|
|
254
273
|
|
|
255
274
|
toggleArchivedOpen(): void {
|
|
@@ -455,20 +474,31 @@ export class ProjectsSvc {
|
|
|
455
474
|
if (!this.fresh) return
|
|
456
475
|
const s = JSON.stringify(this.list)
|
|
457
476
|
if (s !== this.kept && saveList(this.list)) this.kept = s
|
|
477
|
+
const ids = JSON.stringify(this.identities)
|
|
478
|
+
if (ids !== this.keptIds) {
|
|
479
|
+
try {
|
|
480
|
+
globalThis.localStorage?.setItem(IDENTITIES_KEY, ids)
|
|
481
|
+
this.keptIds = ids
|
|
482
|
+
} catch {
|
|
483
|
+
// storage refused: the band paints once the poll answers
|
|
484
|
+
}
|
|
485
|
+
}
|
|
458
486
|
}
|
|
487
|
+
private keptIds = ''
|
|
459
488
|
|
|
460
489
|
async load(): Promise<void> {
|
|
461
490
|
const order = this.orderGen
|
|
462
491
|
try {
|
|
463
492
|
const r = await reach('/api/projects.json')
|
|
464
493
|
if (!r.ok) throw new Error(`${r.status} ${await r.text()}`)
|
|
465
|
-
const j = (await r.json()) as { projects: Project[]; archived?: ArchivedRow[] }
|
|
494
|
+
const j = (await r.json()) as { projects: Project[]; archived?: ArchivedRow[]; identities?: RailIdentity[] }
|
|
466
495
|
runInAction(() => {
|
|
467
496
|
// a reorder since this left, or a drag in flight: the next poll answers
|
|
468
497
|
if (order !== this.orderGen || this.drag != null) return
|
|
469
498
|
const mine = new Map(this.list.filter((p) => this.identitySaves.has(p.name)).map((p) => [p.name, p.identity]))
|
|
470
499
|
this.list = mine.size === 0 ? j.projects : j.projects.map((p) => (mine.has(p.name) ? { ...p, identity: mine.get(p.name)! } : p))
|
|
471
500
|
this.archived = j.archived ?? []
|
|
501
|
+
this.identities = j.identities ?? []
|
|
472
502
|
this.error = ''
|
|
473
503
|
this.fresh = true
|
|
474
504
|
})
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// own has none of the three. The counts read the severity filter, like everything under them,
|
|
9
9
|
// and come from what the page already holds (the kept screen on a reload), so
|
|
10
10
|
// none arrives late and moves the tree.
|
|
11
|
-
import { REVIEW_COL, RUNS_ID, TRAILER_COL } from '../../collections/collection-types.ts'
|
|
11
|
+
import { REVIEW_COL, RUNS_ID, STORES_COL, TRAILER_COL, VEILLE_COL } from '../../collections/collection-types.ts'
|
|
12
12
|
import type { CheckOwner, HashSel } from './hash-route.ts'
|
|
13
13
|
import { sectionLabel, type SectionId } from './keys.ts'
|
|
14
14
|
import type { RepoSt } from './repo-st.ts'
|
|
@@ -47,9 +47,13 @@ export function sectionOfSel(sel: HashSel | null, ownerOf: (checkItemId: string)
|
|
|
47
47
|
case 'admin': return 'admin'
|
|
48
48
|
case 'review': return 'review'
|
|
49
49
|
case 'trailer': return 'trailer'
|
|
50
|
+
case 'stores': return 'stores'
|
|
51
|
+
case 'veille': return 'veille'
|
|
52
|
+
case 'comms': return 'comms'
|
|
53
|
+
case 'social': return 'social'
|
|
50
54
|
case 'tests': return 'tests'
|
|
51
55
|
case 'asset': case 'cat': return 'media'
|
|
52
|
-
case 'status': return null
|
|
56
|
+
case 'status': case 'page': return null
|
|
53
57
|
case 'col': case 'item': {
|
|
54
58
|
const col = sel.t === 'col' ? sel.id : sel.col
|
|
55
59
|
if (col === RUNS_ID) return 'runs'
|
|
@@ -58,6 +62,8 @@ export function sectionOfSel(sel: HashSel | null, ownerOf: (checkItemId: string)
|
|
|
58
62
|
if (col === 'creds') return 'secrets'
|
|
59
63
|
if (col === REVIEW_COL) return 'review'
|
|
60
64
|
if (col === TRAILER_COL) return 'trailer'
|
|
65
|
+
if (col === STORES_COL) return 'stores'
|
|
66
|
+
if (col === VEILLE_COL) return 'veille'
|
|
61
67
|
if (col === 'checks') return sel.t === 'item' ? ownerOf(sel.id) : null
|
|
62
68
|
return col === 'asks' || col === 'tests' || col === 'reflections' ? col : null
|
|
63
69
|
}
|
|
@@ -93,6 +99,10 @@ export function openSection(app: RepoSt, id: SectionId): void {
|
|
|
93
99
|
case 'admin': return app.showAdmin()
|
|
94
100
|
case 'review': return app.showReview(app.review.selectedId)
|
|
95
101
|
case 'trailer': return app.showTrailer(app.trailer.trailerId, app.trailer.cutId)
|
|
102
|
+
case 'stores': return app.showStores(app.stores.store)
|
|
103
|
+
case 'veille': return app.showVeille(app.veille.picked)
|
|
104
|
+
case 'comms': return app.showComms(app.social.draftSlug, app.social.draftPart)
|
|
105
|
+
case 'social': return app.showSocial(app.social.identity, app.social.account, app.social.place)
|
|
96
106
|
}
|
|
97
107
|
}
|
|
98
108
|
|
|
@@ -118,6 +128,13 @@ export function repoSections(app: RepoSt): RepoSection[] {
|
|
|
118
128
|
unless(has(REVIEW_COL), 'no review card yet: an agent sends one with sk review add')))
|
|
119
129
|
out.push(line('trailer', 'the trailer cuts: play one with its timeline, pin a note on any frame', none,
|
|
120
130
|
unless(has(TRAILER_COL), 'no trailer: write trailer/<name>/main.trailer, then sk trailer')))
|
|
131
|
+
out.push(line('stores', 'the store pages (Steam, itch): every text to paste, every picture to upload, a note on each', none,
|
|
132
|
+
unless(has(STORES_COL), 'no store page: write .shipkit/steam/store.md or .shipkit/itch/listing.md')))
|
|
133
|
+
out.push(line('veille', 'the posts its identity scrolls past, ranked by the worth of a reply, a reply drafted in its voice', none,
|
|
134
|
+
unless(has(VEILLE_COL), "no Veille: the identity this repo speaks as has no watch list (its veille.md)")))
|
|
135
|
+
// every repo has both: a repo with no draft yet still opens the page that says how a first one comes
|
|
136
|
+
out.push(line('comms', 'every draft of the repo, posted from one page: a card a platform, its link pasted back', none))
|
|
137
|
+
out.push(line('social', 'every identity side by side, its accounts and places, its setup and its messages', none))
|
|
121
138
|
out.push(line('contracts', 'what a release venue asks of this repo, and what it still lacks', counted(reds('contracts'), 'red'), unless(has('contracts'), 'no contract: no release venue applies to this repo')))
|
|
122
139
|
const noChecks = unless(has('checks'), 'no checks yet: its hub has not answered')
|
|
123
140
|
out.push(line('shipkit', 'the checks shipkit ships to every repo, one page each', counted(ownReds('shipkit'), 'red'), noChecks))
|
|
@@ -23,9 +23,14 @@ import { TestsSvc } from './tests-svc.ts'
|
|
|
23
23
|
import { AdminSvc } from './admin-svc.ts'
|
|
24
24
|
import { ReviewSt } from './review/review-st.ts'
|
|
25
25
|
import { TrailerSt } from './review/trailer-st.ts'
|
|
26
|
+
import { StoresSt } from './stores/stores-st.ts'
|
|
27
|
+
import { VeilleSt } from './veille/veille-st.ts'
|
|
28
|
+
import { SocialSt } from './social/social-st.ts'
|
|
26
29
|
import { WikiSt } from './wiki-st.ts'
|
|
30
|
+
import { PagesSvc } from './pages-svc.ts'
|
|
27
31
|
import { repoSections } from './repo-sections.ts'
|
|
28
32
|
import { isTreeWalk, sectionKeyLabel } from './keys.ts'
|
|
33
|
+
import { WalkEntry } from './list-walk.ts'
|
|
29
34
|
import type { Resource } from './hub-types.ts'
|
|
30
35
|
import type { HomeSt } from './home-st.ts'
|
|
31
36
|
|
|
@@ -33,7 +38,7 @@ export type Sel = HashSel | null
|
|
|
33
38
|
|
|
34
39
|
/** one picker target (cmd+j): run() fires the SAME action clicking would */
|
|
35
40
|
/** what a picker entry wears: a repo's own icon, or a place's button icon */
|
|
36
|
-
export type JumpFace = { repo: string } | { place: 'home' | 'inbox' | 'planned' | 'activity' | 'insights' | 'archived' }
|
|
41
|
+
export type JumpFace = { repo: string } | { place: 'home' | 'inbox' | 'planned' | 'activity' | 'insights' | 'archived' } | { identity: string; account?: string }
|
|
37
42
|
/** `key`: the shortcut that does the same, printed at the entry's end */
|
|
38
43
|
export type Jump = { id: string; label: string; section: string; run: () => void; face?: JumpFace; key?: string }
|
|
39
44
|
|
|
@@ -73,8 +78,16 @@ export class RepoSt {
|
|
|
73
78
|
review: ReviewSt
|
|
74
79
|
/** the trailer page: a cut played with its timeline and his frame notes (review/trailer-st.ts) */
|
|
75
80
|
trailer: TrailerSt
|
|
81
|
+
/** the stores page: the repo's Steam and itch pages, his notes on each thing (stores/stores-st.ts) */
|
|
82
|
+
stores: StoresSt
|
|
83
|
+
/** the Veille page: the posts its identity scrolls past, ranked, and a reply (veille/veille-st.ts) */
|
|
84
|
+
veille: VeilleSt
|
|
85
|
+
/** the Communications and Social pages: the repo's drafts, every identity and its accounts (social/social-st.ts) */
|
|
86
|
+
social: SocialSt
|
|
76
87
|
/** the wikis page's search and preview */
|
|
77
88
|
wiki: WikiSt
|
|
89
|
+
/** the repo's own pages, each a frame of its process (pages-svc.ts) */
|
|
90
|
+
pages: PagesSvc
|
|
78
91
|
sel: Sel = null
|
|
79
92
|
filter: Filter = 'all'
|
|
80
93
|
/** sidebar search — live substring filter over asset + collection rows */
|
|
@@ -114,8 +127,12 @@ export class RepoSt {
|
|
|
114
127
|
this.admin = new AdminSvc(this)
|
|
115
128
|
this.review = new ReviewSt(this)
|
|
116
129
|
this.trailer = new TrailerSt(this)
|
|
130
|
+
this.stores = new StoresSt(this)
|
|
131
|
+
this.veille = new VeilleSt(this)
|
|
132
|
+
this.social = new SocialSt(this)
|
|
117
133
|
this.wiki = new WikiSt(this)
|
|
118
|
-
|
|
134
|
+
this.pages = new PagesSvc(this)
|
|
135
|
+
makeAutoObservable<this, 'beat' | 'onceRead' | 'entry'>(this, { onceRead: false, entry: false, home: false, key: false, base: false, clock: false, media: false, cols: false, tree: false, health: false, readme: false, checks: false, comfy: false, timeline: false, live: false, git: false, tests: false, admin: false, review: false, trailer: false, stores: false, veille: false, social: false, wiki: false, pages: false, searchEl: false, beat: false })
|
|
119
136
|
// a view or a filter changed on the review page: its address follows, the card unchanged
|
|
120
137
|
reaction(
|
|
121
138
|
() => (this.sel?.t === 'review' ? this.review.address : null),
|
|
@@ -195,6 +212,7 @@ export class RepoSt {
|
|
|
195
212
|
this.media.start()
|
|
196
213
|
this.cols.start()
|
|
197
214
|
this.live.start()
|
|
215
|
+
this.pages.start()
|
|
198
216
|
if (this.sel?.t === 'review') this.review.start()
|
|
199
217
|
if (this.sel?.t === 'trailer') this.trailer.start()
|
|
200
218
|
}
|
|
@@ -207,6 +225,7 @@ export class RepoSt {
|
|
|
207
225
|
this.media.stop()
|
|
208
226
|
this.cols.stop()
|
|
209
227
|
this.live.stop()
|
|
228
|
+
this.pages.stop()
|
|
210
229
|
this.review.stop()
|
|
211
230
|
this.trailer.stop()
|
|
212
231
|
}
|
|
@@ -280,20 +299,10 @@ export class RepoSt {
|
|
|
280
299
|
void this.tests.load(check)
|
|
281
300
|
}
|
|
282
301
|
|
|
283
|
-
/** a walk with the tree's arrows is
|
|
284
|
-
|
|
285
|
-
* the browser throws past 100 pushState calls per 10 seconds */
|
|
286
|
-
private walking = false
|
|
287
|
-
private walked = false
|
|
288
|
-
/** open pages as one walk: the first step is a history entry, every next
|
|
289
|
-
* one rewrites it, so back returns to where the walk started */
|
|
302
|
+
/** a walk with the tree's arrows is one history entry (list-walk.ts) */
|
|
303
|
+
private readonly entry = new WalkEntry()
|
|
290
304
|
walk(open: () => void): void {
|
|
291
|
-
this.
|
|
292
|
-
try {
|
|
293
|
-
open()
|
|
294
|
-
} finally {
|
|
295
|
-
this.walking = false
|
|
296
|
-
}
|
|
305
|
+
this.entry.run(open)
|
|
297
306
|
}
|
|
298
307
|
|
|
299
308
|
/** the ONE place a selection is written, so the url always describes what
|
|
@@ -312,12 +321,11 @@ export class RepoSt {
|
|
|
312
321
|
if (cur.kind === next.kind && cur.col === next.col && cur.id === next.id) {
|
|
313
322
|
// the trailer's note and filter, the review's view and filters ride on their page, as the tool set does on an
|
|
314
323
|
// asset: no history entry
|
|
315
|
-
if ((next.kind === 'trailer' || next.kind === 'review') && currentHash() !== h) history.replaceState(null, '', `#${h}`)
|
|
324
|
+
if ((next.kind === 'trailer' || next.kind === 'review' || next.kind === 'stores' || next.kind === 'veille' || next.kind === 'comms' || next.kind === 'page') && currentHash() !== h) history.replaceState(null, '', `#${h}`)
|
|
316
325
|
return
|
|
317
326
|
}
|
|
318
|
-
if (this.
|
|
327
|
+
if (this.entry.how() === 'replace') history.replaceState(null, '', `#${h}`)
|
|
319
328
|
else history.pushState(null, '', `#${h}`)
|
|
320
|
-
this.walked = this.walking
|
|
321
329
|
}
|
|
322
330
|
/** one tree row, opened: an asset goes to the atelier, everything else to
|
|
323
331
|
* its own item card. A gate check has a page of its own now, so nothing
|
|
@@ -325,6 +333,8 @@ export class RepoSt {
|
|
|
325
333
|
openResource(r: Resource): void {
|
|
326
334
|
if (r.type === 'process') return this.showProcesses(r.id.replace(/^process:/, ''))
|
|
327
335
|
if (r.type === 'card') return this.showReview(r.id.replace(/^card:/, ''))
|
|
336
|
+
if (r.type === 'store') return this.showStores(r.id.replace(/^store:/, ''))
|
|
337
|
+
if (r.type === 'veille') return this.showVeille(this.veille.picked)
|
|
328
338
|
if (r.type === 'cut') {
|
|
329
339
|
const [trailer = null, cut = null] = r.id.replace(/^cut:/, '').split('/')
|
|
330
340
|
return this.showTrailer(trailer, cut)
|
|
@@ -386,7 +396,7 @@ export class RepoSt {
|
|
|
386
396
|
* the tree's while its cursor walks it, so a walk crosses these sections; a click in the page hands them back */
|
|
387
397
|
pageKey(e: Pick<KeyboardEvent, 'key' | 'shiftKey'>): boolean {
|
|
388
398
|
if (isTreeWalk(e.key) && !e.shiftKey && this.tree.cursor != null) return false
|
|
389
|
-
return (this.sel?.t === 'review' && this.review.key(e)) || (this.sel?.t === 'trailer' && this.trailer.key(e))
|
|
399
|
+
return (this.sel?.t === 'review' && this.review.key(e)) || (this.sel?.t === 'trailer' && this.trailer.key(e)) || (this.sel?.t === 'stores' && this.stores.key(e)) || (this.sel?.t === 'veille' && this.veille.key(e)) || (this.sel?.t === 'comms' && this.social.key(e, 'comms')) || (this.sel?.t === 'social' && this.social.key(e, 'social'))
|
|
390
400
|
}
|
|
391
401
|
/** the trailer page on a trailer folder and one of its cuts, null for the first */
|
|
392
402
|
showTrailer(trailer: string | null, cut: string | null, note: string | null = null, filter: 'open' | 'all' | null = null): void {
|
|
@@ -394,6 +404,47 @@ export class RepoSt {
|
|
|
394
404
|
this.setSel({ t: 'trailer', trailer, cut, note, filter })
|
|
395
405
|
if (this.polling) this.trailer.start()
|
|
396
406
|
}
|
|
407
|
+
/** the stores page on a store, null for the first; `asset` a thing of it to scroll to, its note box open */
|
|
408
|
+
showStores(store: string | null, asset: string | null = null): void {
|
|
409
|
+
this.stores.select(store, asset)
|
|
410
|
+
this.setSel({ t: 'stores', store, ...(asset ? { asset } : {}) })
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/** the Veille page, `post` the post picked; `q` its window, chips, folds and lightbox, as an address carries them */
|
|
414
|
+
showVeille(post: string | null, q?: string): void {
|
|
415
|
+
if (q !== undefined) this.veille.applyAddress(q)
|
|
416
|
+
this.veille.select(post)
|
|
417
|
+
const query = this.veille.address
|
|
418
|
+
this.setSel({ t: 'veille', post, ...(query ? { q: query } : {}) })
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/** Communications on a draft, null for the first the list keeps, one message of its series; `q` the list's view
|
|
422
|
+
* as an address carries it */
|
|
423
|
+
showComms(draft: string | null, part: string | null = null, q?: string): void {
|
|
424
|
+
if (q !== undefined) this.social.applyCommsAddress(q)
|
|
425
|
+
this.social.selectDraft(draft, part)
|
|
426
|
+
const query = this.social.commsAddress
|
|
427
|
+
this.setSel({ t: 'comms', draft, ...(part ? { part } : {}), ...(query ? { q: query } : {}) })
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/** Social on an identity, null for the repo's; its company (`@legal`) or an account, null for its card; a place */
|
|
431
|
+
showSocial(identity: string | null, account: string | null = null, place: string | null = null): void {
|
|
432
|
+
this.social.selectSocial(identity, account, place)
|
|
433
|
+
this.setSel({ t: 'social', identity, ...(identity && account ? { account } : {}), ...(identity && account && place ? { place } : {}) })
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/** a repo's own page, `q` its keys as the address carries them: its frame is kept alive (frames-st.ts) */
|
|
437
|
+
showPage(id: string, q?: string): void {
|
|
438
|
+
this.home.frames.touch(this.key, id, this.pages.find(id)?.gl === true)
|
|
439
|
+
const keys = q ?? this.pages.keys.get(id)
|
|
440
|
+
this.setSel({ t: 'page', repo: this.name, id, ...(keys ? { q: keys } : {}) })
|
|
441
|
+
}
|
|
442
|
+
/** the keys a page's frame posted: its address follows in place, never a history entry a move */
|
|
443
|
+
pageMoved(id: string, q: string): void {
|
|
444
|
+
this.pages.keys.set(id, q)
|
|
445
|
+
if (this.sel?.t !== 'page' || this.sel.id !== id || (this.sel.q ?? '') === q) return
|
|
446
|
+
this.setSel({ t: 'page', repo: this.name, id, ...(q ? { q } : {}) })
|
|
447
|
+
}
|
|
397
448
|
|
|
398
449
|
/** collection view — one card per instance */
|
|
399
450
|
showCol(id: string): void {
|
|
@@ -417,6 +468,11 @@ export class RepoSt {
|
|
|
417
468
|
case 'checks': return this.showChecks(sel.from)
|
|
418
469
|
case 'review': return this.showReview(sel.id, sel.q ?? '')
|
|
419
470
|
case 'trailer': return this.showTrailer(sel.trailer, sel.cut, sel.note ?? null, sel.filter ?? null)
|
|
471
|
+
case 'stores': return this.showStores(sel.store, sel.asset ?? null)
|
|
472
|
+
case 'veille': return this.showVeille(sel.post, sel.q ?? '')
|
|
473
|
+
case 'comms': return this.showComms(sel.draft, sel.part ?? null, sel.q ?? '')
|
|
474
|
+
case 'social': return this.showSocial(sel.identity, sel.account ?? null, sel.place ?? null)
|
|
475
|
+
case 'page': return this.showPage(sel.id, sel.q)
|
|
420
476
|
}
|
|
421
477
|
}
|
|
422
478
|
/** the url decides the page: a reload, back, forward and a pasted link
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { observer } from 'mobx-react-lite'
|
|
6
6
|
import type { EventCell, NoteCell, ReplyCell, VerdictCell, VersionCell } from '../../../review/cells.ts'
|
|
7
7
|
import { isGallery, STATUS_LABEL, viewName, viewTag, type Rect } from '../../../review/model.ts'
|
|
8
|
-
import { Icon, ICON } from '../icons.tsx'
|
|
8
|
+
import { Caret, Icon, ICON } from '../icons.tsx'
|
|
9
9
|
import { renderMd } from '../md.ts'
|
|
10
10
|
import { ageWords, stampWords } from '../time-ago.tsx'
|
|
11
11
|
import { KindView, AnimPanel } from './kind-view.tsx'
|
|
@@ -53,7 +53,7 @@ export const CellFrame = observer(({ rv, card, c }: { rv: ReviewSt; card: Thread
|
|
|
53
53
|
return (
|
|
54
54
|
<article id={cellDom(c.id)} data-unread={unread ? c.id : undefined} className={`rv-c k-${c.kind} p-${c.party}${open ? '' : ' folded'}${head ? ' head' : ''} ${tone}`}>
|
|
55
55
|
<header className="rv-chead" onClick={() => card.toggleCell(c)}>
|
|
56
|
-
<button className="rv-foldbtn" aria-label={open ? 'fold' : 'unfold'} aria-expanded={open} onMouseDown={keepFocus} onClick={(e) => { e.stopPropagation(); card.toggleCell(c) }}
|
|
56
|
+
<button className="rv-foldbtn" aria-label={open ? 'fold' : 'unfold'} aria-expanded={open} onMouseDown={keepFocus} onClick={(e) => { e.stopPropagation(); card.toggleCell(c) }}><Caret open={open} /></button>
|
|
57
57
|
<Avatar who={c.who} />
|
|
58
58
|
{avatarText(c.who) === whoWords(c.who) ? null : <b className="rv-cwho">{whoWords(c.who)}</b>}
|
|
59
59
|
<span className="rv-ckind">{c.kind === 'version' ? `v${c.n}` : c.kind === 'reply' && c.op ? (c.op === 'ask' ? 'question' : 'answer') : KIND_LABEL[c.kind]}</span>
|
|
@@ -100,7 +100,7 @@ const Clamp = observer(({ card, id, md }: { card: ThreadSt; id: string; md: stri
|
|
|
100
100
|
<div className={`rv-clamp${open ? '' : ' shut'}`}>
|
|
101
101
|
<div className="md rv-what" dangerouslySetInnerHTML={{ __html: renderMd(md) }} />
|
|
102
102
|
{long ? (
|
|
103
|
-
<button className="rv-more ghost" aria-expanded={open} onMouseDown={keepFocus} onClick={() => card.toggle(key, open)}>{open ? 'less
|
|
103
|
+
<button className="rv-more ghost" aria-expanded={open} onMouseDown={keepFocus} onClick={() => card.toggle(key, open)}>{open ? 'less' : 'more'} <Caret v open={open} /></button>
|
|
104
104
|
) : null}
|
|
105
105
|
</div>
|
|
106
106
|
)
|