0.9.0: model graph with queries #27

Merged
root-at-skic merged 10 commits from feat/model-graph into main 2026-10-21 13:08:36 -07:00
10 Commits
Author SHA1 Message Date
root-at-skic 8398c44ca8 Model graph: one head block with a consistent gutter and rhythm 2026-10-21 22:47:40 +03:00
root-at-skic 60ad7479fd Model graph: decision titles on two lines, refit after resize 2026-10-21 22:39:30 +03:00
root-at-skic bc9f55e2fa Model graph: decision and registry links on by default, placed near their elements 2026-10-21 22:33:02 +03:00
root-at-skic 27d1b4381c Model graph: theme toggle in the same pill as the switch and Export 2026-10-21 22:03:39 +03:00
root-at-skic 82dd10253b Model graph: toolbar on Archify's rules
- Archify's theme toggle: pill track, sliding knob, masked sun/moon icon
- buttons as quiet 0.5rem pills inside 0.5625rem controls, pressed state like Archify's, Export PNG as the filled 0.6875rem primary
- Model | Graph switch styled as the 2D | 3D switch's twin
2026-10-21 21:55:24 +03:00
root-at-skic 91fcde9fa5 Model graph: connection labels at the less crowded end 2026-10-21 21:47:08 +03:00
root-at-skic 17e07adb33 Model graph: layered layout and a cleaner look
- layered layout by type (clients left, data right), empty columns left out, barycenter row ordering; registries in a row above, decisions in a row below; Force layout as the alternative
- orthogonal connections with labels staggered next to their source; opaque tinted nodes hide lines behind them
- hover glow on elements and their connections; decision and registry links show for the selected element or all with Links
2026-10-21 21:45:42 +03:00
root-at-skic 3ed2d7eed8 Model graph: dark/light theme toggle on the page
- sun/moon button next to Export; the choice is remembered in the page state and written to the archify-theme key the diagram pages use
- explicit dark and light token sets; without a choice the page follows VS Code's theme as before
- Cytoscape restyles from the page tokens whenever the theme changes
2026-10-21 21:33:38 +03:00
root-at-skic 99ea076571 Model graph: decisions and registry files as nodes
- one node per decision (tag coloured by status) with decides links to its elements and supersedes links
- one node per registry file with defines links to its elements
- own legend chips, side panels (Open decision, Open registry), type:decision and type:registry
- walks and paths follow the diagrams' connections only; attached nodes follow their elements into a result
2026-10-21 20:46:05 +03:00
root-at-skic c8645b228b Model graph: the whole model as one graph with queries; 0.9.0
- Model | Graph switch on main.archify (Diagram | Graph on diagram pages, narrowed to that diagram)
- union graph of every element and connection, registry and inline, built from the model index
- query box: text, type:, diagram:, decision:, uses:, near:, from: to:, unused, shared, -shared
- side panel per element and connection with diagrams, registry line and decisions one click away
- legend chips, Fit, Layout, Labels, Export PNG; Cytoscape.js bundled as dist/graph.js
- command Archify | Open Model Graph; integration check; unit tests for graph and queries
2026-10-21 15:47:00 +03:00