Interface & Graph Navigation
deccy-gui uses a dark-themed single-window layout divided into four regions: the top toolbar, the center graph (or editor) pane, the right inspector rail, and the collapsible bottom drawer above the status/feedback bar.
Window Regions & Resizing
| Region | Default Size | Resize Bounds | Notes |
|---|---|---|---|
| Toolbar | 44px tall | Fixed | Displays the store label, search input, filters dropdown, settings, reload, and (when cards have been moved) reset layout. |
| Center Pane | Flexible | Minimum 320px wide, 120px tall | Renders the interactive graph canvas, or the built-in code editor when a file is open. |
| Right Rail | 380px wide | Minimum 240px wide | Holds the Details and Rationale inspector tabs and the node warning strip. |
| Bottom Drawer | 240px tall (hidden on launch) | 120px to 60% of window height | Holds the Terminal and Outputs tabs. Remembers its height across open/close toggles during a session. |
| Feedback Bar | 26px tall | Fixed | Left side has the ▴ open drawer / ▾ close drawer toggle; right side shows one line of status feedback. |
Resizing Rules
- Drag the vertical divider between the center pane and the right rail to adjust the inspector width.
- When the drawer is open, drag its top border to adjust its height.
- Viewport Stability: Dragging a pane divider or toggling the drawer never alters your graph zoom or pan. The graph viewport changes only when you explicitly fit (
f), centre (Enter), reset moved cards (reset layout), togglehide connectors, or load the store for the first time. - Both
f(fit) andEnter(centre on selection) account for the current positions of the right rail and bottom drawer splitters. - Pane sizes are session-only and reset to their defaults on restart.
Bottom Feedback Bar
The right side of the 26px bottom bar displays a single priority-ordered message:
- Toast (accent blue, 2 seconds when triggered by copy): e.g.,
copied <8-char-id>,editing <path>,saved <path>, orwrap on/wrap off. - Running Action (amber warning):
running <action label>while adeccyCLI command is executing. - Missing CLI Binary (red danger):
deccy binary not found; set DECCY_BIN. - Notice / Error (red danger): Unsaved editor warnings, file read/write errors, settings errors, or store reload refusals.
Graph Layout & Visual Encoding
The graph flows top to bottom:
- Tail pins run from a premise/support node at the top into a connector below it (
target → connector). - Head pins run from a connector at the top into a conclusion/dependent node below it (
connector → target). - Back-edges and cycles (where a target is not strictly below its source) curve outward around the side of the rank so loops remain clearly visible and still carry an arrowhead at the destination.
Node Cards
Cards are drawn in front of edges and come in three shapes:
| Card Kind | Glyph | World Size | Description |
|---|---|---|---|
| Decision | ● | 216 × 64 | Standard decision node. Top row shows ●, shortest unique ID prefix, and any warning chips; second row shows the title. |
| Connector | ◇ | 176 × 48 | Connector node linking tail premises to head conclusions. Can be hidden via Settings (hide connectors). |
| Missing Target (Ghost) | — | 160 × 40 | Dashed red outline rendered when a connector pins a node ID that does not exist on disk. Displays the abbreviated ID in red and the label missing. |
Card Borders & Warning Chips
- Selected or Search Match:
2pxaccent-blue border (#6fb6ff). - Hover:
1pxaccent-blue border. - Stale or Drift Warning: Cards with stale pins or drifted claims carry compact
stale <n>and/ordrift <n>chips in their top-right corner and a warning-amber border (#f0b95c) when not selected.- Note: A connector card’s
stale <n>chip counts the number of stale pins on that connector, whilerepin all (n)in theDetailstab counts the number of stale connectors.
- Note: A connector card’s
- Custom Type Colors: If a node’s
typehas a color in.deccy/settings.json, the card body fills with that color and its text, glyph, and chips automatically switch to black or white for contrast.
Edges (Arrows)
Edges are cubic Bézier curves with filled arrowheads indicating direction:
| Edge Condition | Color | Line Style |
|---|---|---|
| Normal | Slate (#526176) | Solid |
| Unpinned | Muted grey (#8b98ab) | Dashed |
| Stale | Amber (#f0b95c) | Dashed |
| Dangling | Red (#ff7070) | Dashed |
| Cycle | Red (#ff7070) | Solid (or dashed if also stale/unpinned/dangling) |
When multiple conditions apply to the same edge, color priority from highest to lowest is: Cycle / Dangling (red) → Stale (amber) → Unpinned (muted) → Normal.
Hover Popovers
Hovering the cursor over any real node card opens a 320px popover anchored to the card containing details that may be clipped on the card face:
<kind> · <type>header- Full node title
- 12-character digest prefix in monospace
- Finding count and up to 3 finding lines (plus
<n> more findingsif more exist)
Ghost cards do not have hover popovers.
Navigating & Arranging the Graph
Panning and Zooming
- Pan with Mouse: Click and drag empty space on the graph canvas.
- Pan with Wheel / Trackpad: Hold
Shiftwhile scrolling, or perform a purely horizontal scroll gesture. - Zoom: Scroll the mouse wheel or trackpad vertically over the graph. Scrolling up (away from you) zooms in; scrolling down zooms out. Zooming is anchored at the cursor position and clamped between
0.35×and2.5×. - Fit to Pane (
f): Pressfat any time to zoom and pan so the entire graph fits centered inside the current graph pane. - Centre on Node (
Enter): With a node selected (and search inactive), pressEnter— or right-click any card and choosecentre on card— to pan the selected card to the center of the pane without changing your current zoom level.
Selecting Nodes & Neighbourhood Spotlight
- Mouse Selection: Left-click any node card to select it. Clicking a card selects it without copying its ID.
- Keyboard Selection (
j/kor↓/↑): Steps forward (j/↓) or backward (k/↑) through nodes in store order (all decisions sorted by ID, followed by all connectors sorted by ID), wrapping around at the ends. Whenhide connectorsis enabled, keyboard navigation skips connectors. - Deselecting: Click empty space on the graph canvas, or press
Escwhen no modal, menu, or search is active. - Neighbourhood Dimming: While a node is selected, only that node and its directly connected neighbours (plus the edges between them) remain at full opacity; all other cards and edges dim (
55%card opacity,50%edge alpha). Whenhide connectorsis enabled, nodes linked through a hidden connector are treated as visible neighbours and remain bright.
Moving Cards & Resetting Layout
- Drag a Card: Click and drag any node card (or ghost card) to reposition it. The dragged card renders on top of all other cards while moving, and all attached edges re-route smoothly in real time.
- Persistence Across Reloads: Manual card positions are kept in memory across automatic file-watcher reloads and manual reloads (
r) for as long as the node ID remains in the store. - Reset Layout: Moving any card reveals a
reset layoutbutton on the right side of the top toolbar. Clickingreset layoutdiscards all manual card positions, restores the automatic layered layout, and refits the graph to the pane.
Search & Spotlight Filters
Both search and filters use spotlight semantics: they highlight matching cards and dim non-matching cards to 55% opacity without shifting the graph layout or hiding nodes.
Searching (/)
- Press
/or click thesearch…input in the toolbar to focus the search field. - Type a query. Search performs a case-insensitive substring match across every node’s:
- Full 32-character ID
- Title
type(kind_type)- Claimed file paths (Note: Rationale prose is not searched, and ghost cards never match a non-empty search query.)
- Every matching card receives a
2pxaccent-blue border, while non-matching cards dim. - Press
Enterto select the next matching node, orShift-Enterto select the previous matching node (wrapping around in store order). - Leaving Search vs. Clearing Search:
- Clicking a card, the graph canvas, or another panel blurs the search input so single-key graph shortcuts (
f,j,k,r,v) work again, while keeping your search query and its spotlight active. - Pressing
Escclears the search query and exits search mode completely.
- Clicking a card, the graph canvas, or another panel blurs the search input so single-key graph shortcuts (
Spotlight Filters (filters ▾)
Click the filters button in the toolbar to open the filters popover:
stale: Matches connectors with one or more stale pins (stale > 0).drift: Matches nodes with one or more drifted claims (drift > 0).problems: Matches nodes that own one or more structural validation problems (validateerrors such as broken records, cycles, dangling pins, unpinned connectors, or missing claims/rationales).
Filter behavior:
- Checking a box toggles that filter immediately without closing the popover, so you can toggle multiple filters at once.
- When multiple filters are active, they combine as a union (OR): any node matching at least one checked filter stays bright, and all other nodes (plus ghosts) dim.
- While any filter is active, the toolbar button turns accent blue and displays the active count (
filters 1,filters 2, orfilters 3). - Close the filters popover by clicking outside it or pressing
Esc.