rvlib-shipkit 2.20.0 → 2.22.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 +35 -0
- package/package.json +1 -1
- package/src/asks/asks-queue.ts +8 -7
- package/src/assets/kits/identity-kit.ts +158 -2
- package/src/checks/SK004-gitignore-policy.check.ts +6 -3
- package/src/cli/cmd_Bump.ts +3 -3
- package/src/cli/cmd_GlobalProcesses.ts +2 -107
- package/src/cli/cmd_Home.ts +1 -1
- package/src/cli/cmd_Overview.ts +2 -1
- package/src/cli/cmd_Rec.ts +349 -0
- package/src/cli/cmd_Releases.ts +42 -3
- package/src/cli/cmd_Review.ts +22 -13
- package/src/cli/cmd_Secret.ts +10 -3
- package/src/cli/cmd_Sign.ts +24 -0
- package/src/cli/cmd_Social.ts +57 -8
- package/src/cli/cmd_Sound.ts +17 -4
- package/src/cli/cmd_Trailer.ts +67 -1
- package/src/cli/family-pages.ts +1 -0
- package/src/cli/registry.ts +6 -1
- package/src/collections/collection-types.ts +1 -1
- package/src/collections/review.ts +23 -4
- package/src/core/agent-spawn.ts +4 -17
- package/src/core/code-lines.ts +49 -0
- package/src/core/discover-checks.ts +27 -3
- package/src/core/hard-reset.ts +34 -0
- package/src/core/layout.ts +6 -0
- package/src/core/raw-access.ts +3 -13
- package/src/core/throwaway-worktree.ts +72 -0
- package/src/home/app-sign.ts +98 -0
- package/src/home/gui-app/ShipkitGui.swift +35 -0
- package/src/home/gui-app.ts +31 -11
- package/src/home/home-routes.ts +6 -0
- package/src/home/pm-switch.ts +112 -0
- package/src/home/serve-web.ts +1 -1
- package/src/identities/identities.ts +17 -6
- package/src/media-kinds.ts +5 -3
- package/src/media-store/forget.ts +54 -0
- package/src/media-store/put.ts +4 -3
- package/src/media-store/space.ts +63 -24
- package/src/messages/brief.ts +3 -3
- package/src/messages/score.ts +2 -0
- package/src/recordings/delete.ts +19 -0
- package/src/recordings/edit.ts +231 -0
- package/src/recordings/load.ts +37 -0
- package/src/recordings/marks-draw.ts +111 -0
- package/src/recordings/marks-png.ts +25 -0
- package/src/recordings/marks.ts +138 -0
- package/src/recordings/media-kind.ts +67 -0
- package/src/recordings/model.ts +170 -0
- package/src/recordings/open.ts +33 -0
- package/src/recordings/place.ts +89 -0
- package/src/recordings/presets.ts +99 -0
- package/src/recordings/recorder-app/Capture.swift +510 -0
- package/src/recordings/recorder-app/Clip.swift +107 -0
- package/src/recordings/recorder-app/Editor.swift +39 -0
- package/src/recordings/recorder-app/Tray.swift +298 -0
- package/src/recordings/recorder-app/main.swift +859 -0
- package/src/recordings/recorder-app.ts +46 -0
- package/src/recordings/recorder.shipkit.ts +11 -0
- package/src/recordings/routes.ts +140 -0
- package/src/recordings/run-recorder.ts +40 -0
- package/src/recordings/share.ts +107 -0
- package/src/recordings/take.ts +146 -0
- package/src/recordings/view.ts +40 -0
- package/src/release/gate-checkout.ts +74 -0
- package/src/release/release-scope.ts +35 -26
- package/src/release/run-bump.ts +79 -37
- package/src/release/run-release.ts +67 -53
- package/src/releases/add.ts +38 -5
- package/src/releases/before.ts +31 -0
- package/src/releases/from-card.ts +105 -20
- package/src/releases/model.ts +100 -18
- package/src/releases/pictures.ts +29 -8
- package/src/repo-config.ts +7 -3
- package/src/review/http.ts +1 -1
- package/src/review/model.ts +12 -2
- package/src/review/stage-card.ts +1 -1
- package/src/review/store.ts +12 -2
- package/src/review/trailer-desk.ts +20 -0
- package/src/review/trailer-model.ts +67 -0
- package/src/review/trailer-routes.ts +98 -1
- package/src/review/trailer-voices.ts +144 -0
- package/src/review/watchers.ts +58 -1
- package/src/secrets/manager.ts +18 -1
- package/src/serve/hub-app/benign-errors.ts +22 -0
- package/src/serve/hub-app/hash-route.ts +27 -15
- package/src/serve/hub-app/home-st.ts +23 -5
- package/src/serve/hub-app/home.html +1 -0
- package/src/serve/hub-app/hub-app.tsx +8 -1
- package/src/serve/hub-app/icons.tsx +2 -0
- package/src/serve/hub-app/palette-st.ts +1 -0
- package/src/serve/hub-app/project-list.css +7 -2
- package/src/serve/hub-app/project-list.tsx +10 -0
- package/src/serve/hub-app/projects-svc.ts +17 -7
- package/src/serve/hub-app/recordings-st.ts +641 -0
- package/src/serve/hub-app/recordings-view.tsx +504 -0
- package/src/serve/hub-app/recordings.css +82 -0
- package/src/serve/hub-app/releases/releases-page.tsx +121 -28
- package/src/serve/hub-app/releases/releases-st.ts +46 -4
- package/src/serve/hub-app/releases.css +30 -3
- package/src/serve/hub-app/repo-sections.ts +1 -1
- package/src/serve/hub-app/repo-st.ts +16 -11
- package/src/serve/hub-app/review/clip-st.ts +3 -1
- package/src/serve/hub-app/review/kit.tsx +3 -3
- package/src/serve/hub-app/review/trailer-page.tsx +32 -6
- package/src/serve/hub-app/review/trailer-st.ts +184 -8
- package/src/serve/hub-app/review/trailer-timeline.tsx +39 -4
- package/src/serve/hub-app/review/trailer-voices-st.ts +370 -0
- package/src/serve/hub-app/review/trailer-voices.tsx +574 -0
- package/src/serve/hub-app/review.css +90 -0
- package/src/serve/hub-app/social/comms-page.tsx +10 -5
- package/src/serve/hub-app/social/next-release.tsx +118 -0
- package/src/serve/hub-app/social/post-card.tsx +31 -3
- package/src/serve/hub-app/social/social-model.ts +6 -0
- package/src/serve/hub-app/social/social-st.ts +50 -1
- package/src/serve/hub-app/social.css +12 -0
- package/src/serve/hub-app/tree-build.ts +2 -0
- package/src/serve/project-gutter-route.ts +8 -0
- package/src/serve/project-gutter.ts +4 -2
- package/src/shipkit.ts +2 -2
- package/src/shot/box.ts +49 -22
- package/src/shot/browser-slot.ts +13 -3
- package/src/shot/client.ts +1 -1
- package/src/shot/film-box.ts +193 -117
- package/src/shot/shooter.ts +20 -8
- package/src/smoke/run-smoke.ts +8 -6
- package/src/social/compose.ts +14 -0
- package/src/social/desk-index.ts +49 -8
- package/src/social/discord-layout.ts +6 -2
- package/src/social/drafts.ts +1 -1
- package/src/social/kinds.ts +3 -2
- package/src/social/load.ts +42 -9
- package/src/social/publish/index.ts +27 -10
- package/src/social/publish/secret.ts +12 -4
- package/src/social/release-card.ts +69 -0
- package/src/social/release-stage.ts +173 -30
- package/src/social/routes.ts +7 -1
- package/src/social/stage.ts +45 -22
- package/src/trailer/bed.ts +111 -0
- package/src/trailer/build.ts +81 -38
- package/src/trailer/ffmpeg.ts +14 -0
- package/src/trailer/grammar.ts +32 -4
- package/src/trailer/graph.ts +12 -1
- package/src/trailer/look.ts +7 -0
- package/src/trailer/shot-plan.ts +75 -0
- package/src/trailer/shot-state.ts +191 -0
- package/src/trailer/sound/audio.ts +28 -0
- package/src/trailer/sound/brand.ts +53 -3
- package/src/trailer/sound/gen.ts +61 -2
- package/src/trailer/sound/index.ts +25 -11
- package/src/trailer/sound/presets.ts +86 -5
- package/src/trailer/sound/run.ts +1 -1
- package/src/trailer/sound/takes.ts +94 -0
- package/src/trailer/titles.ts +36 -0
- package/src/trailer/url.ts +1 -1
- package/src/veille/chrome.ts +6 -3
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
.ns-wontfix{--tone:var(--dim)}
|
|
14
14
|
.hue-k1{--hue:var(--k1)}.hue-k2{--hue:var(--k2)}.hue-k3{--hue:var(--k3)}.hue-k4{--hue:var(--k4)}.hue-k5{--hue:var(--k5)}.hue-k6{--hue:var(--k6)}
|
|
15
15
|
.hue-none{--hue:var(--dim)}
|
|
16
|
+
.ss-ready{--tone:var(--ok)}
|
|
17
|
+
.ss-queued{--tone:var(--warn)}
|
|
18
|
+
.ss-filming{--tone:var(--blue)}
|
|
19
|
+
.ss-waiting{--tone:var(--review)}
|
|
20
|
+
.ss-unfilmed{--tone:var(--red)}
|
|
16
21
|
|
|
17
22
|
/* ── the columns ── */
|
|
18
23
|
.rv-cols{flex:1;min-height:0}
|
|
@@ -433,6 +438,82 @@ span.rv-pick{display:inline-block;border:1px solid;border-radius:4px;font-size:1
|
|
|
433
438
|
.tr-edited{color:var(--warn)}
|
|
434
439
|
.tr-cuterr{color:var(--red);font-weight:800}
|
|
435
440
|
.tr-opencount{flex:none;min-width:16px;padding:0 var(--s1);border-radius:8px;background:var(--warn);color:var(--bg);font-size:10px;font-weight:700;text-align:center;line-height:16px}
|
|
441
|
+
/* the Voices view: the open line in the middle, every line on the right */
|
|
442
|
+
.tv-button{margin:var(--s1) 0 var(--s2);border:1px solid var(--line)}
|
|
443
|
+
.tv-button .sp,.tv-cliphead .sp{flex:1}
|
|
444
|
+
.tv-open{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s3)}
|
|
445
|
+
.tv-head{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap}
|
|
446
|
+
.tv-dim{color:var(--dim);font-size:12px}
|
|
447
|
+
.tv-pill{padding:0 var(--s2);border-radius:9px;font-size:11px;font-weight:700;background:var(--panel2);color:var(--dim)}
|
|
448
|
+
.tv-pill.waiting{background:var(--warn);color:var(--bg)}
|
|
449
|
+
.tv-pill.recorded{background:var(--ok);color:var(--bg)}
|
|
450
|
+
.tv-text{margin:0;padding:var(--s2) var(--s3);border-left:3px solid var(--accent);font-size:22px;line-height:1.35;font-weight:600}
|
|
451
|
+
.tv-tag{display:inline-block;margin:0 var(--s1);padding:0 var(--s1);border-radius:4px;background:var(--panel2);color:var(--dim);font-size:12px;font-weight:400;vertical-align:middle}
|
|
452
|
+
.tv-audio{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap}
|
|
453
|
+
.tv-audio audio{height:32px;max-width:100%}
|
|
454
|
+
.tv-label{min-width:96px;font-size:12px;font-weight:700;color:var(--dim)}
|
|
455
|
+
.tv-actions{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap}
|
|
456
|
+
.tv-actions button,.tv-small{padding:var(--s1) var(--s3);border:1px solid var(--line);border-radius:6px;background:var(--panel)}
|
|
457
|
+
.tv-small{padding:var(--s0) var(--s2);font-size:12px}
|
|
458
|
+
/* the line's sounds as waveforms on one time scale: a button and a name a lane, the shapes in one column under the
|
|
459
|
+
ruler, the cursor and the next line's mark over that column only */
|
|
460
|
+
.tv-waves{--tv-head:calc(32px + 96px + 2 * var(--s1));position:relative;display:flex;flex-direction:column;gap:var(--s1);padding:var(--s4) 0 var(--s4)}
|
|
461
|
+
.tv-lane{display:grid;grid-template-columns:32px 96px 1fr;gap:var(--s1);align-items:center}
|
|
462
|
+
.tv-lanename{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
463
|
+
.tv-wave{width:100%;height:56px;display:block;border-radius:4px;background:var(--panel2);color:var(--line);cursor:pointer}
|
|
464
|
+
.tv-wave.drags{cursor:ew-resize;touch-action:none}
|
|
465
|
+
/* the clip's play bar: the range between two handles, the line's start, the playhead; loop beside it */
|
|
466
|
+
.tv-range{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
|
|
467
|
+
.tv-range .tv-rangebar{flex:1 1 100%;order:-1}
|
|
468
|
+
.tv-loop.on{background:var(--accent);border-color:var(--accent);color:var(--bg)}
|
|
469
|
+
.tv-volume{display:inline-flex;align-items:center;gap:var(--s1)}
|
|
470
|
+
.tv-volume input{width:80px;accent-color:var(--accent)}
|
|
471
|
+
.tv-rangebar{position:relative;flex:1;height:24px;border-radius:4px;background:var(--panel2);cursor:pointer;touch-action:none}
|
|
472
|
+
.tv-rangebar.off{opacity:.5;cursor:default}
|
|
473
|
+
.tv-rangeon{position:absolute;top:0;bottom:0;background:var(--sel);box-shadow:inset 0 0 0 1px var(--accent);border-radius:4px}
|
|
474
|
+
.tv-rangeline{position:absolute;top:0;bottom:0;border-left:2px dashed var(--warn)}
|
|
475
|
+
.tv-rangehead{position:absolute;top:0;bottom:0;width:2px;transform:translateX(-1px);background:var(--red)}
|
|
476
|
+
.tv-handle{position:absolute;top:0;bottom:0;width:8px;transform:translateX(-4px);border-radius:3px;background:var(--accent);cursor:ew-resize}
|
|
477
|
+
/* which version of the line the clip plays: one segmented switch */
|
|
478
|
+
.tv-hear{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden}
|
|
479
|
+
.tv-hear button{padding:var(--s0) var(--s2);border:0;background:var(--panel);font-size:12px}
|
|
480
|
+
.tv-hear button.on{background:var(--accent);color:var(--bg);font-weight:700}
|
|
481
|
+
.tv-brushes{display:flex;gap:var(--s1)}
|
|
482
|
+
.tv-brush{flex:1;padding:0 var(--s1);border:1px solid var(--line);border-radius:4px;background:var(--panel);font-size:11px}
|
|
483
|
+
.tv-brush.mute.on{background:var(--red);border-color:var(--red);color:var(--bg)}
|
|
484
|
+
.tv-brush.keep.on{background:var(--ok);border-color:var(--ok);color:var(--bg)}
|
|
485
|
+
.tv-maskbar{position:relative;height:16px;border-radius:4px;background:var(--panel2);box-shadow:inset 0 0 0 1px var(--ok);cursor:crosshair;touch-action:none;overflow:hidden}
|
|
486
|
+
.tv-maskbar.off{cursor:default;opacity:.5}
|
|
487
|
+
.tv-masked{position:absolute;top:0;bottom:0;background:var(--red)}
|
|
488
|
+
.tv-overlay{position:absolute;left:var(--tv-head);right:0;top:var(--s4);bottom:var(--s4);pointer-events:none}
|
|
489
|
+
.tv-cursor{position:absolute;top:0;bottom:0;width:2px;transform:translateX(-1px);background:var(--red)}
|
|
490
|
+
.tv-room{position:absolute;top:0;bottom:0;border-left:2px dashed var(--warn)}
|
|
491
|
+
.tv-room span{position:absolute;top:calc(-1 * var(--s4));left:var(--s1);font-size:10px;color:var(--warn);white-space:nowrap}
|
|
492
|
+
.tv-cliphead{flex-wrap:wrap}
|
|
493
|
+
.tv-mic{display:flex;align-items:center;gap:var(--s2);font-size:12px}
|
|
494
|
+
.tv-mic select{max-width:100%;min-width:0;flex:1}
|
|
495
|
+
.tv-tick{position:absolute;bottom:calc(-1 * var(--s4));height:var(--s2);border-left:1px solid var(--line);font-size:10px;color:var(--dim);padding-left:var(--s0);line-height:1}
|
|
496
|
+
.tv-tick.whole{height:var(--s4)}
|
|
497
|
+
.tv-rec{font-weight:700;color:var(--red)}
|
|
498
|
+
.tv-rec.on{background:var(--red);color:var(--bg);border-color:var(--red)}
|
|
499
|
+
.tv-meter{width:120px;height:8px;border-radius:4px;background:var(--panel2);overflow:hidden}
|
|
500
|
+
.tv-meter span{display:block;height:100%;background:var(--ok)}
|
|
501
|
+
.tv-time{font-variant-numeric:tabular-nums;font-size:12px}
|
|
502
|
+
.tv-clip{display:flex;flex-direction:column;gap:var(--s1)}
|
|
503
|
+
.tv-cliphead{display:flex;align-items:center;gap:var(--s2)}
|
|
504
|
+
.tv-frame{position:relative}
|
|
505
|
+
.tv-frame video{display:block;width:100%;border-radius:6px;background:var(--bg);cursor:pointer}
|
|
506
|
+
.tv-cue{position:absolute;top:var(--s3);right:var(--s3);padding:var(--s1) var(--s3);border-radius:6px;background:var(--red);color:var(--bg);font-weight:700;font-size:18px}
|
|
507
|
+
.tv-uses{display:flex;flex-direction:column;gap:var(--s0);font-size:12px}
|
|
508
|
+
.tv-uses a{color:var(--dim)}
|
|
509
|
+
.tv-list{display:flex;flex-direction:column;gap:0;padding:var(--s2)}
|
|
510
|
+
.tv-row{display:flex;align-items:center;gap:var(--s2);width:100%;padding:var(--s1) var(--s2);border:0;border-radius:4px;background:none;text-align:left;font-size:13px}
|
|
511
|
+
.tv-row:hover{background:var(--panel2)}
|
|
512
|
+
.tv-row.on{background:var(--sel);box-shadow:inset 2px 0 0 var(--accent)}
|
|
513
|
+
.tv-rowtext{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
514
|
+
.tv-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--line)}
|
|
515
|
+
.tv-dot.waiting{background:var(--warn)}
|
|
516
|
+
.tv-dot.recorded{background:var(--ok)}
|
|
436
517
|
.tr-cutage{flex:none;font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums;white-space:nowrap}
|
|
437
518
|
.tr-keys{margin-top:var(--s3);padding:var(--s2);border:1px solid var(--line);border-radius:6px;background:var(--panel);display:flex;flex-direction:column;gap:var(--s0)}
|
|
438
519
|
.tr-keyshead{font-size:11px;font-weight:700;color:var(--dim)}
|
|
@@ -490,6 +571,13 @@ span.rv-pick{display:inline-block;border:1px solid;border-radius:4px;font-size:1
|
|
|
490
571
|
.tr-shotcard{position:relative;flex:none;width:148px;padding:var(--s1);border-radius:6px;text-align:left;border:1px solid var(--line);background:var(--panel)}
|
|
491
572
|
.tr-shotcard.on{border:2px solid var(--hue);background:color-mix(in srgb,var(--hue) 12%,var(--panel))}
|
|
492
573
|
.tr-shotname{font-size:12px;font-weight:800;margin-top:var(--s1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
574
|
+
.tr-sbar{position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--tone)}
|
|
575
|
+
.tr-sdot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--tone);vertical-align:baseline}
|
|
576
|
+
.tr-sstate{display:flex;gap:var(--s1);align-items:center;margin-top:var(--s1);font-size:11px;font-weight:700;color:var(--tone);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
|
577
|
+
.tr-sstate .tr-dim{font-weight:500}
|
|
578
|
+
.tr-summary{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);align-items:center;font-size:12.5px;padding:var(--s1) 0}
|
|
579
|
+
.tr-summary>span{display:inline-flex;gap:var(--s1);align-items:center}
|
|
580
|
+
.tr-summary .tr-cardlink{padding:0 var(--s1);font-size:12px;font-weight:700;color:var(--tone);border:1px solid color-mix(in srgb,var(--tone) 50%,var(--line));border-radius:3px;background:transparent;line-height:18px}
|
|
493
581
|
.tr-shot.changed::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--accent)}
|
|
494
582
|
.tr-shotcard.changed{box-shadow:inset 0 -3px 0 var(--accent)}
|
|
495
583
|
.tr-changed{margin-left:var(--s1);font-size:10px;font-weight:700;padding:0 var(--s1);border-radius:3px;line-height:16px;color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line));background:transparent}
|
|
@@ -536,6 +624,8 @@ button.tr-changed.on{background:var(--accent);color:var(--bg)}
|
|
|
536
624
|
.tr-drafttag{font-size:10px;font-weight:700;text-transform:uppercase;color:var(--warn)}
|
|
537
625
|
.tr-stillrect{position:absolute;border:2px solid var(--accent);pointer-events:none}
|
|
538
626
|
.tr-shotnotes{position:absolute;top:var(--s2);right:var(--s2);min-width:18px;height:18px;border-radius:9px;background:var(--warn);color:var(--bg);font-size:11px;font-weight:800;text-align:center;line-height:18px;padding:0 var(--s1)}
|
|
627
|
+
.tr-reshoot{display:inline-block;margin-top:var(--s1);padding:0 var(--s2);border:1px solid var(--line);border-radius:999px;font-size:11px;line-height:18px;color:var(--red);cursor:pointer}
|
|
628
|
+
.tr-reshoot:hover{border-color:var(--red)}
|
|
539
629
|
.tr-montage{display:flex;flex-direction:column;gap:var(--s1);align-items:flex-start}
|
|
540
630
|
.tr-montagebody{width:100%;font-size:12.5px;padding:var(--s2) var(--s3);border:1px solid var(--line);border-radius:4px;background:var(--panel);overflow-x:auto}
|
|
541
631
|
.tr-notescol{height:100%;display:flex;flex-direction:column;min-height:0}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// a repo's Communications page (`#page:comms`, wiki tools/shipkit/social.md, The desks in the hub): the calendar on top,
|
|
2
|
-
// the drafts on the left (the family, the channel, the identity, the order), the draft picked in the middle (its angle,
|
|
2
|
+
// the drafts on the left (the next release on top, the family, the channel, the identity, the order), the draft picked in the middle (its angle,
|
|
3
3
|
// his notes, a card a heading), its article and media on the right. On a phone one pane at a time
|
|
4
4
|
import { observer } from 'mobx-react-lite'
|
|
5
5
|
import { Fragment, useEffect, useRef, type CSSProperties } from 'react'
|
|
@@ -15,6 +15,7 @@ import { Problems } from './problems.tsx'
|
|
|
15
15
|
import type { SocialSt } from './social-st.ts'
|
|
16
16
|
import { Caret } from '../icons.tsx'
|
|
17
17
|
import { StagePopup } from './stage-popup.tsx'
|
|
18
|
+
import { NextPage, NextSection, NextSide } from './next-release.tsx'
|
|
18
19
|
|
|
19
20
|
export const CommsPage = observer(({ app }: { app: RepoSt }) => {
|
|
20
21
|
const so = app.social
|
|
@@ -36,10 +37,10 @@ export const CommsPage = observer(({ app }: { app: RepoSt }) => {
|
|
|
36
37
|
<button className="ghost" onClick={() => so.showPhoneList()}>
|
|
37
38
|
◂ drafts
|
|
38
39
|
</button>
|
|
39
|
-
<b className="so-ellip">{so.currentDraft?.title || so.currentDraft?.slug}</b>
|
|
40
|
+
<b className="so-ellip">{so.nextPicked ? 'Next release (unreleased)' : so.currentDraft?.title || so.currentDraft?.slug}</b>
|
|
40
41
|
</div>
|
|
41
42
|
<DraftPane so={so} />
|
|
42
|
-
<DraftSide
|
|
43
|
+
<DraftSide app={app} />
|
|
43
44
|
</>
|
|
44
45
|
)}
|
|
45
46
|
<Lightbox so={so} />
|
|
@@ -62,7 +63,7 @@ export const CommsPage = observer(({ app }: { app: RepoSt }) => {
|
|
|
62
63
|
<Separator className="rsep" />
|
|
63
64
|
<Panel id="comms-side" defaultSize="32%" minSize={280} className="rv-pane" style={PANEL}>
|
|
64
65
|
<div className="rv-scroll so-ground">
|
|
65
|
-
<DraftSide
|
|
66
|
+
<DraftSide app={app} />
|
|
66
67
|
</div>
|
|
67
68
|
</Panel>
|
|
68
69
|
</KeptCols>
|
|
@@ -135,6 +136,7 @@ const DraftsList = observer(({ so }: { so: SocialSt }) => {
|
|
|
135
136
|
</div>
|
|
136
137
|
<Problems so={so} lines={[...(so.loadError ? [so.loadError] : []), ...so.errors]} />
|
|
137
138
|
<div className="rv-listscroll so-rows">
|
|
139
|
+
<NextSection so={so} />
|
|
138
140
|
{so.desk && so.desk.drafts.length === 0 ? <div className="rv-empty">no draft: write .shipkit/social/drafts/<YYYYMMDD-HHMMSS>-<topic>/draft.md</div> : null}
|
|
139
141
|
{drafts.map((d) => (
|
|
140
142
|
<Fragment key={d.slug}>
|
|
@@ -217,6 +219,7 @@ const PartRow = observer(({ so, d, part }: { so: SocialSt; d: Draft; part: strin
|
|
|
217
219
|
})
|
|
218
220
|
|
|
219
221
|
const DraftPane = observer(({ so }: { so: SocialSt }) => {
|
|
222
|
+
if (so.nextPicked && so.next?.preview) return <NextPage so={so} p={so.next.preview} />
|
|
220
223
|
const d = so.currentDraft
|
|
221
224
|
if (!d) return <div className="rv-empty">{so.desk ? 'no draft here: the list keeps none' : so.loadError ?? so.waitText}</div>
|
|
222
225
|
return <DraftPage so={so} d={d} />
|
|
@@ -304,7 +307,9 @@ const KindLink = observer(({ so, d }: { so: SocialSt; d: Draft }) => {
|
|
|
304
307
|
)
|
|
305
308
|
})
|
|
306
309
|
|
|
307
|
-
const DraftSide = observer(({
|
|
310
|
+
const DraftSide = observer(({ app }: { app: RepoSt }) => {
|
|
311
|
+
const so = app.social
|
|
312
|
+
if (so.nextPicked && so.next?.preview) return <NextSide rs={app.releases} p={so.next.preview} />
|
|
308
313
|
const d = so.currentDraft
|
|
309
314
|
return d ? <DraftMedia so={so} d={d} /> : null
|
|
310
315
|
})
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// the next release in Communications (wiki tools/shipkit/social-desks.md, The next release): a foldable section on top
|
|
2
|
+
// of the list, the draft a release would stage from next.md in the middle, next.md's changes on the right. Never a
|
|
3
|
+
// draft: nothing here posts, copies or opens, and its words are the stage's own (release-stage.ts previewNextRelease)
|
|
4
|
+
import { observer } from 'mobx-react-lite'
|
|
5
|
+
import { ChangeCard } from '../releases/releases-page.tsx'
|
|
6
|
+
import type { ReleasesSt } from '../releases/releases-st.ts'
|
|
7
|
+
import { Caret } from '../icons.tsx'
|
|
8
|
+
import { Count, Logo } from './kit.tsx'
|
|
9
|
+
import { AngleCards, Logos } from './post-card.tsx'
|
|
10
|
+
import { NEXT_PICK, sharing, type Send } from './social-model.ts'
|
|
11
|
+
import type { SocialSt } from './social-st.ts'
|
|
12
|
+
import type { NextRelease } from '../../../social/release-stage.ts'
|
|
13
|
+
|
|
14
|
+
const changesIn = (p: NextRelease): number => p.release.categories.reduce((n, c) => n + c.changes.length, 0)
|
|
15
|
+
const titleOf = (p: NextRelease): string => p.draft?.title || (p.release.title ? `next: ${p.release.title}` : 'next')
|
|
16
|
+
|
|
17
|
+
/** the list's section: its fold, then one row, the release as it would be staged */
|
|
18
|
+
export const NextSection = observer(({ so }: { so: SocialSt }) => {
|
|
19
|
+
const view = so.next
|
|
20
|
+
if (view == null || (view.preview == null && view.error == null)) return null
|
|
21
|
+
const p = view.preview
|
|
22
|
+
return (
|
|
23
|
+
<div className="so-nextsec">
|
|
24
|
+
<button className="so-nexthead" onClick={() => so.flipFold(NEXT_PICK, true)} title="the release being filled, .shipkit/releases/next.md: a draft is staged from it when the release is cut">
|
|
25
|
+
<Caret open={so.nextOpen} />
|
|
26
|
+
<span className="so-ellip">Next release (unreleased)</span>
|
|
27
|
+
</button>
|
|
28
|
+
{so.nextOpen && view.error ? <div className="so-kindproblem">⚠ next.md: {view.error}</div> : null}
|
|
29
|
+
{so.nextOpen && p ? (
|
|
30
|
+
<button className={`so-draftrow so-nextrow${so.nextPicked ? ' on' : ''}`} onClick={() => so.pickDraft(NEXT_PICK)} title="not staged: nothing to post until the release is cut">
|
|
31
|
+
<span className="so-day">next</span>
|
|
32
|
+
<span className="so-rowtitle">{titleOf(p)}</span>
|
|
33
|
+
{p.draft ? <Logos so={so} posts={p.draft.posts} size={14} /> : null}
|
|
34
|
+
<span className="so-frac" title="the changes of next.md">
|
|
35
|
+
{changesIn(p)}
|
|
36
|
+
</span>
|
|
37
|
+
</button>
|
|
38
|
+
) : null}
|
|
39
|
+
</div>
|
|
40
|
+
)
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
/** the middle: the draft a release would stage, each heading's text as each venue gets it, nothing to click */
|
|
44
|
+
export const NextPage = observer(({ so, p }: { so: SocialSt; p: NextRelease }) => (
|
|
45
|
+
<div className="so-colin">
|
|
46
|
+
<div className="so-pagehead">
|
|
47
|
+
<h2 className="so-h">
|
|
48
|
+
{titleOf(p)}
|
|
49
|
+
<span className="rv-dim so-light"> · release</span>
|
|
50
|
+
</h2>
|
|
51
|
+
<span className="so-badge t-warn">unreleased · not staged</span>
|
|
52
|
+
</div>
|
|
53
|
+
<div className="so-nextnote">
|
|
54
|
+
The release being filled, as it would be staged now from <code>.shipkit/releases/next.md</code>: {changesIn(p)} changes. Nothing here posts: the real draft appears in this list when the release is cut, with its polish note.
|
|
55
|
+
</div>
|
|
56
|
+
{p.release.title === '' ? (
|
|
57
|
+
<div className="so-kindproblem">
|
|
58
|
+
⚠ next.md names no title, so the post is titled « {p.ref.split('@')[0]} <version> »: <code>sk releases add --release-title "…"</code> names it
|
|
59
|
+
</div>
|
|
60
|
+
) : null}
|
|
61
|
+
{p.errors.map((e) => (
|
|
62
|
+
<div key={e} className="so-kindproblem">
|
|
63
|
+
⚠ {e}
|
|
64
|
+
</div>
|
|
65
|
+
))}
|
|
66
|
+
{p.draft ? (
|
|
67
|
+
<>
|
|
68
|
+
<AngleCards key={p.ref} angle={p.draft.angle} />
|
|
69
|
+
{sharing(p.draft.posts, (x) => so.postAccount(x)).map((sends) => (
|
|
70
|
+
<PreviewCard key={sends[0]?.post.from} so={so} sends={sends} />
|
|
71
|
+
))}
|
|
72
|
+
</>
|
|
73
|
+
) : (
|
|
74
|
+
<div className="rv-dim rv-small">no post: the repo's social unit declares no release headings, so a release stages nothing</div>
|
|
75
|
+
)}
|
|
76
|
+
</div>
|
|
77
|
+
))
|
|
78
|
+
|
|
79
|
+
/** one heading's text for its accounts, read only: their logos, where each goes, the text, its length against each max */
|
|
80
|
+
const PreviewCard = observer(({ so, sends }: { so: SocialSt; sends: readonly Send[] }) => {
|
|
81
|
+
const first = sends[0]
|
|
82
|
+
if (!first) return null
|
|
83
|
+
return (
|
|
84
|
+
<div className="so-card so-post so-preview">
|
|
85
|
+
<div className="so-posthead">
|
|
86
|
+
<span className="so-logos">
|
|
87
|
+
{sends.map(({ a }) => (
|
|
88
|
+
<Logo key={a.id} id={a.id} name={a.name} size={24} muted />
|
|
89
|
+
))}
|
|
90
|
+
</span>
|
|
91
|
+
<span className="so-posttitle">
|
|
92
|
+
<b>{sends.map(({ a, post }) => (post.place ? `${a.name} → ${so.placeName(a, post.place)}` : a.name)).join(' · ')}</b>
|
|
93
|
+
</span>
|
|
94
|
+
<span className="so-badge t-dim">preview</span>
|
|
95
|
+
</div>
|
|
96
|
+
<div className="so-nexttext">{first.post.text}</div>
|
|
97
|
+
<div className="so-postfoot">
|
|
98
|
+
{sends.map(({ a, post }) => (
|
|
99
|
+
<Count key={a.id} n={post.length} max={a.max} title={`its length on ${a.name}`} />
|
|
100
|
+
))}
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
)
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
/** the right: next.md's changes as the Releases page draws them, pictures through the hub */
|
|
107
|
+
export const NextSide = observer(({ rs, p }: { rs: ReleasesSt; p: NextRelease }) => (
|
|
108
|
+
<div className="so-colin">
|
|
109
|
+
{p.release.categories.map((c) => (
|
|
110
|
+
<div key={c.name} className="so-nextcat">
|
|
111
|
+
<b>{c.name}</b>
|
|
112
|
+
{c.changes.map((ch) => (
|
|
113
|
+
<ChangeCard key={`${ch.card ?? ''}${ch.title}`} rs={rs} ch={ch} />
|
|
114
|
+
))}
|
|
115
|
+
</div>
|
|
116
|
+
))}
|
|
117
|
+
</div>
|
|
118
|
+
))
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { observer } from 'mobx-react-lite'
|
|
6
6
|
import { Fragment, useState, type CSSProperties, type ReactNode } from 'react'
|
|
7
7
|
import { CopyFrame, Count, ExpandButton, Field, Fold, FoldCard, Logo, Md, popup } from './kit.tsx'
|
|
8
|
-
import { angleCards, isClip, isVertical, logoStacks, sharing, STATUS, TEXT_FIELD, TITLE_MAX, type DeskAccount, type Media, type Place, type SocialPost } from './social-model.ts'
|
|
8
|
+
import { angleCards, isClip, isVertical, logoStacks, sharing, STATUS, TAG_FIELD, TEXT_FIELD, TITLE_MAX, type DeskAccount, type Media, type Place, type SocialPost } from './social-model.ts'
|
|
9
9
|
import type { SocialSt } from './social-st.ts'
|
|
10
10
|
import { Caret } from '../icons.tsx'
|
|
11
11
|
import { AutoText } from '../auto-text.tsx'
|
|
@@ -45,7 +45,8 @@ export function AngleCards(p: { angle: string }) {
|
|
|
45
45
|
)
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
/** a still or a clip: « Copy image » for a still (the clipboard takes no clip), « ⬇ » for both, 📂 the Finder
|
|
48
|
+
/** a still or a clip: « Copy image » for a still (the clipboard takes no clip), « ⬇ » for both, 📂 the Finder, « ⧉ path »
|
|
49
|
+
* its path on this Mac */
|
|
49
50
|
export const MediaTile = observer((p: { so: SocialSt; slug: string; m: Media; size: 'large' | 'side' | 'small' }) => {
|
|
50
51
|
const so = p.so
|
|
51
52
|
const url = so.mediaUrl(p.slug, p.m)
|
|
@@ -72,6 +73,11 @@ export const MediaTile = observer((p: { so: SocialSt; slug: string; m: Media; si
|
|
|
72
73
|
📂
|
|
73
74
|
</button>
|
|
74
75
|
) : null}
|
|
76
|
+
{!so.phone ? (
|
|
77
|
+
<button onClick={() => void so.copyPath(p.slug, p.m, `${key}/path`)} title={`copy the path on this Mac: ${p.m.path}`}>
|
|
78
|
+
{so.copiedKey === `${key}/path` ? '✓ Copied' : '⧉ path'}
|
|
79
|
+
</button>
|
|
80
|
+
) : null}
|
|
75
81
|
{p.size === 'large' ? (
|
|
76
82
|
<span className="rv-dim rv-small so-ellip" title={p.m.path}>
|
|
77
83
|
{p.m.name}
|
|
@@ -346,9 +352,31 @@ const Fields = observer((p: { so: SocialSt; a: DeskAccount; post: SocialPost; pl
|
|
|
346
352
|
</Field>
|
|
347
353
|
{post.refused !== '' ? <div className="so-refused t-red">⛔ {post.refused}</div> : null}
|
|
348
354
|
{post.rating !== 'safe' && p.a.sensitive !== '' ? <div className="so-refused t-warn">🔞 {post.rating} on {p.a.name}: {p.a.sensitive}</div> : null}
|
|
355
|
+
{post.tier !== '' ? (
|
|
356
|
+
<Field label="Tier">
|
|
357
|
+
<div className="so-tier">
|
|
358
|
+
<b>{post.tier}</b>
|
|
359
|
+
<span className="t-dim">{post.tierSet ? ' (its draft names it)' : ' (suggested: the open tier, no tier named)'}</span>
|
|
360
|
+
</div>
|
|
361
|
+
</Field>
|
|
362
|
+
) : null}
|
|
349
363
|
{post.tags.length > 0 ? (
|
|
350
364
|
<Field label="Tags">
|
|
351
|
-
|
|
365
|
+
{TAG_FIELD[post.platform] === 'words' ? (
|
|
366
|
+
<div className="so-tagchips">
|
|
367
|
+
{post.tags.map((t) => {
|
|
368
|
+
const word = t.replace(/^#/, '')
|
|
369
|
+
const k = `${key}/tag/${word}`
|
|
370
|
+
return (
|
|
371
|
+
<button key={word} className="so-tagchip" title="copy this tag alone" onClick={() => void so.copy(word, k)}>
|
|
372
|
+
{so.copiedKey === k ? '✓ copied' : word}
|
|
373
|
+
</button>
|
|
374
|
+
)
|
|
375
|
+
})}
|
|
376
|
+
</div>
|
|
377
|
+
) : (
|
|
378
|
+
<div className="so-tags">{post.tags.join(' ')}</div>
|
|
379
|
+
)}
|
|
352
380
|
</Field>
|
|
353
381
|
) : null}
|
|
354
382
|
{post.reply !== '' ? (
|
|
@@ -16,6 +16,8 @@ export type DeskJson = Desk & { timelines: Record<string, Timeline>; statsPlatfo
|
|
|
16
16
|
|
|
17
17
|
/** the account's own profile, beside its places */
|
|
18
18
|
export const ME = 'me'
|
|
19
|
+
/** the address of the next release in Communications (`#page:comms:next-release`): no draft's slug, which opens on a date */
|
|
20
|
+
export const NEXT_PICK = 'next-release'
|
|
19
21
|
/** the company card of an identity, never an account's folder name */
|
|
20
22
|
export const LEGAL = '@legal'
|
|
21
23
|
/** YouTube's title, the one title a group heading carries (`## vertical`) */
|
|
@@ -34,6 +36,10 @@ export const AUTOMATION: Readonly<Record<string, { label: string; tone: 'ok' | '
|
|
|
34
36
|
/** the field of the platform a message's text goes in (the account's `text`) */
|
|
35
37
|
export const TEXT_FIELD: Readonly<Record<string, string>> = { description: 'Description', comment: 'First comment' }
|
|
36
38
|
|
|
39
|
+
/** how a platform's tag field takes the tags, by platform; unnamed, they show as one line. `words`: a select that takes
|
|
40
|
+
* one bare word at a time, so each tag is its own chip, no `#`, copied alone */
|
|
41
|
+
export const TAG_FIELD: Readonly<Record<string, 'words'>> = { subscribestar: 'words' }
|
|
42
|
+
|
|
37
43
|
/** the list's families (Fil and Vertical): the word in the address, the family of the accounts */
|
|
38
44
|
export const FAMS = { feed: 'feed', vertical: 'shorts' } as const satisfies Record<string, Family>
|
|
39
45
|
export type Fam = keyof typeof FAMS
|
|
@@ -5,6 +5,7 @@ import { makeAutoObservable, observableRef, runInAction } from 'mobx'
|
|
|
5
5
|
import { releaseSource, StageSt } from './stage-st.ts'
|
|
6
6
|
import { compose, messageLength } from '../../../social/compose.ts'
|
|
7
7
|
import { deskOfWire, type Wire } from '../../../social/desk-wire.ts'
|
|
8
|
+
import type { NextReleaseView } from '../../../social/desk-index.ts'
|
|
8
9
|
import { identityAddress } from '../identity-address.ts'
|
|
9
10
|
import { SEARCH_KEY } from '../keys.ts'
|
|
10
11
|
import { reach } from '../reach.ts'
|
|
@@ -21,6 +22,7 @@ import {
|
|
|
21
22
|
LEGAL,
|
|
22
23
|
legalLive,
|
|
23
24
|
ME,
|
|
25
|
+
NEXT_PICK,
|
|
24
26
|
partsOf,
|
|
25
27
|
readCommsQuery,
|
|
26
28
|
waiting,
|
|
@@ -137,6 +139,10 @@ export class SocialSt {
|
|
|
137
139
|
toast: string | null = null
|
|
138
140
|
/** the phone shows one pane at a time: the list, or what it opened */
|
|
139
141
|
phonePane: 'list' | 'detail' = 'list'
|
|
142
|
+
/** the release being filled, as the release that cuts it would stage it; never a draft, never posted */
|
|
143
|
+
next: NextReleaseView | null = null
|
|
144
|
+
/** its ETag: « not modified » keeps it */
|
|
145
|
+
nextTag: string | null = null
|
|
140
146
|
/** the post tracker by identity: the URLs waiting for a line, its stamp, its last steps by platform */
|
|
141
147
|
tracker: Record<string, TrackerView> = {}
|
|
142
148
|
/** the line whose « search » runs, and what each found, by `<key>/<slug>` */
|
|
@@ -191,11 +197,41 @@ export class SocialSt {
|
|
|
191
197
|
start(): void {
|
|
192
198
|
if (this.started++ === 0) {
|
|
193
199
|
window.addEventListener('focus', this.onBack)
|
|
194
|
-
this.trackerTimer = setInterval(() =>
|
|
200
|
+
this.trackerTimer = setInterval(() => {
|
|
201
|
+
void this.loadTracker()
|
|
202
|
+
void this.loadNext()
|
|
203
|
+
}, TRACKER_MS)
|
|
195
204
|
}
|
|
196
205
|
void this.load()
|
|
197
206
|
void this.loadStats()
|
|
198
207
|
void this.loadTracker()
|
|
208
|
+
void this.loadNext()
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** next.md previewed (wiki tools/shipkit/social-desks.md, The next release): read on every tick, a 304 while it stands */
|
|
212
|
+
async loadNext(): Promise<void> {
|
|
213
|
+
try {
|
|
214
|
+
const r = await reach(this.st.url('/api/social/next-release.json'), { cache: 'no-store', headers: this.nextTag ? { 'If-None-Match': this.nextTag } : {} })
|
|
215
|
+
if (r.status === 304) return
|
|
216
|
+
const body = (await r.json()) as NextReleaseView & { error?: string }
|
|
217
|
+
const tag = r.headers.get('ETag')
|
|
218
|
+
runInAction(() => {
|
|
219
|
+
this.next = r.ok ? body : { preview: null, error: body.error ?? `HTTP ${r.status}` }
|
|
220
|
+
this.nextTag = r.ok ? tag : null
|
|
221
|
+
})
|
|
222
|
+
} catch (e) {
|
|
223
|
+
runInAction(() => (this.next = { preview: null, error: (e as Error).message }))
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** the next release is what the middle shows */
|
|
228
|
+
get nextPicked(): boolean {
|
|
229
|
+
return this.draftSlug === NEXT_PICK && this.next?.preview != null
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** its section in the list, open unless he folded it */
|
|
233
|
+
get nextOpen(): boolean {
|
|
234
|
+
return this.isOpen(NEXT_PICK, true)
|
|
199
235
|
}
|
|
200
236
|
|
|
201
237
|
stop(): void {
|
|
@@ -434,6 +470,7 @@ export class SocialSt {
|
|
|
434
470
|
|
|
435
471
|
/** the draft shown is always one the view keeps */
|
|
436
472
|
get currentDraft(): Draft | null {
|
|
473
|
+
if (this.nextPicked) return null
|
|
437
474
|
const kept = this.drafts.filter((d) => this.kept(d))
|
|
438
475
|
return kept.find((d) => d.slug === this.draftSlug) ?? kept[0] ?? null
|
|
439
476
|
}
|
|
@@ -962,6 +999,18 @@ export class SocialSt {
|
|
|
962
999
|
await this.revealBody({ slug, name: m.name })
|
|
963
1000
|
}
|
|
964
1001
|
|
|
1002
|
+
/** a media file's path on this Mac on the clipboard, copied on the click itself; the file is brought back from the
|
|
1003
|
+
* Space behind it when the disk let it go, so a paste finds it */
|
|
1004
|
+
async copyPath(slug: string, m: Media, key: string): Promise<void> {
|
|
1005
|
+
await this.copy(m.path, key)
|
|
1006
|
+
try {
|
|
1007
|
+
const r = await postJson<{ path: string }>(this.st.url('/api/social/media-back'), { slug, name: m.name })
|
|
1008
|
+
if (r.path !== m.path) await this.copy(r.path, key)
|
|
1009
|
+
} catch (e) {
|
|
1010
|
+
runInAction(() => (this.error = (e as Error).message))
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
965
1014
|
/** an identity's picture shown in the Finder, its folder open and the file selected */
|
|
966
1015
|
async revealPicture(identity: string, file: string): Promise<void> {
|
|
967
1016
|
await this.revealBody({ identity, file })
|
|
@@ -105,6 +105,14 @@ a.so-icon:visited{color:var(--dim)}
|
|
|
105
105
|
.so-art{color:var(--review);margin-right:var(--s1)}
|
|
106
106
|
.so-kindwarn{color:var(--warn);margin-right:var(--s1);font-weight:700}
|
|
107
107
|
.so-kindproblem{font-size:12px;color:var(--warn);border-left:3px solid var(--warn);padding:2px var(--s2);background:color-mix(in srgb,var(--warn) 8%,transparent);border-radius:3px}
|
|
108
|
+
/* the next release (next-release.tsx): a dashed section on top of the list, never a draft */
|
|
109
|
+
.so-nextsec{display:flex;flex-direction:column;gap:2px;margin-bottom:var(--s2);padding:var(--s1);border:1px dashed var(--line);border-radius:8px}
|
|
110
|
+
.so-nexthead{display:flex;align-items:center;gap:var(--s2);border:0;background:none;padding:2px var(--s1);font:inherit;font-size:12px;font-weight:700;color:var(--ink);cursor:pointer;text-align:left;white-space:nowrap;min-width:0}
|
|
111
|
+
.so-nextrow .so-rowtitle{font-style:italic}
|
|
112
|
+
.so-nextnote{font-size:12px;color:var(--dim);border-left:3px solid var(--line);padding:2px var(--s2)}
|
|
113
|
+
.so-preview{border-style:dashed}
|
|
114
|
+
.so-nexttext{white-space:pre-wrap;font-size:13px;padding:var(--s1) 0}
|
|
115
|
+
.so-nextcat{display:flex;flex-direction:column;gap:var(--s2)}
|
|
108
116
|
.so-kind{font-weight:700;color:var(--kt,var(--accent));border:1px solid color-mix(in srgb,var(--kt,var(--accent)) 55%,var(--line));border-radius:3px;padding:0 var(--s1);line-height:18px;text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
109
117
|
a.so-kind:hover{text-decoration:underline}
|
|
110
118
|
.so-frac{flex:none;font-size:11px;font-weight:700;color:var(--dim);font-variant-numeric:tabular-nums}
|
|
@@ -148,6 +156,10 @@ a.so-kind:hover{text-decoration:underline}
|
|
|
148
156
|
.so-corner{flex:none;display:flex;flex-direction:column;gap:var(--s1);align-items:stretch}
|
|
149
157
|
.so-corner button{font-size:11px;padding:0 var(--s2);line-height:18px}
|
|
150
158
|
.so-tags{border:1px solid var(--line);border-radius:6px;padding:var(--s1) var(--s3);font-size:12px;color:var(--blue)}
|
|
159
|
+
.so-tagchips{display:flex;flex-wrap:wrap;gap:var(--s1)}
|
|
160
|
+
.so-tagchip{font-size:12px;line-height:20px;padding:0 var(--s2);border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--blue);cursor:copy}
|
|
161
|
+
.so-tagchip:hover{border-color:var(--accent)}
|
|
162
|
+
.so-tier{border:1px solid var(--line);border-radius:6px;padding:var(--s1) var(--s3);font-size:12px}
|
|
151
163
|
.so-footer{border:1px dashed var(--line);border-radius:6px;padding:var(--s2) var(--s3);font-size:11px;color:var(--dim)}
|
|
152
164
|
.so-flairline{display:flex;align-items:center;gap:var(--s2);padding-top:var(--s1)}
|
|
153
165
|
.so-flair{font-size:13px;font-weight:700;padding:0 var(--s2);line-height:26px;border-radius:4px;background:var(--review);color:var(--bg)}
|
|
@@ -81,6 +81,7 @@ export const KIND_SECTION: Record<ResourceType, SectionId> = {
|
|
|
81
81
|
command: 'commands',
|
|
82
82
|
card: 'review',
|
|
83
83
|
cut: 'trailer',
|
|
84
|
+
voice: 'trailer',
|
|
84
85
|
store: 'stores',
|
|
85
86
|
release: 'releases',
|
|
86
87
|
veille: 'veille',
|
|
@@ -435,6 +436,7 @@ export const TYPE_MARK: Record<string, TypeMark> = {
|
|
|
435
436
|
command: { glyph: '$', hue: 'k6', word: "a command of the repo's project CLI: its examples, its args, run from the page with its log live" },
|
|
436
437
|
card: { glyph: '\u25a3', hue: 'k2', word: 'a review card waiting for your answer: approve, fix, reject, circle a detail' },
|
|
437
438
|
cut: { glyph: '\u25b6', hue: 'k3', word: 'a trailer cut: play it with its timeline, pin a note on any frame' },
|
|
439
|
+
voice: { glyph: '\u266a', hue: 'k2', word: 'a trailer line your own voice reads, not recorded yet: record it in the trailer page, Voices' },
|
|
438
440
|
store: { glyph: '\u25a5', hue: 'k4', word: 'a store page (Steam, itch): every text to paste, every picture to upload, a note on each' },
|
|
439
441
|
release: { glyph: '\u2691', hue: 'k5', word: 'a version of the release notes: next.md being filled, or a released one, each change with its picture' },
|
|
440
442
|
veille: { glyph: '\u25ce', hue: 'k6', word: 'the Veille: the posts an identity scrolls past, ranked by the worth of a reply' },
|
|
@@ -25,6 +25,7 @@ import { identityOfText, identityProblem, type Identity } from '../core/identity
|
|
|
25
25
|
import { writeIdentity } from '../core/identity.ts'
|
|
26
26
|
import { appIconOf, appIconPngs, identityOfRoot } from '../core/app-icon.ts'
|
|
27
27
|
import { waitingCards } from '../collections/review.ts'
|
|
28
|
+
import { voicesWaiting } from '../review/trailer-voices.ts'
|
|
28
29
|
import { storeDir, warmStore } from '../review/store.ts'
|
|
29
30
|
import { writeArchived } from '../core/archived.ts'
|
|
30
31
|
import { identitiesDir, pictureVersion } from '../identities/identities.ts'
|
|
@@ -78,6 +79,8 @@ export type ProjectRow = {
|
|
|
78
79
|
askTitles: string[]
|
|
79
80
|
/** the review cards that wait on the owner (collections/review.ts waitingCards), oldest first: read on every request */
|
|
80
81
|
cards: { id: string; title: string }[]
|
|
82
|
+
/** the trailer lines his own voice reads that he has not recorded yet (review/trailer-voices.ts), every trailer of the repo */
|
|
83
|
+
voices: number
|
|
81
84
|
/** package.json `description`, else the README's first line of prose */
|
|
82
85
|
description: string | null
|
|
83
86
|
/** package.json `version` */
|
|
@@ -356,6 +359,10 @@ export function projectGutter(d: GutterDeps) {
|
|
|
356
359
|
const ids = await loopWatch.spanned('projects: ids', readIds)
|
|
357
360
|
// each store read whole once, in steps, before the rows read its waiting cards
|
|
358
361
|
await loopWatch.spanned('projects: review stores', async () => { for (const r of repos) await warmStore(storeDir(r.path)) })
|
|
362
|
+
const voices = new Map<string, number>()
|
|
363
|
+
await loopWatch.spanned('projects: voices', async () => {
|
|
364
|
+
for (const r of repos) voices.set(r.path, Object.values(await voicesWaiting(r.path).catch(() => ({}))).reduce((a: number, b: number) => a + b, 0))
|
|
365
|
+
})
|
|
359
366
|
const projects = repos.map((r, i): ProjectRow => loopWatch.timed(`projects: row ${r.name}`, () => {
|
|
360
367
|
const config = readText(join(r.path, 'repo.config.ts'))
|
|
361
368
|
const pkg = readText(join(r.path, 'package.json'))
|
|
@@ -373,6 +380,7 @@ export function projectGutter(d: GutterDeps) {
|
|
|
373
380
|
asks: asks.length,
|
|
374
381
|
askTitles: asks,
|
|
375
382
|
cards: cardsOf(r.path),
|
|
383
|
+
voices: voices.get(r.path) ?? 0,
|
|
376
384
|
description,
|
|
377
385
|
version: versionOf(pkg),
|
|
378
386
|
branch: branchOf(readText(join(r.path, '.git', 'HEAD'))),
|
|
@@ -15,6 +15,7 @@ import { defaultHubPort } from './hub-port.ts'
|
|
|
15
15
|
import { LAYOUT } from '../core/layout.ts'
|
|
16
16
|
import { isArchived } from '../core/archived.ts'
|
|
17
17
|
import { CLAUDE_FILES } from '../home/pm-inputs.ts'
|
|
18
|
+
import { DEFAULT_AGENT_DIR } from '../core/agent-dir.ts'
|
|
18
19
|
|
|
19
20
|
export type WiredRepo = { name: string; path: string; icon: string | null }
|
|
20
21
|
|
|
@@ -40,10 +41,11 @@ export function includeTargets(repo: string, home: string): string[] {
|
|
|
40
41
|
|
|
41
42
|
/** the house wiki index this repo includes: the first include outside the
|
|
42
43
|
* repo, else (the repo that hosts the house) the first one that exists and
|
|
43
|
-
* is
|
|
44
|
+
* is neither another CLAUDE file nor the repo's own agent/ wiki */
|
|
44
45
|
export function houseIndex(repo: string, home: string): string | null {
|
|
45
46
|
const targets = includeTargets(repo, home).filter((t) => existsSync(t))
|
|
46
|
-
|
|
47
|
+
const own = join(repo, DEFAULT_AGENT_DIR, 'index.md')
|
|
48
|
+
return targets.find((t) => !inside(t, repo)) ?? targets.find((t) => t !== own && !basename(t).startsWith('CLAUDE')) ?? null
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
/** a repo's own icon, first hit wins. `.shipkit/identity/icon.png` is the rail
|
package/src/shipkit.ts
CHANGED
|
@@ -60,8 +60,8 @@ export type { Ask, CreateOpts } from './asks/asks-queue.ts'
|
|
|
60
60
|
// declares its kinds; `shipkit assets …` derives the rest.
|
|
61
61
|
export { defineKit, defineKind, comfy, canvas, svg, manual, gemini, mediaOf, MEDIA_EXTS, geometryPanel, gridPanel, customPanel, validateKit, missingPanelScripts, loadKit, findAsset, allAssets, categoriesOf } from './assets/kit-config.ts'
|
|
62
62
|
export type { KitConfig, ResolvedKit, Kind, KindMeta, Media, AssetSpec, GeneratorSpec, ComfyGen, CanvasGen, ManualGen, GeminiGen, PanelSpec, GeometryPanelSpec, GridPanelSpec, CustomPanelSpec, FoundAsset, ShipContext, ShipFn } from './assets/kit-config.ts'
|
|
63
|
-
export { identityKinds, renderIdentity, renderIdentityFromMark, NO_PICK_FIX, FAVICON_SIZE, OG_W, OG_H, LOGO_SIZE } from './assets/kits/identity-kit.ts'
|
|
64
|
-
export type { Brand } from './assets/kits/identity-kit.ts'
|
|
63
|
+
export { identityKinds, renderIdentity, renderIdentityFromMark, renderReleaseCard, NO_PICK_FIX, FAVICON_SIZE, OG_W, OG_H, LOGO_SIZE, RELEASE_W, RELEASE_H } from './assets/kits/identity-kit.ts'
|
|
64
|
+
export type { Brand, ReleaseCard } from './assets/kits/identity-kit.ts'
|
|
65
65
|
export { studioRoutes } from './assets/server/studio-server.ts'
|
|
66
66
|
export type { StudioDeps, StudioRoutes } from './assets/server/studio-server.ts'
|
|
67
67
|
export { StudioQueue } from './assets/server/studio-queue.ts'
|