Skip to content

feat: create data provenance graph#593

Merged
Mosas2000 merged 8 commits into
StellaBridge:mainfrom
akintewe:feature/data-provenance-graph
Jun 16, 2026
Merged

feat: create data provenance graph#593
Mosas2000 merged 8 commits into
StellaBridge:mainfrom
akintewe:feature/data-provenance-graph

Conversation

@akintewe

Copy link
Copy Markdown
Contributor

Summary

  • Backend: Added ProvenanceService with rich lineage data for price, health, TVL, and alert metrics. Created /api/v1/provenance (list) and /api/v1/provenance/lineage (full graph) endpoints and registered them in the route index.
  • Frontend: Added ProvenanceNode, ProvenanceEdge, ProvenanceGraph, and ProvenanceListItem types. Added getProvenanceMetrics and getProvenanceLineage API client functions. Built the DataProvenanceGraph page with an SVG canvas showing source → transform → destination node columns, freshness dot indicators, latency labels on highlighted edges, a detail drawer for node inspection, and a node list table. Added the route /data-provenance and a "Provenance" nav link.

Features implemented

  • Show source, transform, and destination nodes in a left-to-right column layout
  • Freshness markers (fresh / stale / unknown) on every node via colored dot badges and timestamps
  • Click a node to open a detail drawer exposing metadata, entity type/ID, connections, and last-updated time
  • Latency labels render on highlighted edges when a node is selected
  • Filter by node kind (source / transform / destination), asset, bridge, and metric type
  • Responsive: the SVG scales fluidly; the node list table provides an accessible fallback

Test plan

  • Navigate to /data-provenance — metric pills should load (price·USDC, health·USDC, tvl·Allbridge, alerts·EURC)
  • Click a metric pill — SVG graph renders with correct node columns and edges
  • Click a node — detail drawer opens with metadata, freshness badge, and connection list
  • Click a connected node link in the drawer — selection jumps to that node
  • Filter by kind "Source" — only source nodes remain visible
  • Filter by asset "USDC" — metric list scopes to USDC entries
  • Verify GET /api/v1/provenance and GET /api/v1/provenance/lineage?metric=price&asset=USDC return expected JSON
  • Check desktop and mobile viewport widths

Closes #591

@Mosas2000

Copy link
Copy Markdown
Contributor

There's conflict, fix this!

@akintewe

Copy link
Copy Markdown
Contributor Author

There's conflict, fix this!

oh okk

@Mosas2000 Mosas2000 merged commit ac40d93 into StellaBridge:main Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Data Provenance Graph

2 participants