rvlib-shipkit 2.21.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 +19 -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/cli/cmd_Bump.ts +3 -3
- package/src/cli/cmd_Rec.ts +349 -0
- package/src/cli/cmd_Releases.ts +4 -1
- package/src/cli/cmd_Secret.ts +10 -3
- package/src/cli/cmd_Sign.ts +24 -0
- package/src/cli/cmd_Social.ts +44 -1
- package/src/cli/family-pages.ts +1 -0
- package/src/cli/registry.ts +4 -0
- 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/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.ts +31 -12
- package/src/home/home-routes.ts +6 -0
- package/src/home/serve-web.ts +1 -1
- package/src/identities/identities.ts +6 -0
- 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/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 +7 -2
- package/src/releases/from-card.ts +3 -3
- package/src/releases/model.ts +29 -7
- package/src/repo-config.ts +7 -3
- package/src/review/trailer-desk.ts +1 -0
- package/src/review/trailer-model.ts +2 -0
- package/src/secrets/manager.ts +18 -1
- package/src/serve/hub-app/home-st.ts +15 -5
- package/src/serve/hub-app/home.html +1 -0
- package/src/serve/hub-app/hub-app.tsx +6 -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.tsx +1 -0
- package/src/serve/hub-app/projects-svc.ts +1 -1
- 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/repo-st.ts +1 -1
- package/src/serve/hub-app/review/trailer-page.tsx +1 -0
- package/src/serve/hub-app/review/trailer-st.ts +16 -0
- package/src/serve/hub-app/review/trailer-timeline.tsx +3 -0
- package/src/serve/hub-app/review.css +2 -0
- package/src/serve/hub-app/social/post-card.tsx +31 -3
- package/src/serve/hub-app/social/social-model.ts +4 -0
- package/src/serve/hub-app/social/social-st.ts +12 -0
- package/src/serve/hub-app/social.css +4 -0
- package/src/shipkit.ts +2 -2
- package/src/shot/box.ts +23 -17
- package/src/shot/browser-slot.ts +13 -3
- package/src/shot/film-box.ts +193 -117
- package/src/shot/shooter.ts +5 -3
- package/src/smoke/run-smoke.ts +8 -6
- package/src/social/compose.ts +14 -0
- package/src/social/drafts.ts +1 -1
- package/src/social/load.ts +16 -2
- package/src/social/publish/index.ts +3 -1
- package/src/social/publish/secret.ts +12 -4
- package/src/social/release-card.ts +69 -0
- package/src/social/release-stage.ts +49 -10
- package/src/social/routes.ts +5 -0
- package/src/social/stage.ts +9 -5
- package/src/trailer/build.ts +24 -0
- package/src/trailer/ffmpeg.ts +8 -0
- package/src/trailer/grammar.ts +9 -2
- package/src/trailer/look.ts +7 -0
- package/src/veille/chrome.ts +6 -3
package/src/repo-config.ts
CHANGED
|
@@ -334,8 +334,9 @@ export type RepoConfig = {
|
|
|
334
334
|
/** how many at once, a whole number of 1 or more. Default 2 */
|
|
335
335
|
max?: number
|
|
336
336
|
/** the box that films for this repo from a Mac, like { host: 'wm', max: 5 }: there every browser start goes to
|
|
337
|
-
* that ssh host
|
|
338
|
-
* browserSlot refuses any other start. SK_FILM_HERE=1 films on
|
|
337
|
+
* that ssh host, to the warm browser of the slot it holds (shot/box.ts, one browser per slot), at most `max` at
|
|
338
|
+
* once (default 2, a pool apart from `max`), and browserSlot refuses any other start. SK_FILM_HERE=1 films on
|
|
339
|
+
* the Mac for one run, under `max` */
|
|
339
340
|
box?: {
|
|
340
341
|
/** the ssh host, as ~/.ssh/config names it */
|
|
341
342
|
host: string
|
|
@@ -354,6 +355,9 @@ export type RepoConfig = {
|
|
|
354
355
|
}
|
|
355
356
|
/** the `shipkit serve` hub: port + optional graph hooks */
|
|
356
357
|
serve?: ServeConfig
|
|
358
|
+
/** the screen recorder (`sk rec`, wiki tools/shipkit/recordings.md): where takes go, read only in the house
|
|
359
|
+
* config, and the presets a hotkey runs; a repo's own presets join the house's in its menu */
|
|
360
|
+
recorder?: import('./recordings/presets.ts').RecorderConfig
|
|
357
361
|
/** the repo's own colours, one #rrggbb hex each: colorLight reads on a
|
|
358
362
|
* light background, colorDark on a dark one. Every page that shows the
|
|
359
363
|
* repo draws its name and its rail tile in them. Rule SK024 warns when
|
|
@@ -370,7 +374,7 @@ export type RepoConfig = {
|
|
|
370
374
|
logDir?: string
|
|
371
375
|
}
|
|
372
376
|
|
|
373
|
-
const KNOWN_KEYS = new Set(['name', 'venues', 'social', 'speaksAs', 'backup', 'docsBase', 'defaults', 'tasks', 'asks', 'creds', 'credsCommand', 'credsReadCommand', 'notifyCommand', 'contracts', 'gitignore', 'ignoredInputs', 'untrackGenerated', 'nested', 'off', 'when', 'budgets', 'ruleExempt', 'visibility', 'archived', 'reviewer', 'oneWayIn', 'rules', 'release', 'units', 'notReleasable', 'vendored', 'hooks', 'checkDefaults', 'tui', 'serve', 'identity', 'logDir', 'smoke', 'tests', 'browsers', 'start'])
|
|
377
|
+
const KNOWN_KEYS = new Set(['name', 'venues', 'social', 'speaksAs', 'backup', 'docsBase', 'defaults', 'tasks', 'asks', 'creds', 'credsCommand', 'credsReadCommand', 'notifyCommand', 'contracts', 'gitignore', 'ignoredInputs', 'untrackGenerated', 'nested', 'off', 'when', 'budgets', 'ruleExempt', 'visibility', 'archived', 'reviewer', 'oneWayIn', 'rules', 'release', 'units', 'notReleasable', 'vendored', 'hooks', 'checkDefaults', 'tui', 'serve', 'recorder', 'identity', 'logDir', 'smoke', 'tests', 'browsers', 'start'])
|
|
374
378
|
|
|
375
379
|
export function defineRepo(c: RepoConfig): RepoConfig {
|
|
376
380
|
if (typeof c.name !== 'string' || c.name === '') throw new Error('defineRepo: name is required')
|
|
@@ -36,6 +36,7 @@ export function timelineOf(t: Pick<Trailer, 'shots' | 'fps' | 'size'>): Timeline
|
|
|
36
36
|
length: s.length,
|
|
37
37
|
section,
|
|
38
38
|
captions: s.titles.map((ti) => ({ text: ti.text, style: ti.style, start: round(start + ti.at), end: round(start + (ti.for === null ? s.length : ti.at + ti.for)) })),
|
|
39
|
+
...(s.film?.kind === 'clip' && s.film.recording !== undefined ? { recording: s.film.recording } : {}),
|
|
39
40
|
}
|
|
40
41
|
})
|
|
41
42
|
const sections: SectionSpan[] = []
|
|
@@ -129,6 +129,8 @@ export interface ShotSpan {
|
|
|
129
129
|
length: number
|
|
130
130
|
section: string | null
|
|
131
131
|
captions: CaptionSpan[]
|
|
132
|
+
/** the screen recorder's take it plays (`film recording <name>`): the page offers to shoot it again */
|
|
133
|
+
recording?: string
|
|
132
134
|
}
|
|
133
135
|
|
|
134
136
|
export interface SectionSpan {
|
package/src/secrets/manager.ts
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
// `credsReadCommand` reads, the repo's own line before the house's. Every
|
|
3
3
|
// write goes through `storeArgv`: `sk secret set` with the terminal on stdin,
|
|
4
4
|
// the hub with the pasted value on stdin. A value never rides argv, a log or
|
|
5
|
-
// an answer: a failure line comes back with it replaced by ‹value›.
|
|
5
|
+
// an answer: a failure line comes back with it replaced by ‹value›. A read of
|
|
6
|
+
// a scoped name from a repo out of its scope is refused (`readRefusal`).
|
|
6
7
|
import { existsSync } from 'fs'
|
|
7
8
|
import { basename, join } from 'path'
|
|
8
9
|
import { gitRoot } from '../core/git-root.ts'
|
|
10
|
+
import { inScope, scopesAll, scopeText, type Scope } from '../core/scope.ts'
|
|
9
11
|
import { houseRootOf } from '../home/home-start.ts'
|
|
10
12
|
import { loadIdentities, speakerOf } from '../identities/identities.ts'
|
|
11
13
|
import { loadRepoConfig, type RepoConfig } from '../repo-config.ts'
|
|
@@ -31,6 +33,21 @@ export function managerTemplate(w: SecretsWhere, key: 'credsReadCommand' | 'cred
|
|
|
31
33
|
return t
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
/** the scope the house gives a name: its registry row, else every repo */
|
|
37
|
+
export const houseScopeOf = (w: SecretsWhere, name: string): Scope | undefined => w.house?.creds?.find((c) => c.name === name)?.for
|
|
38
|
+
|
|
39
|
+
/** why the repo at `w` may not read a name scoped to `scope`, or null when it may.
|
|
40
|
+
* A scoped name needs a repo with its own repo.config.ts: a folder name alone never opens one */
|
|
41
|
+
export function readRefusal(name: string, scope: Scope | undefined, w: SecretsWhere): string | null {
|
|
42
|
+
if (scopesAll(scope)) return null
|
|
43
|
+
if (w.own != null && inScope(scope, w)) return null
|
|
44
|
+
const who = w.own == null ? `${w.repos[0]} is no repo with a repo.config.ts` : `repo ${w.repos.join(' / ')} speaks as ${w.identity ?? 'no identity'}`
|
|
45
|
+
return `REFUSED ${name} is for ${scopeText(scope)}, and ${who}: read it from a repo in its scope, or set its registry row's for to all (wiki services/secrets, Who may read a secret)`
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** the exit code of a refused read, apart from a missing secret's */
|
|
49
|
+
export const REFUSED_EXIT = 3
|
|
50
|
+
|
|
34
51
|
/** the one argv every write runs; the value goes on its stdin */
|
|
35
52
|
export const storeArgv = (template: string, name: string, account?: string): string[] =>
|
|
36
53
|
[...template.trim().split(/\s+/).map((x) => x.replaceAll('{name}', name)), ...(account != null ? [account] : [])]
|
|
@@ -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,7 +131,7 @@ 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)
|
|
@@ -176,6 +181,7 @@ export class HomeSt {
|
|
|
176
181
|
if (this.page === 'planned') return 'planned'
|
|
177
182
|
if (this.page === 'activity') return 'activity'
|
|
178
183
|
if (this.page === 'insights') return 'insights'
|
|
184
|
+
if (this.page === 'recordings') return this.recordings.current?.name ?? 'recordings'
|
|
179
185
|
if (this.page === 'identities') return this.identities.shown?.name ?? 'identities'
|
|
180
186
|
if (this.page === 'archived') return 'archived'
|
|
181
187
|
const r = this.shown
|
|
@@ -274,6 +280,7 @@ export class HomeSt {
|
|
|
274
280
|
const r = routeOf(u.pathname)
|
|
275
281
|
if (r.page === 'planned') this.planned.query = u.searchParams.get('q') ?? ''
|
|
276
282
|
if (r.page === 'inbox') this.inbox.fromSearch(u.search)
|
|
283
|
+
if (r.page === 'recordings') this.recordings.fromHash(u.hash)
|
|
277
284
|
this.show(r.page, r.repo, 'push')
|
|
278
285
|
}
|
|
279
286
|
|
|
@@ -309,6 +316,7 @@ export class HomeSt {
|
|
|
309
316
|
if (r.page === 'inbox') this.inbox.fromSearch(location.search)
|
|
310
317
|
if (r.page === 'planned') this.planned.query = new URLSearchParams(location.search).get('q') ?? ''
|
|
311
318
|
if (r.page === 'identities') this.identities.select(parseIdentityHash(location.hash))
|
|
319
|
+
if (r.page === 'recordings') this.recordings.fromHash(location.hash)
|
|
312
320
|
if (r.page === 'repo') this.repo(r.repo!).filter = parseFilter(location.search)
|
|
313
321
|
this.show(r.page, r.repo, 'none')
|
|
314
322
|
this.shown?.applyHash()
|
|
@@ -321,7 +329,7 @@ export class HomeSt {
|
|
|
321
329
|
const prevPage = this.page
|
|
322
330
|
const next = page === 'repo' && repo != null ? this.repo(repo) : null
|
|
323
331
|
// the page already shown is never a second history entry
|
|
324
|
-
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'
|
|
325
333
|
if (prev != null && prev !== next) prev.pause()
|
|
326
334
|
next?.markSeen()
|
|
327
335
|
this.page = page
|
|
@@ -331,7 +339,7 @@ export class HomeSt {
|
|
|
331
339
|
this.projects.away = next == null
|
|
332
340
|
this.projects.place = page === 'repo' || page === 'archived' || page === 'identities' ? null : page
|
|
333
341
|
if (how !== 'none') {
|
|
334
|
-
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] : '/'
|
|
335
343
|
// the identity view picked again is never a second entry
|
|
336
344
|
if (how === 'push' && page === 'identities' && prevPage === 'identities' && `${location.pathname}${location.hash}` === to) how = 'none'
|
|
337
345
|
// a walk with the arrows is one entry, so back returns to where it started
|
|
@@ -344,6 +352,8 @@ export class HomeSt {
|
|
|
344
352
|
if (page === 'planned') this.planned.start()
|
|
345
353
|
else this.planned.stop()
|
|
346
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()
|
|
347
357
|
if (page === 'identities' && prevPage !== 'identities') this.identities.start()
|
|
348
358
|
if (page === 'inbox') this.inbox.start()
|
|
349
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" />
|
|
@@ -47,6 +47,7 @@ import { ArchivedView, HomeStrip, NotUp, Overview } from './home-strip.tsx'
|
|
|
47
47
|
import { PlannedView } from './planned-view.tsx'
|
|
48
48
|
import { ActivityView } from './activity-view.tsx'
|
|
49
49
|
import { InsightsView } from './insights-view.tsx'
|
|
50
|
+
import { RecordingsView } from './recordings-view.tsx'
|
|
50
51
|
import { IdentitiesView } from './identities-view.tsx'
|
|
51
52
|
import { Palette } from './palette-view.tsx'
|
|
52
53
|
import { SCREEN_WAIT_MS } from './screen-cache.ts'
|
|
@@ -424,6 +425,7 @@ const App = observer(() => {
|
|
|
424
425
|
{home.page === 'planned' ? <PlannedView app={home} /> : null}
|
|
425
426
|
{home.page === 'activity' ? <ActivityView app={home} /> : null}
|
|
426
427
|
{home.page === 'insights' ? <InsightsView app={home} /> : null}
|
|
428
|
+
{home.page === 'recordings' ? <RecordingsView app={home} /> : null}
|
|
427
429
|
{home.page === 'identities' ? <IdentitiesView app={home} /> : null}
|
|
428
430
|
{home.page === 'archived' ? <ArchivedView app={home} /> : null}
|
|
429
431
|
{home.visited.map((r) => <RepoView key={r.key} app={r} />)}
|
|
@@ -475,5 +477,8 @@ const EmbedApp = observer(({ page }: { page: EmbedPage }) => {
|
|
|
475
477
|
// paints it at once; a slow or absent store costs at most SCREEN_WAIT_MS
|
|
476
478
|
await Promise.race([home.shown?.cols.restore(), new Promise((ok) => setTimeout(ok, SCREEN_WAIT_MS))])
|
|
477
479
|
|
|
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
|
+
|
|
478
483
|
quietBenignErrors(window)
|
|
479
|
-
createRoot(document.getElementById('root')!).render(<StrictMode>{embed == null ? <App /> : <EmbedApp page={embed} />}</StrictMode>)
|
|
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
|
}
|
|
@@ -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 */
|
|
@@ -202,7 +202,7 @@ export function cardModel(p: Project, now: number): CardModel {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
/** a page of the home that is no repo's */
|
|
205
|
-
export type Place = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights'
|
|
205
|
+
export type Place = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights' | 'recordings'
|
|
206
206
|
|
|
207
207
|
export class ProjectsSvc {
|
|
208
208
|
/** the last list this browser saw until the first poll answers, so the
|