Files
git.stella-ops.org/docs/features/unchecked/web/graph-split-view-with-diff-engine.md

1.8 KiB

Graph Split View with Diff Engine

Module

Web

Status

IMPLEMENTED

Description

Visual graph diff engine with split-view component for comparing two dependency/SBOM graphs side by side with change highlighting, diff computation, and synchronized navigation.

Implementation Details

  • Feature directory: src/Web/StellaOps.Web/src/app/features/graph/
  • Components:
    • graph-canvas (src/Web/StellaOps.Web/src/app/features/graph/graph-canvas.component.ts)
    • graph-explorer (src/Web/StellaOps.Web/src/app/features/graph/graph-explorer.component.ts)
    • graph-filters (src/Web/StellaOps.Web/src/app/features/graph/graph-filters.component.ts)
    • graph-hotkey-help (src/Web/StellaOps.Web/src/app/features/graph/graph-hotkey-help.component.ts)
    • graph-overlays (src/Web/StellaOps.Web/src/app/features/graph/graph-overlays.component.ts)
    • graph-side-panels (src/Web/StellaOps.Web/src/app/features/graph/graph-side-panels.component.ts)
  • Services:
    • graph-accessibility (src/Web/StellaOps.Web/src/app/features/graph/graph-accessibility.service.ts)
  • Source: Feature matrix scan

E2E Test Plan

  • Setup:
    • Log in with a user that has appropriate permissions
    • Navigate to /graph
    • Ensure test data exists (scanned artifacts, SBOM data, or seed data as needed)
  • Core verification:
    • Verify side-by-side comparison view renders correctly with two versions
    • Verify additions, removals, and changes are visually highlighted
    • Verify diff data matches the expected delta between versions
  • Edge cases:
    • Verify graceful handling when backend API is unavailable (error state)
    • Verify responsive layout at different viewport sizes
    • Verify accessibility (keyboard navigation, screen reader labels, ARIA attributes)