Skip to content

Commit 96d147c

Browse files
committed
Tidy upper graph clutter
1 parent 69ceb37 commit 96d147c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Core loop:
3030
- Live, non-blocking agent run indicators in the desktop UI (phase updates + progress bars while fix suggestions are generated, then auto-hidden when the run ends)
3131
- Three-column desktop workspace layout: errors (left), graph (center, primary), and a suggestion panel (right) that appears only after an agent workflow run starts
3232
- Graph force-layout simulation is intentionally reheated only on initial analyze and `Reset view`; selecting nodes or left-panel errors preserves the current arrangement
33+
- Graph readability tuning in default view: stronger node separation and stricter smart-label thresholds to reduce cluster clutter
3334
- `Reset view` also zooms to fit the currently visible graph so all rendered nodes are brought back into frame
3435
- Error list cards emphasize severity, message, and entity label; internal rule codes are hidden from the left-panel card headers
3536
- Suggestion lifecycle management across agent runs with a single active suggestion panel: close hides the panel, and per-error `Open Suggestion` actions re-open the latest generated suggestion without re-running the agent

asstes/preview.png

-60 KB
Loading

src/frontend/components/GraphView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const NODE_TYPE_FILTER_ORDER: NodeType[] = [
6262
"Error"
6363
];
6464
const NODE_REL_SIZE = 5;
65-
const GRAPH_LINK_DISTANCE = 0;
65+
const GRAPH_LINK_DISTANCE = 20;
6666
const GRAPH_CHARGE_STRENGTH = -80;
6767
const GRAPH_CHARGE_DISTANCE_MAX = 80;
6868
const LARGE_GRAPH_NODE_THRESHOLD = 130;
@@ -260,11 +260,11 @@ function GraphView({ graph, focusRequest, selectedNodeId, onNodeClick }: GraphVi
260260
return true;
261261
}
262262

263-
if (zoomLevel >= 2.1 && (node.degree ?? 0) >= 2) {
263+
if (zoomLevel >= 2.3 && (node.degree ?? 0) >= 2) {
264264
return true;
265265
}
266266

267-
return importantNodeIds.has(node.id) && zoomLevel >= 1.3;
267+
return importantNodeIds.has(node.id) && zoomLevel >= 1.75;
268268
},
269269
[hoveredNodeId, importantNodeIds, labelDensityMode, selectedNodeId, zoomLevel]
270270
);

0 commit comments

Comments
 (0)