Skip to content

Commit c77b4d8

Browse files
committed
updated old support links to portal (#7286)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `SupportPage` component in the `page.tsx` file by adding new features, modifying existing sections, and improving the overall structure and content of the help products. ### Detailed summary - Added new icons: `HomeIcon`, `WalletIcon`, `EngineIcon`, `InsightIcon`, `PayIcon`, and `NebulaIcon`. - Introduced a new help product: "Playground". - Replaced "Connect" product icon and updated its description. - Changed "Contracts" to "Universal Bridge" with a new icon and description. - Updated "Engine" product with a new icon and description. - Replaced "Account" with "Insight" and updated its details. - Replaced "Misc" with "Nebula" and updated its details. - Changed section title from "Knowledge base" to "Learning Resources". - Modified product icon rendering from image to component usage. - Updated button text from "View All" to "View". > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new products "Playground" and "Nebula" to the support page. - **Improvements** - Updated product categories, icons, and descriptions for a clearer overview. - Replaced static images with modern icon components for improved visual consistency. - Changed page heading to "Learning Resources." - Simplified layout by replacing help article lists with concise product descriptions. - Shortened the "View All" button text to "View." <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 5c4c49b commit c77b4d8

File tree

1 file changed

+39
-111
lines changed
  • apps/dashboard/src/app/(app)/(dashboard)/support

1 file changed

+39
-111
lines changed

apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx

Lines changed: 39 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { getTeams } from "@/api/team";
22
import { Button } from "@/components/ui/button";
33
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
44
import { BookOpenIcon, ChevronRightIcon } from "lucide-react";
5+
import { HomeIcon, WalletIcon } from "lucide-react";
56
import type { Metadata } from "next";
6-
import Image from "next/image";
77
import Link from "next/link";
8-
import accountIcon from "../../../../../public/assets/support/account.svg";
9-
import contractsIcon from "../../../../../public/assets/support/contracts.png";
10-
import engineIcon from "../../../../../public/assets/support/engine.png";
11-
import miscIcon from "../../../../../public/assets/support/misc.svg";
12-
import connectIcon from "../../../../../public/assets/support/wallets.png";
8+
import { EngineIcon } from "../../(dashboard)/(chain)/components/server/icons/EngineIcon";
9+
import { InsightIcon } from "../../(dashboard)/(chain)/components/server/icons/InsightIcon";
10+
import { PayIcon } from "../../(dashboard)/(chain)/components/server/icons/PayIcon";
1311
import { CustomChatButton } from "../../../nebula-app/(app)/components/CustomChat/CustomChatButton";
12+
import { NebulaIcon } from "../../../nebula-app/(app)/icons/NebulaIcon";
1413
import {
1514
getAuthToken,
1615
getAuthTokenWalletAddress,
@@ -23,98 +22,42 @@ export const metadata: Metadata = {
2322
},
2423
};
2524
const HELP_PRODUCTS = [
25+
{
26+
title: "Playground",
27+
icon: HomeIcon,
28+
viewAllUrl:
29+
"https://playground.thirdweb.com/connect/sign-in/button?tab=code",
30+
description: "Try out our interactive playground to get started",
31+
},
2632
{
2733
title: "Connect",
28-
icon: connectIcon,
29-
viewAllUrl: "https://support.thirdweb.com/wallets/dwWCB7ZD5sNcHEAj4rFFui",
30-
helpArticles: [
31-
{
32-
title: "Account Abstraction FAQ",
33-
url: "https://support.thirdweb.com/wallets/dwWCB7ZD5sNcHEAj4rFFui/smart-wallet-faqs/64y68nzTQkUZw6r6FryFgK",
34-
},
35-
{
36-
title: "In-App Wallet FAQ",
37-
url: "https://support.thirdweb.com/wallets/dwWCB7ZD5sNcHEAj4rFFui/embedded-wallet-faqs/rhkKeknMUEdyDbRPnLFz1s",
38-
},
39-
],
34+
icon: WalletIcon,
35+
viewAllUrl: "https://portal.thirdweb.com/connect",
36+
description: "Wallets, auth, and onchain interactions",
4037
},
4138
{
42-
title: "Contracts",
43-
icon: contractsIcon,
44-
viewAllUrl:
45-
"https://support.thirdweb.com/smart-contracts/rtHYyzspnPaHmmANmJQz1k/",
46-
helpArticles: [
47-
{
48-
title: "Contract Verification",
49-
url: "https://support.thirdweb.com/how-to/vGcHXQ7tHXuSJf7jaL2y5Q/how-to-verify-a-contract-using-thirdweb-sdk/cTwpMSQveggnMSwXGRKzXv",
50-
},
51-
{
52-
title: "Batch Upload Troubleshooting",
53-
url: "https://support.thirdweb.com/smart-contracts/rtHYyzspnPaHmmANmJQz1k/batch-upload-troubleshooting/5WMQFqfaUTU1C8NM8FtJ2X",
54-
},
55-
{
56-
title: "Contract Verification with Blockscout API",
57-
url: "https://support.thirdweb.com/other-faqs/tFbbEYCSbJ1GTeXoPs4QFw/blockscout-api-contract-verification/qpa9r79QkgH31HFsvGissC",
58-
},
59-
],
39+
title: "Universal Bridge",
40+
icon: PayIcon,
41+
viewAllUrl: "https://portal.thirdweb.com/pay",
42+
description: "Bridge and onramp tokens on any chain",
6043
},
6144
{
6245
title: "Engine",
63-
icon: engineIcon,
64-
viewAllUrl:
65-
"https://support.thirdweb.com/infrastructure/eRgkLPBdL1WJJLzAbuWrPZ",
66-
helpArticles: [
67-
{
68-
title: "Storage FAQ",
69-
url: "https://support.thirdweb.com/other-faqs/tFbbEYCSbJ1GTeXoPs4QFw/storage-faqs/8nhnidc5B9K5js9pU2RBwa",
70-
},
71-
{
72-
title: "RPC Edge FAQ",
73-
url: "https://support.thirdweb.com/other-faqs/tFbbEYCSbJ1GTeXoPs4QFw/rpc-edge-faqs/r3kJ3PK2UHUDJ1LWfM8a2D",
74-
},
75-
{
76-
title: "Add Custom RPC to your app",
77-
url: "https://support.thirdweb.com/how-to/vGcHXQ7tHXuSJf7jaL2y5Q/how-to-add-a-custom-rpc-url-into-your-front-end-backend-or-dashboard/gWYPf4QhPd9M2qzuMnMf7o",
78-
},
79-
],
46+
icon: EngineIcon,
47+
viewAllUrl: "https://portal.thirdweb.com/engine/v3",
48+
description: "Reliable transactions and monitoring",
8049
},
8150
{
82-
title: "Account",
83-
icon: accountIcon,
84-
viewAllUrl: "https://portal.thirdweb.com/account",
85-
helpArticles: [
86-
{
87-
title: "Manage billing",
88-
url: "https://portal.thirdweb.com/account/billing/manage-billing",
89-
},
90-
{
91-
title: "Upgrade plans",
92-
url: "https://portal.thirdweb.com/account/billing/upgrade-plan",
93-
},
94-
{
95-
title: "Account Info",
96-
url: "https://portal.thirdweb.com/account/billing/account-info",
97-
},
98-
],
51+
title: "Insight",
52+
icon: InsightIcon,
53+
viewAllUrl: "https://portal.thirdweb.com/insight",
54+
description: "Blockchain data queries and transformations",
9955
},
10056
{
101-
title: "Misc",
102-
icon: miscIcon,
103-
viewAllUrl: "https://support.thirdweb.com/",
104-
helpArticles: [
105-
{
106-
title: "Troubleshooting error messages",
107-
url: "https://support.thirdweb.com/troubleshooting-errors/7Y1BqKNvtLdBv5fZkRZZB3",
108-
},
109-
{
110-
title: "Add EVM to thirdweb chainlist",
111-
url: "https://support.thirdweb.com/other-faqs/tFbbEYCSbJ1GTeXoPs4QFw/how-to-add-your-evm-chain-to-thirdweb%E2%80%99s-chainlist-/3HMqrwyxXUFxQYaudDJffT",
112-
},
113-
{
114-
title: "API Keys",
115-
url: "https://portal.thirdweb.com/account/api-keys",
116-
},
117-
],
57+
title: "Nebula",
58+
icon: NebulaIcon,
59+
viewAllUrl: "https://portal.thirdweb.com/nebula",
60+
description: "API interface for LLMs",
11861
},
11962
] as const;
12063

@@ -179,19 +122,13 @@ export default async function SupportPage() {
179122
</header>
180123
</div>
181124
<section className="container flex flex-col gap-6">
182-
<h2 className="font-bold text-3xl">Knowledge base</h2>
125+
<h2 className="font-bold text-3xl">Learning Resources</h2>
183126
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6 lg:grid-cols-3">
184127
{HELP_PRODUCTS.map((product) => (
185128
<Card className="relative col-span-1 bg-card" key={product.title}>
186129
<CardHeader className="flex flex-row items-center justify-between gap-2">
187130
<div className="flex flex-row items-center gap-2">
188-
{product.icon && (
189-
<Image
190-
src={product.icon}
191-
alt={product.title}
192-
className="size-5"
193-
/>
194-
)}
131+
{product.icon && <product.icon className="size-5" />}
195132
<CardTitle className="text-xl">{product.title}</CardTitle>
196133
</div>
197134
<Button
@@ -201,27 +138,18 @@ export default async function SupportPage() {
201138
className="absolute top-4 right-2 flex flex-row gap-1 px-2 text-muted-foreground text-sm hover:text-foreground"
202139
>
203140
<Link href={product.viewAllUrl} target="_blank">
204-
<span>View All</span>
141+
<span>View</span>
205142
<ChevronRightIcon className="size-4" />
206143
</Link>
207144
</Button>
208145
</CardHeader>
209146

210-
<CardContent>
211-
<ul className="flex flex-col gap-1">
212-
{product.helpArticles.map((article) => (
213-
<li key={article.title}>
214-
<Link
215-
href={article.url}
216-
target="_blank"
217-
rel="noreferrer"
218-
className="text-muted-foreground text-sm hover:text-foreground"
219-
>
220-
{article.title}
221-
</Link>
222-
</li>
223-
))}
224-
</ul>
147+
<CardContent key={product.description}>
148+
{product.description && (
149+
<p className="mb-2 text-muted-foreground text-sm">
150+
{product.description}
151+
</p>
152+
)}
225153
</CardContent>
226154
</Card>
227155
))}

0 commit comments

Comments
 (0)