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
|
@@ -22,6 +22,7 @@ import { PaletteSt } from './palette-st.ts'
|
|
|
22
22
|
import { PlannedSt } from './planned-st.ts'
|
|
23
23
|
import { ActivitySt } from './activity-st.ts'
|
|
24
24
|
import { InsightsSt } from './insights-st.ts'
|
|
25
|
+
import { RecordingsSt } from './recordings-st.ts'
|
|
25
26
|
import { IdentitiesSt } from './identities-st.ts'
|
|
26
27
|
import { identityAddress, parseIdentityHash, type IdentitySel } from './identity-address.ts'
|
|
27
28
|
import { InboxSt } from './inbox-st.ts'
|
|
@@ -33,10 +34,10 @@ import { openSection, repoSections, sectionOfRepo } from './repo-sections.ts'
|
|
|
33
34
|
export const PREFETCH_WAIT_MS = 10_000
|
|
34
35
|
|
|
35
36
|
/** what the page shows: the machine overview, the inbox, the plan, the activity, the insights, the archived repos, or one repo */
|
|
36
|
-
export type Page = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights' | 'identities' | 'archived' | 'repo'
|
|
37
|
+
export type Page = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights' | 'recordings' | 'identities' | 'archived' | 'repo'
|
|
37
38
|
|
|
38
39
|
/** the address of each page of the home that is no repo's */
|
|
39
|
-
export const PLACE_PATH = { overview: '/', inbox: '/inbox', planned: '/planned', activity: '/activity', insights: '/insights', identities: '/identities', archived: '/archived' } as const
|
|
40
|
+
export const PLACE_PATH = { overview: '/', inbox: '/inbox', planned: '/planned', activity: '/activity', insights: '/insights', recordings: '/recordings', identities: '/identities', archived: '/archived' } as const
|
|
40
41
|
|
|
41
42
|
/** where a repo's hub answers on the home */
|
|
42
43
|
export const repoBase = (name: string): string => `/r/${encodeURIComponent(name)}`
|
|
@@ -58,6 +59,7 @@ export function routeOf(pathname: string): { page: Page; repo: string | null } {
|
|
|
58
59
|
if (/^\/planned\/?$/.test(pathname)) return { page: 'planned', repo: null }
|
|
59
60
|
if (/^\/activity\/?$/.test(pathname)) return { page: 'activity', repo: null }
|
|
60
61
|
if (/^\/insights\/?$/.test(pathname)) return { page: 'insights', repo: null }
|
|
62
|
+
if (/^\/recordings\/?$/.test(pathname)) return { page: 'recordings', repo: null }
|
|
61
63
|
if (/^\/identities\/?$/.test(pathname)) return { page: 'identities', repo: null }
|
|
62
64
|
if (/^\/archived\/?$/.test(pathname)) return { page: 'archived', repo: null }
|
|
63
65
|
return { page: 'overview', repo: null }
|
|
@@ -85,6 +87,8 @@ export class HomeSt {
|
|
|
85
87
|
/** what every repo committed and holds, polled while it is the page */
|
|
86
88
|
activity: ActivitySt
|
|
87
89
|
insights: InsightsSt
|
|
90
|
+
/** the screen recorder's takes and the editor of one (recordings-st.ts) */
|
|
91
|
+
recordings: RecordingsSt
|
|
88
92
|
/** who speaks for each repo, read while it is the page */
|
|
89
93
|
identities: IdentitiesSt
|
|
90
94
|
/** everything that waits on the owner in every repo, polled while it is the page */
|
|
@@ -119,6 +123,7 @@ export class HomeSt {
|
|
|
119
123
|
this.planned = new PlannedSt(this)
|
|
120
124
|
this.activity = new ActivitySt(this)
|
|
121
125
|
this.insights = new InsightsSt(this)
|
|
126
|
+
this.recordings = new RecordingsSt(this)
|
|
122
127
|
this.identities = new IdentitiesSt(this)
|
|
123
128
|
this.inbox = new InboxSt(this)
|
|
124
129
|
this.palette = new PaletteSt(this)
|
|
@@ -126,11 +131,15 @@ export class HomeSt {
|
|
|
126
131
|
this.dock = new DockSt(this)
|
|
127
132
|
this.machine = o.home ? new MachineSt(this, o) : null
|
|
128
133
|
this.page = o.home ? 'overview' : 'repo'
|
|
129
|
-
makeAutoObservable<this, 'disposers' | 'onUrl' | 'prefetching' | 'base'>(this, { base: false, machine: false, projects: false, planned: false, activity: false, insights: false, identities: false, inbox: false, palette: false, layout: false, theme: false, frames: false, dock: false, repos: observableShallow, disposers: false, onUrl: false, prefetching: false })
|
|
134
|
+
makeAutoObservable<this, 'disposers' | 'onUrl' | 'prefetching' | 'base'>(this, { base: false, machine: false, projects: false, planned: false, activity: false, insights: false, recordings: false, identities: false, inbox: false, palette: false, layout: false, theme: false, frames: false, dock: false, repos: observableShallow, disposers: false, onUrl: false, prefetching: false })
|
|
130
135
|
const m = this.machine
|
|
131
136
|
if (m != null) {
|
|
132
137
|
this.projects.onSelect = (name) => this.select(name)
|
|
133
138
|
this.projects.onReview = (name, card) => this.openReview(name, card)
|
|
139
|
+
this.projects.onVoices = (name) => {
|
|
140
|
+
this.repo(name).showTrailer(null, null, null, null, '')
|
|
141
|
+
this.show('repo', name, 'push')
|
|
142
|
+
}
|
|
134
143
|
this.projects.onPlace = (p) => this.navigate(PLACE_PATH[p])
|
|
135
144
|
this.projects.onPicker = () => this.palette.toggle()
|
|
136
145
|
this.projects.pickerOpen = () => this.palette.open
|
|
@@ -146,6 +155,10 @@ export class HomeSt {
|
|
|
146
155
|
if (this.projects.list.some((p) => p.name === name && p.current)) own.showReview(card, WAITING)
|
|
147
156
|
else void this.openInHome(name, `#${hashFor({ t: 'review', id: card, q: WAITING })}`)
|
|
148
157
|
}
|
|
158
|
+
this.projects.onVoices = (name) => {
|
|
159
|
+
if (this.projects.list.some((p) => p.name === name && p.current)) own.showTrailer(null, null, null, null, '')
|
|
160
|
+
else void this.openInHome(name, `#${hashFor({ t: 'trailer', trailer: null, cut: null, voices: '' })}`)
|
|
161
|
+
}
|
|
149
162
|
own.markSeen()
|
|
150
163
|
this.selected = own.key
|
|
151
164
|
}
|
|
@@ -168,6 +181,7 @@ export class HomeSt {
|
|
|
168
181
|
if (this.page === 'planned') return 'planned'
|
|
169
182
|
if (this.page === 'activity') return 'activity'
|
|
170
183
|
if (this.page === 'insights') return 'insights'
|
|
184
|
+
if (this.page === 'recordings') return this.recordings.current?.name ?? 'recordings'
|
|
171
185
|
if (this.page === 'identities') return this.identities.shown?.name ?? 'identities'
|
|
172
186
|
if (this.page === 'archived') return 'archived'
|
|
173
187
|
const r = this.shown
|
|
@@ -266,6 +280,7 @@ export class HomeSt {
|
|
|
266
280
|
const r = routeOf(u.pathname)
|
|
267
281
|
if (r.page === 'planned') this.planned.query = u.searchParams.get('q') ?? ''
|
|
268
282
|
if (r.page === 'inbox') this.inbox.fromSearch(u.search)
|
|
283
|
+
if (r.page === 'recordings') this.recordings.fromHash(u.hash)
|
|
269
284
|
this.show(r.page, r.repo, 'push')
|
|
270
285
|
}
|
|
271
286
|
|
|
@@ -301,6 +316,7 @@ export class HomeSt {
|
|
|
301
316
|
if (r.page === 'inbox') this.inbox.fromSearch(location.search)
|
|
302
317
|
if (r.page === 'planned') this.planned.query = new URLSearchParams(location.search).get('q') ?? ''
|
|
303
318
|
if (r.page === 'identities') this.identities.select(parseIdentityHash(location.hash))
|
|
319
|
+
if (r.page === 'recordings') this.recordings.fromHash(location.hash)
|
|
304
320
|
if (r.page === 'repo') this.repo(r.repo!).filter = parseFilter(location.search)
|
|
305
321
|
this.show(r.page, r.repo, 'none')
|
|
306
322
|
this.shown?.applyHash()
|
|
@@ -313,7 +329,7 @@ export class HomeSt {
|
|
|
313
329
|
const prevPage = this.page
|
|
314
330
|
const next = page === 'repo' && repo != null ? this.repo(repo) : null
|
|
315
331
|
// the page already shown is never a second history entry
|
|
316
|
-
if (how === 'push' && page === this.page && next === prev && page !== 'planned' && page !== 'inbox' && page !== 'identities') how = 'none'
|
|
332
|
+
if (how === 'push' && page === this.page && next === prev && page !== 'planned' && page !== 'inbox' && page !== 'identities' && page !== 'recordings') how = 'none'
|
|
317
333
|
if (prev != null && prev !== next) prev.pause()
|
|
318
334
|
next?.markSeen()
|
|
319
335
|
this.page = page
|
|
@@ -323,7 +339,7 @@ export class HomeSt {
|
|
|
323
339
|
this.projects.away = next == null
|
|
324
340
|
this.projects.place = page === 'repo' || page === 'archived' || page === 'identities' ? null : page
|
|
325
341
|
if (how !== 'none') {
|
|
326
|
-
const to = next != null ? `${repoPage(next.key)}${next.search}${next.hash}` : page === 'planned' ? this.planned.address : page === 'inbox' ? `${PLACE_PATH.inbox}${this.inbox.search}` : page === 'identities' ? identityAddress(this.identities.sel) : page === 'activity' || page === 'insights' || page === 'archived' ? PLACE_PATH[page] : '/'
|
|
342
|
+
const to = next != null ? `${repoPage(next.key)}${next.search}${next.hash}` : page === 'planned' ? this.planned.address : page === 'inbox' ? `${PLACE_PATH.inbox}${this.inbox.search}` : page === 'identities' ? identityAddress(this.identities.sel) : page === 'recordings' ? this.recordings.address : page === 'activity' || page === 'insights' || page === 'archived' ? PLACE_PATH[page] : '/'
|
|
327
343
|
// the identity view picked again is never a second entry
|
|
328
344
|
if (how === 'push' && page === 'identities' && prevPage === 'identities' && `${location.pathname}${location.hash}` === to) how = 'none'
|
|
329
345
|
// a walk with the arrows is one entry, so back returns to where it started
|
|
@@ -336,6 +352,8 @@ export class HomeSt {
|
|
|
336
352
|
if (page === 'planned') this.planned.start()
|
|
337
353
|
else this.planned.stop()
|
|
338
354
|
if (page === 'insights' && prevPage !== 'insights') this.insights.start()
|
|
355
|
+
if (page === 'recordings' && prevPage !== 'recordings') this.recordings.start()
|
|
356
|
+
if (page !== 'recordings' && prevPage === 'recordings') this.recordings.stop()
|
|
339
357
|
if (page === 'identities' && prevPage !== 'identities') this.identities.start()
|
|
340
358
|
if (page === 'inbox') this.inbox.start()
|
|
341
359
|
else this.inbox.stop()
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
<link rel="stylesheet" href="./when.css" />
|
|
12
12
|
<link rel="stylesheet" href="./activity.css" />
|
|
13
13
|
<link rel="stylesheet" href="./insights.css" />
|
|
14
|
+
<link rel="stylesheet" href="./recordings.css" />
|
|
14
15
|
<link rel="stylesheet" href="./identities.css" />
|
|
15
16
|
<link rel="stylesheet" href="./site.css" />
|
|
16
17
|
<link rel="stylesheet" href="./readme.css" />
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// input and one severity filter persisted at
|
|
9
9
|
// ?f=needs · ?f=red. A row opens its item view, an asset row opens the atelier.
|
|
10
10
|
import { reaction, runInAction } from 'mobx'
|
|
11
|
+
import { quietBenignErrors } from './benign-errors.ts'
|
|
11
12
|
import { observer } from 'mobx-react-lite'
|
|
12
13
|
import { StrictMode, useEffect, useLayoutEffect, useRef } from 'react'
|
|
13
14
|
import { createRoot } from 'react-dom/client'
|
|
@@ -46,6 +47,7 @@ import { ArchivedView, HomeStrip, NotUp, Overview } from './home-strip.tsx'
|
|
|
46
47
|
import { PlannedView } from './planned-view.tsx'
|
|
47
48
|
import { ActivityView } from './activity-view.tsx'
|
|
48
49
|
import { InsightsView } from './insights-view.tsx'
|
|
50
|
+
import { RecordingsView } from './recordings-view.tsx'
|
|
49
51
|
import { IdentitiesView } from './identities-view.tsx'
|
|
50
52
|
import { Palette } from './palette-view.tsx'
|
|
51
53
|
import { SCREEN_WAIT_MS } from './screen-cache.ts'
|
|
@@ -423,6 +425,7 @@ const App = observer(() => {
|
|
|
423
425
|
{home.page === 'planned' ? <PlannedView app={home} /> : null}
|
|
424
426
|
{home.page === 'activity' ? <ActivityView app={home} /> : null}
|
|
425
427
|
{home.page === 'insights' ? <InsightsView app={home} /> : null}
|
|
428
|
+
{home.page === 'recordings' ? <RecordingsView app={home} /> : null}
|
|
426
429
|
{home.page === 'identities' ? <IdentitiesView app={home} /> : null}
|
|
427
430
|
{home.page === 'archived' ? <ArchivedView app={home} /> : null}
|
|
428
431
|
{home.visited.map((r) => <RepoView key={r.key} app={r} />)}
|
|
@@ -474,4 +477,8 @@ const EmbedApp = observer(({ page }: { page: EmbedPage }) => {
|
|
|
474
477
|
// paints it at once; a slow or absent store costs at most SCREEN_WAIT_MS
|
|
475
478
|
await Promise.race([home.shown?.cols.restore(), new Promise((ok) => setTimeout(ok, SCREEN_WAIT_MS))])
|
|
476
479
|
|
|
477
|
-
|
|
480
|
+
// `/recordings?solo=1#<repo>/<id>`: one capture's editor alone, the recorder app's editor window
|
|
481
|
+
const solo = location.pathname.startsWith('/recordings') && new URLSearchParams(location.search).has('solo')
|
|
482
|
+
|
|
483
|
+
quietBenignErrors(window)
|
|
484
|
+
createRoot(document.getElementById('root')!).render(<StrictMode>{solo ? <main className="rcsolo"><RecordingsView app={home} solo /></main> : embed == null ? <App /> : <EmbedApp page={embed} />}</StrictMode>)
|
|
@@ -14,6 +14,8 @@ export const ICON = {
|
|
|
14
14
|
monitor: 'M3 4h14v9H3zM7 16.5h6M10 13v3.5',
|
|
15
15
|
archived: 'M2.5 4h15v3.5h-15zM4 7.5V16h12V7.5M8 10.5h4',
|
|
16
16
|
insights: 'M3 16.5h14M5 16.5V11M9 16.5V5M13 16.5V8.5M17 16.5V12',
|
|
17
|
+
// a camera: the screen recorder's takes
|
|
18
|
+
recordings: 'M2.5 6h10.5v8H2.5zM13 8.5l4.5-2.5v8L13 11.5',
|
|
17
19
|
home: 'M3 9.5 10 3.5l7 6M5 8v8.5h10V8M8.5 16.5v-4.5h3v4.5',
|
|
18
20
|
// a tray: what waits on the owner, every repo
|
|
19
21
|
inbox: 'M3 11.5 5.5 4h9l2.5 7.5V16H3zM3 11.5h4.5l1 2h3l1-2H17',
|
|
@@ -30,6 +30,7 @@ export class PaletteSt {
|
|
|
30
30
|
{ id: 'place:activity', label: 'activity', section: 'place', face: { place: 'activity' }, run: () => st.navigate('/activity') },
|
|
31
31
|
{ id: 'place:planned', label: 'planned', section: 'place', face: { place: 'planned' }, run: () => st.navigate('/planned') },
|
|
32
32
|
{ id: 'place:insights', label: 'insights', section: 'place', face: { place: 'insights' }, run: () => st.navigate('/insights') },
|
|
33
|
+
{ id: 'place:recordings', label: 'recordings', section: 'place', face: { place: 'recordings' }, run: () => st.navigate('/recordings') },
|
|
33
34
|
{ id: 'place:archived', label: 'archived', section: 'place', face: { place: 'archived' }, run: () => st.navigate('/archived') },
|
|
34
35
|
]
|
|
35
36
|
}
|
|
@@ -73,11 +73,14 @@
|
|
|
73
73
|
/* ⌘1 to ⌘9 select the first nine rows (keys.ts): the hint sits at the row's end */
|
|
74
74
|
.pjkey{flex:none;font:10px/1 ui-monospace,Menlo,monospace;color:var(--dim);opacity:.6;background:none;border:0;padding:0}
|
|
75
75
|
.pjrow:hover .pjkey,.pjrow.cur .pjkey{opacity:1}
|
|
76
|
-
/* what waits on the owner, at the end of the row: the review cards
|
|
77
|
-
|
|
76
|
+
/* what waits on the owner, at the end of the row: the review cards and the trailer lines to record (a click opens
|
|
77
|
+
each), then the open asks */
|
|
78
|
+
.pga,.pgr,.pgvox{flex:none;min-width:16px;height:16px;padding:0 var(--s1);border-radius:8px;
|
|
78
79
|
font-size:10px;font-weight:700;line-height:16px;text-align:center;color:var(--bg);background:var(--warn)}
|
|
79
80
|
.pgr{background:var(--review);cursor:pointer}
|
|
80
81
|
.pgr:hover{box-shadow:0 0 0 2px var(--review)}
|
|
82
|
+
.pgvox{background:var(--accent);cursor:pointer}
|
|
83
|
+
.pgvox:hover{box-shadow:0 0 0 2px var(--accent)}
|
|
81
84
|
/* Claude sessions running: a thin edge on the left that breathes */
|
|
82
85
|
.pgs{position:absolute;left:0;top:5px;bottom:5px;width:2px;border-radius:1px;background:var(--accent);pointer-events:none;animation:pgpulse 2.4s ease-in-out infinite}
|
|
83
86
|
/* the home only: the repo's hub state (starting, crashed) */
|
|
@@ -147,4 +150,6 @@
|
|
|
147
150
|
.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}
|
|
148
151
|
.pjlist.rail .pga{right:calc(50% - var(--ri,24px) / 2 - 4px)}
|
|
149
152
|
.pjlist.rail .pgr{left:calc(50% - var(--ri,24px) / 2 - 4px)}
|
|
153
|
+
/* the voice pill rides the icon's bottom left corner on the rail */
|
|
154
|
+
.pjlist.rail .pgvox{position:absolute;bottom:0;left:calc(50% - var(--ri,24px) / 2 - 4px);min-width:14px;height:14px;padding:0 var(--s0);border-radius:7px;font-size:9px;line-height:14px}
|
|
150
155
|
.pjlist.rail .pgd,.pjlist.rail .pgw{position:absolute;bottom:var(--s0);right:calc(50% - var(--ri,24px) / 2 - 2px)}
|
|
@@ -45,6 +45,7 @@ const PLACES: { id: Place | 'picker'; label: string; title: string }[] = [
|
|
|
45
45
|
{ id: 'activity', label: 'activity', title: 'what every repo committed lately, what it holds uncommitted, its branch and whether it is pushed' },
|
|
46
46
|
{ id: 'planned', label: 'planned', title: 'every check the machine runs on its own: now, next, late, and why' },
|
|
47
47
|
{ id: 'insights', label: 'insights', title: 'boxes about every repo: the packages they use and by how many, version drift, script names' },
|
|
48
|
+
{ id: 'recordings', label: 'recordings', title: 'the screen recorder\'s takes of every repo: play, trim, crop, copy a link or the file' },
|
|
48
49
|
]
|
|
49
50
|
|
|
50
51
|
/** the icon's size on a row, in px, as attributes and in the sheet */
|
|
@@ -110,6 +111,10 @@ export const Row = observer(({ app, p, i }: { app: ListHost; p: Project; i: numb
|
|
|
110
111
|
<b className="pgr" aria-label={`${face.cards} review card${face.cards === 1 ? '' : 's'} wait on you: open them`}
|
|
111
112
|
onClick={(e) => { e.stopPropagation(); s.review(p.name) }} onDoubleClick={(e) => e.stopPropagation()}>{face.cards}</b>
|
|
112
113
|
) : null}
|
|
114
|
+
{face.voices != null ? (
|
|
115
|
+
<b className="pgvox" title={`${face.voices} trailer line${face.voices === 1 ? '' : 's'} wait for your voice: record them`}
|
|
116
|
+
onClick={(e) => { e.stopPropagation(); s.voices(p.name) }} onDoubleClick={(e) => e.stopPropagation()}>🎙{face.voices}</b>
|
|
117
|
+
) : null}
|
|
113
118
|
{face.badge != null ? <b className="pga">{face.badge}</b> : null}
|
|
114
119
|
{face.busy ? <i className="pgs" /> : null}
|
|
115
120
|
{dot != null ? <i className={`pgd ${dot}`} /> : null}
|
|
@@ -178,6 +183,11 @@ export const Card = ({ p, now }: { p: Project; now: number }) => {
|
|
|
178
183
|
{m.needs.cards.more > 0 ? <span className="pgcmore">+{m.needs.cards.more}</span> : null}
|
|
179
184
|
</div>
|
|
180
185
|
)}
|
|
186
|
+
{m.needs.voices == null ? null : (
|
|
187
|
+
<div className="pgcneed">
|
|
188
|
+
<span className="pgcask">🎙 {m.needs.voices} trailer line{m.needs.voices === 1 ? '' : 's'} to record in your voice</span>
|
|
189
|
+
</div>
|
|
190
|
+
)}
|
|
181
191
|
{m.needs.asks == null ? null : (
|
|
182
192
|
<div className="pgcneed">
|
|
183
193
|
<span className="pgcask">{m.needs.asks.count} ask{m.needs.asks.count === 1 ? '' : 's'}: {m.needs.asks.titles.join(' · ')}</span>
|
|
@@ -148,12 +148,14 @@ export function sortNames(list: Project[], mode: SortMode): string[] {
|
|
|
148
148
|
export type HubDot = 'starting' | 'crashed' | null
|
|
149
149
|
|
|
150
150
|
/** what the icon face shows, and nothing more: what waits on the owner as
|
|
151
|
-
*
|
|
152
|
-
* on hands), a dim name while VS Code
|
|
153
|
-
* icon stays whole), and a pulsing edge
|
|
154
|
-
|
|
151
|
+
* pills (the review cards waiting on a verdict, the trailer lines waiting
|
|
152
|
+
* on his voice, the open asks waiting on hands), a dim name while VS Code
|
|
153
|
+
* does not have the folder open (the icon stays whole), and a pulsing edge
|
|
154
|
+
* while Claude sessions run */
|
|
155
|
+
export type Face = { cards: number | null; voices: number | null; badge: number | null; dim: boolean; busy: boolean }
|
|
155
156
|
export const faceOf = (p: Project): Face => ({
|
|
156
157
|
cards: p.cards.length > 0 ? p.cards.length : null,
|
|
158
|
+
voices: p.voices > 0 ? p.voices : null,
|
|
157
159
|
badge: p.asks > 0 ? p.asks : null,
|
|
158
160
|
dim: p.vscode === false,
|
|
159
161
|
busy: p.sessions != null && p.sessions > 0,
|
|
@@ -164,7 +166,7 @@ export const faceOf = (p: Project): Face => ({
|
|
|
164
166
|
* human, and label and value rows. Each part leaves out an unknown fact */
|
|
165
167
|
export type CardModel = {
|
|
166
168
|
head: { name: string; current: boolean; icon: string | null; version: string | null; branch: string | null; description: string | null }
|
|
167
|
-
needs: { cards: { count: number; titles: string[]; more: number } | null; asks: { count: number; titles: string[]; more: number } | null; gate: string | null } | null
|
|
169
|
+
needs: { cards: { count: number; titles: string[]; more: number } | null; voices: number | null; asks: { count: number; titles: string[]; more: number } | null; gate: string | null } | null
|
|
168
170
|
facts: { k: 'release' | 'live' | 'activity'; v: string; tone?: 'warn' }[]
|
|
169
171
|
}
|
|
170
172
|
|
|
@@ -194,13 +196,13 @@ export function cardModel(p: Project, now: number): CardModel {
|
|
|
194
196
|
if (act.length > 0) facts.push({ k: 'activity', v: act.join(' · ') })
|
|
195
197
|
return {
|
|
196
198
|
head: { name: p.name, current: p.current, icon: p.icon, version: p.version, branch, description: p.description },
|
|
197
|
-
needs: cards == null && asks == null && gate == null ? null : { cards, asks, gate },
|
|
199
|
+
needs: cards == null && asks == null && gate == null && p.voices === 0 ? null : { cards, voices: p.voices > 0 ? p.voices : null, asks, gate },
|
|
198
200
|
facts,
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
|
|
202
204
|
/** a page of the home that is no repo's */
|
|
203
|
-
export type Place = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights'
|
|
205
|
+
export type Place = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights' | 'recordings'
|
|
204
206
|
|
|
205
207
|
export class ProjectsSvc {
|
|
206
208
|
/** the last list this browser saw until the first poll answers, so the
|
|
@@ -242,6 +244,8 @@ export class ProjectsSvc {
|
|
|
242
244
|
/** a click on a row's review pill: that repo's review page on its first
|
|
243
245
|
* waiting card. The home and a hub of its own each set it */
|
|
244
246
|
onReview: (name: string, card: string | null) => void = (name) => this.select(name)
|
|
247
|
+
/** a click on a row's voice pill: that repo's trailer page, on Voices */
|
|
248
|
+
onVoices: (name: string) => void = (name) => this.select(name)
|
|
245
249
|
/** the two places at the top of the list, the overview and the plan:
|
|
246
250
|
* the home sets it, a hub of its own has none */
|
|
247
251
|
onPlace: ((p: Place) => void) | null = null
|
|
@@ -313,6 +317,12 @@ export class ProjectsSvc {
|
|
|
313
317
|
this.onReview(name, this.list.find((p) => p.name === name)?.cards[0]?.id ?? null)
|
|
314
318
|
}
|
|
315
319
|
|
|
320
|
+
/** the voice pill: the trailer lines that wait on his voice in that repo */
|
|
321
|
+
voices(name: string): void {
|
|
322
|
+
this.selected = name
|
|
323
|
+
this.onVoices(name)
|
|
324
|
+
}
|
|
325
|
+
|
|
316
326
|
|
|
317
327
|
/** the repo above (-1) or below (+1) the selected one, round the ends;
|
|
318
328
|
* with none selected, down starts at the top and up at the bottom */
|