Skip to content

fix(graph-ui): visualizer reliability/readability for impact, timeline, and cluster modes #226

Closed

Description

@hurttlocker

Summary

Fix visualizer reliability/readability issues observed during live UI pass so graph views are trustworthy and understandable under load, error, and dense data conditions.

Scope

1. Clear stale Impact state on request/error

  • On each new impact request, clear prior panel + graph state before loading.
  • On HTTP error (404/500), do not leave prior impact results visible.
  • Reference: internal/graph/visualizer.html around loadImpact.

2. Clear stale Timeline state on request/error

  • Remove prior timeline SVG/state before loading new timeline.
  • Ensure error state does not overlay previous successful timeline rendering.
  • Reference: internal/graph/visualizer.html around loadTimeline and renderTimeline.

3. Decouple Cluster mode from global search textbox

  • Entering cluster mode should not implicitly inherit stale search text from other modes.
  • Add explicit cluster filter input/state handling.
  • Reference: internal/graph/visualizer.html around switchToCluster.

4. Improve Impact readability in dense graphs

  • Reduce label overlap and occlusion.
  • Rebalance impact subject node sizing/color so root nodes do not dominate.
  • Relax tight depth-0 ring packing for concentric layout.
  • Reference: internal/graph/visualizer.html node/label/layout logic.

Acceptance Criteria

  • Impact panel/graph never shows stale data after failed request
  • Timeline view never shows stale drawing after failed request
  • Cluster mode state is independent and predictable
  • Dense impact views are readable without severe label collisions
  • Existing graph/visualizer tests pass; add coverage for stale-state regressions

Notes

This issue intentionally excludes ranking API contract work in #225.

Activity

  1. hurttlocker commented on Feb 26, 2026

    @hurttlocker
    OwnerAuthor

    Fixed in a6d590d. All 4 scope items addressed:

    1. ✅ Impact panel/graph clears stale data before new request and on errors
    2. ✅ Timeline view clears stale SVG before new request and on errors
    3. ✅ Cluster mode state is independent (search box cleared on mode switch)
    4. ✅ Dense impact views use adaptive ring spacing + relaxed depth-0 packing

    clearVisualState() helper ensures no stale visual artifacts survive across mode switches, failed requests, or empty results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions