rvlib-shipkit 2.27.0 → 2.28.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 +16 -0
- package/package.json +1 -1
- package/src/agent-time/hooks.ts +10 -3
- package/src/agent-time/live.ts +11 -5
- package/src/agent-time/registry.ts +289 -0
- package/src/agent-time/store.ts +2 -2
- package/src/annex/born.ts +2 -2
- package/src/annex/offload.ts +12 -11
- package/src/asks/ask-after.ts +6 -2
- package/src/asks/ask-bar-fold.ts +57 -0
- package/src/asks/ask-migrate.ts +280 -0
- package/src/asks/ask-steps-fold.ts +166 -0
- package/src/asks/ask-store.ts +586 -0
- package/src/assets/kits/identity-kit.ts +106 -38
- package/src/assets/kits/poster-thumbnail.ts +282 -0
- package/src/checks/SK003-claude-md-shape.check.ts +92 -25
- package/src/checks/SK004-gitignore-policy.check.ts +8 -4
- package/src/checks/SK013-one-way-in-policy.check.ts +10 -0
- package/src/checks/SK026-asks-autoclose.check.ts +9 -23
- package/src/checks/SK038-speaks-as.check.ts +3 -3
- package/src/checks/SK042-post-kinds.check.ts +26 -24
- package/src/checks/SK049-thread-answers-hook.check.ts +81 -0
- package/src/checks/SK050-retired-commands.check.ts +127 -0
- package/src/cli/cmd_Asks.ts +204 -53
- package/src/cli/cmd_Backup.ts +151 -8
- package/src/cli/cmd_Calls.ts +1 -0
- package/src/cli/cmd_Commands.ts +140 -34
- package/src/cli/cmd_Contracts.ts +1 -0
- package/src/cli/cmd_Keys.ts +1 -0
- package/src/cli/cmd_Lanes.ts +15 -4
- package/src/cli/cmd_Messages.ts +152 -1
- package/src/cli/cmd_Needs.ts +1 -0
- package/src/cli/cmd_Review.ts +931 -229
- package/src/cli/cmd_Secret.ts +255 -34
- package/src/cli/cmd_Social.ts +36 -33
- package/src/cli/cmd_SocialDrafts.ts +235 -0
- package/src/cli/cmd_Sound.ts +22 -1
- package/src/cli/cmd_Start.ts +3 -2
- package/src/cli/cmd_ThreadHolds.ts +34 -0
- package/src/cli/cmd_ThreadKinds.ts +146 -0
- package/src/cli/cmd_ThreadReflect.ts +83 -0
- package/src/cli/cmd_ThreadSyncNeeds.ts +62 -0
- package/src/cli/cmd_Vault.ts +1 -1
- package/src/cli/cmd_When.ts +1 -0
- package/src/cli/family-help.ts +2 -2
- package/src/cli/family-pages.ts +1 -1
- package/src/cli/kit/builtins.ts +1 -0
- package/src/cli/kit/verb.ts +6 -2
- package/src/cli/registry.ts +21 -2
- package/src/cli.ts +5 -2
- package/src/collections/actions.ts +25 -74
- package/src/collections/collection-types.ts +9 -5
- package/src/collections/md-body.ts +5 -3
- package/src/collections/pings.ts +13 -6
- package/src/collections/providers.ts +53 -61
- package/src/collections/reflections.ts +9 -4
- package/src/core/discover-checks.ts +18 -3
- package/src/core/git.ts +31 -0
- package/src/core/house-layout.ts +17 -0
- package/src/core/layout.ts +10 -5
- package/src/core/locked-write.ts +4 -1
- package/src/core/machine-db.ts +5 -3
- package/src/core/migrate-layout.ts +8 -10
- package/src/home/activity.ts +8 -15
- package/src/home/daemon-jobs.ts +13 -1
- package/src/home/home-paths.ts +6 -3
- package/src/home/home-routes.ts +8 -0
- package/src/home/inbox-shape.ts +233 -100
- package/src/home/inbox.ts +26 -71
- package/src/home/machine-fold.ts +10 -15
- package/src/home/machine-host.ts +19 -1
- package/src/home/other-macs.ts +2 -2
- package/src/home/serve-web.ts +6 -5
- package/src/home/space-page.ts +1 -1
- package/src/home/vault-page.ts +51 -17
- package/src/home/vault-words.ts +2 -2
- package/src/hooks/one-way-in-guard.ts +24 -2
- package/src/hq/files-send.ts +27 -28
- package/src/hq/hq-db.ts +4 -1
- package/src/hq/hq-local.ts +37 -4
- package/src/hq/hq-routes.ts +10 -2
- package/src/hq/hq-store.ts +6 -2
- package/src/hq/kinds/ask.ts +6 -6
- package/src/hq/outbox.ts +5 -3
- package/src/hq/replica.ts +1 -2
- package/src/hq/vault-route.ts +112 -0
- package/src/identities/collection.ts +2 -2
- package/src/identities/identities.ts +9 -8
- package/src/identities/machine-route.ts +8 -3
- package/src/ledger/db.ts +8 -1
- package/src/media-store/backup/daemon.ts +48 -8
- package/src/media-store/backup/keys.ts +1 -1
- package/src/media-store/backup/manifest.ts +20 -2
- package/src/media-store/backup/prune.ts +365 -0
- package/src/media-store/backup/retention.ts +122 -0
- package/src/media-store/backup/run.ts +14 -8
- package/src/media-store/backup/sources.ts +18 -17
- package/src/media-store/backup/thread-copy.ts +340 -0
- package/src/media-store/copy/config.ts +3 -4
- package/src/media-store/copy/store.ts +2 -2
- package/src/media-store/db.ts +2 -2
- package/src/media-store/forget.ts +118 -0
- package/src/media-store/purge.ts +3 -2
- package/src/media-store/space-listing.ts +20 -4
- package/src/media-store/space.ts +6 -5
- package/src/messages/guard.ts +49 -0
- package/src/messages/model.ts +1 -1
- package/src/messages/objects.ts +201 -0
- package/src/messages/routes.ts +2 -2
- package/src/messages/score.ts +1 -1
- package/src/messages/write.ts +285 -0
- package/src/pages/frame-client.ts +181 -4
- package/src/reflections/reflections-queue.ts +1 -1
- package/src/release/gate-checkout.ts +2 -1
- package/src/release/git-facts.ts +3 -2
- package/src/release/public-clean.ts +3 -2
- package/src/repo-config.ts +40 -18
- package/src/review/anim.ts +1 -1
- package/src/review/answer-kinds.ts +131 -0
- package/src/review/band.ts +53 -0
- package/src/review/branch-hold.ts +84 -0
- package/src/review/card-db.ts +16 -6
- package/src/review/card-rows.ts +4 -3
- package/src/review/cells.ts +297 -65
- package/src/review/close.ts +92 -0
- package/src/review/draft-card.ts +8 -16
- package/src/review/draft-model.ts +2 -2
- package/src/review/events.ts +171 -0
- package/src/review/format.ts +128 -14
- package/src/review/glyphs.ts +63 -0
- package/src/review/gone.ts +1 -1
- package/src/review/holds-sync.ts +62 -0
- package/src/review/holds.ts +85 -0
- package/src/review/house-kind-defs.ts +41 -0
- package/src/review/inbox-hook.ts +22 -9
- package/src/review/inbox-read.ts +201 -0
- package/src/review/instructions.ts +199 -0
- package/src/review/kind-apply.ts +61 -0
- package/src/review/kind-catalog.ts +96 -0
- package/src/review/kinds.ts +278 -0
- package/src/review/lane-ask.ts +109 -0
- package/src/review/model.ts +396 -86
- package/src/review/move.ts +3 -3
- package/src/review/need-address.ts +15 -0
- package/src/review/need-threads.ts +93 -0
- package/src/review/object-card.ts +48 -0
- package/src/review/object-read.ts +31 -0
- package/src/review/owner-verdict.ts +36 -0
- package/src/review/parties.ts +182 -0
- package/src/review/previews.ts +3 -1
- package/src/review/projections.ts +235 -0
- package/src/review/referring.ts +54 -0
- package/src/review/reflection-object.ts +195 -0
- package/src/review/routes.ts +137 -32
- package/src/review/secret-route.ts +80 -0
- package/src/review/snooze.ts +38 -0
- package/src/review/stage-card.ts +4 -4
- package/src/review/store.ts +366 -85
- package/src/review/supersede.ts +116 -0
- package/src/review/take-back.ts +52 -0
- package/src/review/thread-fold.ts +20 -7
- package/src/review/threads.ts +236 -39
- package/src/review/traces.ts +218 -0
- package/src/review/trailer-card.ts +2 -2
- package/src/review/unit.ts +71 -5
- package/src/review/verdict-items.ts +73 -0
- package/src/review/verdict-write.ts +15 -0
- package/src/review/wait.ts +85 -0
- package/src/review/watchers.ts +22 -9
- package/src/scaffold/files/claude-settings-local.json +2 -0
- package/src/secrets/archive-mark.ts +52 -0
- package/src/secrets/archive.ts +83 -0
- package/src/secrets/copy.ts +14 -14
- package/src/secrets/keychain-write.ts +48 -0
- package/src/secrets/keychain.ts +8 -5
- package/src/secrets/lapse-mark.ts +33 -0
- package/src/secrets/lapse.ts +60 -0
- package/src/secrets/list.ts +16 -22
- package/src/secrets/manager.ts +31 -16
- package/src/secrets/read.ts +161 -33
- package/src/secrets/tail.ts +31 -0
- package/src/serve/hub-app/asks-page.tsx +2 -1
- package/src/serve/hub-app/auto-text.tsx +14 -6
- package/src/serve/hub-app/benign-errors.ts +15 -1
- package/src/serve/hub-app/card-head.tsx +49 -0
- package/src/serve/hub-app/check-view.tsx +3 -2
- package/src/serve/hub-app/code-copy.ts +35 -0
- package/src/serve/hub-app/col-card.tsx +31 -40
- package/src/serve/hub-app/col-list-page.tsx +5 -2
- package/src/serve/hub-app/col-tables-view.tsx +7 -4
- package/src/serve/hub-app/col-tables.ts +5 -5
- package/src/serve/hub-app/cols-svc.ts +4 -79
- package/src/serve/hub-app/commands/commands-page.tsx +2 -1
- package/src/serve/hub-app/controls.css +83 -0
- package/src/serve/hub-app/frames-st.ts +17 -1
- package/src/serve/hub-app/git-view.tsx +3 -2
- package/src/serve/hub-app/home-st.ts +57 -6
- package/src/serve/hub-app/home-strip.css +1 -6
- package/src/serve/hub-app/home-strip.tsx +2 -1
- package/src/serve/hub-app/home.html +3 -0
- package/src/serve/hub-app/house-wiki-view.tsx +20 -0
- package/src/serve/hub-app/hub-app.tsx +48 -32
- package/src/serve/hub-app/hub-types.ts +2 -0
- package/src/serve/hub-app/hub.css +50 -61
- package/src/serve/hub-app/icons.tsx +14 -4
- package/src/serve/hub-app/identities-view.tsx +4 -3
- package/src/serve/hub-app/inbox-st.ts +203 -42
- package/src/serve/hub-app/inbox-view.tsx +189 -101
- package/src/serve/hub-app/inbox.css +47 -44
- package/src/serve/hub-app/index.html +3 -0
- package/src/serve/hub-app/instructions.css +30 -0
- package/src/serve/hub-app/keys.ts +5 -3
- package/src/serve/hub-app/machine-st.ts +2 -2
- package/src/serve/hub-app/machines-view.tsx +4 -11
- package/src/serve/hub-app/machines.css +0 -9
- package/src/serve/hub-app/markdown.css +51 -0
- package/src/serve/hub-app/md-copy.tsx +18 -40
- package/src/serve/hub-app/md.ts +25 -9
- package/src/serve/hub-app/media-view.tsx +2 -2
- package/src/serve/hub-app/messages/messages-page.tsx +2 -1
- package/src/serve/hub-app/messages/messages-st.ts +1 -1
- package/src/serve/hub-app/messages.css +0 -1
- package/src/serve/hub-app/objects.css +51 -0
- package/src/serve/hub-app/page-keys.ts +1 -1
- package/src/serve/hub-app/pages-frames.tsx +11 -1
- package/src/serve/hub-app/palette-st.ts +4 -4
- package/src/serve/hub-app/pane-boundary.tsx +72 -0
- package/src/serve/hub-app/pane-errors.ts +54 -0
- package/src/serve/hub-app/plan-view.tsx +3 -2
- package/src/serve/hub-app/planned-view.tsx +3 -3
- package/src/serve/hub-app/planned.css +0 -4
- package/src/serve/hub-app/processes-view.tsx +3 -2
- package/src/serve/hub-app/project-list.css +5 -13
- package/src/serve/hub-app/project-list.tsx +3 -6
- package/src/serve/hub-app/projects-svc.ts +6 -2
- package/src/serve/hub-app/readme.css +9 -15
- package/src/serve/hub-app/reflections-page.tsx +54 -1
- package/src/serve/hub-app/releases/releases-page.tsx +3 -2
- package/src/serve/hub-app/releases.css +0 -1
- package/src/serve/hub-app/review/code-colors.ts +30 -0
- package/src/serve/hub-app/review/diff-view.tsx +75 -0
- package/src/serve/hub-app/review/dock.tsx +104 -0
- package/src/serve/hub-app/review/draft-card.tsx +2 -2
- package/src/serve/hub-app/review/group-block.tsx +209 -0
- package/src/serve/hub-app/review/instructions-view.tsx +116 -0
- package/src/serve/hub-app/review/item-verdict.tsx +38 -0
- package/src/serve/hub-app/review/kind-states.tsx +193 -0
- package/src/serve/hub-app/review/kind-view.tsx +1 -37
- package/src/serve/hub-app/review/kit.tsx +57 -54
- package/src/serve/hub-app/review/lane-bar.tsx +64 -0
- package/src/serve/hub-app/review/object-card.tsx +62 -0
- package/src/serve/hub-app/review/object-panel.tsx +179 -0
- package/src/serve/hub-app/review/question-views.tsx +385 -0
- package/src/serve/hub-app/review/review-cells.tsx +86 -105
- package/src/serve/hub-app/review/review-list.tsx +104 -47
- package/src/serve/hub-app/review/review-page.tsx +5 -4
- package/src/serve/hub-app/review/review-st.ts +68 -28
- package/src/serve/hub-app/review/review-thread.tsx +171 -40
- package/src/serve/hub-app/review/review-views.tsx +35 -31
- package/src/serve/hub-app/review/thread-close.tsx +124 -0
- package/src/serve/hub-app/review/thread-control.tsx +4 -4
- package/src/serve/hub-app/review/thread-st.ts +222 -22
- package/src/serve/hub-app/review/trailer-card.tsx +1 -1
- package/src/serve/hub-app/review/trailer-timeline.tsx +2 -2
- package/src/serve/hub-app/review.css +216 -57
- package/src/serve/hub-app/section-head.tsx +51 -0
- package/src/serve/hub-app/social/calendar.tsx +5 -11
- package/src/serve/hub-app/social/comms-page.tsx +23 -10
- package/src/serve/hub-app/social/kit.tsx +8 -15
- package/src/serve/hub-app/social/next-release.tsx +3 -5
- package/src/serve/hub-app/social/post-card.tsx +3 -0
- package/src/serve/hub-app/social/post-page.tsx +80 -0
- package/src/serve/hub-app/social/problems.tsx +5 -9
- package/src/serve/hub-app/social/social-model.ts +13 -5
- package/src/serve/hub-app/social/social-page.tsx +1 -1
- package/src/serve/hub-app/social/social-st.ts +42 -5
- package/src/serve/hub-app/social.css +7 -17
- package/src/serve/hub-app/space.css +1 -1
- package/src/serve/hub-app/stores/stores-page.tsx +6 -2
- package/src/serve/hub-app/thread-row.tsx +101 -0
- package/src/serve/hub-app/time-ago.tsx +3 -2
- package/src/serve/hub-app/time-view.tsx +2 -1
- package/src/serve/hub-app/time.css +2 -5
- package/src/serve/hub-app/tree-row.tsx +1 -9
- package/src/serve/hub-app/vault-view.tsx +4 -4
- package/src/serve/hub-app/veille/veille-page.tsx +2 -11
- package/src/serve/hub-app/veille.css +0 -1
- package/src/serve/hub-app/waiting-svc.ts +4 -4
- package/src/serve/hub-app/when-view.tsx +6 -3
- package/src/serve/hub-app/wiki-st.ts +30 -4
- package/src/serve/hub-app/wikis-view.tsx +4 -3
- package/src/serve/hub-runtime.ts +20 -6
- package/src/serve/project-gutter-route.ts +16 -6
- package/src/serve/project-gutter.ts +6 -53
- package/src/serve/same-origin.ts +3 -0
- package/src/serve/secret-gate.ts +21 -0
- package/src/serve/serve-hub.ts +29 -20
- package/src/serve/tailnet-caller.ts +117 -0
- package/src/shipkit.ts +2 -2
- package/src/site/desk.ts +2 -2
- package/src/smoke/run-smoke.ts +3 -4
- package/src/social/brands.ts +4 -0
- package/src/social/card-drafts.ts +11 -19
- package/src/social/desk-index.ts +34 -13
- package/src/social/drafts.ts +4 -4
- package/src/social/import-drafts.ts +244 -0
- package/src/social/kind-pages.ts +3 -3
- package/src/social/kinds.ts +1 -1
- package/src/social/load.ts +89 -64
- package/src/social/media-kind.ts +68 -161
- package/src/social/media-of.ts +5 -4
- package/src/social/open.ts +3 -2
- package/src/social/post-object.ts +120 -0
- package/src/social/post-sources.ts +136 -0
- package/src/social/post-text.ts +103 -0
- package/src/social/posts.ts +378 -0
- package/src/social/presence.ts +7 -5
- package/src/social/publish/index.ts +17 -5
- package/src/social/publish/secret.ts +2 -2
- package/src/social/release-stage.ts +58 -57
- package/src/social/routes.ts +64 -24
- package/src/social/stage.ts +42 -57
- package/src/social/text.ts +4 -3
- package/src/social/thumbnail.ts +135 -43
- package/src/social/tracker.ts +1 -1
- package/src/social/writes.ts +12 -29
- package/src/stores/desk.ts +16 -11
- package/src/stores/unit.ts +2 -2
- package/src/trailer/sound/eleven.ts +33 -3
- package/src/urls/rows.ts +1 -1
- package/src/vault/vault-http.ts +11 -3
- package/src/vault/vault-import.ts +6 -1
- package/src/veille/identity.ts +2 -2
- package/src/wiki/graph-pages.ts +13 -1
- package/src/wiki/scan-md.ts +1 -1
- package/src/asks/asks-queue.ts +0 -424
- package/src/messages/suggest.ts +0 -96
- package/src/social/migrate.ts +0 -123
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// check runner. Every verb posts to /api/act/* and lands in a git-tracked
|
|
3
3
|
// truth file; the truth chip names the file the item IS (on disagreement
|
|
4
4
|
// the file wins).
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { observer, useLocalObservable } from 'mobx-react-lite'
|
|
6
|
+
import { useEffect } from 'react'
|
|
7
7
|
import type { RepoSt } from './repo-st.ts'
|
|
8
8
|
import type { Resource } from './hub-types.ts'
|
|
9
9
|
import { CopyMd } from './md-copy.tsx'
|
|
@@ -11,7 +11,8 @@ import { askAt, askFactWords, heldWords, isDeclinedAsk, isDoneAsk } from './col-
|
|
|
11
11
|
import { TimeAgo } from './time-ago.tsx'
|
|
12
12
|
import { ReaderChips } from './reader-chips.tsx'
|
|
13
13
|
import type { Readers } from '../../collections/collection-types.ts'
|
|
14
|
-
import { ThreadControl } from './review/thread-control.tsx'
|
|
14
|
+
import { ThreadControl, threadHost } from './review/thread-control.tsx'
|
|
15
|
+
import { ThreadControlSt } from './review/thread-control-st.ts'
|
|
15
16
|
|
|
16
17
|
// creds carry no truth file: the name is the id, the words after it are the
|
|
17
18
|
// service and what its probe last said, and the slot says present or missing
|
|
@@ -49,11 +50,27 @@ const StoredBy = ({ names, readers }: { names: string[]; readers: Record<string,
|
|
|
49
50
|
))}</div>
|
|
50
51
|
)
|
|
51
52
|
|
|
53
|
+
/** the way to answer an ask: its thread, where its steps, its fields and its bar are; the card is its index entry */
|
|
54
|
+
const AnswerInThread = observer(({ app, address, open }: { app: RepoSt; address: string; open: boolean }) => {
|
|
55
|
+
const host = threadHost(app)
|
|
56
|
+
const s = useLocalObservable(() => new ThreadControlSt(host, address, address))
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
void s.load()
|
|
59
|
+
}, [s])
|
|
60
|
+
const t = s.data?.threads.find((x) => x.owns) ?? s.data?.threads[0]
|
|
61
|
+
if (t == null) return null
|
|
62
|
+
return (
|
|
63
|
+
<div className="row">
|
|
64
|
+
<button title="its steps, its fields, done and « I will not do this » are in its thread" onClick={() => host.openThread(t.head)}>{open ? 'answer it in its thread ↗' : 'open its thread ↗'}</button>
|
|
65
|
+
</div>
|
|
66
|
+
)
|
|
67
|
+
})
|
|
68
|
+
|
|
52
69
|
export const ColCard = observer(({ app, col, id }: { app: RepoSt; col: string; id: string }) => {
|
|
53
70
|
const c = app.cols
|
|
54
71
|
const i = c.find(col, id)
|
|
55
72
|
if (i == null) return <div className="ph">item vanished — the truth file moved on</div>
|
|
56
|
-
const
|
|
73
|
+
const askId = col === 'asks' ? id.replace(/^ask:/, '') : null
|
|
57
74
|
if (col === 'creds') {
|
|
58
75
|
// no remark box, no generic dump — a cred has no truth file; the
|
|
59
76
|
// copy block + steps only matter while it is MISSING
|
|
@@ -84,9 +101,9 @@ export const ColCard = observer(({ app, col, id }: { app: RepoSt; col: string; i
|
|
|
84
101
|
<h3>
|
|
85
102
|
<span className={`tl ${i.state}`}>{i.text}</span>
|
|
86
103
|
{i.file != null ? <span className="truth">{i.file}</span> : null}
|
|
87
|
-
{
|
|
104
|
+
{askId != null ? <ThreadControl st={app} address={id} name={i.text} /> : null}
|
|
88
105
|
</h3>
|
|
89
|
-
{
|
|
106
|
+
{askId != null ? <AskFacts app={app} i={i} /> : null}
|
|
90
107
|
{i.md != null ? <CopyMd md={i.md} /> : null}
|
|
91
108
|
{i.remarks != null && i.remarks.length > 0 ? <div className="rem">{i.remarks.join('\n')}</div> : null}
|
|
92
109
|
{i.artifact?.copy != null ? (
|
|
@@ -97,51 +114,25 @@ export const ColCard = observer(({ app, col, id }: { app: RepoSt; col: string; i
|
|
|
97
114
|
) : null}
|
|
98
115
|
{i.artifact?.url != null ? <div className="row"><a href={i.artifact.url} target="_blank" rel="noreferrer">mint ↗</a></div> : null}
|
|
99
116
|
{i.artifact?.steps != null ? <div className="row"><div>{i.artifact.steps.map((s, n) => <span key={n}>{n + 1}. {s}<br /></span>)}</div></div> : null}
|
|
100
|
-
{/*
|
|
101
|
-
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
const account =
|
|
117
|
+
{/* an ask is answered in its thread alone: its steps, its secret fields, done and « I will not do this » */}
|
|
118
|
+
{askId != null ? <AnswerInThread app={app} address={id} open={i.severity != null} /> : null}
|
|
119
|
+
{/* a credential ask: each secret it names, who will read it, whether the store holds it */}
|
|
120
|
+
{askId != null && i.severity != null && (i.ask?.secrets ?? []).length > 0 ? <div className="creds">{i.ask!.secrets.map((name) => {
|
|
121
|
+
const h = heldWords(i.ask?.held?.[name], i.ask?.created, app.clock.now)
|
|
122
|
+
const account = i.ask?.accounts?.[name]
|
|
106
123
|
return (
|
|
107
124
|
<div className="credrow" key={name}>
|
|
108
125
|
<div className="credhead">
|
|
109
126
|
<span className="credname">{name}</span>
|
|
110
127
|
<ReaderChips who={i.ask?.readers?.[name]} lead="who will read it" />
|
|
111
|
-
{
|
|
128
|
+
{(i.ask?.logins ?? []).includes(name) && account != null ? <span className="credaccount">account: {account}</span> : null}
|
|
112
129
|
<span className={`credheld ${h.tone}`}>{h.words}</span>
|
|
113
130
|
</div>
|
|
114
|
-
<div className="row">
|
|
115
|
-
{login ? <input className="credacct" type="text" autoComplete="off" spellCheck={false} placeholder="account (the email or user name you sign in with)" value={c.accountDrafts.get(name) ?? ''}
|
|
116
|
-
onChange={(e) => c.setAccountDraft(name, e.target.value)}
|
|
117
|
-
onKeyDown={(e) => { if (e.key === 'Enter') void c.storeSecret(askFile, name, true) }} /> : null}
|
|
118
|
-
<input type="password" autoComplete="off" spellCheck={false} placeholder={login ? 'password' : h.tone === 'red' ? `paste the value of ${name}` : 'paste a new value'} value={c.secretDrafts.get(name) ?? ''}
|
|
119
|
-
onChange={(e) => c.setSecretDraft(name, e.target.value)}
|
|
120
|
-
onKeyDown={(e) => { if (e.key === 'Enter') void c.storeSecret(askFile, name, login) }} />
|
|
121
|
-
<button onClick={() => void c.storeSecret(askFile, name, login)}>store</button>
|
|
122
|
-
</div>
|
|
123
|
-
{err != null ? <div className="err">✗ {err}</div> : null}
|
|
124
131
|
</div>
|
|
125
132
|
)
|
|
126
133
|
})}</div> : null}
|
|
127
134
|
{/* a secret its body stores with a command line (an older ask): who will read it, said before he runs it */}
|
|
128
|
-
{
|
|
129
|
-
{c.secretNote !== '' ? <div className="said">✓ {c.secretNote}</div> : null}
|
|
130
|
-
{askFile != null && i.severity != null ? (
|
|
131
|
-
<div className="row">
|
|
132
|
-
<input placeholder="proof URL (optional)" value={c.proofDraft} onChange={(e) => runInAction(() => { c.proofDraft = e.target.value })} />
|
|
133
|
-
<button onClick={() => void c.askDone(askFile)}>done ✓</button>
|
|
134
|
-
<button className="ghost" title="close it as declined: nothing asks it again, nothing waits on you for it. A remark below is kept as your reason. To undo, set its status back to open in the file"
|
|
135
|
-
onClick={() => void c.askDecline(askFile)}>I will not do this</button>
|
|
136
|
-
</div>
|
|
137
|
-
) : null}
|
|
138
|
-
{askFile != null ? (
|
|
139
|
-
<div className="row">
|
|
140
|
-
<input placeholder="remark → lands in the file, agents read it" value={c.remarkDraft}
|
|
141
|
-
onChange={(e) => runInAction(() => { c.remarkDraft = e.target.value })} />
|
|
142
|
-
<button className="ghost" onClick={() => void c.remark({ kind: 'ask', file: askFile })}>remark</button>
|
|
143
|
-
</div>
|
|
144
|
-
) : null}
|
|
135
|
+
{askId != null && i.severity != null ? <StoredBy names={(i.ask?.stores ?? []).filter((n) => !(i.ask?.secrets ?? []).includes(n))} readers={i.ask?.readers} /> : null}
|
|
145
136
|
{c.actErr !== '' ? <div className="err">✗ {c.actErr}</div> : null}
|
|
146
137
|
</div>
|
|
147
138
|
)
|
|
@@ -42,6 +42,8 @@ type Props<K extends string> = {
|
|
|
42
42
|
row: (r: Resource, on: boolean) => ReactNode
|
|
43
43
|
/** the ids its column widths are kept by */
|
|
44
44
|
panels: { cols: string; list: string; shown: string }
|
|
45
|
+
/** what the page adds under the row shown: an object's actions and the threads that refer to it */
|
|
46
|
+
foot?: (r: Resource) => ReactNode
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
const List = observer(<K extends string>({ app, st, words, row }: Props<K>) => {
|
|
@@ -73,10 +75,11 @@ const List = observer(<K extends string>({ app, st, words, row }: Props<K>) => {
|
|
|
73
75
|
})
|
|
74
76
|
|
|
75
77
|
/** the row shown, whole; a plain line when none is open */
|
|
76
|
-
const Shown = observer(<K extends string>({ app, st, words }: Props<K>) => {
|
|
78
|
+
const Shown = observer(<K extends string>({ app, st, words, foot }: Props<K>) => {
|
|
77
79
|
const id = st.currentId
|
|
78
80
|
if (!app.cols.loaded && !app.cols.cached) return <div className="rv-empty"><span className="spin" /> {words.reading}</div>
|
|
79
|
-
|
|
81
|
+
const r = id == null || foot == null ? null : st.all.find((x) => x.id === id) ?? null
|
|
82
|
+
if (id != null) return <div className="stagewrap"><ColCard app={app} col={st.list.col} id={id} />{r != null && foot != null ? foot(r) : null}</div>
|
|
80
83
|
return (
|
|
81
84
|
<div className="stagewrap">
|
|
82
85
|
<div className="ph">{words.nothingShown(st.all.length)}</div>
|
|
@@ -17,7 +17,7 @@ import type { Resource } from './hub-types.ts'
|
|
|
17
17
|
import { sectionLabel } from './keys.ts'
|
|
18
18
|
import type { RepoSt } from './repo-st.ts'
|
|
19
19
|
import { TimeAgo } from './time-ago.tsx'
|
|
20
|
-
import {
|
|
20
|
+
import { SectionHead } from './section-head.tsx'
|
|
21
21
|
|
|
22
22
|
const emptyWords = (app: RepoSt): string => (app.filter === 'red' ? 'no reds here' : app.filter === 'needs' ? 'nothing here needs you' : app.query.trim() !== '' ? 'nothing matches the filter' : 'nothing here yet')
|
|
23
23
|
|
|
@@ -38,14 +38,17 @@ const Page = ({ title, n, lead, cols, empty, children }: { title: string; n: num
|
|
|
38
38
|
</div>
|
|
39
39
|
)
|
|
40
40
|
|
|
41
|
-
/**
|
|
41
|
+
/** a group's name in its tone: what fails red, what warns yellow */
|
|
42
|
+
const GROUP_TONE: Record<string, string> = { fail: 'var(--red)', warn: 'var(--warn)' }
|
|
43
|
+
|
|
44
|
+
/** one group: its head (a click folds it), then its lines unless folded */
|
|
42
45
|
const Group = observer(<K extends string>({ app, col, g, span, row }: { app: RepoSt; col: string; g: TableGroup<K>; span: number; row: (r: Resource) => ReactNode }) => {
|
|
43
46
|
const key = `${col}:${g.key}`
|
|
44
47
|
const folded = app.cols.groupFolded(key, g.foldedByDefault)
|
|
45
48
|
return (
|
|
46
49
|
<tbody className="ctgroup">
|
|
47
|
-
<tr className={`ctgrp g-${g.key}`} data-k={g.key}
|
|
48
|
-
<td colSpan={span}><
|
|
50
|
+
<tr className={`ctgrp g-${g.key}`} data-k={g.key}>
|
|
51
|
+
<td colSpan={span}><SectionHead label={g.label} open={!folded} tone={GROUP_TONE[g.key]}onFold={() => app.cols.toggleGroup(key, g.foldedByDefault)} /></td>
|
|
49
52
|
</tr>
|
|
50
53
|
{folded ? null : g.rows.map(row)}
|
|
51
54
|
</tbody>
|
|
@@ -100,10 +100,10 @@ export const dayMs = (d: string | null | undefined): number | null => {
|
|
|
100
100
|
const NOTHING = new Set(['', '-'])
|
|
101
101
|
const blocksOf = (r: Resource): string => r.ask?.blocks ?? '-'
|
|
102
102
|
|
|
103
|
-
/** an ask
|
|
104
|
-
export const isDoneAsk = (r: Resource): boolean => r.
|
|
105
|
-
/** an ask the owner declined
|
|
106
|
-
export const isDeclinedAsk = (r: Resource): boolean => r.
|
|
103
|
+
/** an ask closed as done */
|
|
104
|
+
export const isDoneAsk = (r: Resource): boolean => r.ask?.status === 'done'
|
|
105
|
+
/** an ask the owner declined */
|
|
106
|
+
export const isDeclinedAsk = (r: Resource): boolean => r.ask?.status === 'declined'
|
|
107
107
|
/** an ask closed either way: done or declined */
|
|
108
108
|
export const isClosedAsk = (r: Resource): boolean => isDoneAsk(r) || isDeclinedAsk(r)
|
|
109
109
|
|
|
@@ -156,7 +156,7 @@ export function askGroups(rows: readonly Resource[]): TableGroup<AskGroupKey>[]
|
|
|
156
156
|
const declined = closed(isDeclinedAsk)
|
|
157
157
|
const groups: TableGroup<AskGroupKey>[] = [
|
|
158
158
|
{ key: 'open', label: `${open.length} open`, rows: open, foldedByDefault: false },
|
|
159
|
-
{ key: 'later', label: `${later.length}
|
|
159
|
+
{ key: 'later', label: `${later.length} set aside`, rows: later, foldedByDefault: true },
|
|
160
160
|
{ key: 'done', label: `${done.length} done`, rows: done, foldedByDefault: true },
|
|
161
161
|
{ key: 'declined', label: `${declined.length} declined`, rows: declined, foldedByDefault: true },
|
|
162
162
|
]
|
|
@@ -7,8 +7,6 @@ import { makeAutoObservable, runInAction } from 'mobx'
|
|
|
7
7
|
import type { RepoSt } from './repo-st.ts'
|
|
8
8
|
import type { Col, ColMeta, HubProblem, Resource } from './hub-types.ts'
|
|
9
9
|
import type { PlanRow } from '../../plan/planner.ts'
|
|
10
|
-
import type { SecretAnswer } from '../../collections/actions.ts'
|
|
11
|
-
import type { Held } from '../../secrets/held.ts'
|
|
12
10
|
import { readScreen, SCREEN_WRITE_MS, writeScreen } from './screen-cache.ts'
|
|
13
11
|
import { ownTrouble, reach } from './reach.ts'
|
|
14
12
|
|
|
@@ -59,19 +57,6 @@ export class ColsSvc {
|
|
|
59
57
|
private tag: string | null = null
|
|
60
58
|
actErr = ''
|
|
61
59
|
remarkDraft = ''
|
|
62
|
-
proofDraft = ''
|
|
63
|
-
/** a value pasted under a credential ask, by secret name: in memory only, never kept, gone once sent */
|
|
64
|
-
secretDrafts = new Map<string, string>()
|
|
65
|
-
/** what the last store answered for the ask as a whole: every value in, or the check's verdict */
|
|
66
|
-
secretNote = ''
|
|
67
|
-
/** a row's state as its last store answered it, over the listing's until the next one */
|
|
68
|
-
secretHeld = new Map<string, Held>()
|
|
69
|
-
/** a row's refusal, on that row only */
|
|
70
|
-
secretErrs = new Map<string, string>()
|
|
71
|
-
/** a login row's account as typed, by secret name: sent with its value, then gone */
|
|
72
|
-
accountDrafts = new Map<string, string>()
|
|
73
|
-
/** a login row's account as its last store answered it (an account is no secret) */
|
|
74
|
-
secretAccounts = new Map<string, string>()
|
|
75
60
|
/** user fold choices win; default = open when the section holds needs */
|
|
76
61
|
foldOverride = new Map<string, boolean>()
|
|
77
62
|
/** the viewer's fold choices on the table groups (`checks:pass`,
|
|
@@ -262,13 +247,6 @@ export class ColsSvc {
|
|
|
262
247
|
this.st.setSel({ t: 'item', col: colId, id })
|
|
263
248
|
this.actErr = ''
|
|
264
249
|
this.remarkDraft = ''
|
|
265
|
-
this.proofDraft = ''
|
|
266
|
-
this.secretDrafts.clear()
|
|
267
|
-
this.secretNote = ''
|
|
268
|
-
this.secretHeld.clear()
|
|
269
|
-
this.secretErrs.clear()
|
|
270
|
-
this.accountDrafts.clear()
|
|
271
|
-
this.secretAccounts.clear()
|
|
272
250
|
}
|
|
273
251
|
|
|
274
252
|
/** the act's json answer; a refusal throws its text */
|
|
@@ -291,20 +269,10 @@ export class ColsSvc {
|
|
|
291
269
|
}
|
|
292
270
|
}
|
|
293
271
|
|
|
294
|
-
/** the
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
if (ok) runInAction(() => this.select('asks', `ask:done/${file}`))
|
|
299
|
-
return ok
|
|
300
|
-
}
|
|
301
|
-
/** the owner's « I will not do this »: the remark box, when he wrote in it, is his reason; the page is then the
|
|
302
|
-
* declined one */
|
|
303
|
-
async askDecline(file: string): Promise<boolean> {
|
|
304
|
-
const why = this.remarkDraft.trim()
|
|
305
|
-
const ok = (await this.act('ask-decline', { file, ...(why !== '' ? { why } : {}) })) != null
|
|
306
|
-
if (ok) runInAction(() => this.select('asks', `ask:declined/${file}`))
|
|
307
|
-
return ok
|
|
272
|
+
/** the owner's action on a reflection from its index (accept, rework, discard): the thread that hears it, opened when none
|
|
273
|
+
* refers to it yet (wiki tools/shipkit/threads-how-it-fits.md, The model) */
|
|
274
|
+
async reflectionAct(file: string, name: string, text: string): Promise<{ thread: string; opened: boolean } | null> {
|
|
275
|
+
return await this.act<{ thread: string; opened: boolean }>('reflection', { file, name, ...(text.trim() !== '' ? { text: text.trim() } : {}) })
|
|
308
276
|
}
|
|
309
277
|
async remark(body: Record<string, unknown>): Promise<void> {
|
|
310
278
|
const text = this.remarkDraft.trim()
|
|
@@ -313,47 +281,4 @@ export class ColsSvc {
|
|
|
313
281
|
const ok = await this.act('remark', { ...body, text })
|
|
314
282
|
if (ok != null) runInAction(() => { this.remarkDraft = '' })
|
|
315
283
|
}
|
|
316
|
-
|
|
317
|
-
setSecretDraft(name: string, value: string): void {
|
|
318
|
-
this.secretDrafts.set(name, value)
|
|
319
|
-
}
|
|
320
|
-
setAccountDraft(name: string, account: string): void {
|
|
321
|
-
this.accountDrafts.set(name, account)
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/** the pasted value goes to the hub once and leaves the page: the field
|
|
325
|
-
* clears whatever the answer, a failure included. A login's account goes
|
|
326
|
-
* with it, and stays typed when the store refused */
|
|
327
|
-
async storeSecret(file: string, name: string, login = false): Promise<void> {
|
|
328
|
-
const value = this.secretDrafts.get(name) ?? ''
|
|
329
|
-
if (value.trim() === '') return
|
|
330
|
-
const account = login ? (this.accountDrafts.get(name) ?? '').trim() : ''
|
|
331
|
-
if (login && account === '') {
|
|
332
|
-
this.secretErrs.set(name, 'type the account too: the email or user name you sign in with')
|
|
333
|
-
return
|
|
334
|
-
}
|
|
335
|
-
this.secretDrafts.delete(name)
|
|
336
|
-
this.secretNote = ''
|
|
337
|
-
this.secretErrs.delete(name)
|
|
338
|
-
let a: SecretAnswer
|
|
339
|
-
try {
|
|
340
|
-
a = await this.post<SecretAnswer>('ask-secret', { file, name, value, ...(login ? { account } : {}) })
|
|
341
|
-
} catch (e) {
|
|
342
|
-
runInAction(() => this.secretErrs.set(name, ownTrouble(e, this.st.home.machine)))
|
|
343
|
-
return
|
|
344
|
-
}
|
|
345
|
-
runInAction(() => {
|
|
346
|
-
// a closed ask: its page is now the done one
|
|
347
|
-
if (a.check === 'passed' || a.check === 'in') this.select('asks', `ask:done/${file}`)
|
|
348
|
-
else this.secretHeld.set(name, a.held)
|
|
349
|
-
if (a.account != null) {
|
|
350
|
-
this.secretAccounts.set(name, a.account)
|
|
351
|
-
this.accountDrafts.delete(name)
|
|
352
|
-
}
|
|
353
|
-
this.secretNote = a.check === 'in' ? 'every value is in: the ask is closed'
|
|
354
|
-
: a.check === 'passed' ? 'the check passes: the ask is closed'
|
|
355
|
-
: a.check === 'failed' ? `the check still fails: ${a.why}` : ''
|
|
356
|
-
})
|
|
357
|
-
void this.poll(true).catch(() => {})
|
|
358
|
-
}
|
|
359
284
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// a repo's commands page (wiki tools/shipkit/hub.md, The commands page): the command the tree opened, its examples,
|
|
2
2
|
// its args and its runs, and the shown run's log as it prints. The tree is the list (tree-build.ts commandResources)
|
|
3
|
+
import { CardHead } from '../card-head.tsx'
|
|
3
4
|
import { observer } from 'mobx-react-lite'
|
|
4
5
|
import { useEffect, useRef } from 'react'
|
|
5
6
|
import type { CommandRow } from '../../../cli/cmd_Commands.ts'
|
|
@@ -112,7 +113,7 @@ export const CommandsPage = observer(({ app }: { app: RepoSt }) => {
|
|
|
112
113
|
<LogPane app={app} c={c} />
|
|
113
114
|
{runs.length > 0 ? (
|
|
114
115
|
<section className="csec">
|
|
115
|
-
<
|
|
116
|
+
<CardHead title={row == null ? 'the last runs' : 'its last runs'} n={runs.length} />
|
|
116
117
|
{runs.map((r) => <RunLine key={r.id} app={app} r={r} />)}
|
|
117
118
|
</section>
|
|
118
119
|
) : null}
|
|
@@ -30,3 +30,86 @@
|
|
|
30
30
|
.pctext{color:var(--ink);opacity:.8}
|
|
31
31
|
.pchip.accent .pctext,.pchip.warn .pctext{color:inherit;opacity:1}
|
|
32
32
|
.pcage{color:var(--dim);opacity:.75}
|
|
33
|
+
|
|
34
|
+
/* THE head of a group of rows (section-head.tsx), on every page: a full width band a step darker than the list, the
|
|
35
|
+
name in caps, the count beside it, what waits inside at its end; a fold head leads with the caret and lights in the
|
|
36
|
+
accent on hover. No other sheet gives a head a look (tests/hub-section-head.test.ts): a page places it, never
|
|
37
|
+
draws it. A group inside a group steps in by --d */
|
|
38
|
+
.sh{display:flex;align-items:center;gap:var(--s1);width:100%;min-height:26px;margin:0;padding:0 var(--s1) 0 calc(var(--s1) + var(--d,0) * var(--s3));
|
|
39
|
+
border:0;border-radius:0;background:var(--bg-band);color:var(--ink);font:700 11px/1.2 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;text-align:left}
|
|
40
|
+
.sh:not(:first-child){margin-top:var(--s2)}
|
|
41
|
+
button.sh{cursor:pointer}
|
|
42
|
+
button.sh:hover{border:0;background:var(--bg-band);color:var(--accent)}
|
|
43
|
+
button.sh:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}
|
|
44
|
+
.shl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sht,inherit)}
|
|
45
|
+
.shn{flex:1;min-width:0;color:var(--dim);font-weight:400;letter-spacing:0;font-variant-numeric:tabular-nums}
|
|
46
|
+
.sh > :not(.caret):not(.shl):not(.shn){flex:none;letter-spacing:0;text-transform:none}
|
|
47
|
+
|
|
48
|
+
/* THE title of a card (card-head.tsx), on every page: the name bold in the case it is written in, its count and a line
|
|
49
|
+
of what it holds dim beside it, what acts on the card at its end; a fold head leads with the caret and lights the
|
|
50
|
+
name in the accent on hover. No other sheet gives it a look (tests/hub-caret-card-head.test.ts): a page places it,
|
|
51
|
+
never draws it. A head over a group of rows in a list is the other control, .sh */
|
|
52
|
+
.ch{display:flex;align-items:center;gap:var(--s2);min-width:0;min-height:32px;margin:0;padding:0 var(--s3);font-size:13px;line-height:1.3;color:var(--ink)}
|
|
53
|
+
.chf{all:unset;box-sizing:border-box;flex:1;min-width:0;align-self:stretch;display:flex;align-items:center;gap:var(--s2);cursor:pointer}
|
|
54
|
+
.chf:hover .chl{color:var(--accent)}
|
|
55
|
+
.chf:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}
|
|
56
|
+
.chl{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
|
|
57
|
+
.chn{flex:none;color:var(--dim);font-variant-numeric:tabular-nums}
|
|
58
|
+
.chm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dim);font-size:12px}
|
|
59
|
+
.ch > :not(.chf):not(.chl):not(.chn):not(.chm){flex:none}
|
|
60
|
+
/* THE thread row of every list (thread-row.tsx), its look here and nowhere else. A row with a verb of his (.waiting)
|
|
61
|
+
keeps full contrast and its glyph, one with none (.idle) reads dim. Two lines by default: the title, the muted meta
|
|
62
|
+
under it, a 40px picture at the end. `.one` in a list at least 320px wide (the title keeps about 30 characters):
|
|
63
|
+
one line, the title cut with an ellipsis, at the right only the pill, the verb glyph, the holder's light and the
|
|
64
|
+
age (the rest in the title's tooltip), a 20px picture first. Rows part by a hairline; the open one wears the left
|
|
65
|
+
bar's selection (.idrow.on); one hue a dot, one pill at most */
|
|
66
|
+
.rv-row{display:flex;gap:var(--s2);align-items:flex-start;padding:var(--s2) var(--s3);border-bottom:1px solid var(--line);cursor:pointer;color:var(--ink);text-decoration:none}
|
|
67
|
+
.rv-row:hover{background:var(--panel2)}
|
|
68
|
+
.rv-row.on{background:var(--sel);box-shadow:inset 3px 0 0 var(--accent)}
|
|
69
|
+
.rv-row.muted:not(.on) > *{opacity:.55}
|
|
70
|
+
.trbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--s0)}
|
|
71
|
+
.rv-rowtitle{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
|
|
72
|
+
.rv-row.waiting .rv-rowtitle{font-weight:500}
|
|
73
|
+
.rv-row.idle .rv-rowtitle{color:var(--dim)}
|
|
74
|
+
.rv-row.idle.on .rv-rowtitle{color:var(--ink)}
|
|
75
|
+
.rv-row .trthumb{order:1}
|
|
76
|
+
@container (min-width:320px){
|
|
77
|
+
.rv-row.one{align-items:center;padding:var(--s1) var(--s2) var(--s1) var(--s3)}
|
|
78
|
+
.rv-row.one .trbody{flex-direction:row;align-items:center;gap:var(--s2)}
|
|
79
|
+
.rv-row.one .rv-rowtitle{flex:1 1 0;min-width:0;display:block;white-space:nowrap;text-overflow:ellipsis;line-height:18px}
|
|
80
|
+
.rv-row.one .trmeta{flex:none;flex-wrap:nowrap;gap:0 var(--s1)}
|
|
81
|
+
.rv-row.one .trm:not(.trholder):not(.trage),.rv-row.one .trholder .rv-holderchip{display:none}
|
|
82
|
+
.rv-row.one .trm::before{content:none}
|
|
83
|
+
.rv-row.one .trthumb{order:0;width:20px;height:20px;border-radius:3px;background-size:6px 6px}
|
|
84
|
+
}
|
|
85
|
+
.trverb{flex:none;display:inline-flex;color:var(--accent)}
|
|
86
|
+
.trverb .hico{width:13px;height:13px;color:inherit}
|
|
87
|
+
/* the icon of what waits on him first (a question, a secret field, a reflection), muted at the head of the title */
|
|
88
|
+
.trglyph{display:inline-flex;vertical-align:-2px;margin-right:var(--s1);color:var(--dim)}
|
|
89
|
+
.trglyph .hico{width:14px;height:14px}
|
|
90
|
+
.rv-row.waiting .trglyph{color:var(--ink)}
|
|
91
|
+
/* THE verb filter of a thread list (all, then judge, answer, do, read): one row that never wraps, each verb its glyph
|
|
92
|
+
(.trverb) and its count, its word only where the list is wide enough (the list column is a size container) */
|
|
93
|
+
.verbs{display:flex;flex-wrap:nowrap;margin:var(--s1) var(--s2) 0;min-width:0}
|
|
94
|
+
.verbs button{flex:1 1 0;min-width:0;justify-content:center;gap:var(--s0);padding:0 var(--s1);white-space:nowrap}
|
|
95
|
+
.verbs button .trverb{color:inherit}
|
|
96
|
+
.verbs button:not(.on) .trverb{color:var(--ink)}
|
|
97
|
+
.verbs .verbw{display:none}
|
|
98
|
+
.verbs .verbn{font-size:11px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}
|
|
99
|
+
@container (min-width:340px){.verbs .verbw{display:inline}}
|
|
100
|
+
.trunread{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:var(--s1);vertical-align:middle}
|
|
101
|
+
.trmeta{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--s1);min-width:0;font-size:11.5px;line-height:16px;color:var(--dim);white-space:nowrap}
|
|
102
|
+
.trm{min-width:0;overflow:hidden;text-overflow:ellipsis}
|
|
103
|
+
.trm + .trm::before{content:'·';margin-right:var(--s1)}
|
|
104
|
+
.trholder,.trage{flex:none}
|
|
105
|
+
.trmeta .ago{font-size:inherit}
|
|
106
|
+
.trturn{flex:none;width:6px;height:6px;border-radius:50%;background:var(--dim)}
|
|
107
|
+
.trturn.turn-yours{background:var(--accent)}
|
|
108
|
+
.trturn.turn-working{background:var(--warn)}
|
|
109
|
+
.trturn.turn-waiting{background:transparent;border:1.5px solid var(--dim);box-sizing:border-box}
|
|
110
|
+
.trturn.turn-done{background:var(--ok)}
|
|
111
|
+
.trturn.turn-aside{background:transparent;border:1px solid var(--dim);box-sizing:border-box}
|
|
112
|
+
.trpill{flex:none;font-size:10.5px;font-weight:600;line-height:14px;padding:0 var(--s1);border-radius:3px}
|
|
113
|
+
.trpill.red{color:var(--red);background:color-mix(in srgb,var(--red) 16%,transparent)}
|
|
114
|
+
.trpill.warn{color:var(--warn);background:color-mix(in srgb,var(--warn) 16%,transparent)}
|
|
115
|
+
.trthumb{flex:none;width:40px;height:40px;border-radius:4px;object-fit:cover;background:repeating-conic-gradient(var(--chk1) 0 25%,var(--chk2) 0 50%) 0 0/12px 12px}
|
|
@@ -24,9 +24,25 @@ export class FrameCache {
|
|
|
24
24
|
this.kept = [{ repo, id, ...(gl ? { gl: true as const } : {}) }, ...rest].slice(0, this.cap)
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/** the secret fields shown now: while one shows, no repo page stays loaded, since a page of the hub's origin could
|
|
28
|
+
* read the field (wiki tools/shipkit/threads-asks.md, The secret field) */
|
|
29
|
+
holds = 0
|
|
30
|
+
|
|
31
|
+
/** a secret field shows: every kept frame unloads until the returned release */
|
|
32
|
+
hold(): () => void {
|
|
33
|
+
this.holds++
|
|
34
|
+
let released = false
|
|
35
|
+
return () => {
|
|
36
|
+
if (released) return
|
|
37
|
+
released = true
|
|
38
|
+
this.holds--
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
/** a repo's kept frames in the order they stand in the page: by id, never by age, so a switch never moves one (a
|
|
28
|
-
* moved iframe loads again) */
|
|
43
|
+
* moved iframe loads again); none while a secret field shows */
|
|
29
44
|
of(repo: string): string[] {
|
|
45
|
+
if (this.holds > 0) return []
|
|
30
46
|
return this.kept
|
|
31
47
|
.filter((f) => f.repo === repo)
|
|
32
48
|
.map((f) => f.id)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// and its commits of the last week (HEAD's last one when the week holds
|
|
3
3
|
// none), with the ways out to VS Code and Fork. Every repo at once: the
|
|
4
4
|
// activity page (⌘L).
|
|
5
|
+
import { CardHead } from './card-head.tsx'
|
|
5
6
|
import { observer } from 'mobx-react-lite'
|
|
6
7
|
import { useEffect } from 'react'
|
|
7
8
|
import { isMainBranch, upstreamWords } from '../../home/activity-shape.ts'
|
|
@@ -39,13 +40,13 @@ export const GitPage = observer(({ app }: { app: RepoSt }) => {
|
|
|
39
40
|
<div className="cf"><div className="ck">upstream</div><div className="cv">{upstreamWords(r)}</div></div>
|
|
40
41
|
</div>
|
|
41
42
|
<section className="csec">
|
|
42
|
-
<
|
|
43
|
+
<CardHead title="not committed" n={r.files.length} />
|
|
43
44
|
{r.files.length === 0 ? <div className="dim">nothing: the tree is clean</div> : (
|
|
44
45
|
<table className="gitfiles"><tbody>{r.files.map((f) => <tr key={f.path}><td className={`gitkind ${f.kind}`}>{KIND_WORD[f.kind]}</td><td className="gitpath">{f.path}</td></tr>)}</tbody></table>
|
|
45
46
|
)}
|
|
46
47
|
</section>
|
|
47
48
|
<section className="csec">
|
|
48
|
-
<
|
|
49
|
+
<CardHead title="commits, last week" n={r.commits.length} />
|
|
49
50
|
<table className="gitcommits">
|
|
50
51
|
<tbody>
|
|
51
52
|
{r.commits.map((c) => <tr key={c.sha}><Commit c={c} now={now} old={false} /></tr>)}
|