Skip to content

Commit 6429a23

Browse files
authored
[BLD-231] Playground: Add API reference, Remove Insight and Payments API playgrounds (#7986)
1 parent 769019d commit 6429a23

File tree

29 files changed

+92
-2260
lines changed

29 files changed

+92
-2260
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ export function InsightFTUX(props: { clientId: string }) {
3939
},
4040
]}
4141
ctas={[
42-
{
43-
href: "https://playground.thirdweb.com/insight",
44-
label: "Try on Playground",
45-
},
4642
{
4743
href: "https://portal.thirdweb.com/insight",
4844
label: "View Docs",

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/insight/page.tsx

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ export default async function Page(props: {
6060
type: "docs",
6161
href: "https://portal.thirdweb.com/insight",
6262
},
63-
{
64-
type: "playground",
65-
href: "https://playground.thirdweb.com/insight",
66-
},
6763
{
6864
type: "api",
6965
href: "https://insight-api.thirdweb.com/reference",
@@ -74,44 +70,6 @@ export default async function Page(props: {
7470
},
7571
],
7672
}}
77-
footer={{
78-
center: {
79-
links: [
80-
{
81-
href: "https://www.youtube.com/watch?v=U2aW7YIUJVw",
82-
label:
83-
"Blockchain Data on Any EVM - Quick and Easy REST APIs for Onchain Data",
84-
},
85-
{
86-
href: "https://www.youtube.com/watch?v=HvqewXLVRig",
87-
label: "Build a Whale Alerts Telegram Bot with Insight",
88-
},
89-
],
90-
title: "Tutorials",
91-
},
92-
left: {
93-
links: [
94-
{
95-
href: "https://portal.thirdweb.com/insight",
96-
label: "Overview",
97-
},
98-
{
99-
href: "https://insight-api.thirdweb.com/reference",
100-
label: "API Reference",
101-
},
102-
],
103-
title: "Documentation",
104-
},
105-
right: {
106-
links: [
107-
{
108-
href: "https://playground.thirdweb.com/insight",
109-
label: "API Playground",
110-
},
111-
],
112-
title: "Demos",
113-
},
114-
}}
11573
>
11674
<ResponsiveSearchParamsProvider value={searchParams}>
11775
<div>

apps/playground-web/next.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ const nextConfig = {
147147
destination: "/wallets/ecosystem-wallet",
148148
permanent: false,
149149
},
150+
{
151+
source: "/insight",
152+
destination: "https://insight.thirdweb.com/reference",
153+
permanent: false,
154+
},
155+
{
156+
source: "/payments/backend",
157+
destination: "/reference#tag/payments",
158+
permanent: false,
159+
},
150160
];
151161
},
152162
async rewrites() {

apps/playground-web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@radix-ui/react-switch": "^1.2.5",
1818
"@radix-ui/react-tooltip": "1.2.7",
1919
"@radix-ui/react-use-controllable-state": "^1.2.2",
20+
"@scalar/api-reference-react": "^0.7.42",
2021
"@tanstack/react-query": "5.81.5",
2122
"@thirdweb-dev/ai-sdk-provider": "workspace:*",
2223
"@workspace/ui": "workspace:*",
@@ -77,8 +78,7 @@
7778
"prefix": "biome check ./src --fix",
7879
"prelint": "biome check ./src",
7980
"start": "next start",
80-
"typecheck": "tsc --noEmit",
81-
"update-insight-blueprints": "bun scripts/updateInsightBlueprints.ts"
81+
"typecheck": "tsc --noEmit"
8282
},
8383
"version": "0.1.1"
8484
}

apps/playground-web/scripts/updateInsightBlueprints.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

apps/playground-web/scripts/utils.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

apps/playground-web/src/app/data/pages-metadata.ts

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
BlocksIcon,
44
BotIcon,
55
BoxIcon,
6-
BracesIcon,
76
CircleUserIcon,
87
CreditCardIcon,
98
DollarSignIcon,
@@ -24,7 +23,6 @@ import {
2423
UserIcon,
2524
WalletCardsIcon,
2625
} from "lucide-react";
27-
import { InsightIcon } from "../../icons/InsightIcon";
2826

2927
export type FeatureCardMetadata = {
3028
icon: React.FC<{ className?: string }>;
@@ -187,52 +185,6 @@ export const paymentsFeatureCards: FeatureCardMetadata[] = [
187185
description:
188186
"Enable users to pay for onchain transactions with fiat or crypto",
189187
},
190-
{
191-
icon: BracesIcon,
192-
title: "Payments API",
193-
link: "/payments/backend",
194-
description: "Create customizable UIs or backend flows using the HTTP API",
195-
},
196-
];
197-
198-
export const insightFeatureCards: FeatureCardMetadata[] = [
199-
{
200-
icon: InsightIcon,
201-
title: "Events",
202-
link: "/insight",
203-
description: "Query contract events on any supported EVM chain",
204-
},
205-
{
206-
icon: InsightIcon,
207-
title: "Transactions",
208-
link: "/insight",
209-
description: "Query transactions to and from specified recipients",
210-
},
211-
{
212-
icon: InsightIcon,
213-
title: "Tokens",
214-
link: "/insight",
215-
description: "Query token owners, transfers, prices, and more",
216-
},
217-
{
218-
icon: InsightIcon,
219-
title: "NFTs",
220-
link: "/insight",
221-
description:
222-
"Query NFT balances, collections, transfers, metadata, and more.",
223-
},
224-
{
225-
icon: InsightIcon,
226-
title: "Wallets",
227-
link: "/insight",
228-
description: "Query transactions to and from specific wallets",
229-
},
230-
{
231-
icon: InsightIcon,
232-
title: "Contracts",
233-
link: "/insight",
234-
description: "Query a contract's ABI or metadata",
235-
},
236188
];
237189

238190
export const accountAbstractionsFeatureCards: FeatureCardMetadata[] = [

0 commit comments

Comments
 (0)