rvlib-shipkit 2.31.0 → 2.33.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.
Files changed (408) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/package.json +1 -1
  3. package/src/advisors/acts.ts +16 -15
  4. package/src/advisors/advice.ts +56 -102
  5. package/src/advisors/advisor-view.ts +122 -76
  6. package/src/advisors/app-graph.ts +1 -1
  7. package/src/advisors/app.ts +3 -11
  8. package/src/advisors/cf-api.ts +1 -1
  9. package/src/advisors/dir-bucket.ts +4 -3
  10. package/src/advisors/edge/api.ts +20 -221
  11. package/src/advisors/edge/bucket.ts +2 -2
  12. package/src/advisors/edge/handler.ts +13 -155
  13. package/src/advisors/edge/here.ts +5 -5
  14. package/src/advisors/edge/pages.ts +12 -9
  15. package/src/advisors/edge/shell.ts +6 -5
  16. package/src/advisors/edge/sign-in.ts +101 -36
  17. package/src/advisors/edge/status.ts +19 -6
  18. package/src/advisors/edge/types.ts +36 -60
  19. package/src/advisors/expose.ts +29 -29
  20. package/src/advisors/here.ts +12 -12
  21. package/src/advisors/invite-send.ts +79 -35
  22. package/src/advisors/invite.ts +31 -8
  23. package/src/advisors/job.ts +24 -16
  24. package/src/advisors/login.ts +40 -15
  25. package/src/advisors/owner-store.ts +46 -22
  26. package/src/advisors/photos.ts +3 -3
  27. package/src/advisors/project.ts +27 -25
  28. package/src/advisors/reach.ts +89 -0
  29. package/src/advisors/rights.ts +1 -1
  30. package/src/advisors/routes.ts +55 -74
  31. package/src/advisors/scan.ts +0 -4
  32. package/src/advisors/setup-run.ts +14 -14
  33. package/src/advisors/share-trace.ts +3 -3
  34. package/src/advisors/{door-probe.ts → sign-in-probe.ts} +7 -6
  35. package/src/advisors/speaks.ts +29 -0
  36. package/src/advisors/sync.ts +97 -183
  37. package/src/advisors/tunnel.ts +6 -5
  38. package/src/advisors/users-listen.ts +92 -0
  39. package/src/advisors/users-router.ts +261 -87
  40. package/src/advisors/users-store.ts +81 -0
  41. package/src/agent-time/blocked-scan.ts +181 -0
  42. package/src/agent-time/registry.ts +12 -5
  43. package/src/agent-time/store.ts +9 -109
  44. package/src/asks/ask-bar-fold.ts +2 -1
  45. package/src/asks/ask-close.ts +2 -1
  46. package/src/asks/ask-doc.ts +2 -1
  47. package/src/asks/ask-migrate.ts +3 -2
  48. package/src/asks/ask-steps-fold.ts +2 -1
  49. package/src/asks/ask-store.ts +4 -3
  50. package/src/check.ts +3 -43
  51. package/src/checks/SK001-package-json-shape.check.ts +4 -55
  52. package/src/checks/SK004-gitignore-policy.check.ts +24 -69
  53. package/src/checks/SK013-one-way-in-policy.check.ts +3 -7
  54. package/src/checks/SK017-vscode-hub-task.check.ts +4 -4
  55. package/src/checks/SK019-tests-run-in-units.check.ts +3 -14
  56. package/src/checks/SK020-self-spawning-check.check.ts +5 -7
  57. package/src/checks/SK035-public-clean.check.ts +1 -1
  58. package/src/checks/SK039-vscode-watch-generated.check.ts +1 -1
  59. package/src/checks/SK042-post-kinds.check.ts +5 -14
  60. package/src/checks/SK054-agent-allow-list.check.ts +5 -74
  61. package/src/checks/SK055-retired-config-keys.check.ts +45 -0
  62. package/src/cli/cmd_Advisors.ts +11 -45
  63. package/src/cli/cmd_Asks.ts +3 -10
  64. package/src/cli/cmd_Backup.ts +25 -127
  65. package/src/cli/cmd_BackupTargets.ts +1 -1
  66. package/src/cli/cmd_Capacity.ts +6 -2
  67. package/src/cli/cmd_Checks.ts +0 -14
  68. package/src/cli/cmd_Ci.ts +2 -1
  69. package/src/cli/cmd_Db.ts +3 -82
  70. package/src/cli/cmd_Home.ts +4 -32
  71. package/src/cli/cmd_Hq.ts +0 -17
  72. package/src/cli/cmd_Releases.ts +57 -4
  73. package/src/cli/cmd_Review.ts +333 -354
  74. package/src/cli/cmd_Shot.ts +26 -4
  75. package/src/cli/cmd_SocialDrafts.ts +6 -13
  76. package/src/cli/cmd_ThreadSyncNeeds.ts +6 -2
  77. package/src/cli/cmd_Time.ts +1 -1
  78. package/src/cli/cmd_Trailer.ts +1 -1
  79. package/src/cli/inbox-hook-run.ts +5 -23
  80. package/src/cli/registry-heads.ts +5 -55
  81. package/src/cli/registry.ts +1 -5
  82. package/src/cli/review-here.ts +1 -1
  83. package/src/cli.ts +15 -4
  84. package/src/collections/collection-types.ts +1 -1
  85. package/src/collections/review.ts +5 -4
  86. package/src/core/admission.ts +268 -0
  87. package/src/core/agent-allow-policy.ts +32 -2
  88. package/src/core/agent-env.ts +8 -0
  89. package/src/core/allow-rows.ts +74 -0
  90. package/src/core/check-file-names.ts +19 -106
  91. package/src/core/code-lines.ts +36 -21
  92. package/src/core/footprint.ts +17 -13
  93. package/src/core/identities-root.ts +1 -4
  94. package/src/core/layout.ts +1 -2
  95. package/src/core/machine-db.ts +33 -208
  96. package/src/core/machine-layout.ts +14 -127
  97. package/src/core/machine-read.ts +5 -2
  98. package/src/core/mask-source.ts +60 -0
  99. package/src/core/memory-watch.ts +17 -14
  100. package/src/core/motherhome.ts +8 -35
  101. package/src/core/one-way-in-policy.ts +0 -3
  102. package/src/core/peer-sk.ts +8 -0
  103. package/src/core/repo-walk.ts +0 -9
  104. package/src/core/retention.ts +1 -9
  105. package/src/core/retired-checks.ts +2 -0
  106. package/src/core/tmux-policy.ts +1 -1
  107. package/src/core/tree-watch.ts +2 -2
  108. package/src/core/when.ts +7 -45
  109. package/src/gate/admit-heavy.ts +150 -0
  110. package/src/gate/check-runner.ts +6 -0
  111. package/src/gate/discover-checks.ts +42 -32
  112. package/src/gate/gate-checks.ts +21 -131
  113. package/src/gate/head-gate.ts +1 -1
  114. package/src/gate/job-run.ts +2 -1
  115. package/src/gate/pre-commit-discovery.ts +22 -28
  116. package/src/gate/run-check.ts +3 -4
  117. package/src/gate/run-ci.ts +4 -0
  118. package/src/gate/run-fix.ts +5 -17
  119. package/src/gate/run-fixers.ts +6 -42
  120. package/src/home/app-sign.ts +2 -2
  121. package/src/home/backup-status.ts +52 -92
  122. package/src/home/backup-verdict.ts +2 -2
  123. package/src/home/daemon-jobs.ts +51 -95
  124. package/src/home/database-words.ts +1 -2
  125. package/src/home/databases.ts +9 -25
  126. package/src/home/home-launchd.ts +0 -6
  127. package/src/home/home-paths.ts +8 -4
  128. package/src/home/home-routes.ts +3 -10
  129. package/src/home/home-state.ts +2 -14
  130. package/src/home/inbox-shape.ts +14 -15
  131. package/src/home/inbox.ts +1 -1
  132. package/src/home/machine-repair.ts +102 -103
  133. package/src/home/resume.ts +1 -15
  134. package/src/home/run-daemon.ts +7 -12
  135. package/src/home/space-page.ts +3 -2
  136. package/src/home/supervise.ts +3 -7
  137. package/src/hooks/commit-msg-run.ts +61 -0
  138. package/src/hooks/commit-run.ts +16 -166
  139. package/src/hooks/gate-outcome.ts +108 -0
  140. package/src/hooks/git-hook.ts +9 -9
  141. package/src/hooks/hook-config.ts +8 -8
  142. package/src/hooks/leak-guard.ts +1 -1
  143. package/src/hooks/pre-commit-checks.ts +1 -1
  144. package/src/hooks/run-hooks.ts +2 -6
  145. package/src/hooks/shared-file.ts +3 -2
  146. package/src/hq/daemon-db.ts +8 -8
  147. package/src/hq/door.ts +3 -16
  148. package/src/hq/hq-db.ts +4 -3
  149. package/src/hq/hq-local.ts +1 -2
  150. package/src/hq/hq-store.ts +0 -15
  151. package/src/hq/item-direct.ts +8 -10
  152. package/src/hq/item-fill.ts +37 -0
  153. package/src/hq/kinds/item-gone.ts +7 -10
  154. package/src/hq/kinds/item-msg.ts +12 -18
  155. package/src/hq/kinds/item.ts +13 -19
  156. package/src/hq/kinds/report.ts +3 -4
  157. package/src/hq/owner-switch.ts +3 -3
  158. package/src/hq/report.ts +5 -9
  159. package/src/hq/switch.ts +2 -11
  160. package/src/hq/thread-sync.ts +5 -17
  161. package/src/hq/{shapes-words.ts → threads-words.ts} +2 -12
  162. package/src/http/owner-word.ts +1 -1
  163. package/src/identities/machine.ts +16 -0
  164. package/src/init-repo.ts +0 -1
  165. package/src/ledger/check-stats.ts +6 -5
  166. package/src/ledger/db.ts +2 -4
  167. package/src/ledger/record-kept.ts +117 -48
  168. package/src/ledger/run-log.ts +21 -2
  169. package/src/ledger/slow-tests.ts +96 -0
  170. package/src/ledger/store.ts +3 -86
  171. package/src/ledger/suite-log.ts +8 -2
  172. package/src/media-store/backup/facts.ts +3 -37
  173. package/src/media-store/backup/keys.ts +1 -8
  174. package/src/media-store/backup/manifest.ts +6 -67
  175. package/src/media-store/backup/restore.ts +4 -13
  176. package/src/media-store/backup/retention.ts +13 -1
  177. package/src/media-store/backup/run.ts +6 -267
  178. package/src/media-store/backup/snapshot.ts +2 -38
  179. package/src/media-store/backup/sources.ts +3 -113
  180. package/src/media-store/backup/target-send.ts +5 -29
  181. package/src/media-store/db.ts +8 -7
  182. package/src/media-store/forget-one.ts +1 -1
  183. package/src/media-store/forget.ts +1 -80
  184. package/src/orchestrator/guards.ts +0 -1
  185. package/src/orchestrator/presence.ts +2 -2
  186. package/src/orchestrator/routes.ts +1 -1
  187. package/src/orchestrator/started.ts +0 -9
  188. package/src/orchestrator/talk-key.ts +3 -4
  189. package/src/orchestrator/unheard.ts +1 -1
  190. package/src/plan/planner.ts +3 -2
  191. package/src/recordings/edit.ts +3 -3
  192. package/src/recordings/marks-draw.ts +17 -6
  193. package/src/recordings/marks.ts +120 -9
  194. package/src/reflections/reflections-queue.ts +3 -10
  195. package/src/release/notes.ts +1 -1
  196. package/src/release/public-clean.ts +66 -6
  197. package/src/release/run-bump.ts +11 -0
  198. package/src/release/run-release.ts +4 -0
  199. package/src/releases/from-thread.ts +3 -3
  200. package/src/releases/model.ts +186 -36
  201. package/src/releases/store.ts +13 -3
  202. package/src/releases/validate.ts +83 -0
  203. package/src/repo-config.ts +36 -64
  204. package/src/review/answer-kinds.ts +63 -4
  205. package/src/review/blocked-guard.ts +11 -0
  206. package/src/review/blocked-object.ts +298 -0
  207. package/src/review/cells.ts +144 -230
  208. package/src/review/close.ts +39 -1
  209. package/src/review/doc-save.ts +3 -2
  210. package/src/review/draft-item.ts +1 -1
  211. package/src/review/events.ts +3 -7
  212. package/src/review/expect.ts +23 -39
  213. package/src/review/format.ts +79 -46
  214. package/src/review/glyphs.ts +1 -0
  215. package/src/review/hand-over.ts +3 -3
  216. package/src/review/heard.ts +1 -1
  217. package/src/review/holds-sync.ts +2 -1
  218. package/src/review/inbox-hook.ts +2 -2
  219. package/src/review/inbox-read.ts +39 -33
  220. package/src/review/instruction-guards.ts +12 -0
  221. package/src/review/instructions.ts +0 -1
  222. package/src/review/item-db.ts +13 -43
  223. package/src/review/item-hq.ts +2 -2
  224. package/src/review/item-rows.ts +3 -14
  225. package/src/review/kind-catalog.ts +3 -1
  226. package/src/review/kinds.ts +18 -8
  227. package/src/review/live-view.ts +3 -0
  228. package/src/review/media-kind.ts +1 -1
  229. package/src/review/mentions.ts +1 -2
  230. package/src/review/model.ts +158 -114
  231. package/src/review/move.ts +149 -0
  232. package/src/review/need-threads.ts +3 -2
  233. package/src/review/object-card.ts +11 -0
  234. package/src/review/object-read.ts +6 -1
  235. package/src/review/one-block.ts +1 -1
  236. package/src/review/owner-read.ts +1 -1
  237. package/src/review/phone-push.ts +10 -9
  238. package/src/review/previews.ts +32 -4
  239. package/src/review/push.ts +2 -2
  240. package/src/review/recap.ts +129 -0
  241. package/src/review/referring.ts +6 -3
  242. package/src/review/reflection-object.ts +4 -3
  243. package/src/review/routes.ts +51 -47
  244. package/src/review/secret-route.ts +3 -2
  245. package/src/review/settle.ts +0 -6
  246. package/src/review/snooze.ts +5 -3
  247. package/src/review/speaker.ts +68 -0
  248. package/src/review/start-title.ts +19 -0
  249. package/src/review/store-parties.ts +28 -0
  250. package/src/review/store.ts +94 -59
  251. package/src/review/{wakes.ts → thread-events.ts} +92 -7
  252. package/src/review/thread-md.ts +35 -14
  253. package/src/review/thread-state.ts +804 -0
  254. package/src/review/threads.ts +29 -347
  255. package/src/review/traces.ts +104 -7
  256. package/src/review/trailer-item.ts +1 -1
  257. package/src/review/unit.ts +7 -9
  258. package/src/review/verdict-items.ts +12 -10
  259. package/src/review/view-layout.ts +25 -1
  260. package/src/review/watch-feed.ts +1 -2
  261. package/src/review/working-guards.ts +2 -3
  262. package/src/rules/untrack-generated.ts +1 -15
  263. package/src/secrets/copy.ts +4 -4
  264. package/src/secrets/lapse.ts +2 -1
  265. package/src/serve/hub-app/advisor-app.tsx +4 -4
  266. package/src/serve/hub-app/advisor-face.tsx +9 -3
  267. package/src/serve/hub-app/advisor-host.ts +27 -27
  268. package/src/serve/hub-app/advisors-model.ts +17 -8
  269. package/src/serve/hub-app/advisors-rights.tsx +1 -1
  270. package/src/serve/hub-app/advisors-st.ts +15 -14
  271. package/src/serve/hub-app/advisors-view.tsx +13 -11
  272. package/src/serve/hub-app/app-bridge.ts +23 -3
  273. package/src/serve/hub-app/asks-page.tsx +1 -1
  274. package/src/serve/hub-app/auto-text.tsx +71 -16
  275. package/src/serve/hub-app/check-view.tsx +0 -8
  276. package/src/serve/hub-app/controls.css +14 -3
  277. package/src/serve/hub-app/database-view.tsx +1 -2
  278. package/src/serve/hub-app/dock-st.ts +1 -1
  279. package/src/serve/hub-app/git-view.tsx +3 -1
  280. package/src/serve/hub-app/hub.css +12 -5
  281. package/src/serve/hub-app/icons.tsx +1 -1
  282. package/src/serve/hub-app/inbox-view.tsx +1 -2
  283. package/src/serve/hub-app/live-sources.ts +2 -2
  284. package/src/serve/hub-app/main-panel.tsx +2 -1
  285. package/src/serve/hub-app/panel-repo.ts +0 -9
  286. package/src/serve/hub-app/pic.tsx +29 -12
  287. package/src/serve/hub-app/polled.ts +16 -2
  288. package/src/serve/hub-app/recordings-st.ts +23 -2
  289. package/src/serve/hub-app/recordings-view.tsx +68 -10
  290. package/src/serve/hub-app/ref-pill.ts +1 -1
  291. package/src/serve/hub-app/repo-st.ts +1 -2
  292. package/src/serve/hub-app/review/advisor-add.tsx +1 -1
  293. package/src/serve/hub-app/review/advisor-invite.tsx +1 -1
  294. package/src/serve/hub-app/review/draft-body.tsx +2 -2
  295. package/src/serve/hub-app/review/heard-line.tsx +1 -1
  296. package/src/serve/hub-app/review/instructions-view.tsx +1 -8
  297. package/src/serve/hub-app/review/kind-states.tsx +14 -9
  298. package/src/serve/hub-app/review/kit.tsx +4 -11
  299. package/src/serve/hub-app/review/lane-bar.tsx +3 -3
  300. package/src/serve/hub-app/review/lightbox.tsx +15 -11
  301. package/src/serve/hub-app/review/line-window.ts +4 -1
  302. package/src/serve/hub-app/review/live-bar-st.ts +2 -2
  303. package/src/serve/hub-app/review/live-view.tsx +57 -1
  304. package/src/serve/hub-app/review/object-panel.tsx +20 -8
  305. package/src/serve/hub-app/review/question-views.tsx +191 -53
  306. package/src/serve/hub-app/review/recap-bar.tsx +40 -0
  307. package/src/serve/hub-app/review/request-cell.tsx +48 -0
  308. package/src/serve/hub-app/review/review-cells.tsx +154 -96
  309. package/src/serve/hub-app/review/review-host.ts +8 -4
  310. package/src/serve/hub-app/review/review-kit.ts +17 -11
  311. package/src/serve/hub-app/review/review-list.tsx +30 -35
  312. package/src/serve/hub-app/review/review-st.ts +32 -42
  313. package/src/serve/hub-app/review/review-thread.tsx +139 -85
  314. package/src/serve/hub-app/review/review-views.tsx +127 -68
  315. package/src/serve/hub-app/review/share-lines.tsx +4 -4
  316. package/src/serve/hub-app/review/start-st.ts +2 -5
  317. package/src/serve/hub-app/review/superseded-runs.ts +4 -3
  318. package/src/serve/hub-app/review/thread-close.tsx +10 -7
  319. package/src/serve/hub-app/review/thread-st.ts +381 -202
  320. package/src/serve/hub-app/review/tone-bar.tsx +129 -0
  321. package/src/serve/hub-app/review/tones.ts +53 -0
  322. package/src/serve/hub-app/review/trailer-body.tsx +2 -2
  323. package/src/serve/hub-app/review/trailer-st.ts +3 -2
  324. package/src/serve/hub-app/review/trailer-voices-st.ts +3 -2
  325. package/src/serve/hub-app/review.css +189 -106
  326. package/src/serve/hub-app/search-view.tsx +1 -1
  327. package/src/serve/hub-app/social/social-model.ts +0 -4
  328. package/src/serve/hub-app/source-acts.ts +2 -1
  329. package/src/serve/hub-app/stores/stores-page.tsx +2 -2
  330. package/src/serve/hub-app/terminal-sources.tsx +2 -1
  331. package/src/serve/hub-app/thread-row.tsx +3 -4
  332. package/src/serve/hub-app/tree-build.ts +0 -4
  333. package/src/serve/hub-app/urls-view.tsx +2 -1
  334. package/src/serve/hub-app/view-layout.css +13 -3
  335. package/src/serve/hub-app/wikis-view.tsx +5 -2
  336. package/src/serve/hub-runtime.ts +7 -37
  337. package/src/serve/project-gutter-route.ts +6 -2
  338. package/src/serve/read-thread.ts +20 -2
  339. package/src/serve/read-worker.ts +9 -1
  340. package/src/serve/record-pages.ts +46 -0
  341. package/src/serve/serve-hub.ts +2 -2
  342. package/src/serve/terminal-host.ts +1 -1
  343. package/src/serve/terminal-route.ts +1 -3
  344. package/src/serve/tracked-watch.ts +1 -3
  345. package/src/setup-house.ts +2 -2
  346. package/src/shipkit-files.ts +1 -1
  347. package/src/shipkit.ts +1 -6
  348. package/src/shot/client.ts +2 -1
  349. package/src/shot/film-box.ts +0 -20
  350. package/src/shot/on-place.ts +141 -0
  351. package/src/social/drafts.ts +1 -1
  352. package/src/social/kinds.ts +6 -29
  353. package/src/social/load.ts +2 -2
  354. package/src/social/post-object.ts +3 -2
  355. package/src/social/release-stage.ts +1 -1
  356. package/src/social/stage.ts +2 -2
  357. package/src/stores/model.ts +4 -0
  358. package/src/stores/routes.ts +11 -3
  359. package/src/suite/judge-suites.ts +58 -0
  360. package/src/suite/red-alone.ts +54 -18
  361. package/src/suite/runner-shapes.ts +2 -2
  362. package/src/suite/suite-cli.ts +67 -14
  363. package/src/suite/test-units.ts +2 -1
  364. package/src/urls/fill.ts +1 -1
  365. package/src/urls/places.ts +1 -2
  366. package/src/vault/vault-config.ts +2 -2
  367. package/src/vault/vault-init.ts +1 -5
  368. package/src/wiki/graph-page.ts +14 -2
  369. package/src/advisors/copy-truth.ts +0 -49
  370. package/src/advisors/door-child.ts +0 -112
  371. package/src/advisors/door-serve.ts +0 -52
  372. package/src/advisors/door.ts +0 -118
  373. package/src/checks/SK016-legacy-check-shapes.check.ts +0 -189
  374. package/src/checks/SK029-explicit-check-files.check.ts +0 -112
  375. package/src/checks/SK048-one-local-file.check.ts +0 -36
  376. package/src/core/config-rewrite.ts +0 -111
  377. package/src/core/daemon-port.ts +0 -10
  378. package/src/core/legacy-shapes.ts +0 -263
  379. package/src/core/migrate-layout.ts +0 -638
  380. package/src/core/port-check-cli.ts +0 -52
  381. package/src/core/port-check-file.ts +0 -295
  382. package/src/core/port-check-files.ts +0 -31
  383. package/src/gate/discover-legacy-checks.ts +0 -26
  384. package/src/home/home-move.ts +0 -527
  385. package/src/home/machine-fold.ts +0 -810
  386. package/src/hq/item-shapes.ts +0 -54
  387. package/src/hq/kinds/items-read.ts +0 -4
  388. package/src/media-store/backup/daemon.ts +0 -220
  389. package/src/media-store/backup/kept.ts +0 -241
  390. package/src/media-store/backup/prune.ts +0 -359
  391. package/src/media-store/backup/secret.ts +0 -88
  392. package/src/media-store/backup/ssh-space.ts +0 -202
  393. package/src/media-store/backup/watch.ts +0 -117
  394. package/src/review/band.ts +0 -182
  395. package/src/review/folders.ts +0 -216
  396. package/src/review/hook-ask.ts +0 -58
  397. package/src/review/role.ts +0 -48
  398. package/src/review/thread-fold.ts +0 -64
  399. package/src/review/wait.ts +0 -91
  400. package/src/rules/rule.ts +0 -43
  401. package/src/serve/hook-thread.ts +0 -37
  402. package/src/serve/hook-work.ts +0 -92
  403. package/src/serve/hook-worker.ts +0 -57
  404. package/src/serve/hub-app/review/dock.tsx +0 -147
  405. package/src/serve/hub-app/review/faces.tsx +0 -18
  406. package/src/serve/hub-app/review/item-verdict.tsx +0 -112
  407. package/src/serve/hub-app/review/review-board.tsx +0 -48
  408. /package/src/{scaffold → core}/jsonc-spans.ts +0 -0
@@ -22,18 +22,11 @@ type Line = { text: string; tick: boolean; pick?: number }
22
22
  const linesOf = (thread: ThreadSt, c: ReplyCell): Line[] => (c.ask?.lines ?? []).map((l, i) => ({ ...l, tick: thread.ticking[`${c.id}#${i}`] ?? l.tick }))
23
23
 
24
24
  /** the step he is on: the first one not ticked, null once every step is */
25
- export const currentStep = (thread: ThreadSt, c: ReplyCell): number | null => {
25
+ const currentStep = (thread: ThreadSt, c: ReplyCell): number | null => {
26
26
  const i = linesOf(thread, c).findIndex((l) => !l.tick)
27
27
  return i < 0 ? null : i
28
28
  }
29
29
 
30
- /** the dock line of the instructions: « step 2 of 3: Add three tiers », or « all 3 steps done » */
31
- export const stepLine = (thread: ThreadSt, c: ReplyCell): { n: string; title: string } => {
32
- const lines = linesOf(thread, c)
33
- const i = currentStep(thread, c)
34
- return i === null ? { n: `all ${lines.length} steps done`, title: '' } : { n: `step ${i + 1} of ${lines.length}`, title: lines[i]!.text }
35
- }
36
-
37
30
  /** a field at its place in a step: the question of that step it is (`step: { of, i }`, the k-th), drawn by the widget
38
31
  * of its kind (the secret field, a link, a value); a secret's terminal way is its « via cli » button */
39
32
  const Field = observer(({ rv, thread, c, i, k, field, live }: { rv: ReviewSt; thread: ThreadSt; c: ReplyCell; i: number; k: number; field: StepField; live: boolean }) => {
@@ -10,7 +10,7 @@ import { useEffect, useMemo, useRef } from 'react'
10
10
  import { kindDraw, kindFrames, kindViewsOf } from '../../../review/kind-still.ts'
11
11
  import { kindOf, valueKindOf } from '../../../review/kinds.ts'
12
12
  import { isGallery, NO_SPEC, type Item, type StoredState } from '../../../review/model.ts'
13
- import { cardOf } from '../../../review/object-card.ts'
13
+ import { cardOf, fillOf } from '../../../review/object-card.ts'
14
14
  import { CodeHunk, Swatches, WordDiff } from './diff-view.tsx'
15
15
  import { keepFocus } from './kit.tsx'
16
16
  import { Lightbox } from './lightbox.tsx'
@@ -235,32 +235,37 @@ const FieldValue = ({ kind, before, after }: { kind: string | undefined; before?
235
235
  /** the kind's actions: one click is a message the holder's watch prints; one that takes words names itself on the reply
236
236
  * box's chip, and the owner's words there go with it. On item `id`; `re` the link in the thread it acts on (an object's box),
237
237
  * `about` that object's address, said first in the words so the holder's watch line names it */
238
- export const Actions = observer(({ thread, id, actions, re, about }: { thread: ThreadSt; id: string; actions: NonNullable<ReturnType<typeof kindOf>>['actions'] & object; re?: string; about?: string }) => {
239
- const sent = thread.acted[`${id}#${re ?? ''}`]
238
+ export const Actions = observer(({ thread, id, actions, re, about, md, decided }: { thread: ThreadSt; id: string; actions: NonNullable<ReturnType<typeof kindOf>>['actions'] & object; re?: string; about?: string; /** the object's words, an action's `fill` reads its box's first words from them */ md?: string; /** the act he chose: drawn picked as an option he picked, in its tone, the others dimmed, no click left */ decided?: { name: string } }) => {
239
+ const local = thread.actOn(id, re)
240
+ const chosen = decided?.name ?? (local !== undefined && local.state !== 'failed' ? local.name : undefined)
240
241
  const o = thread.replyOn
241
242
  const asked = (name: string): boolean => o?.to === 'action' && o.on === id && o.name === name && o.re === re
243
+ const tone = (name: string, no: boolean | undefined): string => (chosen === name ? (no ? ' picked none' : ' picked') : decided !== undefined ? ' faded' : asked(name) ? ' on' : '')
242
244
  return (
243
- <div className="rv-kindactions">
245
+ <div className="rv-kindactions" data-check="kind-actions" data-decided={decided?.name} aria-busy={local?.state === 'sending'}>
244
246
  <div className="rv-askopts">
245
247
  {Object.entries(actions).map(([name, a]) => (
246
248
  <button
247
249
  key={name}
248
- className={`rv-askopt${sent === name ? ' picked' : asked(name) ? ' on' : ''}`}
249
- {...tip(a.words ? `${a.what ?? name}: say it in the reply box` : (a.what ?? name))}
250
- disabled={thread.busy}
250
+ className={`rv-askopt${tone(name, a.no)}`}
251
+ data-action={name}
252
+ {...tip(decided !== undefined ? (chosen === name ? 'your answer' : null) : a.words ? `${a.what ?? name}: say it in the reply box` : (a.what ?? name))}
253
+ disabled={thread.busy || decided !== undefined}
251
254
  onMouseDown={keepFocus}
252
255
  onClick={() =>
253
256
  a.words
254
- ? thread.replyTo({ to: 'action', on: id, name, label: `« ${a.label} »`, ...(re !== undefined ? { re } : {}), ...(about !== undefined ? { about } : {}) })
257
+ ? (thread.replyTo({ to: 'action', on: id, name, label: `« ${a.label} »`, ...(re !== undefined ? { re } : {}), ...(about !== undefined ? { about } : {}) }),
258
+ a.fill && md ? thread.setComment(fillOf(md, a.fill)) : undefined)
255
259
  : void thread.act(id, name, about ?? '', re)
256
260
  }
257
261
  >
258
262
  {a.icon ? `${a.icon} ` : ''}
259
263
  {a.label}
260
- {sent === name ? <span className="rv-badge">✓ sent</span> : null}
264
+ {chosen === name ? decided !== undefined ? <span className="rv-yours">✓ yours</span> : <span className="rv-badge">{local?.state === 'sending' ? 'sending…' : '✓ sent'}</span> : null}
261
265
  </button>
262
266
  ))}
263
267
  </div>
268
+ {local?.state === 'failed' ? <div className="rv-pickstate err">✗ not sent: {local.why}</div> : null}
264
269
  </div>
265
270
  )
266
271
  })
@@ -13,23 +13,16 @@ import { tip, type TipAttrs } from '../tips.ts'
13
13
  /** a status's tone, as a class review.css colours: its tint, its line, its badge */
14
14
  export const toneOf = (s: ShownStatus): string => `st-${s}`
15
15
 
16
- /** the verdicts the owner gives, in the order of their buttons */
17
- export const VERDICTS: { status: ReviewStatus; label: string; short: string; key: string; glyph: string }[] = [
18
- { status: 'approved', label: 'Approve', short: 'Approve', key: 'V', glyph: '✓' },
19
- { status: 'approved-with-fix', label: 'OK with a fix', short: 'Fix', key: 'F', glyph: '⚒' },
20
- { status: 'rejected', label: 'Reject', short: 'Reject', key: 'R', glyph: '✕' },
21
- { status: 'archived', label: 'Not doing it: closed, nothing owed', short: 'Not doing it', key: 'A', glyph: '▤' },
22
- ]
23
16
 
24
17
  /** the owner's reaction to a view or a tile, in the order of the toggles */
25
18
  export const REACTIONS: { status: ReviewStatus; label: string; tip: string; glyph: string; key: string }[] = [
26
19
  { status: 'approved', label: 'OK', tip: 'this image is right', glyph: '✓', key: 'V' },
27
20
  { status: 'approved-with-fix', label: 'Fix', tip: 'almost: a fix', glyph: '⚒', key: 'F' },
28
- { status: 'rejected', label: 'No', tip: 'this image is wrong', glyph: '✕', key: 'R' },
21
+ { status: 'rework', label: 'No', tip: 'this image is wrong', glyph: '✕', key: 'R' },
29
22
  ]
30
23
 
31
24
  /** the same three said of one message of a draft version: what each means for a text and its place */
32
- export const PLACE_TIPS: Record<string, string> = { approved: 'this text is right for this place', 'approved-with-fix': 'almost: say what to change', rejected: 'not this text, or not this place' }
25
+ export const PLACE_TIPS: Record<string, string> = { approved: 'this text is right for this place', 'approved-with-fix': 'almost: say what to change', rework: 'not this text, or not this place' }
33
26
 
34
27
  /** the lightbox's key for a word on the image shown: 1 2 3, or V F R (each reaction's `key`, the letters of the version's
35
28
  * verdict), which there speak of the image in front of the reader. Null for any other key */
@@ -85,7 +78,7 @@ export function laneHue(lane: string): number {
85
78
  }
86
79
 
87
80
  /** a lane reworking the thread: a slow spinner and « L147 reworks it » in the lane's colour; nothing when nobody does */
88
- export const Rework = ({ r }: { r: ThreadRow['rework'] }) => {
81
+ export const Rework = ({ r }: { r: { lane: string; since: string; until: number } | null | undefined }) => {
89
82
  const [, redraw] = useState(0)
90
83
  const until = r?.until
91
84
  useEffect(() => {
@@ -108,7 +101,7 @@ export const Rework = ({ r }: { r: ThreadRow['rework'] }) => {
108
101
  * its holder hears, amber while its session hears for it, grey while nobody does; a click shows the tree it reads.
109
102
  * `plain` is a list row's: the lane alone in muted words, the light a dot, nothing when nobody holds it. `hears` is the
110
103
  * answer box's: the one who hears his answer now, never a lane that ended (its session, the orchestrator, « nobody ») */
111
- export const HolderChip = observer(({ rv, holder, compact = false, plain = false, hears = false }: { rv: ReviewSt; holder: ThreadRow['holder'] | null | undefined; compact?: boolean; plain?: boolean; hears?: boolean }) => {
104
+ export const HolderChip = observer(({ rv, holder, compact = false, plain = false, hears = false }: { rv: ReviewSt; holder: ThreadRow['state']['holder'] | undefined; compact?: boolean; plain?: boolean; hears?: boolean }) => {
112
105
  const h = rv.hearingOf(holder)
113
106
  const tree = rv.treeOf(holder)
114
107
  const repo = rv.partiesRepo || rv.host.name
@@ -28,10 +28,10 @@ export const LaneBar = observer(({ rv, thread, menu }: { rv: ReviewSt; thread: T
28
28
  const [err, setErr] = useState<string | null>(null)
29
29
  if (!v) return null
30
30
  const repo = rv.partiesRepo || rv.host.name
31
- if (v.laneAsk)
31
+ if (v.state.laneAsk)
32
32
  return (
33
- <span className="rv-lanebar on" role="status" {...tip(v.laneAsk.words ? `your words: ${v.laneAsk.words}` : 'a lane, no words')}>
34
- ⇢ {laneAskWords(v.laneAsk, v.holder ? { ...v.holder, at: '' } : null, rv.parties, repo)}
33
+ <span className="rv-lanebar on" role="status" {...tip(v.state.laneAsk.words ? `your words: ${v.state.laneAsk.words}` : 'a lane, no words')}>
34
+ ⇢ {laneAskWords(v.state.laneAsk, v.state.holder ? { ...v.state.holder, at: '' } : null, rv.parties, repo)}
35
35
  </span>
36
36
  )
37
37
  const send = async (words: string): Promise<void> => {
@@ -1,18 +1,22 @@
1
1
  // the lightbox over the whole window: one bar on top (where he is, what he does, then ✕), the stage that takes the room
2
2
  // between (--fit-h, review.css), a slim bar under it. A view of a version (review-views.tsx BoxFrame) and a kind's page
3
3
  // framed live (kind-states.tsx KindBox) draw in it; each keeps its own keys (review-views.tsx boxKey). `over` floats
4
- // in a corner of the stage, over the view (the map of a picture larger than its room, box-zoom.tsx)
4
+ // in a corner of the stage, over the view (the map of a picture larger than its room, box-zoom.tsx). `side` stands on
5
+ // the stage's right, never over the view (an option's panel, review-views.tsx OptionSide)
5
6
  import type { ReactNode, RefObject } from 'react'
6
7
  import { tip } from '../tips.ts'
7
8
  import { Key } from './kit.tsx'
8
9
 
9
- export const Lightbox = ({ tone = '', label, top, foot, close, stage, over, children }: { tone?: string; label: string; top: ReactNode; foot?: ReactNode; close: () => void; stage?: RefObject<HTMLDivElement | null>; over?: ReactNode; children: ReactNode }) => (
10
- <div className={`rv-viewbox${tone}`} data-check="lightbox" role="dialog" aria-modal="true" aria-label={label}>
11
- <header className="rv-boxbar rv-boxtop">
12
- {top}
13
- <button className="ghost rv-boxclose" data-check="lightbox-close" {...tip('close', 'Escape')} aria-label="close" onClick={close}>✕<Key k="esc" /></button>
14
- </header>
15
- <div ref={stage} className="rv-boxstage rv-zoomstage">{children}{over}</div>
16
- {foot ? <footer className="rv-boxbar rv-boxfoot">{foot}</footer> : null}
17
- </div>
18
- )
10
+ export const Lightbox = ({ tone = '', label, top, foot, close, stage, over, side, children }: { tone?: string; label: string; top: ReactNode; foot?: ReactNode; close: () => void; stage?: RefObject<HTMLDivElement | null>; over?: ReactNode; side?: ReactNode; children: ReactNode }) => {
11
+ const room = <div ref={stage} className="rv-boxstage rv-zoomstage">{children}{over}</div>
12
+ return (
13
+ <div className={`rv-viewbox${tone}`} data-check="lightbox" role="dialog" aria-modal="true" aria-label={label}>
14
+ <header className="rv-boxbar rv-boxtop">
15
+ {top}
16
+ <button className="ghost rv-boxclose" data-check="lightbox-close" {...tip('close', 'Escape')} aria-label="close" onClick={close}>✕<Key k="esc" /></button>
17
+ </header>
18
+ {side ? <div className="rv-boxbody">{room}{side}</div> : room}
19
+ {foot ? <footer className="rv-boxbar rv-boxfoot">{foot}</footer> : null}
20
+ </div>
21
+ )
22
+ }
@@ -61,6 +61,9 @@ export class LineWindow {
61
61
  spread = 0
62
62
  /** the column stands at its end: a line that lands after it is followed. Plain, it draws nothing */
63
63
  atEnd = false
64
+ /** how far above its end the column stood at its last scroll: a follow of the end keeps it, so a line drawn again at
65
+ * its height moves nothing under his pointer. Plain, it draws nothing */
66
+ fromEnd = 0
64
67
  /** the dom id a jump asked to draw, before the next scroll */
65
68
  anchor: string | null = null
66
69
 
@@ -69,7 +72,7 @@ export class LineWindow {
69
72
  /** where the thread lands, null for its end: the window stands there before the first scroll */
70
73
  private readonly landing: () => string | null = () => null,
71
74
  ) {
72
- makeAutoObservable<this, 'lines' | 'landing'>(this, { lines: false, landing: false, atEnd: false, heights: observableShallow, range: computedStruct })
75
+ makeAutoObservable<this, 'lines' | 'landing'>(this, { lines: false, landing: false, atEnd: false, fromEnd: false, heights: observableShallow, range: computedStruct })
73
76
  }
74
77
 
75
78
  get keys(): string[] {
@@ -3,7 +3,7 @@
3
3
  // went; off it (his phone over the tailnet) the frame is the page itself, and the bar knows only what it was told to
4
4
  // open. The one constraint a reader breaks first: a message counts only from the frame's own window, under a hop name
5
5
  import { makeAutoObservable } from 'mobx'
6
- import { LIVE_SAY, liveHopOrigin, liveHopTarget, liveHopUrl, liveLoopback, liveTargetUrl, liveUrlRefusal } from '../../../review/live-view.ts'
6
+ import { LIVE_SAY, liveHopOrigin, liveHopTarget, liveHopUrl, liveLoopback, liveTabHref, liveTargetUrl, liveUrlRefusal } from '../../../review/live-view.ts'
7
7
 
8
8
  /** where the page that holds the bar sits: `location` in the browser */
9
9
  export type LivePlace = { hostname: string; port: string; origin: string }
@@ -69,7 +69,7 @@ export class LiveBarSt {
69
69
 
70
70
  /** the hub's own page that frames the page the frame is on now, full window */
71
71
  get tabHref(): string {
72
- return `/live?url=${encodeURIComponent(this.url)}`
72
+ return liveTabHref(this.url)
73
73
  }
74
74
 
75
75
  private wall(url: string): string | null {
@@ -4,7 +4,10 @@
4
4
  // behind it. Only the owner's hub frames: an advisor's copy holds the shot alone
5
5
  import { observer } from 'mobx-react-lite'
6
6
  import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react'
7
- import { liveFace, liveOpenHref, type ViewLive } from '../../../review/live-view.ts'
7
+ import { liveFace, liveOpenHref, liveTabHref, type ViewLive } from '../../../review/live-view.ts'
8
+ import { besideKind, openBeside, openTab, type SideIdentity } from '../app-bridge.ts'
9
+ import { ICON, Icon } from '../icons.tsx'
10
+ import { hubProbe, sideFrame } from '../side-frame.ts'
8
11
  import { Words } from '../words.tsx'
9
12
  import { keepFocus } from './kit.tsx'
10
13
  import { LiveBar, LiveFrame, LiveRefusal } from './live-bar.tsx'
@@ -103,3 +106,56 @@ export const LiveBody = observer(({ live, label, shotSrc, size, shot }: { live:
103
106
  </div>
104
107
  )
105
108
  })
109
+
110
+ /** one way to open a live view's page from its tile: a button, or a link a plain click sends through `run` */
111
+ type TileAct = { id: string; icon: string; tip: string; run: () => void; href?: string }
112
+
113
+ /** a live view's tile in the thread: its shot inside a border of its own colour (--iframe), IFRAME on it, and down its
114
+ * right side every way to open the page this hub has: framed here in the lightbox, beside the page (the app's side
115
+ * panel, else the page's side frame), the page itself in a tab, the hub's tab with its bar, its address copied. A page
116
+ * that frames nothing (an advisor's) keeps the shot and the lightbox alone */
117
+ export const LiveTile = observer(({ live, label, still, open, framed, hub, identity }: { live: ViewLive; label: string; still: ReactNode; open: () => void; framed: boolean; hub: { url(path: string): string }; identity: () => SideIdentity | null }) => {
118
+ const [copied, setCopied] = useState(false)
119
+ useEffect(() => {
120
+ if (!copied) return
121
+ const t = setTimeout(() => setCopied(false), 1_500)
122
+ return () => clearTimeout(t)
123
+ }, [copied])
124
+ const href = liveOpenHref(live, location.origin)
125
+ const name = label || live.url
126
+ const beside = framed ? besideKind(globalThis, sideFrame) : null
127
+ const acts: TileAct[] = [
128
+ { id: 'here', icon: ICON.play, tip: !framed ? 'open its shot large' : live.hub ? 'open its shot large: a page of this hub is never framed into it' : 'run the page here, framed in the lightbox with its address bar', run: open },
129
+ ...(beside == null ? [] : [{
130
+ id: 'side', icon: ICON.sidepanel,
131
+ tip: beside === 'app' ? "open the page in this window's side panel, beside the thread" : 'open the page in a side frame at the right of this page, beside the thread',
132
+ run: () => void (openBeside(new URL(href), globalThis, sideFrame.at(hubProbe((p) => hub.url(p), location.origin)), identity()) || openTab(href, name)),
133
+ }]),
134
+ ...(!framed ? [] : [
135
+ { id: 'tab', icon: ICON.newtab, tip: `open the page itself in a new tab: ${href}`, href, run: () => openTab(href, name) },
136
+ ...(live.hub ? [] : [{ id: 'hubtab', icon: ICON.window, tip: 'open it in a tab of the hub, full window, with back, forward and its address bar', href: liveTabHref(live.url), run: () => openTab(liveTabHref(live.url)) }]),
137
+ { id: 'copy', icon: copied ? ICON.check : ICON.copy, tip: copied ? 'copied' : `copy its address: ${href}`, run: () => void navigator.clipboard.writeText(href).then(() => setCopied(true), () => undefined) },
138
+ ]),
139
+ ]
140
+ return (
141
+ <div className="rv-livetile" data-check="live-tile">
142
+ {still}
143
+ <span className="rv-iframetag" aria-hidden>{framed ? 'IFRAME' : 'SHOT'}</span>
144
+ <div className="rv-iframerail" role="toolbar" aria-label="open the page">
145
+ {acts.map((a) =>
146
+ a.href != null ? (
147
+ // a link, so the pointer shows where it goes and ⌘ click keeps the browser's way; a plain click is the hub's tab
148
+ <a key={a.id} href={a.href} target="_blank" rel="noopener noreferrer" data-check={`live-${a.id}`} aria-label={a.tip} {...tip(a.tip)}
149
+ onClickCapture={(e) => {
150
+ if (e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return
151
+ e.preventDefault()
152
+ a.run()
153
+ }}><Icon d={a.icon} /></a>
154
+ ) : (
155
+ <button key={a.id} type="button" data-check={`live-${a.id}`} aria-label={a.tip} {...tip(a.tip)} onMouseDown={keepFocus} onClick={a.run}><Icon d={a.icon} /></button>
156
+ ),
157
+ )}
158
+ </div>
159
+ </div>
160
+ )
161
+ })
@@ -13,7 +13,6 @@ import { glyphOf, hueOf, MESSAGE_TYPES, type MessageType } from '../../../review
13
13
  import { kindOf } from '../../../review/kinds.ts'
14
14
  import { drawnBy } from '../../../review/one-block.ts'
15
15
  import { NO_SPEC, type Item, type Spec } from '../../../review/model.ts'
16
- import type { WaitsOn } from '../../../review/wait.ts'
17
16
  import { Icon, ICON } from '../icons.tsx'
18
17
  import { renderMd } from '../md.ts'
19
18
  import { Actions, Frames } from './kind-states.tsx'
@@ -21,6 +20,8 @@ import { keepFocus } from './kit.tsx'
21
20
  import type { ReviewSt } from './review-st.ts'
22
21
  import type { ThreadSt } from './thread-st.ts'
23
22
  import { tip } from '../tips.ts'
23
+ import { WordsInline } from '../words.tsx'
24
+ import { type WaitsOn } from '../../../review/thread-state.ts'
24
25
 
25
26
  /** the type of one cell of a thread: a question by what it takes, a link, an update, the owner's note */
26
27
  export function messageTypeOf(c: Cell): MessageType {
@@ -29,6 +30,7 @@ export function messageTypeOf(c: Cell): MessageType {
29
30
  if (c.kind === 'verdict') return 'verdict'
30
31
  if (c.kind === 'note') return 'note'
31
32
  if (c.instructions) return 'instructions'
33
+ if (c.recap) return 'recap'
32
34
  if (c.propose) return 'change'
33
35
  if (c.ask) return c.ask.kind === 'secret' ? 'secret' : c.ask.kind === 'checklist' ? 'checklist' : 'question'
34
36
  if (c.op === 'ask') return 'question'
@@ -92,7 +94,15 @@ const DrawnThere = observer(({ rv, thread, address }: { rv: ReviewSt; thread: Th
92
94
  )
93
95
  })
94
96
 
95
- /** an object a message linked: a compact card, its click opens the panel with the object whole; its kind's actions on
97
+ /** the owner's act on a linked object, drawn on it: the act, the owner's words with it */
98
+ const Decided = ({ d, label, bare }: { d: NonNullable<Linked['decided']>; label: string | undefined; /** the act drawn picked above it: its words alone */ bare?: boolean }) => (
99
+ <span className="rv-linkeddecided" data-check="object-decided">
100
+ {bare ? null : <>you: {label ?? d.name}</>}
101
+ {d.text !== '' ? <>{bare ? '' : ' '}« <WordsInline text={d.text} /> »</> : null}
102
+ </span>
103
+ )
104
+
105
+ /** an object a message linked, drawn compact: its click opens the panel with the object whole; its kind's actions on
96
106
  * it while it stands and its panel is shut (open, the panel holds them), the owner's answer once given, folded once its own
97
107
  * thread is done */
98
108
  export const ObjectCard = observer(({ rv, thread, c, l }: { rv: ReviewSt; thread: ThreadSt; c: ReplyCell; l: Linked }) => {
@@ -106,16 +116,18 @@ export const ObjectCard = observer(({ rv, thread, c, l }: { rv: ReviewSt; thread
106
116
  <span className="rv-objglyph" {...tip(kind?.label ?? word)} {...hueProps(kind)}><Icon d={glyphOf(kind)} /></span>
107
117
  <span className="rv-objtext">
108
118
  <span className="rv-objhead"><span className="rv-linkedkind">{word}</span><b className="rv-objtitle">{l.title}</b></span>
109
- {l.md.trim() !== '' ? <span className="rv-objline">{oneLine(l.md)}</span> : l.lost ? <span className="rv-objline rv-dim">its words are lost</span> : null}
119
+ {l.md.trim() !== '' && !kind?.whole ? <span className="rv-objline">{oneLine(l.md)}</span> : l.md.trim() === '' && l.lost ? <span className="rv-objline rv-dim">its words are lost</span> : null}
110
120
  </span>
111
121
  </button>
112
- {l.decided || l.done ? (
122
+ {kind?.whole && l.md.trim() !== '' ? <div className="md rv-what rv-objwhole" data-check="object-whole" dangerouslySetInnerHTML={{ __html: renderMd(l.md.replace(/^# .*\n+/, '')) }} /> : null}
123
+ {kind?.actions && l.decided && !open ? <Actions thread={thread} id={c.on} actions={kind.actions} re={c.id.slice(c.on.length + 1)} about={l.address} decided={l.decided} /> : null}
124
+ {(l.decided && (!kind?.actions || l.decided.text !== '')) || l.done ? (
113
125
  <div className="rv-objstate">
114
- {l.decided ? <span className="rv-linkeddecided" {...tip(l.decided.text)}>you: {kind?.actions?.[l.decided.name]?.label ?? l.decided.name}</span> : null}
126
+ {l.decided ? <Decided d={l.decided} label={kind?.actions?.[l.decided.name]?.label} bare={kind?.actions !== undefined} /> : null}
115
127
  {l.done ? <span className="rv-dim" {...tip(l.folded ?? 'folded')}>folded</span> : null}
116
128
  </div>
117
129
  ) : null}
118
- {kind?.actions && !l.done && !open ? <Actions thread={thread} id={c.on} actions={kind.actions} re={c.id.slice(c.on.length + 1)} about={l.address} /> : null}
130
+ {kind?.actions && !l.decided && !l.done && !open ? <Actions thread={thread} id={c.on} actions={kind.actions} re={c.id.slice(c.on.length + 1)} about={l.address} md={l.md} /> : null}
119
131
  </section>
120
132
  )
121
133
  })
@@ -212,9 +224,9 @@ export const ObjectPanel = observer(({ rv, thread, whole }: { rv: ReviewSt; thre
212
224
  </div>
213
225
  {at?.l ? (
214
226
  <footer className="rv-panelfoot">
215
- {at.l.decided ? <span className="rv-linkeddecided" {...tip(at.l.decided.text)}>you: {kind?.actions?.[at.l.decided.name]?.label ?? at.l.decided.name}</span> : null}
227
+ {at.l.decided && (!kind?.actions || at.l.decided.text !== '') ? <Decided d={at.l.decided} label={kind?.actions?.[at.l.decided.name]?.label} bare={kind?.actions !== undefined} /> : null}
216
228
  {at.l.done ? <span className="rv-dim">folded: {at.l.folded ?? 'its own thread is done'}</span> : null}
217
- {kind?.actions && !at.l.done ? <Actions thread={thread} id={at.c.on} actions={kind.actions} re={at.c.id.slice(at.c.on.length + 1)} about={at.l.address} /> : null}
229
+ {kind?.actions && (at.l.decided || !at.l.done) ? <Actions thread={thread} id={at.c.on} actions={kind.actions} re={at.c.id.slice(at.c.on.length + 1)} about={at.l.address} md={at.l.md} {...(at.l.decided ? { decided: at.l.decided } : {})} /> : null}
218
230
  </footer>
219
231
  ) : null}
220
232
  </aside>