Idea detail
graph_ui_persistence
reqlan rq/extension/workspace-summary/ideas_summary/graphical_graph.rq:225
Summary
Key and Controls state is stored in VS Code ExtensionContext. workspaceState under key GRAPH_UI_WORKSPACE_STATE_KEY ( reqlan. ideasSummary. graphUi ).
Shape and normalisation live in graph-ui-state.ts; the host reads / writes it from ideas-summary-panel.ts.
On webview ready the extension posts graphUiState; the webview posts persistGraphUiState ( debounced ) whenever AppState. patchGraphUi runs in app.svelte.ts.
Persisted fields: showKey, showControls, hiddenNodeTypes, layoutId, useCompound, compoundBasisId, animatePhysics, labelMode, fileTreatment, maxNodes, truncationBasis, and the five physics sliders ( gravity, repulsion, linkStrength, linkDistance, damping ).
GraphView in GraphView.svelte treats app. graph. ui as the source of truth and applies layout / physics / hidden types / label mode / fileTreatment to GraphCyController when those fields change.
The first graph load waits for graphUiState so restored node budget is included in loadGraph.
Navigation
Attributes
No attributes declared.
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | webview_app_state | reqlan rq/codestyle/typescript.rq | graph_ui_persistence |
| references | graph_label_modes | reqlan rq/extension/presentation/graph.rq | graph_ui_persistence |
| references | graphical_graph | reqlan rq/extension/workspace-summary/ideas_summary/graphical_graph.rq | graph_ui_persistence |
| references | ui_controls | reqlan rq/extension/workspace-summary/ideas_summary/graphical_graph.rq | graph_ui_persistence |
| references | file_treatment_toggle | reqlan rq/extension/workspace-summary/ideas_summary/graphical_graph.rq | graph_ui_persistence |
| references | control_panel | reqlan rq/extension/workspace-summary/ideas_summary/graphical_graph.rq | graph_ui_persistence |
| references | key_panel_toggle | reqlan rq/extension/workspace-summary/ideas_summary/graphical_graph.rq | graph_ui_persistence |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…