Files
graphify/tests
Hassan ZidanandClaude Opus 5.5 def404e576 feat(export): show truncated sidebar names and legend node counts on hover in graph.html
The 280px sidebar truncates community names in the legend, search results
and Node Info neighbor links with a CSS ellipsis and gives no way to read
the full text, and the legend count has no label. On graphify's own graph
126 of 283 legend labels (45%) are truncated.

Add one shared tooltip that reuses vis-network's .vis-tooltip style and
100ms tooltipDelay:

- Names show it only when the text is truncated (scrollWidth > clientWidth).
- The legend count always shows it, as "N nodes" / "1 node".
- Text is set with textContent only, keeping the #1838 / #3686 escaping
  invariant.
- One delegated listener covers rows rebuilt later.
- No title attributes are added, so the native tooltip does not stack.

Node-driven regression tests cover truncated and non-truncated rows, the
count wording, literal rendering of & " ' < >, and single escaping of the
legend label.

Fixes #4286

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 18:58:43 +03:00
..