feat: add Antseed AI Credits analytics dashboard - #49
Merged
Merged
Conversation
Self-contained browser dashboard for the GoodDollar x AntSeed integration. Visualizes G$ deposit volume, AI credit usage, flow rates, and daily wallet activity from the Antseed Worker analytics endpoint. - Hero scorecards (total G$ spent, AI credits USD, flow rate G$/day) - Three Chart.js charts (G$ volume, AI credits/day, unique wallets/day) - Paginated daily summary table - Live/Demo toggle to preview layout while Worker endpoint is pending - Auto-refreshes every 5 minutes - Graceful fallback when endpoint is not yet deployed (PR antseed-integration#19)
Collaborator
Author
|
Dashboard is now deployed to GitHub Pages. Live URL: https://gooddollar.github.io/data-team/antseed-analytics/ Currently shows demo data (toggle between Live Data and Demo Preview at the top). Once antseed-integration PR #19 merges and the Worker endpoint goes live, real data loads automatically. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Self-contained browser dashboard for the GoodDollar x AntSeed AI Credits integration. Fetches daily analytics from the Antseed Worker endpoint and visualizes G$ deposit volume, AI credit usage, and wallet activity.
Live preview (once merged): https://gooddollar.github.io/data-team/antseed-analytics/dashboard/
What it shows
Data source
Fetches from \GET /v1/analytics?days=365\ on the Antseed Worker. The endpoint serves pre-aggregated daily data from Cloudflare KV.
Status: The Worker endpoint is not yet deployed -- waiting on antseed-integration PR #19 to merge. The dashboard shows a graceful fallback with demo data until then. Once the endpoint is live, it works immediately with no code changes.
Metrics coverage
All metrics requested by Hadar in issue #13 are covered:
Not in scope (not available in the Worker API response -- would need separate queries or API additions):
Files
Tech