rvlib-shipkit 2.30.0 → 2.31.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 +15 -0
- package/README.md +15 -0
- package/package.json +1 -1
- package/src/advisors/acts.ts +174 -83
- package/src/advisors/advice.ts +201 -24
- package/src/advisors/advisor-view.ts +60 -12
- package/src/advisors/app-graph.ts +7 -1
- package/src/advisors/cf-api.ts +44 -0
- package/src/advisors/copy-truth.ts +49 -0
- package/src/advisors/dir-bucket.ts +69 -0
- package/src/advisors/door-child.ts +112 -0
- package/src/advisors/door-probe.ts +88 -0
- package/src/advisors/door-serve.ts +52 -0
- package/src/advisors/door.ts +82 -23
- package/src/advisors/edge/api.ts +14 -7
- package/src/advisors/edge/bucket.ts +10 -1
- package/src/advisors/edge/handler.ts +85 -44
- package/src/advisors/edge/here.ts +63 -0
- package/src/advisors/edge/pages.ts +87 -0
- package/src/advisors/edge/shell.ts +5 -3
- package/src/advisors/edge/sign-in.ts +144 -0
- package/src/advisors/edge/status.ts +28 -6
- package/src/advisors/edge/types.ts +25 -17
- package/src/advisors/expose.ts +225 -119
- package/src/advisors/here.ts +66 -0
- package/src/advisors/invite-send.ts +176 -0
- package/src/advisors/invite.ts +49 -0
- package/src/advisors/job.ts +89 -11
- package/src/advisors/login.ts +66 -0
- package/src/advisors/owner-name.ts +37 -0
- package/src/advisors/owner-store.ts +267 -62
- package/src/advisors/photos.ts +10 -50
- package/src/advisors/project.ts +92 -48
- package/src/advisors/rights.ts +152 -0
- package/src/advisors/routes.ts +321 -89
- package/src/advisors/scan.ts +28 -2
- package/src/advisors/setup-run.ts +132 -0
- package/src/advisors/share-trace.ts +78 -0
- package/src/advisors/sync.ts +197 -82
- package/src/advisors/tunnel.ts +118 -0
- package/src/advisors/users-router.ts +186 -0
- package/src/agent-time/accounts-usage-disk.ts +45 -3
- package/src/agent-time/claude-sessions.ts +63 -3
- package/src/agent-time/registry.ts +130 -46
- package/src/agent-time/store.ts +195 -32
- package/src/annex/born.ts +2 -9
- package/src/asks/ask-carry.ts +14 -7
- package/src/asks/ask-edit.ts +49 -0
- package/src/asks/ask-since.ts +74 -0
- package/src/asks/ask-store.ts +70 -29
- package/src/asks/ask-words-fold.ts +2 -2
- package/src/checks/SK001-package-json-shape.check.ts +12 -3
- package/src/checks/SK003-claude-md-shape.check.ts +78 -20
- package/src/checks/SK004-gitignore-policy.check.ts +7 -4
- package/src/checks/SK008-reviewer-agent.check.ts +1 -1
- package/src/checks/SK012-config-barrel-import.check.ts +1 -1
- package/src/checks/SK032-ignored-inputs.check.ts +9 -5
- package/src/checks/SK036-draft-media-size.check.ts +4 -3
- package/src/checks/SK038-speaks-as.check.ts +6 -5
- package/src/checks/SK039-vscode-watch-generated.check.ts +5 -25
- package/src/checks/SK044-behind-upstream.check.ts +2 -1
- package/src/checks/SK052-url-old-words.check.ts +56 -0
- package/src/checks/SK053-tools.check.ts +46 -0
- package/src/checks/SK054-agent-allow-list.check.ts +142 -0
- package/src/cli/clip.ts +44 -0
- package/src/cli/cmd_Advisors.ts +310 -142
- package/src/cli/cmd_Annex.ts +1 -1
- package/src/cli/cmd_Asks.ts +124 -22
- package/src/cli/cmd_Assets.ts +1 -1
- package/src/cli/cmd_Backup.ts +26 -67
- package/src/cli/cmd_BackupTargets.ts +106 -0
- package/src/cli/cmd_Bump.ts +1 -1
- package/src/cli/cmd_CacheAudit.ts +1 -1
- package/src/cli/cmd_Calls.ts +1 -1
- package/src/cli/cmd_Capacity.ts +1 -1
- package/src/cli/cmd_Check.ts +2 -2
- package/src/cli/cmd_Checks.ts +2 -1
- package/src/cli/cmd_Ci.ts +1 -1
- package/src/cli/cmd_Commands.ts +1 -1
- package/src/cli/cmd_ConfigKeys.ts +1 -1
- package/src/cli/cmd_Contracts.ts +1 -1
- package/src/cli/cmd_CrossRepoActivity.ts +1 -6
- package/src/cli/cmd_Db.ts +47 -3
- package/src/cli/cmd_Drill.ts +1 -1
- package/src/cli/cmd_Drive.ts +259 -0
- package/src/cli/cmd_Fleet.ts +1 -1
- package/src/cli/cmd_FleetContext.ts +45 -0
- package/src/cli/cmd_FleetPush.ts +1 -1
- package/src/cli/cmd_FleetUpdate.ts +104 -0
- package/src/cli/cmd_GlobalContext.ts +1 -1
- package/src/cli/cmd_GlobalProcesses.ts +6 -4
- package/src/cli/cmd_History.ts +8 -27
- package/src/cli/cmd_Home.ts +4 -4
- package/src/cli/cmd_Hooks.ts +3 -12
- package/src/cli/cmd_Hq.ts +54 -80
- package/src/cli/cmd_Init.ts +1 -1
- package/src/cli/cmd_Insights.ts +1 -1
- package/src/cli/cmd_Keys.ts +1 -1
- package/src/cli/cmd_Lanes.ts +5 -4
- package/src/cli/cmd_Machines.ts +1 -1
- package/src/cli/cmd_Media.ts +6 -19
- package/src/cli/cmd_Messages.ts +1 -1
- package/src/cli/cmd_Mv.ts +1 -1
- package/src/cli/cmd_Needs.ts +1 -1
- package/src/cli/cmd_Orchestrator.ts +7 -16
- package/src/cli/cmd_OrchestratorRole.ts +10 -21
- package/src/cli/cmd_Overview.ts +1 -1
- package/src/cli/cmd_Pb.ts +1 -1
- package/src/cli/cmd_Planned.ts +1 -1
- package/src/cli/cmd_Rec.ts +1 -1
- package/src/cli/cmd_Reflect.ts +3 -3
- package/src/cli/cmd_Release.ts +1 -1
- package/src/cli/cmd_Releases.ts +1 -1
- package/src/cli/cmd_Review.ts +318 -204
- package/src/cli/cmd_Secret.ts +84 -2
- package/src/cli/cmd_Serve.ts +1 -1
- package/src/cli/cmd_Setup.ts +30 -0
- package/src/cli/cmd_Shot.ts +1 -1
- package/src/cli/cmd_Sign.ts +1 -1
- package/src/cli/cmd_Smoke.ts +1 -1
- package/src/cli/cmd_Social.ts +6 -3
- package/src/cli/cmd_SocialDrafts.ts +20 -6
- package/src/cli/cmd_Sound.ts +1 -1
- package/src/cli/cmd_Space.ts +4 -4
- package/src/cli/cmd_Start.ts +1 -1
- package/src/cli/cmd_Status.ts +1 -1
- package/src/cli/cmd_ThreadHolds.ts +1 -1
- package/src/cli/cmd_ThreadKinds.ts +1 -1
- package/src/cli/cmd_ThreadReflect.ts +3 -3
- package/src/cli/cmd_ThreadSyncNeeds.ts +1 -1
- package/src/cli/cmd_Time.ts +1 -1
- package/src/cli/cmd_Tmp.ts +1 -1
- package/src/cli/cmd_TraceAudit.ts +1 -1
- package/src/cli/cmd_Trailer.ts +1 -1
- package/src/cli/cmd_Tui.ts +1 -1
- package/src/cli/cmd_Urls.ts +61 -9
- package/src/cli/cmd_Vault.ts +1 -1
- package/src/cli/cmd_Veille.ts +1 -1
- package/src/cli/cmd_When.ts +1 -1
- package/src/cli/cmd_Wiki.ts +5 -2
- package/src/cli/cmd_Worktrees.ts +1 -1
- package/src/cli/family-pages.ts +1 -0
- package/src/cli/inbox-hook-run.ts +46 -20
- package/src/cli/line.ts +131 -0
- package/src/cli/registry-cli.ts +100 -0
- package/src/cli/registry-heads.ts +448 -0
- package/src/cli/registry.ts +385 -254
- package/src/cli/review-here.ts +4 -4
- package/src/cli.ts +45 -33
- package/src/collections/collection-types.ts +3 -0
- package/src/collections/providers.ts +6 -3
- package/src/collections/review.ts +3 -4
- package/src/context/context-line.ts +29 -0
- package/src/context/context-view.ts +34 -0
- package/src/context/project-context.ts +144 -0
- package/src/core/agent-allow-policy.ts +99 -0
- package/src/core/agent-spawn.ts +2 -0
- package/src/core/capacity.ts +3 -2
- package/src/core/daemon-port.ts +10 -0
- package/src/core/es2022.ts +19 -0
- package/src/core/footprint.ts +35 -0
- package/src/core/git-bin.ts +18 -0
- package/src/core/git-root.ts +40 -4
- package/src/core/git.ts +22 -0
- package/src/core/hard-reset.ts +7 -1
- package/src/core/house-config-text.ts +47 -0
- package/src/core/house-layout.ts +4 -0
- package/src/core/identities-path.ts +67 -0
- package/src/core/identities-root.ts +26 -0
- package/src/core/instance.ts +1 -1
- package/src/core/jobs.ts +1 -4
- package/src/core/layout.ts +3 -0
- package/src/core/loop-watch.ts +28 -5
- package/src/core/machine-db.ts +1 -8
- package/src/core/machine-name.ts +31 -0
- package/src/core/memory-watch.ts +56 -8
- package/src/core/on-loop.ts +10 -7
- package/src/core/pid-alive.ts +11 -0
- package/src/core/proc-path.ts +42 -0
- package/src/core/retention.ts +2 -2
- package/src/core/role-policy.ts +6 -7
- package/src/core/run-dirs.ts +2 -5
- package/src/core/runs.ts +5 -3
- package/src/core/scope.ts +44 -0
- package/src/core/scratch-objects.ts +1 -1
- package/src/core/slot-env.ts +4 -0
- package/src/core/slots.ts +2 -2
- package/src/core/spawn-timeout.ts +9 -3
- package/src/core/tools.ts +20 -0
- package/src/core/tree-watch.ts +304 -0
- package/src/core/window-policy.ts +132 -0
- package/src/drives/context.ts +29 -0
- package/src/drives/drives-view.ts +121 -0
- package/src/drives/file.ts +89 -0
- package/src/drives/local-folder.ts +107 -0
- package/src/drives/login.ts +181 -0
- package/src/drives/named.ts +33 -0
- package/src/drives/rclone.ts +100 -0
- package/src/drives/reach.ts +73 -0
- package/src/drives/routes.ts +89 -0
- package/src/drives/shares.ts +292 -0
- package/src/fleet/context-fleet.ts +83 -0
- package/src/fleet/follow.ts +172 -0
- package/src/gate/builtin-checks-dir.ts +32 -0
- package/src/gate/discover-checks.ts +9 -32
- package/src/gate/pre-commit-discovery.ts +214 -24
- package/src/gate/run-fixers.ts +8 -0
- package/src/home/advisors-tunnel-start.ts +9 -0
- package/src/home/autostart.ts +61 -17
- package/src/home/backup-status.ts +366 -0
- package/src/home/backup-verdict.ts +19 -0
- package/src/home/daemon-jobs.ts +188 -45
- package/src/home/database-words.ts +19 -2
- package/src/home/databases.ts +72 -25
- package/src/home/drives-deps.ts +54 -0
- package/src/home/follow-run.ts +146 -0
- package/src/home/global-context.ts +26 -22
- package/src/home/global-units.ts +3 -1
- package/src/home/gui-app/ShipkitGui.swift +1595 -17
- package/src/home/gui-app.ts +12 -16
- package/src/home/handoff.ts +5 -3
- package/src/home/handover.ts +2 -10
- package/src/home/home-paths.ts +16 -7
- package/src/home/home-routes.ts +99 -29
- package/src/home/inbox-shape.ts +3 -3
- package/src/home/machine-fold.ts +2 -10
- package/src/home/machine-host.ts +3 -17
- package/src/home/machine-stores.ts +8 -7
- package/src/home/owner-switch-route.ts +33 -0
- package/src/home/page-build.ts +20 -4
- package/src/home/page-files.ts +79 -0
- package/src/home/pm-switch.ts +10 -0
- package/src/home/pm.ts +13 -1
- package/src/home/process-apps.ts +15 -3
- package/src/home/push-sources.ts +17 -5
- package/src/home/resume.ts +8 -6
- package/src/home/run-daemon.ts +69 -6
- package/src/home/run-pm.ts +3 -3
- package/src/home/secrets-context.ts +119 -0
- package/src/home/serve-web.ts +12 -7
- package/src/home/shipkit-mark.ts +26 -0
- package/src/home/space-page.ts +1 -1
- package/src/home/space-route.ts +3 -10
- package/src/home/supervise.ts +2 -9
- package/src/home/vault-page.ts +39 -18
- package/src/home/vault-reveal.ts +2 -1
- package/src/home/web-places.ts +5 -3
- package/src/hooks/commit-run.ts +420 -0
- package/src/hooks/git-hook.ts +49 -0
- package/src/hooks/held-calls.ts +104 -0
- package/src/hooks/hook-config.ts +104 -0
- package/src/hooks/hook-gates.ts +15 -9
- package/src/hooks/leak-guard.ts +15 -14
- package/src/hooks/one-way-in-guard.ts +12 -3
- package/src/hooks/pre-commit-checks.ts +64 -0
- package/src/hooks/root-identity.ts +15 -18
- package/src/hooks/run-hooks.ts +123 -296
- package/src/hooks/shared-file.ts +18 -15
- package/src/hooks/shell-writes.ts +6 -100
- package/src/hooks/staged.ts +245 -18
- package/src/hooks/write-log.ts +122 -28
- package/src/house/project-gutter.ts +32 -8
- package/src/hq/backup-targets.ts +74 -0
- package/src/hq/daemon-db.ts +177 -0
- package/src/hq/door-route.ts +5 -5
- package/src/hq/door.ts +30 -16
- package/src/hq/files-send.ts +23 -17
- package/src/hq/follow-fact.ts +66 -0
- package/src/hq/forgotten-log.ts +3 -1
- package/src/hq/history-check.ts +9 -0
- package/src/hq/history-send.ts +6 -22
- package/src/hq/holds-shape.ts +42 -0
- package/src/hq/hq-db.ts +16 -26
- package/src/hq/hq-holds.ts +181 -0
- package/src/hq/hq-local.ts +66 -47
- package/src/hq/hq-role.ts +150 -0
- package/src/hq/hq-routes.ts +15 -3
- package/src/hq/hq-store.ts +43 -10
- package/src/hq/item-direct.ts +57 -0
- package/src/hq/item-shapes.ts +54 -0
- package/src/hq/kinds/index.ts +2 -1
- package/src/hq/kinds/item-gone.ts +20 -12
- package/src/hq/kinds/item-msg.ts +21 -6
- package/src/hq/kinds/item.ts +22 -13
- package/src/hq/kinds/items-read.ts +4 -0
- package/src/hq/kinds/kind.ts +9 -0
- package/src/hq/kinds/presence.ts +21 -3
- package/src/hq/kinds/prompt.ts +1 -0
- package/src/hq/kinds/reflection.ts +1 -0
- package/src/hq/kinds/report.ts +8 -3
- package/src/hq/kinds/thread-event.ts +105 -0
- package/src/hq/lead-order.ts +5 -5
- package/src/hq/machine-key.ts +10 -3
- package/src/hq/machine-notes.ts +3 -2
- package/src/hq/outbox.ts +2 -153
- package/src/hq/owner-switch.ts +61 -0
- package/src/hq/replica.ts +165 -18
- package/src/hq/report-facts.ts +26 -3
- package/src/hq/report.ts +30 -6
- package/src/hq/shapes-words.ts +31 -0
- package/src/hq/switch.ts +29 -60
- package/src/hq/terminal-hop.ts +1 -1
- package/src/hq/thread-events.ts +91 -0
- package/src/hq/thread-sync.ts +29 -48
- package/src/http/door-forward.ts +3 -3
- package/src/http/hop-names.ts +3 -3
- package/src/http/owner-word.ts +7 -2
- package/src/identities/collection.ts +2 -3
- package/src/identities/identities.ts +43 -6
- package/src/init-repo.ts +12 -0
- package/src/ledger/db.ts +19 -6
- package/src/ledger/git-scan.ts +23 -9
- package/src/ledger/live-runs.ts +1 -12
- package/src/ledger/record-kept.ts +40 -12
- package/src/ledger/run-log.ts +2 -1
- package/src/media-store/backup/daemon.ts +37 -22
- package/src/media-store/backup/facts.ts +63 -0
- package/src/media-store/backup/prune.ts +2 -5
- package/src/media-store/backup/restore.ts +15 -4
- package/src/media-store/backup/retention.ts +2 -2
- package/src/media-store/backup/sources.ts +23 -105
- package/src/media-store/backup/ssh-space.ts +202 -0
- package/src/media-store/backup/ssh-target.ts +74 -0
- package/src/media-store/backup/target-send.ts +162 -0
- package/src/media-store/backup/watch.ts +26 -19
- package/src/media-store/copy/config.ts +5 -4
- package/src/media-store/copy/copy.ts +11 -6
- package/src/media-store/copy/proof.ts +17 -10
- package/src/media-store/copy/snapshot.ts +29 -22
- package/src/media-store/copy/store.ts +2 -10
- package/src/media-store/copy/stream.ts +7 -2
- package/src/media-store/daemon.ts +8 -5
- package/src/media-store/db.ts +6 -1
- package/src/media-store/forget-one.ts +14 -3
- package/src/media-store/hq-find.ts +1 -3
- package/src/media-store/hq-send.ts +4 -5
- package/src/orchestrator/brief.md +1 -1
- package/src/orchestrator/guards.ts +0 -3
- package/src/orchestrator/lead-shape.ts +5 -4
- package/src/orchestrator/now.ts +1 -1
- package/src/orchestrator/places-look.ts +45 -17
- package/src/orchestrator/places-shape.ts +17 -2
- package/src/orchestrator/places.ts +1 -1
- package/src/orchestrator/presence.ts +15 -5
- package/src/orchestrator/role-shape.ts +12 -21
- package/src/orchestrator/role.ts +7 -58
- package/src/orchestrator/routes.ts +26 -17
- package/src/orchestrator/sessions-shape.ts +48 -3
- package/src/orchestrator/sessions.ts +5 -8
- package/src/orchestrator/start.ts +3 -10
- package/src/orchestrator/started.ts +1 -1
- package/src/orchestrator/talk-key.ts +21 -0
- package/src/orchestrator/unheard.ts +1 -1
- package/src/recordings/recorder-app/Editor.swift +6 -0
- package/src/recordings/recorder-app/main.swift +3 -0
- package/src/reflections/reflection-close.ts +2 -1
- package/src/reflections/reflections-queue.ts +9 -6
- package/src/release/public-clean.ts +40 -15
- package/src/repo-config.ts +18 -6
- package/src/review/answer-kinds.ts +15 -3
- package/src/review/band.ts +53 -16
- package/src/review/cell-copy.ts +27 -0
- package/src/review/cells.ts +246 -35
- package/src/review/events.ts +24 -4
- package/src/review/expect.ts +128 -0
- package/src/review/file-tags.ts +9 -0
- package/src/review/folders.ts +216 -0
- package/src/review/format.ts +113 -25
- package/src/review/gone.ts +10 -86
- package/src/review/hook-ask.ts +58 -0
- package/src/review/inbox-hook.ts +6 -3
- package/src/review/inbox-read.ts +81 -13
- package/src/review/instruction-guards.ts +56 -1
- package/src/review/instructions.ts +25 -1
- package/src/review/item-db.ts +112 -28
- package/src/review/item-hq.ts +119 -0
- package/src/review/item-rows.ts +96 -52
- package/src/review/kind-catalog.ts +2 -0
- package/src/review/kinds.ts +7 -4
- package/src/review/live-post.ts +20 -6
- package/src/review/live-view.ts +18 -1
- package/src/review/media-away.ts +35 -0
- package/src/review/mentions.ts +3 -6
- package/src/review/model.ts +124 -12
- package/src/review/notes.ts +4 -4
- package/src/review/object-read.ts +26 -7
- package/src/review/parties.ts +16 -0
- package/src/review/phone-push.ts +11 -10
- package/src/review/previews-job.ts +49 -0
- package/src/review/previews.ts +50 -28
- package/src/review/push.ts +24 -40
- package/src/review/referring.ts +2 -2
- package/src/review/reflection-object.ts +24 -11
- package/src/review/refs.ts +143 -0
- package/src/review/reply-guards.ts +71 -0
- package/src/review/routes.ts +87 -31
- package/src/review/search-index.ts +6 -10
- package/src/review/search-job.ts +4 -6
- package/src/review/search-ocr.ts +1 -1
- package/src/review/secret-route.ts +13 -9
- package/src/review/store-index.ts +1 -1
- package/src/review/store.ts +171 -556
- package/src/review/supersede.ts +3 -3
- package/src/review/take-back.ts +1 -2
- package/src/review/thread-code.ts +101 -0
- package/src/review/thread-md.ts +127 -0
- package/src/review/thread-query.ts +67 -0
- package/src/review/threads.ts +91 -16
- package/src/review/traces.ts +17 -5
- package/src/review/verdict-items.ts +4 -4
- package/src/review/view-layout.ts +3 -0
- package/src/review/wait.ts +2 -2
- package/src/review/wakes.ts +7 -3
- package/src/review/watchers.ts +1 -10
- package/src/review/working-guards.ts +39 -0
- package/src/scaffold/jsonc-spans.ts +42 -0
- package/src/scaffold/starter-house.ts +85 -0
- package/src/secrets/about-words.ts +33 -0
- package/src/secrets/archive.ts +2 -2
- package/src/secrets/audit-run.ts +53 -0
- package/src/secrets/audit.ts +407 -0
- package/src/secrets/changed-mark.ts +15 -0
- package/src/secrets/clip.ts +29 -0
- package/src/secrets/held.ts +4 -4
- package/src/secrets/lapse.ts +1 -1
- package/src/secrets/list.ts +9 -4
- package/src/secrets/read.ts +5 -1
- package/src/secrets/ref-state.ts +18 -0
- package/src/secrets/registry-rows.ts +18 -0
- package/src/secrets/secret-ref.ts +42 -0
- package/src/secrets/token-siblings.ts +60 -0
- package/src/secrets/who-reads.ts +25 -20
- package/src/serve/frame-part.ts +2 -1
- package/src/serve/hook-thread.ts +37 -0
- package/src/serve/hook-work.ts +92 -0
- package/src/serve/hook-worker.ts +57 -0
- package/src/serve/hub-app/activity-view.tsx +6 -6
- package/src/serve/hub-app/admin-view.tsx +7 -6
- package/src/serve/hub-app/advisor-app.tsx +77 -14
- package/src/serve/hub-app/advisor-face.tsx +21 -7
- package/src/serve/hub-app/advisor-host.ts +102 -10
- package/src/serve/hub-app/advisors-model.ts +234 -0
- package/src/serve/hub-app/advisors-rights.tsx +66 -0
- package/src/serve/hub-app/advisors-st.ts +430 -34
- package/src/serve/hub-app/advisors-view.tsx +330 -233
- package/src/serve/hub-app/advisors.css +134 -21
- package/src/serve/hub-app/app-bridge.ts +95 -5
- package/src/serve/hub-app/ask-steps.tsx +6 -3
- package/src/serve/hub-app/auto-text.tsx +44 -4
- package/src/serve/hub-app/backups-st.ts +55 -0
- package/src/serve/hub-app/backups-view.tsx +115 -0
- package/src/serve/hub-app/backups.css +33 -0
- package/src/serve/hub-app/card-head.tsx +1 -1
- package/src/serve/hub-app/check-view.tsx +7 -7
- package/src/serve/hub-app/col-card.tsx +4 -4
- package/src/serve/hub-app/col-list-page.tsx +2 -1
- package/src/serve/hub-app/col-tables.ts +5 -4
- package/src/serve/hub-app/comfy-view.tsx +1 -1
- package/src/serve/hub-app/commands/commands-page.tsx +2 -2
- package/src/serve/hub-app/controls.css +23 -2
- package/src/serve/hub-app/cycle-button.tsx +2 -2
- package/src/serve/hub-app/database-st.ts +40 -11
- package/src/serve/hub-app/database-view.tsx +67 -2
- package/src/serve/hub-app/database.css +3 -0
- package/src/serve/hub-app/dock-view.tsx +1 -1
- package/src/serve/hub-app/drives-page.tsx +309 -0
- package/src/serve/hub-app/drives-st.ts +486 -0
- package/src/serve/hub-app/drives.css +122 -0
- package/src/serve/hub-app/editor/doc-editor.tsx +4 -3
- package/src/serve/hub-app/empty-section.tsx +1 -1
- package/src/serve/hub-app/entry-list.tsx +1 -1
- package/src/serve/hub-app/floating.tsx +0 -1
- package/src/serve/hub-app/frame-refusal.ts +13 -0
- package/src/serve/hub-app/geometry-view.tsx +3 -3
- package/src/serve/hub-app/hash-route.ts +12 -5
- package/src/serve/hub-app/header-bar.tsx +2 -1
- package/src/serve/hub-app/home-pages.ts +40 -0
- package/src/serve/hub-app/home-st.ts +8 -1
- package/src/serve/hub-app/home-strip.tsx +22 -20
- package/src/serve/hub-app/home.html +2 -1
- package/src/serve/hub-app/hub-app.tsx +16 -3
- package/src/serve/hub-app/hub.css +72 -5
- package/src/serve/hub-app/icons.tsx +8 -0
- package/src/serve/hub-app/identities-view.tsx +5 -4
- package/src/serve/hub-app/inbox-view.tsx +10 -10
- package/src/serve/hub-app/index.html +2 -1
- package/src/serve/hub-app/insights-view.tsx +8 -8
- package/src/serve/hub-app/keys.ts +31 -11
- package/src/serve/hub-app/layout-st.ts +4 -1
- package/src/serve/hub-app/lightbox-zoom.css +29 -19
- package/src/serve/hub-app/list-filter.tsx +46 -5
- package/src/serve/hub-app/live-socket.ts +12 -6
- package/src/serve/hub-app/live-sources.ts +137 -66
- package/src/serve/hub-app/machine-groups.ts +87 -0
- package/src/serve/hub-app/machines-st.ts +100 -3
- package/src/serve/hub-app/machines-view.tsx +50 -3
- package/src/serve/hub-app/machines.css +22 -0
- package/src/serve/hub-app/main-panel.css +16 -10
- package/src/serve/hub-app/main-panel.tsx +6 -8
- package/src/serve/hub-app/markdown.css +12 -2
- package/src/serve/hub-app/md.ts +60 -18
- package/src/serve/hub-app/media-view.tsx +21 -12
- package/src/serve/hub-app/messages/messages-page.tsx +15 -6
- package/src/serve/hub-app/new-thread.tsx +6 -3
- package/src/serve/hub-app/orchestrator-line.tsx +1 -1
- package/src/serve/hub-app/orchestrator-places.tsx +28 -2
- package/src/serve/hub-app/orchestrator.css +5 -0
- package/src/serve/hub-app/page-keys.ts +4 -1
- package/src/serve/hub-app/pages-frames.tsx +2 -1
- package/src/serve/hub-app/palette-st.ts +285 -60
- package/src/serve/hub-app/palette-view.tsx +96 -18
- package/src/serve/hub-app/pane-boundary.tsx +3 -2
- package/src/serve/hub-app/panel-head.tsx +1 -1
- package/src/serve/hub-app/panel-source.ts +16 -5
- package/src/serve/hub-app/panel-tint.ts +3 -18
- package/src/serve/hub-app/panel-walk.ts +1 -1
- package/src/serve/hub-app/pic.tsx +37 -0
- package/src/serve/hub-app/pick-kinds.ts +101 -0
- package/src/serve/hub-app/places-svc.ts +44 -10
- package/src/serve/hub-app/plan-view.tsx +2 -2
- package/src/serve/hub-app/planned-view.tsx +6 -5
- package/src/serve/hub-app/polled.ts +17 -6
- package/src/serve/hub-app/presence-st.ts +9 -1
- package/src/serve/hub-app/processes-view.tsx +16 -10
- package/src/serve/hub-app/project-bar.tsx +85 -29
- package/src/serve/hub-app/project-list.tsx +7 -19
- package/src/serve/hub-app/projects-svc.ts +50 -20
- package/src/serve/hub-app/rail-groups.ts +1 -0
- package/src/serve/hub-app/recordings-view.tsx +26 -26
- package/src/serve/hub-app/ref-list-slot.ts +10 -0
- package/src/serve/hub-app/ref-pill.ts +58 -0
- package/src/serve/hub-app/reflections-page.tsx +3 -3
- package/src/serve/hub-app/releases/releases-page.tsx +6 -6
- package/src/serve/hub-app/repo-mark.tsx +29 -0
- package/src/serve/hub-app/repo-sections.ts +16 -9
- package/src/serve/hub-app/repo-st.ts +67 -14
- package/src/serve/hub-app/review/advisor-add.tsx +155 -0
- package/src/serve/hub-app/review/advisor-bar.tsx +92 -22
- package/src/serve/hub-app/review/advisor-invite.tsx +66 -0
- package/src/serve/hub-app/review/ask-proof.tsx +4 -3
- package/src/serve/hub-app/review/attach-view.tsx +7 -6
- package/src/serve/hub-app/review/box-view.ts +35 -18
- package/src/serve/hub-app/review/box-zoom.tsx +1 -1
- package/src/serve/hub-app/review/copy-button.tsx +29 -0
- package/src/serve/hub-app/review/diff-mode.ts +41 -0
- package/src/serve/hub-app/review/diff-view.tsx +92 -19
- package/src/serve/hub-app/review/doc-body.tsx +2 -2
- package/src/serve/hub-app/review/dock.tsx +51 -23
- package/src/serve/hub-app/review/draft-body.tsx +2 -2
- package/src/serve/hub-app/review/group-block.tsx +8 -8
- package/src/serve/hub-app/review/instructions-view.tsx +3 -9
- package/src/serve/hub-app/review/item-verdict.tsx +1 -0
- package/src/serve/hub-app/review/kind-view.tsx +13 -19
- package/src/serve/hub-app/review/kit.tsx +16 -8
- package/src/serve/hub-app/review/lane-bar.tsx +1 -1
- package/src/serve/hub-app/review/lightbox.tsx +1 -1
- package/src/serve/hub-app/review/line-window.ts +51 -8
- package/src/serve/hub-app/review/live-bar.tsx +5 -2
- package/src/serve/hub-app/review/live-view.tsx +11 -11
- package/src/serve/hub-app/review/mention-st.ts +9 -38
- package/src/serve/hub-app/review/object-panel.tsx +39 -14
- package/src/serve/hub-app/review/outbox-st.ts +200 -0
- package/src/serve/hub-app/review/pano-view.tsx +2 -2
- package/src/serve/hub-app/review/phone-top.tsx +2 -1
- package/src/serve/hub-app/review/question-views.tsx +172 -40
- package/src/serve/hub-app/review/review-cells.tsx +200 -43
- package/src/serve/hub-app/review/review-host.ts +10 -1
- package/src/serve/hub-app/review/review-kit.ts +21 -5
- package/src/serve/hub-app/review/review-list.tsx +44 -83
- package/src/serve/hub-app/review/review-page.tsx +6 -5
- package/src/serve/hub-app/review/review-st.ts +87 -33
- package/src/serve/hub-app/review/review-thread.tsx +276 -156
- package/src/serve/hub-app/review/review-views.tsx +101 -63
- package/src/serve/hub-app/review/secret-facts.ts +2 -1
- package/src/serve/hub-app/review/share-lines.tsx +40 -0
- package/src/serve/hub-app/review/start-st.ts +137 -0
- package/src/serve/hub-app/review/start-thread.tsx +104 -0
- package/src/serve/hub-app/review/superseded-runs.ts +20 -2
- package/src/serve/hub-app/review/thread-close.tsx +1 -1
- package/src/serve/hub-app/review/thread-control.tsx +5 -4
- package/src/serve/hub-app/review/thread-st.ts +254 -40
- package/src/serve/hub-app/review/thread-views.ts +3 -2
- package/src/serve/hub-app/review/trailer-body.tsx +6 -6
- package/src/serve/hub-app/review/trailer-page.tsx +33 -33
- package/src/serve/hub-app/review/trailer-voices.tsx +10 -10
- package/src/serve/hub-app/review/zoom-still.tsx +60 -0
- package/src/serve/hub-app/review.css +179 -56
- package/src/serve/hub-app/row-acts.tsx +2 -0
- package/src/serve/hub-app/row-face.tsx +0 -1
- package/src/serve/hub-app/run-page.tsx +236 -0
- package/src/serve/hub-app/running-rows.tsx +2 -2
- package/src/serve/hub-app/search-view.tsx +1 -1
- package/src/serve/hub-app/secret-cli.tsx +32 -0
- package/src/serve/hub-app/secret-readable.tsx +59 -0
- package/src/serve/hub-app/secret-refs.ts +173 -0
- package/src/serve/hub-app/secrets-page.tsx +2 -2
- package/src/serve/hub-app/section-head.tsx +3 -1
- package/src/serve/hub-app/seen-rows.ts +72 -0
- package/src/serve/hub-app/shared-faces.tsx +32 -0
- package/src/serve/hub-app/side-frame-view.tsx +115 -0
- package/src/serve/hub-app/side-frame.ts +120 -0
- package/src/serve/hub-app/site/site-part.tsx +7 -7
- package/src/serve/hub-app/social/calendar.tsx +1 -1
- package/src/serve/hub-app/social/comms-page.tsx +3 -3
- package/src/serve/hub-app/social/copy-forms.ts +31 -0
- package/src/serve/hub-app/social/kit.tsx +42 -23
- package/src/serve/hub-app/social/post-card.tsx +5 -5
- package/src/serve/hub-app/social/post-page.tsx +2 -2
- package/src/serve/hub-app/social/social-page.tsx +31 -12
- package/src/serve/hub-app/social/social-st.ts +8 -2
- package/src/serve/hub-app/social/stage-popup.tsx +6 -6
- package/src/serve/hub-app/social.css +7 -1
- package/src/serve/hub-app/source-page.tsx +2 -0
- package/src/serve/hub-app/space-view.tsx +3 -3
- package/src/serve/hub-app/stores/stores-page.tsx +18 -17
- package/src/serve/hub-app/terminal-gone.tsx +41 -0
- package/src/serve/hub-app/terminal-history-st.ts +3 -0
- package/src/serve/hub-app/terminal-list-st.ts +27 -3
- package/src/serve/hub-app/terminal-pages.tsx +50 -10
- package/src/serve/hub-app/terminal-panel.tsx +3 -3
- package/src/serve/hub-app/terminal-picture.ts +78 -0
- package/src/serve/hub-app/terminal-sources.tsx +318 -48
- package/src/serve/hub-app/terminal-st.ts +57 -2
- package/src/serve/hub-app/terminal-tab.tsx +2 -1
- package/src/serve/hub-app/terminal.css +5 -0
- package/src/serve/hub-app/test-view.tsx +2 -2
- package/src/serve/hub-app/tests-view.tsx +3 -3
- package/src/serve/hub-app/thread-row.tsx +12 -2
- package/src/serve/hub-app/time-charts.tsx +3 -2
- package/src/serve/hub-app/time-pages.tsx +3 -2
- package/src/serve/hub-app/time-view.tsx +6 -5
- package/src/serve/hub-app/timeline-chart.tsx +1 -1
- package/src/serve/hub-app/timeline-view.tsx +12 -4
- package/src/serve/hub-app/tree-build.ts +3 -3
- package/src/serve/hub-app/url-faces.ts +3 -4
- package/src/serve/hub-app/url-forms.tsx +112 -20
- package/src/serve/hub-app/url-needs.ts +31 -0
- package/src/serve/hub-app/urls-svc.ts +163 -25
- package/src/serve/hub-app/urls-view.tsx +74 -74
- package/src/serve/hub-app/urls.css +62 -5
- package/src/serve/hub-app/vault-view.tsx +13 -13
- package/src/serve/hub-app/veille/veille-page.tsx +12 -11
- package/src/serve/hub-app/view-layout.css +2 -0
- package/src/serve/hub-app/when-view.tsx +2 -2
- package/src/serve/hub-app/wikis-view.tsx +1 -1
- package/src/serve/hub-app/word-refs.ts +12 -0
- package/src/serve/hub-app/words.tsx +25 -8
- package/src/serve/picture-types.ts +10 -0
- package/src/serve/project-gutter-route.ts +18 -13
- package/src/serve/read-thread.ts +31 -12
- package/src/serve/read-worker.ts +7 -0
- package/src/serve/secret-ref-routes.ts +71 -0
- package/src/serve/serve-hub.ts +26 -1
- package/src/serve/terminal-claudes.ts +44 -7
- package/src/serve/terminal-guard.ts +5 -1
- package/src/serve/terminal-host.ts +5 -1
- package/src/serve/terminal-paste.ts +49 -0
- package/src/serve/terminal-record.ts +8 -2
- package/src/serve/terminal-route.ts +19 -6
- package/src/serve/tracked-watch.ts +13 -11
- package/src/setup-house.ts +333 -0
- package/src/shipkit-files.ts +14 -3
- package/src/shot/film-box.ts +1 -9
- package/src/social/discord-layout.ts +1 -1
- package/src/social/kind-pages.ts +11 -5
- package/src/social/media-limit.ts +18 -8
- package/src/social/media-of.ts +5 -5
- package/src/social/publish/discord.ts +1 -1
- package/src/social/routes.ts +6 -3
- package/src/start-repo.ts +5 -0
- package/src/suite/judge-suites.ts +9 -51
- package/src/suite/red-alone.ts +69 -0
- package/src/suite/suite-cli.ts +27 -26
- package/src/trailer/titles.ts +2 -2
- package/src/urls/added.ts +34 -15
- package/src/urls/fill.ts +127 -0
- package/src/urls/frame.ts +39 -0
- package/src/urls/places.ts +19 -13
- package/src/urls/routes.ts +30 -10
- package/src/urls/rows.ts +98 -23
- package/src/urls/totp.ts +121 -0
- package/src/urls/unit.ts +95 -36
- package/src/urls/write-routes.ts +141 -25
- package/src/vault/vault-import.ts +2 -9
- package/src/vault/vault-init.ts +2 -1
- package/src/vault/vault-restore.ts +1 -9
- package/src/veille/chrome.ts +8 -18
- package/src/veille/identity.ts +6 -5
- package/src/wiki/graph-page.ts +27 -37
- package/src/wiki/graph-positions.ts +13 -3
- package/src/wiki/graph-sim.ts +77 -0
- package/src/wiki/run-wiki.ts +12 -1
- package/src/advisors/edge/certs.ts +0 -20
- package/src/advisors/edge/jwt.ts +0 -76
- package/src/advisors/edge/worker.ts +0 -52
- package/src/advisors/r2.ts +0 -46
- package/src/cli/channel-run.ts +0 -17
- package/src/cli/cmd_Channel.ts +0 -43
- package/src/media-store/backup/thread-copy.ts +0 -343
- package/src/orchestrator/channel-declare.ts +0 -58
- package/src/orchestrator/channel.ts +0 -226
- package/src/review/move.ts +0 -492
- package/src/serve/hub-app/panel-tint.css +0 -6
|
@@ -10,12 +10,13 @@ import { createPortal } from 'react-dom'
|
|
|
10
10
|
import type { VersionCell } from '../../../review/cells.ts'
|
|
11
11
|
import { isChoice, isGallery, isPair, onFrame, SCENE_WORDS, STARS, STATUS_LABEL, thumbFileOf, tileName, viewFilesOf, viewName, viewTag, type GalleryTile, type GalleryView, type Item, type MediaView, type Rect, type ReviewClip, type ReviewMark, type ReviewStatus, type ReviewView, type Side } from '../../../review/model.ts'
|
|
12
12
|
import { AutoText } from '../auto-text.tsx'
|
|
13
|
+
import { Pic } from '../pic.tsx'
|
|
13
14
|
import type { ClipSt } from './clip-st.ts'
|
|
14
15
|
import { boxReaction, FIT_ROOM, keepFocus, Key, PAIR_NAMES, PLACE_TIPS, REACTIONS, secs, SIDE_LABEL } from './kit.tsx'
|
|
15
16
|
import { BoxView } from './box-view.ts'
|
|
16
17
|
import { BoxViewCtx, BoxZoomBar, useBoxView, ZoomMap } from './box-zoom.tsx'
|
|
17
18
|
import { TILE_H, type Zoom } from './review-kit.ts'
|
|
18
|
-
import { fillWidth, formOf, LAYOUT, sizeOf, TILE_ASPECT, type Size, type ViewForm } from '../../../review/view-layout.ts'
|
|
19
|
+
import { fillWidth, formOf, LAYOUT, sizeOf, TILE_ASPECT, TINY_TILE, type Size, type ViewForm } from '../../../review/view-layout.ts'
|
|
19
20
|
import { COMPARE_MODES, drawnSide, type CompareMode, type CompareSt, type PairSide, type ReviewSt } from './review-st.ts'
|
|
20
21
|
import { TILE_FILTERS, viewDom, viewKind, type SaidNote, type ThreadSt, type TileFilter } from './thread-st.ts'
|
|
21
22
|
import { Caret, Icon, ICON } from '../icons.tsx'
|
|
@@ -24,10 +25,12 @@ import { AnimPanel } from './kind-view.tsx'
|
|
|
24
25
|
import { KindBox, KindViewFrames } from './kind-states.tsx'
|
|
25
26
|
import { Lightbox } from './lightbox.tsx'
|
|
26
27
|
import { LiveBody } from './live-view.tsx'
|
|
28
|
+
import { liveOpenHref } from '../../../review/live-view.ts'
|
|
27
29
|
import { SceneBody } from './scene-view.tsx'
|
|
28
30
|
import { Words } from '../words.tsx'
|
|
29
31
|
import { soleSpot } from '../../../review/one-block.ts'
|
|
30
32
|
import { tip } from '../tips.ts'
|
|
33
|
+
import { Age } from '../time-ago.tsx'
|
|
31
34
|
|
|
32
35
|
export const toneClass = (s: string | undefined): string => (s ? ` re-${s}` : '')
|
|
33
36
|
|
|
@@ -78,9 +81,9 @@ export const VersionViews = observer(({ ver }: { ver: Ver }) => {
|
|
|
78
81
|
<div className="rv-views">
|
|
79
82
|
{options ? (
|
|
80
83
|
<div className="rv-viewsbar">
|
|
81
|
-
<span className="seg"
|
|
82
|
-
<button className={rows ? 'on' : ''} onMouseDown={keepFocus} onClick={() => thread.setFull(item.id, false)}>rows</button>
|
|
83
|
-
<button className={rows ? '' : 'on'} onMouseDown={keepFocus} onClick={() => thread.setFull(item.id, true)}>full</button>
|
|
84
|
+
<span className="seg">
|
|
85
|
+
<button className={rows ? 'on' : ''} {...tip('show the options as thin rows, one below the other')} onMouseDown={keepFocus} onClick={() => thread.setFull(item.id, false)}>rows</button>
|
|
86
|
+
<button className={rows ? '' : 'on'} {...tip('show every option at its full size')} onMouseDown={keepFocus} onClick={() => thread.setFull(item.id, true)}>full</button>
|
|
84
87
|
</span>
|
|
85
88
|
</div>
|
|
86
89
|
) : null}
|
|
@@ -106,7 +109,7 @@ export const ViewCell = observer(({ ver, v: live, i, frames, noted = true, boxed
|
|
|
106
109
|
const gone = goneOf(ver, v)
|
|
107
110
|
if (boxed) {
|
|
108
111
|
// the lightbox draws its own bars around the view (ViewBox): the cell is its body alone; a live page framed live
|
|
109
|
-
const body = gone
|
|
112
|
+
const body = gone ? <Gone rv={rv} away={gone} />
|
|
110
113
|
: media?.live && rv.can('live') && 'image' in media.files ? <LiveBody live={media.live} label={media.label} shotSrc={rv.fitUrl(cell.id, media.files.image, cell.item.wip)} size={media.size} shot={<MediaBody ver={ver} v={media} i={i} zoom="fit" boxed />} />
|
|
111
114
|
: isGallery(v) ? <GalleryThumbs ver={ver} v={v} view={i} />
|
|
112
115
|
: <MediaBody ver={ver} v={v} i={i} zoom="fit" boxed />
|
|
@@ -129,7 +132,7 @@ export const ViewCell = observer(({ ver, v: live, i, frames, noted = true, boxed
|
|
|
129
132
|
onMouseDownCapture={() => ver.live && thread.view !== i && thread.setView(i)}>
|
|
130
133
|
{frames ? <FrameSlider thread={thread} frames={frames} /> : null}
|
|
131
134
|
<div className="rv-viewmedia">
|
|
132
|
-
{gone
|
|
135
|
+
{gone ? <Gone rv={rv} away={gone} /> : <ViewBody ver={ver} v={v} i={i} form={form} size={size} />}
|
|
133
136
|
<ViewTools ver={ver} v={v} i={i} tag={caption ? null : tag} />
|
|
134
137
|
</div>
|
|
135
138
|
{caption ? (
|
|
@@ -166,9 +169,18 @@ const ViewBody = observer(({ ver, v, i, form, size }: { ver: Ver; v: ReviewView;
|
|
|
166
169
|
return size === 'fill' ? <MediaBody ver={ver} v={v} i={i} zoom="preview" /> : <Still src={rv.fitUrl(item.id, thumbFileOf(v), item.wip)} word="clip" play open={open} fit="contain" />
|
|
167
170
|
case 'image':
|
|
168
171
|
return size === 'fill' ? <PreviewOf ver={ver} v={v} i={i} /> : <Still src={rv.fitUrl(item.id, thumbFileOf(v), item.wip)} word={null} open={open} fit="contain" />
|
|
169
|
-
default:
|
|
170
|
-
// a panorama, a splat, a mesh, a live page: its still at a tile's size, opened whole in the lightbox
|
|
171
|
-
|
|
172
|
+
default: {
|
|
173
|
+
// a panorama, a splat, a mesh, a live page: its still at a tile's size, opened whole in the lightbox; a live
|
|
174
|
+
// page also opens itself, beside the thread, from a link on its still
|
|
175
|
+
const still = <Still src={rv.fitUrl(item.id, thumbFileOf(v), item.wip)} word={v.scene ? SCENE_WORDS[v.scene.kind] : 'live page'} open={open} fit="cover" />
|
|
176
|
+
if (!v.live || !rv.can('live')) return still
|
|
177
|
+
return (
|
|
178
|
+
<>
|
|
179
|
+
{still}
|
|
180
|
+
<a className="rv-stilllink" data-check="live-open" href={liveOpenHref(v.live, location.origin)} target="_blank" rel="noopener noreferrer" {...tip(`open the page itself: ${v.live.url}`)}>open the page ↗</a>
|
|
181
|
+
</>
|
|
182
|
+
)
|
|
183
|
+
}
|
|
172
184
|
}
|
|
173
185
|
})
|
|
174
186
|
|
|
@@ -176,7 +188,7 @@ const ViewBody = observer(({ ver, v, i, form, size }: { ver: Ver; v: ReviewView;
|
|
|
176
188
|
* (« 360° · open »), ▶ on a clip's poster */
|
|
177
189
|
const Still = ({ src, word, open, fit, play = false }: { src: string; word: string | null; open: () => void; fit: 'cover' | 'contain'; play?: boolean }) => (
|
|
178
190
|
<button type="button" className={`rv-still ${fit}`} data-check="view-still" {...tip(word ? `open the ${word} in the lightbox` : 'open it in the lightbox')} onMouseDown={keepFocus} onClick={open}>
|
|
179
|
-
<
|
|
191
|
+
<Pic src={src} />
|
|
180
192
|
{play ? <span className="rv-stillplay" aria-hidden>▶</span> : null}
|
|
181
193
|
{word ? <span className="rv-stillopen">{word} · open</span> : null}
|
|
182
194
|
</button>
|
|
@@ -224,7 +236,7 @@ const ViewTools = observer(({ ver, v, i, tag }: { ver: Ver; v: ReviewView; i: nu
|
|
|
224
236
|
{!isGallery(v) && isPair(v.files) && !v.clip && !v.audio ? <AnimPanel app={rv} item={item} /> : null}
|
|
225
237
|
{isGallery(v) && rv.phone.on ? null : <StageButtons ver={ver} v={v} i={i} />}
|
|
226
238
|
{isGallery(v) ? (rv.phone.on ? null : <GalleryMenu ver={ver} v={v} />) : files.length > 0 && !v.audio ? (
|
|
227
|
-
<Pop className="ghost rv-iconbtn rv-viewmenu" popClass="fpop rv-viewpop" placement="bottom-end" aria-label="its files"
|
|
239
|
+
<Pop className="ghost rv-iconbtn rv-viewmenu" popClass="fpop rv-viewpop" placement="bottom-end" aria-label="its files" {...tip('the files of this view: save one at full size, and the other ways to take it out')} label="⋯">
|
|
228
240
|
{() => <Downloads rv={rv} item={item} files={files} />}
|
|
229
241
|
</Pop>
|
|
230
242
|
) : null}
|
|
@@ -245,10 +257,10 @@ const StageButtons = observer(({ ver, v, i, tile = 0 }: { ver: Ver; v: ReviewVie
|
|
|
245
257
|
return <button className="ghost rv-iconbtn rv-stagebtn" {...tip(isGallery(v) ? 'stage this image of the gallery as a post' : 'stage this media as a post: a draft in comms, never posted')} aria-label="stage as a post" onMouseDown={keepFocus} onClick={() => rv.openStage(isGallery(v) ? `${at}/${tile}` : at)}>{icon}</button>
|
|
246
258
|
const entries: [string, string][] = [[`${at}.after`, 'the after'], [`${at}.before`, 'the before'], ...(v.clip ? [] : [[`${at}.wipe`, 'a wipe from before to after'] as [string, string]])]
|
|
247
259
|
return (
|
|
248
|
-
<Pop className="ghost rv-iconbtn rv-stagebtn" aria-label="stage as a post"
|
|
260
|
+
<Pop className="ghost rv-iconbtn rv-stagebtn" aria-label="stage as a post" {...tip('stage a side of this pair as a post: a draft in comms, never posted')} label={icon} placement="bottom-end">
|
|
249
261
|
{(close) => (
|
|
250
262
|
<div className="rv-stagemenu">
|
|
251
|
-
{entries.map(([key, words]) => <button key={key} className="ghost" onClick={() => { close(); rv.openStage(key) }}>stage {words}</button>)}
|
|
263
|
+
{entries.map(([key, words]) => <button key={key} className="ghost" {...tip(`open the stage with ${words} as the post's media: a draft in comms, never posted`)} onClick={() => { close(); rv.openStage(key) }}>stage {words}</button>)}
|
|
252
264
|
</div>
|
|
253
265
|
)}
|
|
254
266
|
</Pop>
|
|
@@ -341,21 +353,21 @@ const OptionRow = observer(({ ver, v, i }: { ver: Ver; v: ReviewView; i: number
|
|
|
341
353
|
<div className="rv-optrow">
|
|
342
354
|
<span className="rv-optn">{viewTag(cell.n, i)}</span>
|
|
343
355
|
{c && clock2 ? (
|
|
344
|
-
<button className={`rv-optplay${c.paused ? '' : ' on'}`} {...tip(
|
|
356
|
+
<button className={`rv-optplay${c.paused ? '' : ' on'}`} {...tip(c.paused ? 'play this option from where it stands' : 'stop this option where it is', ver.live ? `${i + 1}` : null)} onMouseDown={keepFocus} onClick={() => thread.listen(id, i)}>
|
|
345
357
|
{c.paused ? '▶' : '❚❚'}
|
|
346
358
|
</button>
|
|
347
359
|
) : null}
|
|
348
360
|
<b className="rv-optlabel" {...tip(viewName(v, i))}>{viewName(v, i)}</b>
|
|
349
361
|
{choice && item.agentPick === i ? <span className="rv-mypick" {...tip('the option the agent suggests; your pick is your own')}>my pick</span> : null}
|
|
350
362
|
{c && playable?.clip && !unfolded ? (
|
|
351
|
-
<span className="rv-optthumb" style={{ aspectRatio: `${playable.size.w} / ${playable.size.h}` }} onClick={() => thread.toggleRow(item, i)} {...tip('
|
|
363
|
+
<span className="rv-optthumb" style={{ aspectRatio: `${playable.size.w} / ${playable.size.h}` }} onClick={() => thread.toggleRow(item, i)} {...tip('show it full under its row')}>
|
|
352
364
|
<ClipVideo clip={c} src={rv.fitUrl(id, file, item.wip)} poster={rv.thumbUrl(id, playable.clip.poster)} loop={false} />
|
|
353
365
|
</span>
|
|
354
366
|
) : null}
|
|
355
367
|
{c && playable && clock2 ? (
|
|
356
368
|
<Strip clip={c} duration={duration} wave={playable.audio ? rv.fileUrl(id, playable.audio.wave) : undefined} />
|
|
357
369
|
) : unfolded || c ? <span className="sp" /> : (
|
|
358
|
-
<span className="rv-optthumb img" onClick={() => thread.toggleRow(item, i)} {...tip('
|
|
370
|
+
<span className="rv-optthumb img" onClick={() => thread.toggleRow(item, i)} {...tip('show it full under its row')}><Pic src={rv.tileUrl(id, thumbFileOf(v))} /></span>
|
|
359
371
|
)}
|
|
360
372
|
{c && clock2 ? <span className="rv-mono rv-opttime">{clock(c.time)} / {clock(duration)}</span> : null}
|
|
361
373
|
<span className="rv-optacts">
|
|
@@ -365,9 +377,9 @@ const OptionRow = observer(({ ver, v, i }: { ver: Ver; v: ReviewView; i: number
|
|
|
365
377
|
) : null}
|
|
366
378
|
{playable?.audio ? <a className="rv-dl" href={rv.fileUrl(id, file)} download={`${id}-${file}`} {...tip('download the sound')}>⤓</a> : null}
|
|
367
379
|
{choice && takes(ver) ? (
|
|
368
|
-
<button className={`rv-pick${picked ? ' on' : ''}`} {...tip(held ? 'your pick
|
|
380
|
+
<button className={`rv-pick${picked ? ' on' : ''}`} {...tip(held ? 'take your pick back: the version waits for your answer again' : 'pick this one: it is your answer', held ? null : 'P')} disabled={thread.busy} onClick={() => mark(ver, () => void thread.choose(i))}>
|
|
369
381
|
{picked ? '✓ picked' : 'pick'}
|
|
370
|
-
{held ? <span className="rv-undo" aria-label="
|
|
382
|
+
{held ? <span className="rv-undo" aria-label="press again to take it back"> ↺</span> : null}
|
|
371
383
|
</button>
|
|
372
384
|
) : choice && picked ? <span className="rv-pick on">✓ picked</span> : null}
|
|
373
385
|
</span>
|
|
@@ -377,7 +389,7 @@ const OptionRow = observer(({ ver, v, i }: { ver: Ver; v: ReviewView; i: number
|
|
|
377
389
|
{c && playable?.audio ? <SoundEl clip={c} src={rv.fileUrl(id, file)} /> : null}
|
|
378
390
|
{unfolded ? (
|
|
379
391
|
<div className="rv-optbody">
|
|
380
|
-
{gone
|
|
392
|
+
{gone ? <Gone rv={rv} away={gone} /> : <ViewBody ver={ver} v={v} i={i} form={formOf(v)} size={LAYOUT[formOf(v)].alone} />}
|
|
381
393
|
</div>
|
|
382
394
|
) : null}
|
|
383
395
|
<ViewNotes ver={ver} i={i} />
|
|
@@ -385,20 +397,32 @@ const OptionRow = observer(({ ver, v, i }: { ver: Ver; v: ReviewView; i: number
|
|
|
385
397
|
)
|
|
386
398
|
})
|
|
387
399
|
|
|
388
|
-
/** the files of a view
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
400
|
+
/** the files of a view that are not here (review/media-away.ts): none when every one is, or a place serves it */
|
|
401
|
+
type Away = { missing: string[]; coming: string[]; at: number }
|
|
402
|
+
const goneOf = (ver: Ver, v: ReviewView): Away | null => {
|
|
403
|
+
const d = ver.thread.data
|
|
404
|
+
if (d == null || d.missing.length + d.coming.length === 0) return null
|
|
405
|
+
const item = itemOf(ver)
|
|
406
|
+
const names = viewFilesOf({ ...item, views: [v] })
|
|
407
|
+
const of = (list: readonly string[]): string[] => names.filter((n) => list.includes(`${item.id}/${n}`))
|
|
408
|
+
const away = { missing: of(d.missing), coming: of(d.coming), at: Date.parse(item.created) }
|
|
409
|
+
return away.missing.length + away.coming.length === 0 ? null : away
|
|
394
410
|
}
|
|
395
411
|
|
|
396
|
-
/** a view whose
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
<
|
|
401
|
-
|
|
412
|
+
/** a view whose files are not here, said in place of a player that would stay black: on their way from the machine that
|
|
413
|
+
* posted it while the version is young, else held by no place this machine asks */
|
|
414
|
+
const Gone = observer(({ rv, away }: { rv: ReviewSt; away: Away }) =>
|
|
415
|
+
away.missing.length === 0 ? (
|
|
416
|
+
<div className="rv-gone" data-check="media-coming">
|
|
417
|
+
<b>its pictures are on their way</b>
|
|
418
|
+
<span className="rv-dim">{away.coming.join(', ')}: posted on another machine <Age clock={rv} at={away.at} />; they show here once it sends them up, within a minute</span>
|
|
419
|
+
</div>
|
|
420
|
+
) : (
|
|
421
|
+
<div className="rv-gone" data-check="media-gone">
|
|
422
|
+
<b>no place holds {away.missing.length === 1 ? 'this file' : 'these files'}</b>
|
|
423
|
+
<span className="rv-dim">{away.missing.join(', ')}: not on this machine, nor in the Space by the hq's word or its own. Posted <Age clock={rv} at={away.at} />; its words and answers stay</span>
|
|
424
|
+
</div>
|
|
425
|
+
),
|
|
402
426
|
)
|
|
403
427
|
|
|
404
428
|
/** `1:05`: a time on a row, short */
|
|
@@ -410,9 +434,10 @@ const Stars = observer(({ ver, view, tile, given }: { ver: Ver; view: number; ti
|
|
|
410
434
|
const live = takes(ver)
|
|
411
435
|
const n = given ?? 0
|
|
412
436
|
return (
|
|
413
|
-
<span className="rv-stars" {...tip(live ?
|
|
437
|
+
<span className="rv-stars" {...tip(live ? null : 'the score you gave this version; it takes no new score')}>
|
|
414
438
|
{Array.from({ length: STARS }, (_, k) => (
|
|
415
|
-
<button key={k} className={k < n ? 'on' : ''} disabled={!live}
|
|
439
|
+
<button key={k} className={k < n ? 'on' : ''} disabled={!live}
|
|
440
|
+
{...tip(live && (k + 1 === n ? 'take this score off' : `score it ${k + 1} of ${STARS}${tile === undefined ? ', the row playing takes the key too' : ', the key works with the pointer on the image'}`), tile === undefined ? `⇧${k + 1}` : `${k + 1}`)} aria-label={`${k + 1} of ${STARS}`} onMouseDown={keepFocus} onClick={() => mark(ver, () => thread.setStars(view, k + 1, tile))}>{k < n ? '★' : '☆'}</button>
|
|
416
441
|
))}
|
|
417
442
|
</span>
|
|
418
443
|
)
|
|
@@ -509,6 +534,11 @@ const PHONE_TILE = 120
|
|
|
509
534
|
* GALLERY_LARGE images, at most PHONE_TILE on a phone */
|
|
510
535
|
const tileMin = (rv: ReviewSt, large: boolean): number => Math.min(Math.round((large ? rv.tileH / 2 : rv.tileH) * TILE_ASPECT), rv.phone.on ? PHONE_TILE : Infinity)
|
|
511
536
|
|
|
537
|
+
type TilePreview = 'tile' | 'thumb' | 'fit'
|
|
538
|
+
/** the preview a gallery tile of this least width loads: the tiny one up to TINY_TILE, the thumb up to TILE_H.thumb,
|
|
539
|
+
* past it the fit size; the full file only in the lightbox past « fit » */
|
|
540
|
+
export const tilePreview = (min: number): TilePreview => (min <= TINY_TILE ? 'tile' : min <= TILE_H.thumb ? 'thumb' : 'fit')
|
|
541
|
+
|
|
512
542
|
/** a gallery in the thread, a chat's attachments: its images as equal tiles that fill the row, each named, nothing
|
|
513
543
|
* else (LAYOUT gallery). A click opens one in the lightbox, where it is rated, kept, drawn on and stepped through; the
|
|
514
544
|
* owner's marks show on the tile. Past GALLERY_LARGE images the tiles are half the size under its count; variants,
|
|
@@ -519,7 +549,7 @@ const GalleryThumbs = observer(({ ver, v, view }: { ver: Ver; v: GalleryView; vi
|
|
|
519
549
|
const shown = v.gallery.map((t, k) => ({ t, k })).filter(({ k }) => thread.tileShown(thread.reactionShown(cell, view, k)))
|
|
520
550
|
const min = tileMin(rv, large)
|
|
521
551
|
const grid = (xs: typeof shown): ReactNode => (
|
|
522
|
-
<div className="rv-gtiles" style={{ '--gmin': `${min}px` } as React.CSSProperties}>{xs.map(({ t, k }) => <Thumb key={k} ver={ver} view={view} t={t} k={k}
|
|
552
|
+
<div className="rv-gtiles" style={{ '--gmin': `${min}px` } as React.CSSProperties}>{xs.map(({ t, k }) => <Thumb key={k} ver={ver} view={view} t={t} k={k} size={tilePreview(min)} />)}</div>
|
|
523
553
|
)
|
|
524
554
|
const rows = v.gallery.some((t) => t.group) ? [...new Set(shown.map(({ t }) => t.group ?? ''))] : null
|
|
525
555
|
return (
|
|
@@ -540,13 +570,13 @@ const GalleryThumbs = observer(({ ver, v, view }: { ver: Ver; v: GalleryView; vi
|
|
|
540
570
|
/** one image of a gallery in the thread: an equal tile, the picture fit inside it, its name under it, and only once
|
|
541
571
|
* given the owner's marks (OK, fix or no as its tone and glyph, its stars, kept, the notes drawn on it). A click opens
|
|
542
572
|
* it in the lightbox; 1 to 5 score it under the pointer */
|
|
543
|
-
const Thumb = observer(({ ver, view, t, k,
|
|
573
|
+
const Thumb = observer(({ ver, view, t, k, size }: { ver: Ver; view: number; t: GalleryTile; k: number; size: TilePreview }) => {
|
|
544
574
|
const { rv, thread, cell } = ver
|
|
545
575
|
const id = itemOf(ver).id
|
|
546
576
|
const r = thread.reactionShown(cell, view, k)
|
|
547
577
|
const live = takes(ver)
|
|
548
578
|
const file = t.before && thread.showsBefore(view, k) ? t.before : t.file
|
|
549
|
-
const src =
|
|
579
|
+
const src = size === 'fit' ? rv.fitUrl(id, file) : size === 'thumb' ? rv.thumbUrl(id, file) : rv.tileUrl(id, file)
|
|
550
580
|
const notes = ver.live ? thread.marks.rects.filter((x) => (x.view ?? 0) === view && x.tile === k).length : 0
|
|
551
581
|
const o = REACTIONS.find((x) => x.status === r?.status)
|
|
552
582
|
const marked = o !== undefined || !!r?.stars || !!r?.picked || notes > 0
|
|
@@ -556,7 +586,7 @@ const Thumb = observer(({ ver, view, t, k, big }: { ver: Ver; view: number; t: G
|
|
|
556
586
|
onMouseDown={keepFocus} onClick={() => thread.openBox(cell.id, view, k)}
|
|
557
587
|
onMouseEnter={live ? () => thread.setHoverTile({ view, tile: k }) : undefined} onMouseLeave={live ? () => thread.setHoverTile(null) : undefined}>
|
|
558
588
|
<span className="rv-gtileimg">
|
|
559
|
-
<
|
|
589
|
+
<Pic src={src} />
|
|
560
590
|
{marked ? (
|
|
561
591
|
<span className="rv-gmarks">
|
|
562
592
|
{o ? <span className="rv-gmark tone" {...tip(o.label)}>{o.glyph}</span> : null}
|
|
@@ -566,7 +596,7 @@ const Thumb = observer(({ ver, view, t, k, big }: { ver: Ver; view: number; t: G
|
|
|
566
596
|
</span>
|
|
567
597
|
) : null}
|
|
568
598
|
</span>
|
|
569
|
-
{rv.tileSmall ? <SmallSizes src={rv.
|
|
599
|
+
{rv.tileSmall ? <SmallSizes src={rv.tileUrl(id, file)} /> : null}
|
|
570
600
|
<span className="rv-gname">{t.label}</span>
|
|
571
601
|
</button>
|
|
572
602
|
)
|
|
@@ -596,7 +626,7 @@ const GalleryCount = observer(({ ver, v, view, shown }: { ver: Ver; v: GalleryVi
|
|
|
596
626
|
const GalleryMenu = observer(({ ver, v }: { ver: Ver; v: GalleryView }) => {
|
|
597
627
|
const { rv } = ver
|
|
598
628
|
return (
|
|
599
|
-
<Pop className="ghost rv-iconbtn rv-gallerymenu" popClass="fpop rv-gallerypop" placement="bottom-end" aria-label="how the images show"
|
|
629
|
+
<Pop className="ghost rv-iconbtn rv-gallerymenu" popClass="fpop rv-gallerypop" placement="bottom-end" aria-label="how the images show" {...tip('how the images show: the size of the thumbnails, their real sizes, their befores')} label="⋯">
|
|
600
630
|
{() => (
|
|
601
631
|
<div className="rv-gallerypopbody">
|
|
602
632
|
<label className="rv-tilesize" {...tip('the size of every thumbnail of every gallery, kept for this repo')}>
|
|
@@ -615,8 +645,8 @@ const GalleryLook = observer(({ ver, v }: { ver: Ver; v: GalleryView }) => {
|
|
|
615
645
|
const { rv, thread } = ver
|
|
616
646
|
return (
|
|
617
647
|
<span className="rv-gallerylook">
|
|
618
|
-
{v.gallery.some((t) => t.before) ? <button className={`rv-chip${thread.beforeAll ? ' on' : ''}`} {...tip('every image
|
|
619
|
-
<button className={`rv-chip${rv.tileSmall ? ' on' : ''}`} {...tip('each image also at 16, 32 and 64 px')} onMouseDown={keepFocus} onClick={() => rv.toggleTileSmall()}>real size</button>
|
|
648
|
+
{v.gallery.some((t) => t.before) ? <button className={`rv-chip${thread.beforeAll ? ' on' : ''}`} {...tip(thread.beforeAll ? 'show every image at its after again' : 'show every image at its before')} onMouseDown={keepFocus} onClick={() => thread.toggleBeforeAll()}>before</button> : null}
|
|
649
|
+
<button className={`rv-chip${rv.tileSmall ? ' on' : ''}`} {...tip(rv.tileSmall ? 'hide the 16, 32 and 64 px copies' : 'show each image also at 16, 32 and 64 px, as an icon shows')} onMouseDown={keepFocus} onClick={() => rv.toggleTileSmall()}>real size</button>
|
|
620
650
|
</span>
|
|
621
651
|
)
|
|
622
652
|
})
|
|
@@ -629,7 +659,7 @@ const GalleryTools = observer(({ ver, v }: { ver: Ver; v: GalleryView }) => {
|
|
|
629
659
|
{v.gallery.length > GALLERY_LARGE || thread.tileFilter !== 'all' ? (
|
|
630
660
|
<span className="seg" role="group" aria-label="which images the arrows step through">
|
|
631
661
|
{TILE_FILTERS.map((f) => (
|
|
632
|
-
<button key={f} className={thread.tileFilter === f ? 'on' : ''} onMouseDown={keepFocus} onClick={() => thread.setTileFilter(f)}>{TILE_FILTER_LABEL[f]}</button>
|
|
662
|
+
<button key={f} className={thread.tileFilter === f ? 'on' : ''} {...tip(TILE_FILTER_TIP[f])} onMouseDown={keepFocus} onClick={() => thread.setTileFilter(f)}>{TILE_FILTER_LABEL[f]}</button>
|
|
633
663
|
))}
|
|
634
664
|
</span>
|
|
635
665
|
) : null}
|
|
@@ -639,6 +669,12 @@ const GalleryTools = observer(({ ver, v }: { ver: Ver; v: GalleryView }) => {
|
|
|
639
669
|
})
|
|
640
670
|
|
|
641
671
|
const TILE_FILTER_LABEL: Record<TileFilter, string> = { all: 'all', unrated: 'unrated', low: 'under 3★', fix: 'fix or no' }
|
|
672
|
+
const TILE_FILTER_TIP: Record<TileFilter, string> = {
|
|
673
|
+
all: 'show every image, and the arrows step through all of them',
|
|
674
|
+
unrated: 'show only the images with no score, no mark and no pick, and step through those',
|
|
675
|
+
low: 'show only the images scored under 3 stars, and step through those',
|
|
676
|
+
fix: 'show only the images marked fix or no, and step through those',
|
|
677
|
+
}
|
|
642
678
|
|
|
643
679
|
/** the small sizes an icon lives at */
|
|
644
680
|
const SMALL_SIZES = [16, 32, 64] as const
|
|
@@ -646,7 +682,7 @@ const SMALL_SIZES = [16, 32, 64] as const
|
|
|
646
682
|
/** an image at the small sizes an icon lives at, on a checkerboard */
|
|
647
683
|
const SmallSizes = ({ src }: { src: string }) => (
|
|
648
684
|
<span className="rv-tilesmall">
|
|
649
|
-
{SMALL_SIZES.map((px) => <img key={px} src={src} alt="" width={px} height={px} {...tip(`${px} px`)} draggable={false} loading="lazy" />)}
|
|
685
|
+
{SMALL_SIZES.map((px) => <img key={px} src={src} alt="" width={px} height={px} {...tip(`${px} px`)} draggable={false} loading="lazy" decoding="async" />)}
|
|
650
686
|
</span>
|
|
651
687
|
)
|
|
652
688
|
|
|
@@ -680,7 +716,7 @@ const BoxTile = observer(({ ver, v, view, t, k }: { ver: Ver; v: GalleryView; vi
|
|
|
680
716
|
) : null}
|
|
681
717
|
</div>
|
|
682
718
|
</div>
|
|
683
|
-
{rv.tileSmall ? <SmallSizes src={rv.
|
|
719
|
+
{rv.tileSmall ? <SmallSizes src={rv.tileUrl(id, file)} /> : null}
|
|
684
720
|
<div className="rv-tileunder">
|
|
685
721
|
{live || r?.stars ? <Stars ver={ver} view={view} tile={k} given={r?.stars} /> : null}
|
|
686
722
|
{t.group && (live || r?.picked) ? (
|
|
@@ -916,7 +952,7 @@ export const BoxFrame = observer(({ rv, thread, stage, view }: { rv: ReviewSt; t
|
|
|
916
952
|
{can.pair && rv.phone.on ? <PhoneSides rv={rv} /> : null}
|
|
917
953
|
{can.pair && !rv.phone.on ? <CompareModes c={rv.compare} clip={media?.clip !== undefined} keys /> : null}
|
|
918
954
|
{can.pair && !rv.phone.on ? <PairFlip c={rv.compare} /> : null}
|
|
919
|
-
{media?.marks && media.marks.length > 0 ? <button className={rv.marksOn ? 'primary' : ''} {...tip(
|
|
955
|
+
{media?.marks && media.marks.length > 0 ? <button className={rv.marksOn ? 'primary' : ''} {...tip(rv.marksOn ? 'hide the rings the repo drew on the shot' : 'show the rings the repo drew on the shot', 'M')} onMouseDown={keepFocus} onClick={() => rv.toggleMarks()}>marks<Key k="M" /></button> : null}
|
|
920
956
|
{/* a phone sizes with a pinch: the size control is the keyboard's and the wheel's */}
|
|
921
957
|
{can.size && !rv.phone.on ? <BoxZoomBar view={view} pick={(k) => rv.setBoxZoom(k)} draws={draws} /> : null}
|
|
922
958
|
{isGallery(v) && tile?.t.view === undefined ? <GalleryTools ver={ver} v={v} /> : null}
|
|
@@ -929,7 +965,7 @@ export const BoxFrame = observer(({ rv, thread, stage, view }: { rv: ReviewSt; t
|
|
|
929
965
|
{takes(ver) && thread.replyOn !== null && thread.replyOn.to !== 'action' ? (
|
|
930
966
|
<span className="rv-boxfix">
|
|
931
967
|
<span className="rv-dim">fix on {thread.replyOn.label}: say what in the reply</span>
|
|
932
|
-
<button className="primary" onMouseDown={keepFocus} onClick={() => thread.closeBox()}>say it ↓</button>
|
|
968
|
+
<button className="primary" {...tip('close the lightbox: the reply box under it takes your words on the fix')} onMouseDown={keepFocus} onClick={() => thread.closeBox()}>say it ↓</button>
|
|
933
969
|
</span>
|
|
934
970
|
) : <span className="sp" />}
|
|
935
971
|
<span className="rv-boxfiles">
|
|
@@ -986,7 +1022,7 @@ const Downloads = observer(({ rv, item, files }: { rv: ReviewSt; item: Item; fil
|
|
|
986
1022
|
const s = rv.shared.get(`${item.id}/${file}`)
|
|
987
1023
|
return (
|
|
988
1024
|
<button key={`share-${file}`} className="rv-dl ghost" disabled={s === 'sending'} onClick={() => void rv.share(item.id, file)}
|
|
989
|
-
{...tip(s && s !== 'sending' ? `copy again: ${s}` : `publish ${file} in the Space and copy its link: a permanent public url, anyone who has it downloads the file`)}>
|
|
1025
|
+
{...tip(s && s !== 'sending' ? `copy its public link again: ${s}` : `publish ${file} in the Space and copy its link: a permanent public url, anyone who has it downloads the file`)}>
|
|
990
1026
|
{s === 'sending' ? 'uploading…' : `🔗 ${label ? `link ${label}` : 'copy link'}`}
|
|
991
1027
|
</button>
|
|
992
1028
|
)
|
|
@@ -998,10 +1034,10 @@ const Downloads = observer(({ rv, item, files }: { rv: ReviewSt; item: Item; fil
|
|
|
998
1034
|
</div>
|
|
999
1035
|
))
|
|
1000
1036
|
|
|
1001
|
-
const PAIR_SIDES: { value: PairSide; label: string }[] = [
|
|
1002
|
-
{ value: 'before', label: 'before' },
|
|
1003
|
-
{ value: 'after', label: 'after' },
|
|
1004
|
-
{ value: 'swipe', label: 'curtain' },
|
|
1037
|
+
const PAIR_SIDES: { value: PairSide; label: string; says: string }[] = [
|
|
1038
|
+
{ value: 'before', label: 'before', says: 'show the before alone, full width' },
|
|
1039
|
+
{ value: 'after', label: 'after', says: 'show the after alone, full width' },
|
|
1040
|
+
{ value: 'swipe', label: 'curtain', says: 'show both, a curtain to drag between them' },
|
|
1005
1041
|
]
|
|
1006
1042
|
|
|
1007
1043
|
/** which side of a pair a phone shows: before, after, or the curtain */
|
|
@@ -1013,7 +1049,7 @@ const PhoneSides = observer(({ rv }: { rv: ReviewSt }) => {
|
|
|
1013
1049
|
if (s === 'swipe') c.setMode('swipe')
|
|
1014
1050
|
ph.setPair(s)
|
|
1015
1051
|
}
|
|
1016
|
-
return <span className="seg">{PAIR_SIDES.map((s) => <button key={s.value} className={side === s.value ? 'on' : ''} onClick={() => pick(s.value)}>{s.label}</button>)}</span>
|
|
1052
|
+
return <span className="seg">{PAIR_SIDES.map((s) => <button key={s.value} className={side === s.value ? 'on' : ''} {...tip(s.says)} onClick={() => pick(s.value)}>{s.label}</button>)}</span>
|
|
1017
1053
|
})
|
|
1018
1054
|
|
|
1019
1055
|
/** a pair on a phone: one side at a time full width, or the curtain. `fitH`: in the lightbox, the height it fits, its
|
|
@@ -1070,13 +1106,13 @@ const CompareModes = observer(({ c, clip, keys }: { c: CompareSt; clip: boolean;
|
|
|
1070
1106
|
<span className="seg">
|
|
1071
1107
|
{COMPARE_MODES.filter((m) => !(clip && m === 'diff')).map((m) => {
|
|
1072
1108
|
const o = MODES.find((x) => x.mode === m)!
|
|
1073
|
-
return <button key={m} {...tip(`${o.tip}
|
|
1109
|
+
return <button key={m} {...tip(`${o.tip}\nD cycles the ways, ⇧D goes back`, 'D')} className={c.modeFor(clip) === m ? 'on' : ''} onMouseDown={keepFocus} onClick={() => c.setMode(m)}>{o.glyph}</button>
|
|
1074
1110
|
})}
|
|
1075
1111
|
</span>
|
|
1076
1112
|
{keys ? <Key k="D" /> : null}
|
|
1077
1113
|
</span>
|
|
1078
1114
|
{c.mode === 'onion' ? (
|
|
1079
|
-
<input className="rv-onion" type="range" min={0} max={1} step={0.05} value={c.opacity} {...tip(`after ${Math.round(c.opacity * 100)} %`)} onChange={(e) => c.setOpacity(Number(e.currentTarget.value))} />
|
|
1115
|
+
<input className="rv-onion" type="range" min={0} max={1} step={0.05} value={c.opacity} {...tip(`how much the after covers the before: ${Math.round(c.opacity * 100)} %`)} onChange={(e) => c.setOpacity(Number(e.currentTarget.value))} />
|
|
1080
1116
|
) : null}
|
|
1081
1117
|
</span>
|
|
1082
1118
|
))
|
|
@@ -1086,7 +1122,7 @@ const PairFlip = observer(({ c }: { c: CompareSt }) => (
|
|
|
1086
1122
|
<span className="rv-keyed">
|
|
1087
1123
|
<span className="seg" role="group" aria-label="one side alone">
|
|
1088
1124
|
{(['before', 'after'] as const).map((side) => (
|
|
1089
|
-
<button key={side} className={c.shown === side ? 'on' : ''} {...tip(`the ${side} alone
|
|
1125
|
+
<button key={side} className={c.shown === side ? 'on' : ''} {...tip(`show the ${side} alone`, 'Space')} onMouseDown={keepFocus} onClick={() => c.show(side)}>{side}</button>
|
|
1090
1126
|
))}
|
|
1091
1127
|
</span>
|
|
1092
1128
|
<Key k="space" />
|
|
@@ -1420,7 +1456,9 @@ const firstWords = (s: string): string => {
|
|
|
1420
1456
|
* version) numbers it, shows it only paused on its frame, and leaves OK, Fix and No to the verdict */
|
|
1421
1457
|
const RectNote = observer(({ ver, view, sides, tile, notes }: { ver: Ver; view: number; sides: readonly (Side | undefined)[]; tile?: number; notes?: ShownNote }) => {
|
|
1422
1458
|
const { thread } = ver
|
|
1423
|
-
|
|
1459
|
+
// the box as state, not a ref: it mounts a render after the rectangle is drawn (the popover waits for its frame's
|
|
1460
|
+
// mark), and the focus must follow it
|
|
1461
|
+
const [box, setBox] = useState<HTMLTextAreaElement | null>(null)
|
|
1424
1462
|
// a mark in the frame, so the box knows the frame it floats over
|
|
1425
1463
|
const [mark, setMark] = useState<HTMLSpanElement | null>(null)
|
|
1426
1464
|
const i = thread.rect
|
|
@@ -1430,13 +1468,13 @@ const RectNote = observer(({ ver, view, sides, tile, notes }: { ver: Ver; view:
|
|
|
1430
1468
|
const here = i !== null && r !== undefined && (r.view ?? 0) === view && sides.includes(r.side) && r.tile === tile && (!notes || (shown !== null && paused))
|
|
1431
1469
|
const focus = here && thread.noteFocus === i
|
|
1432
1470
|
useEffect(() => {
|
|
1433
|
-
const t = box
|
|
1471
|
+
const t = box
|
|
1434
1472
|
if (!focus || t === null) return
|
|
1435
1473
|
// the cursor after the words, so a reopened note goes on where it stopped
|
|
1436
1474
|
t.focus()
|
|
1437
1475
|
t.setSelectionRange(t.value.length, t.value.length)
|
|
1438
1476
|
thread.noteFocused()
|
|
1439
|
-
}, [focus, thread])
|
|
1477
|
+
}, [focus, thread, box])
|
|
1440
1478
|
// a press outside closes it, captured so a handler that stops it (a rectangle, the frame's drag) closes it too
|
|
1441
1479
|
useEffect(() => {
|
|
1442
1480
|
if (!here) return
|
|
@@ -1471,7 +1509,7 @@ const RectNote = observer(({ ver, view, sides, tile, notes }: { ver: Ver; view:
|
|
|
1471
1509
|
<Popover open anchor={anchor} onClose={() => thread.pickRect(null)} outside={false} focus={false} className="rv-note" placement="bottom-start" fallbacks={['top-start', 'right-start', 'left-start']} {...(frame ? { boundary: frame } : {})}>
|
|
1472
1510
|
<div className="rv-notebody" onPointerDown={(e) => e.stopPropagation()}>
|
|
1473
1511
|
<span className={`rv-noten${side ? ` ${side}` : ''}`}>{n}{side ? ` · ${side}` : ''}{r.t !== undefined ? ` · ${secs(r.t)}` : ''}</span>
|
|
1474
|
-
<AutoText el={
|
|
1512
|
+
<AutoText el={setBox} placeholder="what is wrong here · Enter closes" value={r.comment} refs={thread.refBox()}
|
|
1475
1513
|
onText={(t) => thread.setRectComment(i, t)}
|
|
1476
1514
|
onKeyDown={(e) => {
|
|
1477
1515
|
if ((e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) || e.key === 'Escape') {
|
|
@@ -1504,7 +1542,7 @@ const ClipVideo = ({ clip, src, poster, loop = true, preload = 'auto' }: { clip:
|
|
|
1504
1542
|
/** the sound button and the volume: a volume moved turns the sound on */
|
|
1505
1543
|
export const ClipSound = observer(({ clip, keyHint }: { clip: ClipSt; keyHint?: string }) => (
|
|
1506
1544
|
<span className="rv-sound">
|
|
1507
|
-
<button className={clip.sound ? 'primary' : ''} {...tip(
|
|
1545
|
+
<button className={clip.sound ? 'primary' : ''} {...tip(clip.sound ? 'turn the sound off' : 'turn the sound on', keyHint)} onMouseDown={keepFocus} onClick={() => clip.toggleSound()}>
|
|
1508
1546
|
{clip.sound ? '🔊' : '🔇'}
|
|
1509
1547
|
</button>
|
|
1510
1548
|
<input type="range" min={0} max={1} step={0.05} value={clip.sound ? clip.volume : 0} aria-label="volume" onChange={(e) => clip.setVolume(Number(e.currentTarget.value))}
|
|
@@ -1521,10 +1559,10 @@ const ClipBar = observer(({ clip, info, use, keys }: { clip: ClipSt; info: Revie
|
|
|
1521
1559
|
const step = keys?.frames ?? true
|
|
1522
1560
|
return (
|
|
1523
1561
|
<div className="rv-clipbar" onMouseDownCapture={use} onTouchStartCapture={use}>
|
|
1524
|
-
<button {...tip(
|
|
1562
|
+
<button {...tip(clip.paused ? 'play the clip from here' : 'stop the clip on this frame', play ? 'Space' : null)} onMouseDown={keepFocus} onClick={() => clip.toggle()}>{clip.paused ? '▶' : '❚❚'}{keys && play ? <Key k="space" /> : null}</button>
|
|
1525
1563
|
<ClipSound clip={clip} />
|
|
1526
|
-
<button {...tip(
|
|
1527
|
-
<button {...tip(
|
|
1564
|
+
<button {...tip('one frame back', step ? '←' : null)} onMouseDown={keepFocus} onClick={() => clip.step(-1)}>⏮{keys && step ? <Key k="←" /> : null}</button>
|
|
1565
|
+
<button {...tip('one frame on', step ? '→' : null)} onMouseDown={keepFocus} onClick={() => clip.step(1)}>⏭{keys && step ? <Key k="→" /> : null}</button>
|
|
1528
1566
|
<input className="rv-scrub" type="range" min={0} max={info.duration} step={1 / info.fps} value={Math.min(clip.time, info.duration)}
|
|
1529
1567
|
onChange={(e) => clip.seek(Number(e.currentTarget.value))} onMouseUp={(e) => e.currentTarget.blur()} />
|
|
1530
1568
|
<span className="rv-mono">{secs(clip.time)} · frame {clip.frameOf(clip.time) + 1}/{frames}</span>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// the facts of one secret field (question-views.tsx SecretField): who reads the secret, the value held, whether a
|
|
2
2
|
// value stored from a terminal answered the question. Read through the one PolledResource while the field shows: the
|
|
3
3
|
// hub's route answers the question when it sees the value stored, so the read is timed, never only a push notice
|
|
4
|
+
import type { Readable } from '../../../secrets/who-reads.ts'
|
|
4
5
|
import { PolledResource } from '../polled.ts'
|
|
5
6
|
import { reach } from '../reach.ts'
|
|
6
7
|
|
|
7
|
-
export type SecretFacts = { name: string; login: boolean; readers: { words: string; short: string }; held: { held: string; at?: number | null }; answered?: boolean; refused?: string }
|
|
8
|
+
export type SecretFacts = { name: string; login: boolean; readers: { words: string; short: string; readable: Readable }; held: { held: string; at?: number | null }; answered?: boolean; refused?: string }
|
|
8
9
|
|
|
9
10
|
/** the field reads its facts again this long after each answer while it shows: a value a step's command stored turns it green */
|
|
10
11
|
export const FACTS_MS = 3_000
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// a share's acts where he shared (wiki tools/shipkit/advisors.md, The share's trace, Copy the invite): under a live
|
|
2
|
+
// share's newest line in the thread's timeline and on the done step of « add advisor », « copy invite » and « copy
|
|
3
|
+
// link » (on its row of the advisors page too). His share IS the act that lets them in: they sign in at once.
|
|
4
|
+
// The lines themselves come from the thread's bar (`/thread` `trace`, advisors/share-trace.ts) and draw as traces
|
|
5
|
+
// (review-cells.tsx)
|
|
6
|
+
import { observer } from 'mobx-react-lite'
|
|
7
|
+
import type { ReactNode } from 'react'
|
|
8
|
+
import type { DoorFacts } from '../../../advisors/door.ts'
|
|
9
|
+
import type { ShareRow } from '../../../advisors/routes.ts'
|
|
10
|
+
import type { AdvisorsSt, ThreadBarSt } from '../advisors-st.ts'
|
|
11
|
+
import { tip } from '../tips.ts'
|
|
12
|
+
import { CopyButton } from './copy-button.tsx'
|
|
13
|
+
|
|
14
|
+
/** an ask of the house, opened on the asks page: a plain link, so this module reaches no page of the home (the
|
|
15
|
+
* advisors' page at the door builds the thread page, review-cells.tsx draws the share's line) */
|
|
16
|
+
export const AskLink = ({ adv, ask, children, says }: { adv: AdvisorsSt; ask: DoorFacts['ask'] | undefined; children: ReactNode; says: string }) =>
|
|
17
|
+
ask == null || ask.repo === '' ? (
|
|
18
|
+
<>{children}</>
|
|
19
|
+
) : (
|
|
20
|
+
<a href="#" {...tip(says)} onClick={(e) => { e.preventDefault(); adv.openAsk(ask.repo, ask.address.replace(/^ask:/, '')) }}>{children}</a>
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
/** the invite of one live share: in two lines for any messenger, or the bare link */
|
|
24
|
+
export const InviteCopy = ({ name, invite }: { name: string; invite: NonNullable<ShareRow['copy']> }) => (
|
|
25
|
+
<span className="adv-copies">
|
|
26
|
+
<CopyButton text={invite.text} label="copy invite" check="copy-invite" says={`the invite to ${name} for any messenger: the advisors page's address, and their one time code while they have not used it; send it to ${name} alone`} />
|
|
27
|
+
<CopyButton text={invite.link} label="copy link" small check="copy-link" says={`the bare link to this thread on the advisors page: ${name} signs in with their email and password first`} />
|
|
28
|
+
</span>
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
/** what a live share offers where he shared it: its invite to copy */
|
|
32
|
+
export const ShareActs = observer(({ bar, share }: { adv: AdvisorsSt; bar: ThreadBarSt; share: string }) => {
|
|
33
|
+
const s = bar.data?.shares.find((x) => x.id === share)
|
|
34
|
+
if (s === undefined || !s.live || s.copy == null) return null
|
|
35
|
+
return (
|
|
36
|
+
<div className="adv-shareacts" data-share={s.id}>
|
|
37
|
+
<InviteCopy name={s.name} invite={s.copy} />
|
|
38
|
+
</div>
|
|
39
|
+
)
|
|
40
|
+
})
|