Skip to content

Commit e8e0940

Browse files
committed
consolidate gateway navbar
1 parent f07b4b5 commit e8e0940

File tree

19 files changed

+141
-217
lines changed

19 files changed

+141
-217
lines changed

apps/dashboard/redirects.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,16 @@ const projectPageRedirects = [
115115
permanent: false,
116116
source: `${projectRoute}/connect/analytics`,
117117
},
118+
{
119+
destination: `${projectRoute}/insight/:path*`,
120+
permanent: false,
121+
source: `${projectRoute}/gateway/indexer/:path*`,
122+
},
123+
{
124+
destination: `${projectRoute}/rpc/:path*`,
125+
permanent: false,
126+
source: `${projectRoute}/gateway/rpc/:path*`,
127+
},
118128
];
119129

120130
const teamPageRedirects = [

apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ConnectSDKIcon } from "@/icons/ConnectSDKIcon";
22
import { ContractIcon } from "@/icons/ContractIcon";
33
import { EngineIcon } from "@/icons/EngineIcon";
4-
import { InsightIcon } from "@/icons/InsightIcon";
54
import { NebulaIcon } from "@/icons/NebulaIcon";
65
import { PayIcon } from "@/icons/PayIcon";
76
import { RPCIcon } from "@/icons/RPCIcon";
@@ -51,13 +50,6 @@ export const products = [
5150
link: "https://portal.thirdweb.com/payments",
5251
name: "Payments",
5352
},
54-
{
55-
description: "Query and analyze blockchain data",
56-
icon: InsightIcon,
57-
id: "insight",
58-
link: "https://thirdweb.com/insight",
59-
name: "Insight",
60-
},
6153
{
6254
description: "The most powerful AI for interacting with the blockchain",
6355
icon: NebulaIcon,

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectFTUX/ProjectFTUX.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { TypeScriptIcon } from "@/icons/brand-icons/TypeScriptIcon";
1313
import { UnityIcon } from "@/icons/brand-icons/UnityIcon";
1414
import { UnrealIcon } from "@/icons/brand-icons/UnrealIcon";
1515
import { ContractIcon } from "@/icons/ContractIcon";
16-
import { InsightIcon } from "@/icons/InsightIcon";
1716
import { PayIcon } from "@/icons/PayIcon";
1817
import { ClientIDSection } from "./ClientIDSection";
1918
import { SecretKeySection } from "./SecretKeySection";
@@ -111,13 +110,6 @@ function ProductsSection(props: { teamSlug: string; projectSlug: string }) {
111110
icon: ContractIcon,
112111
title: "Contracts",
113112
},
114-
{
115-
description:
116-
"Add indexing capabilities to retrieve real-time onchain data",
117-
href: `/team/${props.teamSlug}/${props.projectSlug}/insight`,
118-
icon: InsightIcon,
119-
title: "Insight",
120-
},
121113
{
122114
description:
123115
"Bridge, swap, and purchase cryptocurrencies with any fiat options or tokens via cross-chain routing",

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectSidebarLayout.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
} from "@/components/blocks/full-width-sidebar-layout";
1616
import { BridgeIcon } from "@/icons/BridgeIcon";
1717
import { ContractIcon } from "@/icons/ContractIcon";
18-
import { InsightIcon } from "@/icons/InsightIcon";
1918
import { NebulaIcon } from "@/icons/NebulaIcon";
2019
import { PayIcon } from "@/icons/PayIcon";
2120
import { TokenIcon } from "@/icons/TokenIcon";
@@ -104,14 +103,20 @@ export function ProjectSidebarLayout(props: {
104103
group: "Scale",
105104
links: [
106105
{
107-
href: `${props.layoutPath}/insight`,
108-
icon: InsightIcon,
109-
label: "Insight",
110-
},
111-
{
112-
href: `${props.layoutPath}/rpc`,
113-
icon: RssIcon,
114-
label: "RPC",
106+
subMenu: {
107+
icon: RssIcon,
108+
label: "Gateway",
109+
},
110+
links: [
111+
{
112+
href: `${props.layoutPath}/gateway/rpc`,
113+
label: "RPC",
114+
},
115+
{
116+
href: `${props.layoutPath}/gateway/indexer`,
117+
label: "Indexer",
118+
},
119+
],
115120
},
116121
// linkely want to move this to `team` level eventually
117122
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
TableHeader,
1414
TableRow,
1515
} from "@/components/ui/table";
16-
import { CardHeading } from "../../payments/components/common";
16+
import { CardHeading } from "../../../payments/components/common";
1717

1818
export function TopInsightChainsTable(props: {
1919
data: InsightChainStats[];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
TableHeader,
1414
TableRow,
1515
} from "@/components/ui/table";
16-
import { CardHeading } from "../../payments/components/common";
16+
import { CardHeading } from "../../../payments/components/common";
1717

1818
export function TopInsightEndpointsTable(props: {
1919
data: InsightEndpointStats[];
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
export function InsightFTUX(_props: { clientId: string }) {
2+
return (
3+
<div className="rounded-lg border bg-card">
4+
<div className="border-b px-4 py-4 lg:px-6">
5+
<h2 className="font-semibold text-xl tracking-tight">Indexer</h2>
6+
</div>
7+
<div className="px-4 py-6 lg:p-6">
8+
<p className="text-muted-foreground text-sm">
9+
Indexed data is automatially used when using the thirdweb SDKs and API
10+
where appropriate.
11+
</p>
12+
<p className="text-muted-foreground text-sm">
13+
Once you have integrated thirdweb into your application you will start
14+
seeing usage patterns here.
15+
</p>
16+
</div>
17+
<div className="flex flex-col gap-3 border-t p-4 lg:flex-row lg:items-center lg:justify-between lg:p-6">
18+
<div className="flex gap-3"></div>
19+
20+
<p className="flex items-center gap-2 rounded-full border bg-background px-3.5 py-1.5 text-sm">
21+
<span className="!pointer-events-auto relative flex size-2">
22+
<span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-sky-400 opacity-75" />
23+
<span className="relative inline-flex size-2 rounded-full bg-primary" />
24+
</span>
25+
Waiting for integration
26+
</p>
27+
</div>
28+
</div>
29+
);
30+
}

0 commit comments

Comments
 (0)