✅ fresh
last synced 2026-10-20T11:44:45.791774+00:00 · coverage 100% (
site-graph-nodes)Validation by Beadloom
doc_sync— same source assync-check.
Graph nodes (component)
A slice of the entities 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/entities/graph-nodes/
Overview
A node of the architecture data file and what the viewer reads off it: its status, the risks a change to it runs, and its container. The node card itself is the site-node-card widget.
- Status. One status per node, in this order:
violationfor a lint finding of severityerror,stalefor stale docs,warnedfor findings of any other severity.NODE_STATUSESgives each its theme tone, its mark and its legend text (BDL-078, owner's ruling 5): a status is a mark in the node's top right corner,filledfor a violation (danger) and stale docs (warning), aringfor a warning, and never changes the border, which stays the layer's. A version 1 file carries onlylint_cleanand cannot tell an error from a warning, so a node it marks not clean is a violation. - Risks.
risksOf(node)names why a change to the node is risky, as the impact list shows it: no bound tests (tests.countis 0), stale docs (a doc whose pairs were compared and found out of date), docs not checked (a doc that isunpaired,unverifiedormissing), and open findings. A field a version 1 file does not carry is no risk. - Container. A parent that is not a node of the file, or a node that names itself (the root service is
part_ofitself), is no container, because Cytoscape rejects a dangling or self parent.containerOfKindclimbs to the nearest container of one kind, which the impact summary uses to name domains and services.
Public API
NODE_STATUSES,statusOf(node)returnsviolation,stale,warnedornull;statusesOf(nodes),isFlagged(node).RISKS,risksOf(node)returns the risk phrases.parentMapOf(nodes)returns{ id: parentId | null }, a record without a prototype (idRecord,site-shared), so a node named__proto__orconstructoris a key like any other (BDL-078beadloom-ytcg);containerOfKind(id, kind, nodeById, parents).NodeStatusLegend(Vue component): propstatuses, one sample per status drawn: a small card with a layer's border and the status's mark in its corner, filled or a ring.
How the canvas draws a node — a card in its layer's tone, corners at one radius on screen — is the viewer's (site-graph-viewer, lib/stylesheet.js; the corner radius is site-shared-geometry's shared/geometry/corners.js).
Depends on
site-shared, for the theme variables the legend samples use.