---
title: "Interface & Graph Navigation"
source: "https://edawise.com/docs/gui/interface-and-graph/"
---

# 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`), toggle `hide connectors`, or load the store for the first time.
- Both `f` (fit) and `Enter` (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:

1. **Toast** (accent blue, 2 seconds when triggered by copy): e.g., `copied <8-char-id>`, `editing <path>`, `saved <path>`, or `wrap on` / `wrap off`.
2. **Running Action** (amber warning): `running <action label>` while a `deccy` CLI command is executing.
3. **Missing CLI Binary** (red danger): `deccy binary not found; set DECCY_BIN`.
4. **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**: `2px` accent-blue border (`#6fb6ff`).
- **Hover**: `1px` accent-blue border.
- **Stale or Drift Warning**: Cards with stale pins or drifted claims carry compact `stale <n>` and/or `drift <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, while `repin all (n)` in the `Details` tab counts the number of stale connectors.
- **Custom Type Colors**: If a node's `type` has 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 findings` if 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 `Shift` while 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×`** and **`2.5×`**.
- **Fit to Pane (`f`)**: Press `f` at 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), press `Enter` — or right-click any card and choose `centre 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` / `k` or `↓` / `↑`)**: 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. When `hide connectors` is enabled, keyboard navigation skips connectors.
- **Deselecting**: Click empty space on the graph canvas, or press `Esc` when 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). When `hide connectors` is 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 layout` button on the right side of the top toolbar. Clicking `reset layout` discards 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 (`/`)

1. Press `/` or click the `search…` input in the toolbar to focus the search field.
2. 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.)*
3. Every matching card receives a `2px` accent-blue border, while non-matching cards dim.
4. Press `Enter` to select the next matching node, or `Shift-Enter` to select the previous matching node (wrapping around in store order).
5. **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 `Esc` clears the search query and exits search mode completely.

### 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 (`validate` errors 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`, or `filters 3`).
- Close the filters popover by clicking outside it or pressing `Esc`.
