Skip to content

✅ fresh

last synced 2026-10-20T11:44:45.791774+00:00 · coverage 100% (site-architecture-page)

Validation by Beadloom doc_sync — same source as sync-check.

Architecture page (component) ​

A slice of the pages layer of the VitePress site's Feature-Sliced layout. The layout and the layer rule are described in the site's page.

Source: src/beadloom/site_scaffold/.vitepress/theme/pages/architecture/


Overview ​

ArchitectureMap, the component the generated architecture.md and every node page mount inside <ClientOnly>. It is a thin page over the graph viewer: it renders GraphViewer in architecture mode and fills the viewer's panel slot with the node card of the selected node, passing the slot's parents on to the card so a box's card can say what it holds (BDL-078). The page composes the two widgets, because a widget does not import another. Since BDL-080 S4a and S4c it reads the data file itself (useArchitectureData) and hands the card the top-level lint and source_ref (:lint, :source-ref, null when the file carries neither), so a card's findings are said against lint's reach over the project, and a card says when its source links do not name the built commit.

A node page mounts it as <ArchitectureMap focus="<ref>" :depth="1" height="60vh" />, in the place the scoped Mermaid diagram had. The viewer opens with the page's node selected, framed, its neighbourhood marked and its card open; a box's page opens it selected, open and framed whole, with its card's Inside section, and the reader moves on from there with every control the architecture page has. A node of any kind has a page, other/ included.

Public API ​

  • ArchitectureMap (Vue component). Props: focus, depth and height, each passed to the viewer; without them the viewer's defaults apply.

Depends on ​

  • site-graph-viewer, site-node-card (widgets).
  • site-architecture-data (entities), for useArchitectureData.

Tests ​

src/beadloom/site_scaffold/e2e/node-page.spec.js: a node page opens focused on its node, every toolbar control works from it, a cleared selection stays cleared after a reload, a page under other/ opens the same way, full screen shows the tools, the card and the legend, and a box's page opens with the box selected, open and framed whole, its card saying what it holds.