Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
671d3c7
feat(gateways): add gateway stats widgets and new gateway pages
rickstaa Nov 22, 2025
8d4699a
feat: add paid tickets to gateway history
rickstaa Nov 22, 2025
cbf8c87
fix: hide delegating tab when account is not delegator
rickstaa Nov 22, 2025
50655d3
fix: correct gateway nav highlight when logged out
rickstaa Nov 22, 2025
7f877ef
Merge branch 'main' into feat/add-gateway-dashboard
rickstaa Dec 28, 2025
3adb176
fix: fix merge conflict
rickstaa Dec 28, 2025
35c94c3
Merge branch 'main' into feat/add-gateway-dashboard
rickstaa Dec 28, 2025
b74acd7
chore: remove duplicate env variable from template
rickstaa Dec 28, 2025
cc3cffe
refactor: apply code improvements
rickstaa Dec 28, 2025
d0edde7
refactor: ensure correct tab highlight behavoir
rickstaa Dec 28, 2025
f622b78
refactor: improve gateway inclusion criteria and UI
rickstaa Dec 28, 2025
c5da583
refactor: improve profile tab order
rickstaa Dec 28, 2025
f1faa97
feat: add warning for self-redeeming gateways
rickstaa Dec 29, 2025
478ba3f
refactor: improve account tabs mobile layout
rickstaa Dec 29, 2025
a15d1be
feat: add HorizontalScrollContainer component
rickstaa Dec 29, 2025
be56b20
refactor: add scrollBuffer constant
rickstaa Dec 30, 2025
6ae32ab
refactor: add accessibility labels to horizontalScrollContainer
rickstaa Dec 30, 2025
2bf8b2c
refactor: improve horizontalScrollContainer scroll behaviour
rickstaa Dec 30, 2025
4db10d5
refactor: stabilize horizontalScrollContainer fade behavior
rickstaa Dec 30, 2025
5f1c432
Merge branch 'main' into feat/add-gateway-dashboard
rickstaa Jan 7, 2026
bbc039e
refactor: small formatting fix introduce during merge
rickstaa Jan 7, 2026
d59f8ec
Merge branch 'main' into feat/add-gateway-dashboard
rickstaa Jan 8, 2026
76c9886
fix: ensure gateway filtering is correct
rickstaa Jan 8, 2026
babb95a
chore: add gateway pagination comment
rickstaa Jan 9, 2026
b0e82d1
fix: address PR #410 review comments
claude Mar 11, 2026
94be395
fix: restore required PopoverContent props for TypeScript compatibility
claude Mar 11, 2026
85c28e4
fix: address Copilot review comments on PR #588
claude Mar 11, 2026
b39517f
Merge branch 'main' into feat/add-gateway-dashboard
rickstaa Mar 16, 2026
ab86375
fix: make sortedOrchestrators optional in AccountLayout props
rickstaa Mar 16, 2026
e98e1bf
feat: add SSR with ISR for gateway broadcasting pages
rickstaa Mar 17, 2026
7b9d811
fix: add left margin to self-redeem warning icon
rickstaa Mar 17, 2026
e9ae2ed
fix: correct Gateways nav button margin from $2 to $1
rickstaa Mar 17, 2026
1c096ea
fix: restore vote event enrichment and revert optional sortedOrchestr…
rickstaa Mar 17, 2026
2a58646
fix: make chain selector responsive — icon-only below 1800px
rickstaa Mar 17, 2026
b37550b
refactor: remove useGatewaySelfRedeemStatus hook
rickstaa Mar 17, 2026
9d257a7
fix: use N/A fallback for activeSince to match app conventions
rickstaa Mar 17, 2026
76233b9
refactor: extract isDelegator variable and fix nav highlight logic
rickstaa Mar 17, 2026
a2ac29c
fix: hide chain selector label at all widths and update gateway pagin…
rickstaa Mar 17, 2026
7fc4b57
fix: restore nav highlight for account pages and allow gateway-only a…
rickstaa Mar 17, 2026
edf8e2b
fix: resolve nested anchor tag warning in TransactionBadge
rickstaa Mar 17, 2026
da1366f
fix: make wallet button responsive — avatar-only below 1800px
rickstaa Mar 17, 2026
ef116fc
fix: constrain gateways page to LAYOUT_MAX_WIDTH for consistent layout
rickstaa Mar 17, 2026
068d610
Merge branch 'main' into feat/add-gateway-dashboard
rickstaa Mar 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 166 additions & 4 deletions apollo/subgraph.ts

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions components/BroadcastingView/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
import { ExplorerTooltip } from "@components/ExplorerTooltip";
import Stat from "@components/Stat";
import dayjs from "@lib/dayjs";
import { formatEth } from "@lib/utils";
import { Box, Grid } from "@livepeer/design-system";
import { ExclamationTriangleIcon } from "@radix-ui/react-icons";
import { GatewaysQuery } from "apollo";
import { useMemo } from "react";

const SelfRedeemIndicator = () => (
<ExplorerTooltip
multiline
content={
<Box>Self-redeemed winning tickets detected in the last 90 days.</Box>
}
>
<Box css={{ display: "flex", alignItems: "center" }}>
<Box as={ExclamationTriangleIcon} css={{ color: "$amber11" }} />
</Box>
</ExplorerTooltip>
);

const BroadcastingView = ({
gateway,
isSelfRedeeming = false,
}: {
gateway?: GatewaysQuery["gateways"] extends Array<infer G> ? G | null : null;
isSelfRedeeming?: boolean;
}) => {
const activeSince = useMemo(
() =>
gateway?.firstActiveDay
? dayjs.unix(gateway.firstActiveDay).format("MMM D, YYYY")
: "N/A",
[gateway]
);
const statusText = useMemo(() => {
const active = Number(gateway?.ninetyDayVolumeETH ?? 0) > 0;
return active ? "Active" : "Inactive";
}, [gateway]);
const statItems = useMemo(
() => [
{
id: "total-fees-distributed",
label: "Total fees distributed",
value: (
<Box css={{ display: "flex", alignItems: "center", gap: "$2" }}>
<Box>{formatEth(gateway?.totalVolumeETH)}</Box>
{isSelfRedeeming && <SelfRedeemIndicator />}
</Box>
),
tooltip: "Lifetime fees this gateway has distributed on-chain.",
},
{
id: "status",
label: "Status",
value: statusText,
tooltip: "Active if this gateway distributed fees in the last 90 days.",
},
{
id: "ninety-day-fees",
label: "90d fees distributed",
value: formatEth(gateway?.ninetyDayVolumeETH),
tooltip:
"Total fees distributed to orchestrators over the last 90 days.",
},
{
id: "activation-date",
label: "Activation date",
value: activeSince,
tooltip: "First day this gateway funded deposit/reserve on-chain.",
},
{
id: "deposit-balance",
label: "Deposit balance",
value: formatEth(gateway?.deposit),
tooltip: "Current deposit balance funded for gateway job payouts.",
},
{
id: "reserve-balance",
label: "Reserve balance",
value: formatEth(gateway?.reserve),
tooltip: "Reserve funds available for winning ticket payouts.",
},
],
[gateway, activeSince, statusText, isSelfRedeeming]
);

return (
<Box
css={{
paddingTop: "$4",
}}
>
<Grid
css={{
display: "grid",
gridTemplateColumns: "1fr",
gap: "$3",
alignItems: "stretch",
"@media (min-width: 820px)": {
gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
},
}}
>
{statItems.map((stat) => (
<Stat
key={stat.id}
label={stat.label}
value={stat.value}
tooltip={stat.tooltip}
css={{ height: "100%" }}
/>
))}
</Grid>
</Box>
);
};

export default BroadcastingView;
10 changes: 9 additions & 1 deletion components/ConnectButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import { ConnectButton as ConnectButtonRainbowKit } from "@rainbow-me/rainbowkit";
import { ConnectButtonProps } from "@rainbow-me/rainbowkit/dist/components/ConnectButton/ConnectButton";
import { useWindowSize } from "react-use";

const ConnectButton = (props: ConnectButtonProps) => {
return <ConnectButtonRainbowKit chainStatus="name" {...props} />;
const { width } = useWindowSize();
return (
<ConnectButtonRainbowKit
chainStatus="none"
accountStatus={width < 1800 ? "avatar" : "full"}
{...props}
/>
);
};

export default ConnectButton;
Loading
Loading