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.
The broadcasting page renders AccountLayout without passing sortedOrchestrators, which is only needed for the delegating view. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pre-build top 250 gateway pages at deploy time via getStaticPaths, with fallback: "blocking" for on-demand generation of other gateways. Server-side self-redeem status check eliminates client-side loading flash. Pages revalidate every 10 minutes via ISR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bad merge resolution left inconsistent spacing on the Gateways button. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ators The merge from main dropped the useEffects that enrich VoteEvent and TreasuryVoteEvent with parsed proposal titles (attributes.title), causing vote history entries to render with empty titles. Restore the IPFS and proposal-text enrichment logic from main. Also revert sortedOrchestrators to required in AccountLayout since the DelegatingWidget on all pages depends on it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Hide the "Arbitrum" text label on screens narrower than 1800px (bp4) to prevent nav items from wrapping when the Gateways link is present. Also add flexWrap: nowrap to the nav container as a safety guard. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The hook is unnecessary since isSelfRedeeming is always fetched server-side in broadcasting.tsx getStaticProps. Default the prop to false so the warning is hidden if SSR data is unavailable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Comment on lines
+149
to
+154
| (!accountAddress || !isMyAccountPage) && | ||
| (asPath.includes("/orchestrators") || | ||
| (asPath.includes("/accounts") && !asPath.includes("/broadcasting"))); | ||
| const isGatewaysNavActive = | ||
| (!accountAddress || !isMyAccountPage) && | ||
| (asPath.includes("/gateways") || asPath.includes("/broadcasting")); |
Contributor
| hadError: true, | ||
| }, | ||
| revalidate: 60, | ||
| }; |
Contributor
Member
Author
|
@ECWireless rebased ready for review. |
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.=!