@marver-design/marver 0.23.1 → 0.25.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 (80) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +3 -1
  3. package/dist/anchor-DVV732zR.mjs +33 -0
  4. package/dist/anchor-check-BE5VVN6Q.mjs +135 -0
  5. package/dist/{bake-DQtnDB8-.mjs → bake-D8byeRzB.mjs} +1 -1
  6. package/dist/{boards-BRLnoTC3.mjs → board-tree-DRioF94d.mjs} +21 -277
  7. package/dist/boards-CGg6piKF.mjs +342 -0
  8. package/dist/{boards-Dv-Ipd8G.mjs → boards-Csxj2WJn.mjs} +23 -9
  9. package/dist/{build-_ndp_dXn.mjs → build-BHoWLvSj.mjs} +63 -37
  10. package/dist/cli.mjs +31 -17
  11. package/dist/{collab-mAiNZlDj.mjs → collab-gqNdScUE.mjs} +39 -9
  12. package/dist/{comments-DZyobpxG.mjs → comments-Zoch254k.mjs} +19 -1
  13. package/dist/{comments-BlqyZh3D.mjs → comments-pTLlhjh4.mjs} +150 -20
  14. package/dist/{config-BUKprFAp.mjs → config-cKgZBRj0.mjs} +1 -1
  15. package/dist/{context-CdkNiKdJ.mjs → context-D2ugHqwO.mjs} +17 -123
  16. package/dist/{daemon-BvMPdQ3k.mjs → daemon-Cl8KXGW4.mjs} +146 -64
  17. package/dist/{dev-Cf-4eqaC.mjs → dev-DJdgow47.mjs} +23 -11
  18. package/dist/{events-B3LBn74P.mjs → events-DnK_AnrW.mjs} +13 -15
  19. package/dist/imports-WBSnnHLb.mjs +143 -0
  20. package/dist/{init-hfZV7TwY.mjs → init-DO4DhUt_.mjs} +28 -6
  21. package/dist/link-C-qUIuKU.mjs +160 -0
  22. package/dist/{board-status-BZSzc9Hp.mjs → manifest-DnAte_fB.mjs} +537 -13
  23. package/dist/marks-DFuintmJ.mjs +50 -0
  24. package/dist/marks-koRsbHfe.mjs +397 -0
  25. package/dist/{marver-id-gate-B_idGdHm.mjs → marver-id-gate-DGANtVyC.mjs} +2 -2
  26. package/dist/perf-CCisg-ny.mjs +49 -0
  27. package/dist/perf-QJIWtTw1.mjs +68 -0
  28. package/dist/{plugin-DoXql0ZZ.mjs → plugin-CTyhjwoJ.mjs} +469 -82
  29. package/dist/{poster-XBmUvQiL.mjs → poster-D0cbV7hi.mjs} +1 -1
  30. package/dist/{profile-CrZohD6g.mjs → profile-Do0nGkXO.mjs} +1 -1
  31. package/dist/{publish-bakes-KKTHWqq3.mjs → publish-bakes--l8ot2eQ.mjs} +9 -9
  32. package/dist/{serve-z5qtj_wJ.mjs → serve-wv2QWdxB.mjs} +6 -6
  33. package/dist/{share-BD-wcDQq.mjs → share-ScamJcks.mjs} +1 -1
  34. package/dist/{shot-DOD8v6fJ.mjs → shot-CckrGW-J.mjs} +19 -11
  35. package/dist/{shot-Dh6fV1Lm.mjs → shot-jdO_B6Qw.mjs} +1 -1
  36. package/dist/{summary-C7CAypbB.mjs → summary-CrW88e3q.mjs} +1 -1
  37. package/dist/{sync-DoA1vf4u.mjs → sync-C3035OnJ.mjs} +18 -8
  38. package/dist/{work-ClFFq0Qh.mjs → work-CpJn1gwY.mjs} +8 -4
  39. package/dist/{work-ayuL_9Kk.mjs → work-GE88wb_3.mjs} +4 -4
  40. package/docs/boards-and-folders.md +70 -4
  41. package/docs/live-jam.md +12 -4
  42. package/package.json +1 -1
  43. package/src/client/frame-host/bridge.js +2 -1
  44. package/src/client/frame-host/inspect.js +195 -84
  45. package/src/client/frame-host/main.tsx +7 -2
  46. package/src/client/frame-host/registry.ts +5 -5
  47. package/src/client/shell/App.tsx +98 -30
  48. package/src/client/shell/BoardList.tsx +74 -16
  49. package/src/client/shell/Comments.tsx +79 -34
  50. package/src/client/shell/ContextMenu.tsx +5 -2
  51. package/src/client/shell/LockedApp.tsx +45 -12
  52. package/src/client/shell/Play.tsx +35 -32
  53. package/src/client/shell/Toolbar.tsx +3 -1
  54. package/src/client/shell/canvas/Canvas.tsx +2 -0
  55. package/src/client/shell/canvas/FrameNode.tsx +15 -5
  56. package/src/client/shell/canvas/sleep.ts +4 -3
  57. package/src/client/shell/canvas/updates.ts +55 -0
  58. package/src/client/shell/comments-store.ts +48 -17
  59. package/src/client/shell/goto.ts +11 -14
  60. package/src/client/shell/hash.ts +12 -5
  61. package/src/client/shell/icons.tsx +1 -2
  62. package/src/client/shell/legacy-links.ts +67 -0
  63. package/src/client/shell/marks-ui.tsx +117 -0
  64. package/src/client/shell/pin-layout.ts +37 -0
  65. package/src/client/shell/store.ts +377 -67
  66. package/src/client/shell/styles.css +32 -8
  67. package/src/client/stage/main.tsx +19 -2
  68. package/src/shared/anchor.ts +57 -0
  69. package/src/shared/board-tree.ts +27 -10
  70. package/src/shared/events.ts +19 -10
  71. package/src/shared/marks.ts +70 -0
  72. package/templates/AGENTS-embedded.md +34 -15
  73. package/templates/AGENTS-studio.md +34 -15
  74. package/templates/instructions/boards.md +9 -5
  75. package/templates/instructions/iterate.md +20 -10
  76. package/templates/instructions/jam.md +13 -4
  77. package/templates/instructions/publish.md +2 -1
  78. package/templates/instructions/reference/deck-story.md +2 -2
  79. package/dist/link-BodAbIQz.mjs +0 -132
  80. package/dist/manifest-TpfDWldB.mjs +0 -528
@@ -1,21 +1,24 @@
1
1
  import { Component, useEffect, useRef, useState, type MouseEvent as ReactMouseEvent, type ReactNode } from 'react'
2
- import { useStore, CONFIG, CANVAS_NAME, LOCKED_SHELL, PUBLISHED, SOURCE_REVEALED, boardLabel, boardFrames, cap, humanize, fetchBoardNames, tabTitle, hydrateBoardPolicy, landingMode, playsAsSlides, sceneLabel, type FrameEntry } from './store.ts'
3
- import { BoardList } from './BoardList.tsx'
2
+ import { useStore, CONFIG, CANVAS_NAME, LOCKED_SHELL, PUBLISHED, SOURCE_REVEALED, logReload, takeReloadCause, addToBoard, boardLabel, cap, humanize, fetchBoardNames, landingBoard, tabTitle, hydrateBoardPolicy, landingMode, playsAsSlides, sceneLabel, type FrameEntry } from './store.ts'
3
+ import { AddToBoard, BoardList } from './BoardList.tsx'
4
4
  import { ContextMenu, copyToClipboard, framePath, useContextMenu, type MenuItem } from './ContextMenu.tsx'
5
5
  import { Tip } from './Tip.tsx'
6
6
  import { PKG, ROUTE } from '../const.ts'
7
7
  import { animateLayout, Canvas, canvasCtl } from './canvas/Canvas.tsx'
8
8
  import { frameByWindow } from './canvas/frame-registry.ts'
9
9
  import { enterFocus, enterPlay, enterSlides, playCtl, PlayOverlay } from './Play.tsx'
10
- import { bootHash, linkTargets, parseHash, writeHash } from './hash.ts'
11
- import { CaretIcon, CheckIcon, ColumnsIcon, FrameRectIcon, ImagesSquareIcon, IntentGlyph, MoonIcon, PanelFilledIcon, PanelHollowIcon, ParallelogramDuoIcon, ParallelogramFillIcon, PencilSimpleIcon, PlayIcon, SignpostIcon, SlideFrameIcon, SunIcon, VariantsIcon, XIcon, deviceIcon } from './icons.tsx'
12
- import { humanize as slugLabel, readTitle } from '../../shared/board-tree.ts'
13
- import { CommentsController, revealThread } from './Comments.tsx'
10
+ import { bootHash, linkTargets, parseHash, retargetBoot, UNPLACED, writeHash } from './hash.ts'
11
+ import { isLegacyLink, landLegacy } from './legacy-links.ts'
12
+ import { CaretIcon, CheckIcon, ColumnsIcon, FrameRectIcon, ImagesSquareIcon, IntentGlyph, MoonIcon, PanelFilledIcon, PanelHollowIcon, ParallelogramDuoIcon, ParallelogramFillIcon, PencilSimpleIcon, PlayIcon, PlusIcon, SignpostIcon, SlideFrameIcon, SunIcon, VariantsIcon, XIcon, deviceIcon } from './icons.tsx'
13
+ import { ALL_SCENES, humanize as slugLabel, readTitle } from '../../shared/board-tree.ts'
14
+ import { CommentsController, parkThread, revealThread } from './Comments.tsx'
14
15
  import { poweredByUrl } from '../../shared/utm.ts'
15
- import { avatarFallback, useComments } from './comments-store.ts'
16
- import { goTo, navigated, revealFrame } from './goto.ts'
16
+ import { avatarFallback, NO_COMMENTS_HERE, useComments } from './comments-store.ts'
17
+ import { goTo, isLatest, navigated, revealFrame } from './goto.ts'
17
18
  import { useNotes } from './notes.ts'
18
19
  import { contentOnly } from '../../shared/frames.ts'
20
+ import { nextToLook } from '../../shared/marks.ts'
21
+ import { asksNow, Bubble, MarkedRow, useRollup, useSeenOnScreen } from './marks-ui.tsx'
19
22
  import { CommentButton, DevicePicker, HideUIButton, LaserButton, Popover, ThemePicker, toggleHideUI, usePopover } from './Toolbar.tsx'
20
23
 
21
24
  const commentsStore = () => useComments.getState()
@@ -26,8 +29,9 @@ let booted = false // survives Fast Refresh; see the
26
29
  * selected frame - a quiet secondary wash so ancestry survives collapsing the group.
27
30
  * `renaming` swaps the label for an input: the scene's TITLE (its brief's front matter) -
28
31
  * the directory never moves from here. */
29
- function SceneGroup({ name, label, count, held, renaming, onRename, onPick, onContextMenu, children }: { name: string; label: string; count: number; held: boolean; renaming?: boolean; onRename?: (title: string | null) => void; onPick?: () => void; onContextMenu?: (e: ReactMouseEvent) => void; children: ReactNode }) {
32
+ function SceneGroup({ name, label, count, held, renaming, onRename, onPick, onContextMenu, ids, children }: { name: string; label: string; count: number; held: boolean; renaming?: boolean; onRename?: (title: string | null) => void; onPick?: () => void; onContextMenu?: (e: ReactMouseEvent) => void; ids: string[]; children: ReactNode }) {
30
33
  const [open, setOpen] = useState(true)
34
+ const fold = useRollup(open ? [] : ids) // only a folded scene rolls up (spec 25)
31
35
  const done = useRef(false) // Enter then blur: one commit
32
36
  if (renaming) { done.current = false }
33
37
  const finish = (v: string | null) => { if (done.current) return; done.current = true; onRename?.(v) }
@@ -45,7 +49,8 @@ function SceneGroup({ name, label, count, held, renaming, onRename, onPick, onCo
45
49
  <CaretIcon size={11} className="tw" style={{ transform: open ? undefined : 'rotate(-90deg)' }} />
46
50
  {/* the NAME selects every frame in the scene; the caret/row still collapses */}
47
51
  <span onClick={(e) => { if (!onPick) return; e.stopPropagation(); onPick() }}>{label || '(root)'}</span>
48
- <small>{count}</small>
52
+ {/* folded, its one slot rolls the frames up (spec 25): a question first, else a blue count */}
53
+ {fold.asks ? <Bubble n={fold.asks} /> : <small className={fold.fresh ? 'mk-fresh' : undefined}>{count}</small>}
49
54
  </button>
50
55
  )}
51
56
  {open && children}
@@ -329,6 +334,7 @@ function ThemeMenu() {
329
334
  export function App() {
330
335
  // B0.1: per-field selectors, NOT `useStore()` (which subscribes to the whole store and
331
336
  // re-rendered the entire shell on every setScale tick during a pan/zoom).
337
+ useSeenOnScreen()
332
338
  const manifest = useStore((s) => s.manifest)
333
339
  const nodes = useStore((s) => s.nodes)
334
340
  const panelOpen = useStore((s) => s.panelOpen)
@@ -361,16 +367,24 @@ export function App() {
361
367
  if (r.ok) hydrateBoardPolicy(((await r.json()) as { boards?: Record<string, never> }).boards ?? {})
362
368
  } catch { /* dev server without the route - fine */ }
363
369
  }
364
- if (bootHash.board) {
370
+ // a link from before 0.25 names the All Scenes board: it lands on a real one (legacy-links.ts)
371
+ let notice: string | null = null
372
+ if (isLegacyLink(bootHash)) {
373
+ const r = await landLegacy(bootHash)
374
+ retargetBoot(r.hash)
375
+ writeHash(r.hash)
376
+ notice = r.notice
377
+ }
378
+ if (bootHash.board && !(PUBLISHED && bootHash.board === UNPLACED)) { // the Not on a board view is dev's
365
379
  if (bootHash.board !== useStore.getState().board) // a deep link wins
366
- useStore.setState({ board: bootHash.board, boardAuto: bootHash.board === 'all-scenes' })
380
+ useStore.setState({ board: bootHash.board, boardAuto: false })
367
381
  } else if (!PUBLISHED) {
368
- // fresh open, no deep link: LAND on the first curated board (a tight, fast board = a good first
369
- // impression) instead of the auto all-scenes everything-board, which renders every frame at once.
370
- const first = (await fetchBoardNames().catch(() => [] as string[])).find((n) => n !== 'all-scenes')
371
- if (first && first !== useStore.getState().board) useStore.setState({ board: first, boardAuto: false })
382
+ // fresh open, no deep link: LAND on the first board - with none yet, the Not on a board view
383
+ const first = await landingBoard()
384
+ if (first !== useStore.getState().board) useStore.setState({ board: first, boardAuto: false })
372
385
  }
373
386
  const ok = await boot()
387
+ if (notice) toast(notice)
374
388
  urlReady.current = true
375
389
  // a link naming frames on a board with NO nodes: the canvas's boot fit never runs (it waits
376
390
  // for the first frame) - follow the frame to where it lives from here
@@ -421,8 +435,28 @@ export function App() {
421
435
  // restores never echo back into history.
422
436
  useEffect(() => {
423
437
  const onPop = async () => {
424
- navigated() // a reveal still looking up its board must not land after this
425
- const h = parseHash()
438
+ const nav = navigated() // a reveal still looking up its board must not land after this
439
+ // a lookup below still running when newer navigation lands - a link, a board picked, a step in play - is dropped
440
+ const at = useStore.getState().board, step = useStore.getState().play?.at
441
+ const overtaken = () => !isLatest(nav) || useStore.getState().board !== at || useStore.getState().play?.at !== step
442
+ let h = parseHash()
443
+ if (PUBLISHED && h.board === UNPLACED) h = {} // the Not on a board view is dev's: published, the default board
444
+ const legacy = isLegacyLink(h)
445
+ if (legacy) {
446
+ // an old All Scenes link pasted, or walked back to: where it lands now, written over it -
447
+ // once, though back/forward fires two events
448
+ const r = await landLegacy(h)
449
+ const board = r.hash.board ?? await landingBoard()
450
+ if (overtaken()) return
451
+ h = { ...r.hash, board }
452
+ writeHash(h)
453
+ if (r.notice) toast(r.notice)
454
+ } else if (!h.board && !h.focus && !h.invite) {
455
+ // the bare #/ opens the landing board
456
+ const board = await landingBoard()
457
+ if (overtaken()) return
458
+ h = { ...h, board }
459
+ }
426
460
  let s = useStore.getState()
427
461
  if (h.board && h.board !== s.board) {
428
462
  if (s.play) s.setPlay(null) // a stale overlay must never survive into another board
@@ -430,6 +464,8 @@ export function App() {
430
464
  s = useStore.getState()
431
465
  if (s.board !== h.board) return // switch failed; the projection effect will re-sync the URL
432
466
  }
467
+ // the thread an old link names (Comments.tsx opens every other link's): now, or once the new board's comments load
468
+ if (legacy && h.c) { if (s.board !== at) parkThread(h.c); else revealThread(h.c) }
433
469
  if (h.focus) {
434
470
  enterFocus(h.focus.at, { ...h.focus, deep: true })
435
471
  } else if (h.play) {
@@ -442,6 +478,7 @@ export function App() {
442
478
  if (s.play) s.setPlay(null)
443
479
  const keys = linkTargets(h, s.nodes)
444
480
  useStore.setState({ selection: keys })
481
+ s.look(keys) // a link opened is a look
445
482
  if (!keys.length && h.f?.length) void revealFrame(h.f[0]) // not on this board - where it lives
446
483
  else setTimeout(() => (keys.length ? canvasCtl.fitNodes(keys) : canvasCtl.fitAll()), 60)
447
484
  }
@@ -458,7 +495,9 @@ export function App() {
458
495
  // page title follows the open board (and its title, when one is set)
459
496
  const board = useStore((s) => s.board)
460
497
  const titles = useStore((s) => s.boardTitles)
461
- useEffect(() => { document.title = tabTitle(board) }, [board, titles])
498
+ // an empty Not on a board view (a canvas with no board and no frame yet) is no place to name in the tab
499
+ const emptyView = useStore((s) => s.board === UNPLACED && !s.nodes.length)
500
+ useEffect(() => { document.title = tabTitle(emptyView ? null : board) }, [board, titles, emptyView])
462
501
 
463
502
  // favicon follows the mode: blue pack in design mode, purple pack in interact.
464
503
  // The links are rebuilt (not toggled) so the set stays deterministic; the .ico is
@@ -513,11 +552,17 @@ export function App() {
513
552
  import.meta.hot.on('sh:scenes', (m: any) => useStore.getState().setScenes(m?.scenes))
514
553
  // Live Jam presence: the daemon broadcasts the set of frames Marver is editing.
515
554
  // Camera-safe by construction - this only toggles a glow class, never moves the view.
516
- import.meta.hot.on('sh:jam-activity', (m: any) => useStore.getState().setWorkingFrom(m))
555
+ import.meta.hot.on('sh:jam-activity', (m: any) => { useStore.getState().setWorkingFrom(m); void useStore.getState().syncMarks() })
517
556
  // then ask for what is lit now - a broadcast sent before this listener existed is gone - and again
518
557
  // after the dev server reconnects
519
558
  void useStore.getState().syncWorking()
520
559
  import.meta.hot.on('vite:ws:connect', () => void useStore.getState().syncWorking())
560
+ // sidebar marks (spec 25): a frame changed on disk, or an agent's work started or ended
561
+ void useStore.getState().syncMarks()
562
+ logReload({ kind: 'shell-boot' }) // the reload log: every time the canvas page itself loads
563
+ import.meta.hot.on('vite:ws:connect', () => void useStore.getState().syncMarks())
564
+ import.meta.hot.on('sh:marks', () => void useStore.getState().syncMarks())
565
+ import.meta.hot.on('sh:boards', () => void useStore.getState().syncMarks()) // a board's frames changed: its roll-up too
521
566
  // Live Jam reply delivery: the daemon just wrote to a board's log - fetch it NOW instead of
522
567
  // waiting out the 30s comment poll, so the reply + notification land within a second.
523
568
  import.meta.hot.on('sh:jam-comment', (m: any) => { if (typeof m?.board === 'string') useComments.getState().poke(m.board) })
@@ -526,7 +571,7 @@ export function App() {
526
571
  // reload, never a React Fast Refresh yanking a frame the user is in.
527
572
  import.meta.hot.on('sh:frame-invalidated', (m: any) => {
528
573
  const frameIds = Array.isArray(m?.frameIds) ? m.frameIds.filter((x: unknown) => typeof x === 'string') : []
529
- if (frameIds.length && typeof m?.revision === 'string') useStore.getState().invalidateFrames(frameIds, m.revision)
574
+ if (frameIds.length && typeof m?.revision === 'string') useStore.getState().invalidateFrames(frameIds, m.revision, { epoch: m?.epoch, docs: m?.docs })
530
575
  })
531
576
  // multi-viewer sync: another viewer (or an agent) saved this board. A clean canvas
532
577
  // re-boots silently, keeping whatever selection survives; a dirty one keeps its
@@ -566,6 +611,11 @@ export function App() {
566
611
  // sleeping override of the previous document must not be trusted for this one
567
612
  if (s.nodes.find((n) => n.key === nodeKey)?.status === 'ready') s.bumpRev(nodeKey)
568
613
  s.setStatus(nodeKey, 'ready')
614
+ // the revision this document was served with (spec 26): a look counts up to it, and one older
615
+ // than the frame's last edit reloads
616
+ const before = s.nodes.find((n) => n.key === nodeKey)?.shown
617
+ if (typeof data.doc === 'string') s.setShown(nodeKey, data.doc)
618
+ logReload({ kind: 'ready', cause: takeReloadCause(nodeKey) ?? (before === undefined ? 'first' : 'self'), node: nodeKey, frame: String(data.id ?? ''), shown: typeof data.doc === 'string' ? data.doc : undefined, ms: Number(data.phases?.commit) })
569
619
  } else if (data.type === 'sh:error') {
570
620
  s.setStatus(nodeKey, 'error', String(data.message ?? 'unknown error'))
571
621
  } else if (data.type === 'sh:exit-interact') {
@@ -681,12 +731,22 @@ export function App() {
681
731
  // pins · Shift+P = copy file path(s) (P alone is play; D6, changelog 0.4.0)
682
732
  if (e.key === 'c' && !e.shiftKey) {
683
733
  const c = commentsStore()
734
+ if (!c.commentMode && s.board === UNPLACED) return void toast(NO_COMMENTS_HERE)
684
735
  if (!c.commentMode) s.setLaser(false)
685
736
  c.setMode(!c.commentMode)
686
737
  toast(c.commentMode ? 'comment mode off' : 'comment mode - click an element in a frame')
687
738
  }
688
739
  if (e.key === 'C' && e.shiftKey) { const c = commentsStore(); c.setShow(!c.show) }
689
740
  // sticky notes (spec 18): any note visible -> hide all; none -> show all
741
+ // U: the next frame that needs you, else the next new one (spec 25)
742
+ if (e.key === 'u' && !e.shiftKey && !PUBLISHED) {
743
+ const live = s.nodes.filter((n) => !n.missing).sort((a, b) => a.y - b.y || a.x - b.x)
744
+ const from = s.selection.length ? s.nodes.find((n) => n.key === s.selection[s.selection.length - 1])?.frame ?? null : null
745
+ const id = nextToLook(s.marks, asksNow(), [...new Set(live.map((n) => n.frame))], from)
746
+ const n = id ? live.find((x) => x.frame === id) : null
747
+ if (n) { s.select(n.key); canvasCtl.fitNode(n.key) } else toast('nothing new on this board')
748
+ return
749
+ }
690
750
  if (e.key === 'n' && !e.shiftKey) { const visible = document.querySelectorAll('.sh-notes:not(.off)').length > 0; useNotes.getState().toggleAll(visible); toast(visible ? 'notes hidden' : 'notes shown'); return }
691
751
  // Shift+L = laser comment: the laser-sharp lighting on the element a comment tags
692
752
  // (pick hover, compose lock, open-thread highlight). Pins and cards stay - this
@@ -813,6 +873,7 @@ export function App() {
813
873
  <div className="hd" style={{ marginTop: 10 }}>Scenes</div>
814
874
  {scenes.map((sc) => (
815
875
  <SceneGroup key={sc.name} name={sc.name} label={sceneLabel(sc.name)} count={sc.frames}
876
+ ids={frames.filter((f) => f.scene === sc.name).map((f) => f.id)}
816
877
  held={frames.some((f) => f.scene === sc.name && selFrames.has(f.id))}
817
878
  renaming={sceneNaming === sc.name}
818
879
  onRename={(raw) => {
@@ -829,7 +890,8 @@ export function App() {
829
890
  onClick: () => copyToClipboard(sc.name
830
891
  ? `board: ${useStore.getState().board} · scene: ${sc.name} (design/scenes/${sc.name}/)`
831
892
  : `board: ${useStore.getState().board} · scene: (root)`, 'path copied'),
832
- }, ...(!PUBLISHED && sc.name ? [{ label: 'Rename', icon: <PencilSimpleIcon size={15} />, onClick: () => setSceneNaming(sc.name) }] : [])])}
893
+ }, ...(!PUBLISHED && sc.name ? [{ label: 'Rename', icon: <PencilSimpleIcon size={15} />, onClick: () => setSceneNaming(sc.name) }] : []),
894
+ ...(!PUBLISHED ? [{ label: 'Mark all as seen', icon: <CheckIcon size={15} />, onClick: () => useStore.getState().markSeen(frames.filter((f) => f.scene === sc.name).map((f) => f.id)) }] : [])])}
833
895
  onPick={() => {
834
896
  const keys = nodes.filter((n) => frames.some((f) => f.scene === sc.name && f.id === n.frame) && !n.missing).map((n) => n.key)
835
897
  if (!keys.length) return
@@ -864,6 +926,8 @@ export function App() {
864
926
  }
865
927
  const frameMenu = (fr: FrameEntry): MenuItem[] => [
866
928
  { label: 'Copy path', icon: <SignpostIcon size={15} />, onClick: () => copyToClipboard(framePath(useStore.getState().board, fr), 'path copied') },
929
+ // the Not on a board view (spec 26): put the frame where it belongs
930
+ ...(useStore.getState().board === UNPLACED ? [{ label: 'Add to board…', icon: <PlusIcon size={15} />, panel: (close: () => void) => <AddToBoard frame={fr.id} close={close} /> }] : []),
867
931
  ]
868
932
  const seen = new Set<string>()
869
933
  const rows: ReactNode[] = []
@@ -897,10 +961,10 @@ export function App() {
897
961
  const on = !!n && selection.includes(n.key)
898
962
  const nm = m.title ?? cap((m.id.split('/').pop() ?? '').replace(/^[a-z]-/, '').replace(/-/g, ' '))
899
963
  rows.push(
900
- <div key={m.id} className={`sub vrow${on ? ' on' : ''}`} onClick={(e) => go(m.id, e.shiftKey)}
964
+ <MarkedRow key={m.id} frame={m.id} className={`sub vrow${on ? ' on' : ''}`} onClick={(e) => go(m.id, e.shiftKey)}
901
965
  onContextMenu={(e) => cm.open(e, frameMenu(m))}>
902
966
  <span className={`chip${on ? ' on' : ''}`}>{(m.variant ?? '?').toUpperCase()}</span><span className="nm">{nm}</span>
903
- </div>,
967
+ </MarkedRow>,
904
968
  )
905
969
  }
906
970
  continue
@@ -909,7 +973,7 @@ export function App() {
909
973
  const n = nodeFor(f.id)
910
974
  const on = !!n && selection.includes(n.key)
911
975
  rows.push(
912
- <div key={f.id} className={`sub${on ? ' on' : ''}`} onClick={(e) => go(f.id, e.shiftKey)} onContextMenu={(e) => cm.open(e, frameMenu(f))} title={f.intent}>
976
+ <MarkedRow key={f.id} frame={f.id} className={`sub${on ? ' on' : ''}`} onClick={(e) => go(f.id, e.shiftKey)} onContextMenu={(e) => cm.open(e, frameMenu(f))} title={f.intent}>
913
977
  {/* every frame leads with an icon: the slide badge first (a deck
914
978
  frame is a deck frame whatever it imports), intent glyph for
915
979
  content frames, the plain rectangle for UI frames */}
@@ -918,8 +982,8 @@ export function App() {
918
982
  : f.intent
919
983
  ? <IntentGlyph intent={f.intent} size={13} className="iicon" aria-label={f.intent} />
920
984
  : <FrameRectIcon size={13} className="iicon" />}
921
- {cap(f.id.split('/').slice(1).join('/') || f.id)}
922
- </div>,
985
+ <span className="nm">{cap(f.id.split('/').slice(1).join('/') || f.id)}</span>
986
+ </MarkedRow>,
923
987
  )
924
988
  }
925
989
  return rows
@@ -1031,7 +1095,9 @@ function JamAvatar({ author }: { author: { name?: string; avatar?: string; id?:
1031
1095
  async function viewNote(note: import('./store.ts').JamNote, dismiss: () => void) {
1032
1096
  if (revealThread(note.threadId)) { dismiss(); return }
1033
1097
  const s = useStore.getState()
1034
- if (note.board && s.board !== note.board) await s.switchBoard(note.board)
1098
+ // a thread in the old all-scenes log has no board of its own: its frame's board shows it (spec 26)
1099
+ if (note.board === ALL_SCENES) { if (note.frame) await revealFrame(note.frame) }
1100
+ else if (note.board && s.board !== note.board) await s.switchBoard(note.board)
1035
1101
  for (let i = 0; i < 12; i++) {
1036
1102
  if (revealThread(note.threadId)) { dismiss(); return }
1037
1103
  await new Promise((r) => setTimeout(r, 250))
@@ -1053,13 +1119,15 @@ function JamToast({ id, note, badge, inert }: { id: number; note: import('./stor
1053
1119
  <div className="sh-jam-txt">
1054
1120
  {human
1055
1121
  ? <b className="sh-jam-frame"><span className="t">{note.author!.name ?? 'Someone'}</span> <span className="v">{note.kind === 'mention' ? 'mentioned you' : 'replied'}</span></b>
1056
- : <b className="sh-jam-frame"><span className="t">{note.frameTitle ?? note.board}</span></b>}
1122
+ : note.stack?.length
1123
+ ? <b className="sh-jam-frame"><span className="t">{note.board === ALL_SCENES ? note.frameTitle ?? note.frame ?? '' : boardLabel(note.board)}</span> <span className="v">· {note.stack.length + 1} replies</span></b>
1124
+ : <b className="sh-jam-frame"><span className="t">{note.frameTitle ?? note.board}</span></b>}
1057
1125
  <span className="sh-jam-prev">{note.preview}</span>
1058
1126
  </div>
1059
1127
  {badge != null
1060
1128
  ? <span className="sh-jam-badge">+{badge}</span>
1061
1129
  : !inert && <>
1062
- <button className="sh-jam-view" onClick={() => void viewNote(note, dismiss)}>View</button>
1130
+ <button className="sh-jam-view" onClick={() => void viewNote(note, () => useStore.getState().advanceToast(id))}>View</button>
1063
1131
  <button className="sh-jam-x" aria-label="Dismiss" onClick={dismiss}><XIcon size={13} /></button>
1064
1132
  </>}
1065
1133
  </div>
@@ -1,13 +1,17 @@
1
1
  import { useEffect, useRef, useState, type CSSProperties, type MouseEvent as ReactMouseEvent, type PointerEvent as ReactPointerEvent, type ReactNode } from 'react'
2
- import { useStore, HAS_ALL_SCENES, PUBLISHED, STATUS_AS_OF, fetchBoardTree, rememberMeta, rememberTitles, type BoardMeta, type TreeBase } from './store.ts'
2
+ import { useStore, PUBLISHED, STATUS_AS_OF, addToBoard, boardLabel, fetchBoardNames, fetchBoardTree, fetchMembership, rememberMeta, rememberTitles, type BoardMeta, type TreeBase } from './store.ts'
3
+ import { UNPLACED } from './hash.ts'
3
4
  import { LiveIcon, StatusIcon, TypeIcon } from './board-icons.tsx'
4
5
  import { StatusPicker } from './StatusPicker.tsx'
5
6
  import type { StatusWord } from '../../shared/board-types.ts'
6
7
  import { PHASE_LABEL, STATUS_LABEL } from '../../shared/status.ts'
7
8
  import { canvasCtl } from './canvas/Canvas.tsx'
9
+ import { navigated } from './goto.ts'
10
+ import { rollup } from '../../shared/marks.ts'
11
+ import { Bubble, useAsks } from './marks-ui.tsx'
8
12
  import { Tip } from './Tip.tsx'
9
13
  import { copyToClipboard, type MenuItem, type MenuOpener } from './ContextMenu.tsx'
10
- import { ArrowLineUpIcon, CardsIcon, CardsThreeIcon, FolderIcon, FolderMinusIcon, FolderOpenIcon, FolderPlusIcon, PencilSimpleIcon, SignpostIcon } from './icons.tsx'
14
+ import { ArrowLineUpIcon, CardsIcon, CheckIcon, FolderIcon, FrameCornersIcon, FolderMinusIcon, FolderOpenIcon, FolderPlusIcon, PencilSimpleIcon, SignpostIcon } from './icons.tsx'
11
15
  import {
12
16
  applyDrop, boardsIn, createFolder, deleteFolder, depthOf, folderEntries, folderIn, folderOf, foldersIn, holdsFolders, humanize, INDENT, isOwnSlot, labelOf, listIn, moveBoard, moveFolderToRoot, newFolderSlot, parentOf, readTitle,
13
17
  resolveDrop, retitleFolder, rootIndex, slugFor,
@@ -45,6 +49,16 @@ function StatusTipLabel({ m }: { m: BoardMeta }) {
45
49
  return <div className="sh-tip-lines"><b>{head}</b>{rest.map((l, i) => <small key={i}>{l}</small>)}</div>
46
50
  }
47
51
 
52
+ /** Add to board… - a frame's menu in the Not on a board view (spec 26): every board, in sidebar
53
+ * order; one click pins the frame there, as `marver boards pin` does. */
54
+ export function AddToBoard({ frame, close }: { frame: string; close: () => void }) {
55
+ const [names, setNames] = useState<string[] | null>(null)
56
+ useEffect(() => { fetchBoardNames().then(setNames, () => setNames([])) }, [])
57
+ if (!names) return null
58
+ if (!names.length) return <div className="sub dim">No boards yet - ask your agent to make one</div>
59
+ return <>{names.map((n) => <button key={n} data-add-to={n} onClick={() => { close(); void addToBoard(n, [frame]) }}><CardsIcon size={15} /><span>{boardLabel(n)}</span></button>)}</>
60
+ }
61
+
48
62
  type Naming = { kind: 'board' | 'folder'; name: string } | { kind: 'new'; index: number; board?: string; parent: string | null }
49
63
  /** A mutation as intent: applied to whichever tree is current, so a 409 can replay it. */
50
64
  type Intent = (tree: TreeItem[]) => TreeItem[] | null
@@ -53,9 +67,15 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
53
67
  const board = useStore((s) => s.board)
54
68
  const working = useStore((s) => s.workingBoards) // boards an agent is working on right now
55
69
  const titles = useStore((s) => s.boardTitles) // board slug → title, off the last tree read
56
- const meta = useStore((s) => s.boardMeta) // board slug → type and status (spec 20)
70
+ const meta = useStore((s) => s.boardMeta)
71
+ // sidebar marks (spec 25): a board you are not on, or a closed folder, rolls up its frames
72
+ const marks = useStore((s) => s.marks)
73
+ const asks = useAsks()
74
+ const framesOf = (boards: string[]) => boards.flatMap((b) => marks?.boards[b] ?? [])
75
+ const seeAll = (boards: string[]): MenuItem[] => (!PUBLISHED ? [{ label: 'Mark all as seen', icon: <CheckIcon size={15} />, onClick: () => useStore.getState().markSeen(framesOf(boards)) }] : []) // board slug → type and status (spec 20)
57
76
  const label = (n: string) => labelOf(n, titles[n]) // a board's label; a folder's is labelOf(name, item.title)
58
77
  const [tree, setTree] = useState<TreeItem[]>([])
78
+ const [read, setRead] = useState(false) // the first tree read has answered
59
79
  const [naming, setNaming] = useState<Naming | null>(null)
60
80
  const [closed, setClosed] = useState<Record<string, true>>(readClosed)
61
81
  const [drag, setDrag] = useState<Drag | null>(null)
@@ -98,6 +118,7 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
98
118
  rememberMeta(snap.meta) // ...and so do types and statuses (spec 20)
99
119
  lastErr.current = ''
100
120
  show()
121
+ setRead(true)
101
122
  return true
102
123
  } catch (e) {
103
124
  // a server-side error (a malformed registry, a symlinked boards dir) is worth saying
@@ -122,6 +143,24 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
122
143
  // eslint-disable-next-line react-hooks/exhaustive-deps
123
144
  }, [])
124
145
 
146
+ // spec 26: the frames on no board - the Not on a board entry, there only when some exist (dev). Read
147
+ // again whenever the boards or the frames change; the open view follows what it lists
148
+ const [unplaced, setUnplaced] = useState<string[]>([])
149
+ const listed = useRef<string | null>(null) // the list last read (null = not yet)
150
+ const manifest = useStore((s) => s.manifest)
151
+ useEffect(() => {
152
+ if (PUBLISHED) return
153
+ let current = true
154
+ fetchMembership().then((m) => {
155
+ const key = m.unplaced.join()
156
+ if (!current || key === listed.current) return
157
+ if (listed.current !== null) useStore.getState().syncUnplaced(m.unplaced) // the open view follows, in place
158
+ listed.current = key
159
+ setUnplaced(m.unplaced)
160
+ }).catch(() => { /* keep the last list */ })
161
+ return () => { current = false }
162
+ }, [tree, manifest])
163
+
125
164
  const setOpen = (folder: string, open: boolean) => {
126
165
  setClosed((c) => {
127
166
  const next = { ...c }
@@ -132,6 +171,7 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
132
171
  }
133
172
  const pick = async (name: string) => {
134
173
  if (name === useStore.getState().board) return
174
+ navigated() // a link still finding its board gives way
135
175
  await useStore.getState().switchBoard(name)
136
176
  setTimeout(() => canvasCtl.fitAll(), 60)
137
177
  }
@@ -201,7 +241,7 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
201
241
  const stored = (slug: string) => (title === humanize(slug) ? '' : title)
202
242
  if (n.kind === 'board') {
203
243
  if (title === label(n.name)) { setNaming(null); return }
204
- if (boardsIn(tree).some((b) => b !== n.name && label(b) === title) || (HAS_ALL_SCENES && label('all-scenes') === title)) { taken('board'); return }
244
+ if (boardsIn(tree).some((b) => b !== n.name && label(b) === title)) { taken('board'); return }
205
245
  let r = await useStore.getState().renameBoard(n.name, stored(n.name), baseRef.current.boards[n.name])
206
246
  if (!r.ok && r.stale && await load()) r = await useStore.getState().renameBoard(n.name, stored(n.name), baseRef.current.boards[n.name]) // the file moved on (a drag just before, an agent): re-read, once more
207
247
  if (!r.ok) { useStore.getState().toast(r.error ?? 'rename failed'); return } // stay editing
@@ -329,8 +369,8 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
329
369
  refresh() // a clear: what the evidence says now
330
370
  }
331
371
  const boardMenu = (n: string, parent: string | null): MenuItem[] => {
332
- const items: MenuItem[] = [{ label: 'Copy path', icon: <SignpostIcon size={15} />, onClick: () => copyToClipboard(`board: ${n}`, 'path copied') }]
333
- if (PUBLISHED || n === 'all-scenes') return items
372
+ const items: MenuItem[] = [{ label: 'Copy path', icon: <SignpostIcon size={15} />, onClick: () => copyToClipboard(`board: ${n}`, 'path copied') }, ...seeAll([n])]
373
+ if (PUBLISHED) return items
334
374
  // a feature or project board: its status first, as Linear puts it - the picker opens in place
335
375
  const m = useStore.getState().boardMeta[n]
336
376
  if (m?.status && m.settable?.length) items.unshift({
@@ -352,7 +392,7 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
352
392
  const folderMenu = (f: string, boards: string[], parent: string | null): MenuItem[] => {
353
393
  const items: MenuItem[] = [{ label: 'Copy path', icon: <SignpostIcon size={15} />, onClick: () => copyToClipboard(`folder: ${f}${parent ? ` (in ${parent})` : ''} (boards: ${boards.join(', ') || 'none'})`, 'path copied') }]
354
394
  if (PUBLISHED) return items
355
- items.push({ label: 'Rename', icon: <PencilSimpleIcon size={15} />, onClick: () => setNaming({ kind: 'folder', name: f }) })
395
+ items.push({ label: 'Rename', icon: <PencilSimpleIcon size={15} />, onClick: () => setNaming({ kind: 'folder', name: f }) }, ...seeAll(boards))
356
396
  // two levels: a top-level folder can hold folders; a sub-folder can leave its parent
357
397
  if (!parent) items.push({ label: 'New folder inside', icon: <FolderPlusIcon size={15} />, onClick: () => newFolderAt(listIn(treeRef.current, f)?.length ?? 0, undefined, f) })
358
398
  else items.push({ label: 'Move to top level', icon: <ArrowLineUpIcon size={15} />, onClick: () => mutate((t) => {
@@ -418,7 +458,7 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
418
458
  // ONE seam per gap, overlaid (::after, no layout shift) on the row the gap touches: before the
419
459
  // first row of the item AT the index, or after the last row of a list's last item at its end.
420
460
  // Its left edge follows the indent of the list it lands in, so "inside" and "outside" never
421
- // draw alike. The root end draws before the pinned all-scenes row. An open EMPTY folder has no
461
+ // draw alike. The root end draws after the last row. An open EMPTY folder has no
422
462
  // row to draw on: its header draws the indented seam under itself (drop-in).
423
463
  const seam = ((): { row: string; where: 'before' | 'after'; depth: number } | null => {
424
464
  if (!drag || !drop || 'into' in drop) return null
@@ -426,7 +466,6 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
426
466
  if (!items) return null
427
467
  const depth = depthOf(tree, drop.list)
428
468
  if (drop.index < items.length) return { row: key(items[drop.index]!), where: 'before', depth }
429
- if (drop.list === null && HAS_ALL_SCENES) return { row: 'b:all-scenes', where: 'before', depth: 0 }
430
469
  return items.length ? { row: lastRow(items[items.length - 1]!), where: 'after', depth } : null
431
470
  })()
432
471
  // a nested seam starts where that list's rows start: the row's own 8px padding plus its indent
@@ -442,14 +481,16 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
442
481
  if (naming?.kind === 'board' && naming.name === n) return (
443
482
  <div key={`b:${n}`} data-board-row data-board={n} data-folder={parent ?? undefined} data-depth={depth} className={`it board editing${indent(depth)}${s.cls}`} style={s.style}><CardsIcon size={14} />{input(label(n))}</div>
444
483
  )
445
- const canDrag = !PUBLISHED && n !== 'all-scenes'
484
+ const canDrag = !PUBLISHED
446
485
  const item: Drag = { kind: 'board', name: n }
486
+ // the board you are on shows nothing: its rows below speak for themselves
487
+ const r = n === board ? { asks: 0, fresh: 0 } : rollup(marks, asks, framesOf([n]))
447
488
  return (
448
489
  <button key={`b:${n}`} data-board-row data-board={n} data-folder={parent ?? undefined} data-depth={depth} data-reorderable={canDrag || undefined}
449
- className={`it board${indent(depth)}${n === board ? ' cur' : ''}${dragging ? ' dragging' : ''}${s.cls}`} style={s.style}
490
+ className={`it board${indent(depth)}${n === board ? ' cur' : ''}${r.asks ? ' mk-ask' : r.fresh ? ' mk-new' : ''}${dragging ? ' dragging' : ''}${s.cls}`} style={s.style}
450
491
  // draggable rows switch on the pointer tap (onPointerUp), so their trailing mouse
451
492
  // click (detail >= 1) must be ignored to avoid a double switch; keyboard clicks
452
- // (detail === 0) and non-draggable rows (all-scenes, published) switch here as normal
493
+ // (detail === 0) and non-draggable rows (published) switch here as normal
453
494
  onClick={(e) => { if (!canDrag || e.detail === 0) void pick(n) }}
454
495
  onContextMenu={(e) => onMenu(e, boardMenu(n, parent))}
455
496
  onPointerDown={canDrag ? (e) => onPointerDown(e, item) : undefined}
@@ -457,7 +498,7 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
457
498
  onPointerUp={canDrag ? onPointerUp : undefined}
458
499
  onPointerCancel={canDrag ? () => resetPointer() : undefined}
459
500
  onLostPointerCapture={canDrag ? (e) => { if (gestureRef.current?.pointerId === e.pointerId) resetPointer() } : undefined}>
460
- <LiveIcon live={working.includes(n)}>{n === 'all-scenes' ? <CardsThreeIcon size={14} /> : meta[n]?.type ? <TypeIcon type={meta[n].type!} /> : <CardsIcon size={14} />}</LiveIcon>
501
+ <LiveIcon live={working.includes(n)}>{meta[n]?.type ? <TypeIcon type={meta[n].type!} /> : <CardsIcon size={14} />}</LiveIcon>
461
502
  <span>{label(n)}</span>
462
503
  {/* the status for a screen reader, part of the board button's own name: the glyph is the eye's */}
463
504
  {meta[n]?.status && <span className="sh-sr" data-status-text>{`, ${statusTip(meta[n]).replace(/\n/g, '; ')}`}</span>}
@@ -466,7 +507,9 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
466
507
  <i className="st st-error" data-board-error aria-label={`not valid JSON: ${meta[n].error}`}>!</i>
467
508
  </Tip>
468
509
  )}
469
- {meta[n]?.status && (
510
+ {/* one slot: a question for you takes it until answered, then the status comes back */}
511
+ {r.asks > 0 && <i className="st"><Bubble n={r.asks} /></i>}
512
+ {meta[n]?.status && !r.asks && (
470
513
  <Tip side="right" label={<StatusTipLabel m={meta[n]} />}>
471
514
  <i className="st" data-status={meta[n].status!.status} aria-hidden="true"><StatusIcon status={meta[n].status!.status} fill={meta[n].status!.fill} /></i>
472
515
  </Tip>
@@ -518,7 +561,11 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
518
561
  {/* a closed folder carries the live signal of the boards it hides */}
519
562
  <LiveIcon live={!open && boards.some((b) => working.includes(b))}>{open ? <FolderOpenIcon size={14} /> : <FolderIcon size={14} />}</LiveIcon>
520
563
  <span>{labelOf(f, it.title)}</span>
521
- <small>{boards.length}</small>
564
+ {(() => {
565
+ // a closed folder's one slot rolls up what it hides: a question first, else a blue count
566
+ const r = open ? { asks: 0, fresh: 0 } : rollup(marks, asks, framesOf(boards))
567
+ return r.asks ? <Bubble n={r.asks} /> : <small className={r.fresh ? 'mk-fresh' : undefined}>{boards.length}</small>
568
+ })()}
522
569
  </button>,
523
570
  )
524
571
  }
@@ -527,7 +574,18 @@ export function BoardList({ onMenu }: { onMenu: MenuOpener }) {
527
574
  }
528
575
 
529
576
  const rows: ReactNode[] = listRows(tree, null, 0)
530
- if (HAS_ALL_SCENES) rows.push(boardRow('all-scenes', null, 0)) // a published bundle without it shows none
577
+ // no boards yet: say what to do (a fresh `--no-demo` canvas) - once the first read has answered
578
+ if (read && !boardsIn(tree).length && !naming) rows.push(<div key="empty" className="sub dim" data-no-boards>No boards yet - ask your agent to make one</div>)
579
+ // the frames on no board (spec 26), apart from the tree - never a drop target, never dragged
580
+ if (unplaced.length) {
581
+ const r = board === UNPLACED ? { asks: 0, fresh: 0 } : rollup(marks, asks, unplaced)
582
+ rows.push(
583
+ <button key="unplaced" data-unplaced className={`it board${board === UNPLACED ? ' cur' : ''}${r.asks ? ' mk-ask' : r.fresh ? ' mk-new' : ''}`} onClick={() => void pick(UNPLACED)}>
584
+ <FrameCornersIcon size={14} /><span>Not on a board</span>
585
+ {r.asks ? <i className="st"><Bubble n={r.asks} /></i> : <small>{unplaced.length}</small>}
586
+ </button>,
587
+ )
588
+ }
531
589
  return (
532
590
  <div className="sh-boards" ref={rootRef} onContextMenu={(e: ReactMouseEvent) => blankMenu(e)}>
533
591
  <div className="hd">