Skip to content

v0.3.2.post4 — Readable node names in the interactive overflow viewer

Choose a tag to compare

@marota marota released this 17 Jun 19:15
bfc3b61

Highlights

The interactive overflow-graph viewer now shows human-readable node names
(e.g. Saucats 400kV) instead of only opaque internal IDs, while keeping node
identity stable so all existing interactions (selection, adjacency highlight,
double-click SLD resolution) keep working unchanged.

New Features

  • Readable node names in the interactive viewer (#78): the viewer uses each
    node's display label (the Graphviz label node attribute, set upstream by
    the recommender) as the readable name.
    • Search matches on both the readable display name and the stable id.
    • The hover tooltip and selection panel show the readable name as the
      header, with the id underneath only when it differs.
    • Node identity (SVG <title> / data-name) is unchanged — selection,
      adjacency highlight and double-click SLD resolution still key off the id.

Bug Fixes

  • No more \N placeholder leak: label-less nodes carry Graphviz's \N
    ("use node name") placeholder in their label attribute. nodeDisplayName now
    ignores any backslash escape and falls back to the id, so tooltips and search
    never surface a literal \N.

Tests

  • Readable label surfaces as data-attr-label without losing the id.
  • Search consults both the id and the resolved display name.
  • Tooltip/selection skip the duplicated label attribute.
  • Label-less nodes fall back to the id (no \N leak).

Full changelog: see CHANGELOG.md ([0.3.2.post4]).