Files
git.stella-ops.org/docs/features/unchecked/web/smart-diff-ui-components.md

1.3 KiB

Smart-Diff UI Components (Visual Diffs)

Module

Web

Status

IMPLEMENTED

Description

Full visual diff UI with three-pane layout (categories, items, proof), delta summary strip, compare view, VEX merge explanation visualization, proof pane, export actions, and smart-diff badges. Matches the advisory's specified UI patterns.

Implementation Details

  • Feature directory: src/Web/StellaOps.Web/src/app/shared/components/smart-diff-badge/
  • Components:
    • smart-diff-badge (src/Web/StellaOps.Web/src/app/shared/components/smart-diff-badge/smart-diff-badge.component.ts)
  • Source: Feature matrix scan

E2E Test Plan

  • Setup:
    • Log in with a user that has appropriate permissions
    • Navigate to the relevant page/section where this feature appears
    • 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)