-
Notifications
You must be signed in to change notification settings - Fork 34
Add real-time MEV refund metrics to navbar #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add real-time MEV refund metrics to navbar #39
Conversation
|
@odysseus0 is attempting to deploy a commit to the Flashbots Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sukoneck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Wait for @sketsdever review before merging 🫡
|
@sukoneck Thanks for the review! I've made the following updates: ✅ Configuration Update
📝 DocumentationI've also added a new section to the README documenting the refund metrics widget:
Question: Since this is a public-facing repository, should we keep this technical documentation in the README, or would you prefer it moved elsewhere (maybe a separate CONTRIBUTING.md or internal docs)? Happy to adjust based on your preference. (CC. @sketsdever) |
Fine to leave in README for now. Let's reconsider CONTRIBUTING when Chris can review 👍 FYI I didn't see the docs update in your latest commit. |
|
@sukoneck ah just realized didn't push! now it is there! |
Update: Added feature flag supportI've pushed an update that adds runtime feature flag support to control widget visibility: Changes in this update:
Testing completed:
This allows us to control widget visibility across all sites from a single point (the API's environment variable) without requiring frontend redeployments. |
6622e2e to
a66202f
Compare
|
@metachris forgot to sync. I believe we later decided to only show gas refund as MEV refund is more of a less relevant Flashbots feature that might not be credibly neutral to show here. Will look into the vertical alignment. |
d29d328 to
8839433
Compare
|
PR ready for merge - alignment and typography issues resolved with professional commits |
90d4756 to
1c01810
Compare
- Add real-time gas refund metrics to BuilderNet navbar - Fetch data from configurable API endpoint with feature flag support - Use navbar__item class for proper Docusaurus framework integration - Perfect typography: regular labels, semibold values (font-weight: 500) matching navbar links - Include click handler to redirect to Dune analytics dashboard - Hide on mobile with responsive design - Add loading states and error handling with fallback data Technical implementation follows Docusaurus best practices: - Custom navbar component registered in ComponentTypes - Minimal CSS leveraging framework alignment and typography - Server-side rendering compatible with feature flag control
1c01810 to
6d08a78
Compare
- Hide widget completely on API error instead of showing fallback data (380.29, 444.24) - Makes error handling consistent across all three refund tracker implementations - Widget now only shows when real data is successfully fetched 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>


Summary
Changes
New MEV metrics widget component (
src/components/MevMetrics.tsx)https://refund-metrics-dune-api.vercel.app/api/metricsNavbar integration
Testing
npm startScreenshots
Widget displaying in navbar:
🤖 Generated with Claude Code