docling-studio/frontend
Claude cb2040a227
fix(graph): filter dangling edges before passing to cytoscape-dagre
Cytoscape-dagre crashes with "Cannot set properties of undefined
(setting 'order')" when an edge's source or target is not present in
the cytoscape node set.  Both backends can produce such edges in edge
cases (ON_PAGE edges referencing a page_no absent from the pages list,
DERIVED_FROM edges crossing document boundaries in Neo4j).  When
cytoscape-dagre adds these edges to its internal dagre/graphlib graph,
graphlib auto-creates a skeleton node entry with undefined data; dagre's
ordering phase then tries to set `.order` on that undefined object and
throws.

The fix builds a nodeIds Set from the returned nodes before constructing
the elements array, then filters every edge so only those with a valid
source AND target are forwarded to cytoscape.  Dangling edges have no
visual meaning anyway, so this is purely defensive.

https://claude.ai/code/session_01PjZeeTBqERYDPs59RhXqCz
2026-05-04 08:25:53 +00:00
..
public Update logo with final version 2026-04-02 17:28:22 +02:00
src fix(graph): filter dangling edges before passing to cytoscape-dagre 2026-05-04 08:25:53 +00:00
.prettierignore Add qualityt check and contributing doc 2026-03-21 15:34:54 +01:00
.prettierrc Add qualityt check and contributing doc 2026-03-21 15:34:54 +01:00
Dockerfile fix(nginx): make upload body size configurable via NGINX_MAX_BODY_SIZE env var 2026-04-30 11:38:14 +02:00
env.d.ts feat(reasoning): reasoning-trace viewer v1 with SQLite-backed graph 2026-04-29 14:00:00 +02:00
eslint.config.js fix: resolve CI warnings (Node.js 20 deprecation + ESLint formatting) 2026-04-08 14:54:56 +02:00
index.html Add logo across navbar, home hero, studio, and favicon 2026-04-02 17:11:31 +02:00
nginx.conf.template fix(nginx): make upload body size configurable via NGINX_MAX_BODY_SIZE env var 2026-04-30 11:38:14 +02:00
package-lock.json feat(reasoning): live docling-agent runner + UX polish 2026-04-29 14:00:00 +02:00
package.json chore(release): cut 0.5.0 — bump frontend version + complete CHANGELOG 2026-04-29 14:00:00 +02:00
tsconfig.json Migrate frontend in typescript 2026-03-21 15:58:43 +01:00
vite.config.js Add release process, dynamic versioning, and changelog catch-up 2026-04-02 16:08:37 +02:00