-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dashboard] Feature: Adds chain ID to total sponsored analytics (#5161)
<!-- start pr-codex --> ## PR-Codex overview This PR introduces an interface `UserOpStatsByChain` and updates the `TotalSponsoredChartCard` component to handle user operation statistics by blockchain. It enhances chart data handling and visualization, allowing for better representation of sponsored gas across different chains. ### Detailed summary - Added `UserOpStatsByChain` interface in `useApi.ts`. - Updated `TotalSponsoredChartCard` to use `UserOpStatsByChain[]`. - Modified chart data structure to accommodate multiple chains. - Implemented logic to categorize and display "others" in charts. - Adjusted CSV export to include unique chain data. - Improved chart rendering with dynamic colors and data keys based on chains. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
1 parent
120f965
commit 74e52c0
Showing
2 changed files
with
108 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters