feat(gateways): add gateway stats widgets and new gateway pages#410
Open
feat(gateways): add gateway stats widgets and new gateway pages#410
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
1130056 to
f0795f7
Compare
Introduce new gateway widgets and pages to display stats for active gateways that have distributed fees in the last 90 days. Adds a gateways widget to the main page, a dedicated gateway tab, and a gateway account page for detailed gateway stats and activity.
Ensure that paid tickets also show up on the GatewayHistory.
Ensure the orchestrators button has the right background when the `/orchestrators` page is selected and the user is logged out.
5e54fca to
50655d3
Compare
3a6d1a3 to
3adb176
Compare
Ensure that the gateways tab is highlighted when on a gateway profile and the orchestrator tab when on a orchestrator profile.
Ensure we include gateways that were activated in the last year or did send tickets in the last 90D. Also improve the UI to make this behavoir more visible.
Ensure gateway tab is shown before the delegator tab if an entity is both a orchestrator and gateway.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ation TODO Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ccounts - Restore /accounts match for Orchestrators nav highlight, excluding /broadcasting which highlights Gateways instead - Always hide chain selector label (icon-only) to prevent nav overflow - Add gateway check to 404 logic in delegating, history, and orchestrating pages so gateway-only accounts don't return 404 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace <A> (anchor) with <Badge as="span"> using onClick/window.open to avoid invalid HTML when TransactionBadge is rendered inside a parent anchor in HistoryView. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Show only the wallet avatar icon between bp3 (1200px) and bp4 (1800px) to prevent nav overflow when logged in. Hide chain status since it's already shown separately via ContractAddressesPopover. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
Author
|
@ECWireless the subgraph has been udpated and this pull request rebased we can merge this now after your review. |
Contributor
There was a problem hiding this comment.
Additional Suggestions:
- PageProps type requires account, sortedOrchestrators, and fallback fields, but the catch block only returns {hadError: true}, causing type safety violation
- Missing required PageProps fields in getStaticProps catch block causing type contract violation
- Type contract violation in catch blocks - PageProps missing required fields when error occurs
Member
Author
|
@ECWireless rebased ready for review. |
ECWireless
requested changes
Mar 23, 2026
Collaborator
ECWireless
left a comment
There was a problem hiding this comment.
Found a few relatively minor issues while QAing
| <Box | ||
| css={{ | ||
| marginLeft: "8px", | ||
| display: "none", |
Collaborator
Member
Author
There was a problem hiding this comment.
Great catch, this issue was already on the main branch but made worse by me adding the gateway menu item. I applied this patch 1a83e79. We might want to improve the layout further in the future by maybe switching to a sidebar based layout. Let me know if this works for you or you need other improvements.
Local Claude Code tooling state (worktrees, settings) should not be tracked or linted. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use explicit path matching (/orchestrating, /delegating, /broadcasting, /history) instead of broad /accounts catch-all. History page highlights orchestrator nav for orchs and gateway nav for gateway-only accounts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…adge Reverted the window.open onClick approach in favor of wrapping the Badge with a proper <A> (Link) element for better accessibility, semantic HTML, and native browser link behavior (right-click, cmd+click, etc.). Co-Authored-By: ECWireless <40322776+ECWireless@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove redundant explicit id fields since accessor already serves as the column key. Add sortType: "number" to Deposit and Reserve columns so they sort numerically instead of alphabetically. Co-Authored-By: ECWireless <40322776+ECWireless@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reduce fixed margins and add responsive rules below 1250px so the navbar items fit without overflow on narrower desktop screens. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

This pull request introduces new gateway widgets and pages to display stats for active gateways that have distributed fees in the last 90 days. Adds a gateways widget to the main page, a dedicated gateway tab, and a gateway account page for detailed gateway stats and activity.
Warning
Needs upstream pull request livepeer/subgraph#168 to be merged and deployed for this to work!
Please remove the patch in codegen.yaml before merging.=!