GeezerVison is showing github.com — design(id-apps): D5 — link display system: interactive graph view (web/WASM, Kitty terminal, fallback) · Issue #13888 · developing-today/code
design(id-apps): D5 — link display system: interactive graph view (web/WASM, Kitty terminal, fallback) #13888Descriptiondesign(id-apps): D5 — link display system: interactive graph view
Programme order: 5. Parent epic: #13880 — ID apps on one graph.
Depends on: D3 (nodes and verb edges are D3 objects), D1 (display
forms of URIs). Related: #9126 (graph query language + visualization
research — an input, not this design), #10235 (bounded graph viewer
over query pages — a neighbouring, server-paged viewer; this design is
the interactive display system), #5678 (knowledge layer — the notes
surface of the first use case), #13623 (presenter kitty graphics
stills — prior art for the terminal renderer).
Problem + evidence
Drew (2026-11-23): "I want to be able to view all the connections
between notes in a fancy graph view, similar to how Obsidian notes
look… especially when we have a full Zettelkasten system set up, so
that we can make replies and things like that." A graph data model
(D3) without a graph view hides its main advantage: the connections
are the content. Three surfaces need the same view — the web, WASM on
the web, and terminals (especially Kitty-protocol terminals, with
mouse hover and click) — and three independently invented views would
diverge in layout, filtering, and interaction within a month.
Design thesis
One shared view model, three renderers. The view model defines:
nodes = ID objects, edges = typed verbs (D3); layout inputs and
determinism expectations; filtering by verb, by subgraph (D1
collection URIs as the filter language), and by author/time;
focus+context behaviour (select a node, its neighbourhood expands,
the rest dims); and the interaction contract — hover = identify +
preview, click = navigate to the object, click-edge = inspect the
link object itself (it is an object; it has a page). Each renderer
implements the same contract against the same view model.
Renderers
- Web / WASM: canvas-based interactive graph in the Obsidian
style — pan, zoom, hover highlight, click-through. WASM so the
same view-model code ships in the browser and can be reused by
desktop hosts.
- Terminal (Kitty): Kitty graphics protocol rendering of the
same layout, with mouse hover and click (terminal mouse reporting
mapped to the same hover/click contract). Graceful degradation:
terminals without graphics or mouse fall back to renderer 3
automatically, never to a broken screen.
- List/tree fallback: a plain structured list/tree of the same
neighbourhood — accessible, scriptable, and the conformance floor
every view must be able to produce.
First use cases (the design is validated against these)
Alternatives to weigh
- Per-surface native views (web JS, terminal TUI written twice):
better platform feel each; guarantees divergence of the contract.
- Server-rendered images for terminal (the Bounded graph viewer over query pages #10235 shape):
simpler terminal story; no real hover/click interactivity, and
stale the moment the graph moves.
- Adopt an existing web graph library and port its model: faster
web start; its data model (untyped edges, no link objects) fights
D3's — the view model must be ours even if rendering code is
borrowed.
Slices (dependency-ordered)
- View model + interaction contract: node/edge/filter/focus
semantics, stated once. Acceptance: both use-case graphs expressed
in the model; the contract is renderer-agnostic (no pixel or
escape-sequence language).
- Web/WASM renderer design: layout engine choice, scale bounds
(what happens at 10k nodes), click-through via D1 display forms.
Acceptance: interaction contract mapped feature-by-feature.
- Kitty renderer design: graphics placement, mouse mapping,
redraw discipline, degradation detection. Acceptance: the contract
mapped onto Kitty capabilities with the fallback triggers named;
id: build: presenter-side kitty graphics stills pipeline (from #5971 research) #13623's stills work cited as prior art.
- Fallback + conformance: the list/tree floor and a conformance
checklist all renderers must pass. Acceptance: checklist written
so an implementer can test against it.
Open questions (deciders named)
- Layout ownership (does the view model compute layout, or only the
web renderer?): designer decides, recorded here — it decides
whether terminal and web can ever show the same picture.
- Scale target for v1 (neighbourhood-only vs whole-graph): designer
proposes from the use cases; Drew decides if whole-graph is
demanded, since it changes the sync story underneath (D3/D4).
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T00:12:18Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activitydeveloping-today commented on Nov 24, 2026 dezren39 commented on Nov 24, 2026 Expansion (per Drew's direction, 2026-11-23 — recorded on the epic, #13880)
Priority standing restated: programme order 5; Drew confirms all six programme items as prioritized, important work — investigate soon, implement when we have the capability.
Next steps beyond the current slices:
- A third validation surface is now named: alongside the two use cases in the body (the Zettelkasten notes graph; the ID programme visualisation), the core graph app (app(id-apps): the core graph app — Rummager-style organising + Cobweb-style live transclusion over the ID graph #14037) renders through this view model — its organising/discovery views are graph views, and its composed pages are where D2 embeds meet this display contract. The interaction contract should be checked against the core app's PoC needs when they are scoped.
- The dogfood case extends naturally: once the core app exists, the programme-visualisation case becomes a living view — this programme's own issues, designs, and objects (epic(id-apps): ID apps on one graph — URIs, transclusion, typed links, sneakernet bundles, graph display #13880 and its children) as a rendered, navigable graph — rather than a static demo dataset. Named here as the follow-on step after the core app's first working version; it is also a candidate app recorded on the epic.
Related apps: the core graph app (#14037); the notes/Zettelkasten surface (#5678, already the first use case); the chat and boards lines under #2056, whose threads are neighbourhoods in this view model whenever an app wants a graph view of a conversation. dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-03, 2026-11-24): open; not started on main. No design PR or document for the D5 link-display system found (searched PRs and doc//planning/). It is a design issue in programme order 5 under #13880, depending on D3 and D1. Sized as a design-stage item (not implementation): route it to the design-stage workflow (issue-handoff / design-orchestrate) once D3 is settled. No separate follow-on packet routed now, because D3 is a prerequisite. Tracking: #14158. dezren39 commented on Nov 24, 2026 Triage verdict (lane oc-code-02, queue task 22724, 2026-11-24): still open and correctly a design item, not implementable yet. It depends on D1 (#13886, OPEN) and D3 (nodes and verb edges, under epic #13880, OPEN). No code packet is routed now; the design stays open until its dependencies land and it is ready for a design pass. Tracking: #14158. dezren39 commented on Nov 25, 2026 Claimed by lane 4, 2026-11-25T02:30Z. Both inputs are in: D3 landed (#13885, PR #13997) and D1 slice 1 landed (PR #14725). Starting slice 1: the view model and interaction contract.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Lane 4: slice 1 (view model and interaction contract) landed in PR #14812 as doc/2026-11-25T02-40-00Z_design_id-apps_d5_link-display/.
What it settles:
- A focus query (radius, node budget, verb, author, claimed-time and
within filters) is answered by a bounded frame of nodes and edges. Unreadable objects are absent and never counted.
- Layout ownership (designer's question): the view model owns it. It uses a deterministic radial layout (ring = hops, integer angle), so web and terminal show the same picture.
- Scale target (designer's proposal): v1 is neighbourhood-only, at most 2000 nodes. Whole-graph display stays open for Drew, because it changes what D3 and D4 have to sync.
- An edit chain shows as one node displaying its head. A link that is itself linked to shows as a link node.
- There are five intents:
identify, identify-link, open, inspect-link and focus. Plain click is open.
- The list/tree floor has an exact line format.
fixtures/view_reference.py check covers eight cases over a notes graph and the programme graph.
Slices 2 (web/WASM), 3 (Kitty) and 4 (fallback and conformance) remain; I'll take slice 2 next unless another lane has it.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Slice 2 of 4 merged in #14816: doc/2026-11-25T02-40-00Z_design_id-apps_d5_link-display/slice-2-web.md, the web and WASM renderer design, with fixtures/web_reference.py checking projection, hit-testing, keyboard order against the tree floor, and refocus identities.
It answers slice 1's open questions 2 and 3. focus is a double click on a pointer, a long press on touch, and f on the keyboard; plain click stays open. A link node is labelled by its verb and its two ends, falling back to "verb link" when space is short.
Next: slice 3, the Kitty terminal renderer.
Generated by Claude Code dezren39 commented on Nov 25, 2026 All four slices are merged:
Every slice has a stdlib reference in doc/2026-11-25T02-40-00Z_design_id-apps_d5_link-display/fixtures/, and all four pass.
One question stays open for Drew: whole-graph display. v1 is neighbourhood-only, with a 2000-node cap.
Generated by Claude Code
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|