Skip to content

Comments

Bridge Route Map chart with interactive legend#62

Open
a-novi wants to merge 3 commits intomainfrom
bridge-route
Open

Bridge Route Map chart with interactive legend#62
a-novi wants to merge 3 commits intomainfrom
bridge-route

Conversation

@a-novi
Copy link
Contributor

@a-novi a-novi commented Jan 20, 2026

Summary

  • Add new Sankey diagram visualization showing asset flow between chains (ETH ↔ SUI)
  • Interactive legend with hover-to-highlight functionality for chains and tokens
  • Toggle between USD Volume and Transaction Count views

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a new Sankey diagram visualization to display bridge route flows between chains (ETH ↔ SUI). The implementation includes interactive legend hover-to-highlight functionality and the ability to toggle between USD Volume and Transaction Count views.

Changes:

  • Added @nivo/sankey library (v0.99.0) for Sankey diagram visualization
  • Created new API endpoint /api/routes to fetch bridge route data with time period filtering
  • Implemented BridgeRouteMap component with interactive legend and data filtering

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
yarn.lock Added @nivo/sankey and its dependencies (d3-*, @react-spring, etc.) for chart visualization
package.json Added @nivo/core and @nivo/sankey dependencies
src/utils/types.ts Added RouteMapRow type definition for route data structure
src/utils/axios.ts Added routes endpoint to API configuration
src/pages/api/routes.ts New API handler for fetching bridge route data with time period filtering and data transformation
src/components/chart/bridge-route-map.tsx New Sankey diagram component with interactive legend and toggle controls
src/app/page.tsx Integrated BridgeRouteMap component with lazy loading

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant