Skip to content

Commit 92266b7

Browse files
committed
[Portal] Cosmetic Changes (#6218)
CORE-0000 --- ## PR-Codex overview This PR focuses on updating content and structure across various pages in the `apps/portal` application, including the addition of new features, improved descriptions, and adjustments to the sidebar navigation. ### Detailed summary - Deleted `supported-chains.png` and `context-filters.png`. - Added new content for `faqs`, `troubleshoot`, and `Nebula` guides. - Updated the sidebar with new links and icons. - Changed import paths for images. - Enhanced descriptions in `Deploy`, `Contracts`, and `Insight` pages. - Added a new section for "Supported Chains" in `Contracts` and `Insight` pages. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the documentation and content for the `thirdweb` platform, particularly for the `Insight` and `Nebula` sections, while also restructuring some sidebar links and enhancing the user interface with new images. ### Detailed summary - Deleted `supported-chains` image and `page.mdx` files. - Added new content for `Insight FAQs` and `Troubleshoot Guide`. - Updated `Nebula` description and added a support link. - Changed sidebar items for `Insight` and `Contracts`. - Introduced new features and layout in `Insight` and `Contracts` pages. - Added support for displaying `Supported Chains` images in relevant sections. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updates to the `insight` and `nebula` sections of the application, including the addition of new content, restructuring of sidebar navigation, and changes to image imports. It also enhances the user interface with improved documentation and guidance. ### Detailed summary - Deleted `apps/portal/src/app/insight/supported-chains/page.mdx`. - Added new content for `Insight FAQs`, `Insight Troubleshoot Guide`, and `Nebula Troubleshoot Guide`. - Updated sidebar navigation in `apps/portal/src/app/insight/sidebar.tsx`. - Changed the name and href for several sidebar items. - Reorganized `Supported Chains` references and added a new image import in multiple files. - Enhanced content descriptions in `apps/portal/src/app/contracts/deploy/overview/page.mdx`. - Added new features and video tutorials in `apps/portal/src/app/insight/page.mdx`. - Updated layout and structure of `Contracts` section in `apps/portal/src/app/contracts/page.mdx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
1 parent 80ad84b commit 92266b7

File tree

13 files changed

+165
-114
lines changed

13 files changed

+165
-114
lines changed

apps/portal/src/app/connect/page.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
SDKCard,
1111
Callout,
1212
ArticleIconCard,
13+
DocImage
1314
} from "@doc";
1415
import { ExternalLink } from "lucide-react";
1516
import {
@@ -22,6 +23,7 @@ import {
2223
import { cn } from "@/lib/utils";
2324
import Link from "next/link";
2425
import { Button } from "@/components/ui/button";
26+
import SupportedChains from "../_images/supported-chains.png";
2527

2628
export const metadata = createMetadata({
2729
title: "thirdweb Connect",
@@ -102,12 +104,13 @@ Get started with Connect in your preferred language.
102104

103105
Connect is supported on every EVM compatible chain. To view the full list, visit [thirdweb chainlist](https://thirdweb.com/chainlist).
104106

107+
<DocImage src={SupportedChains} />
108+
105109
## Starter Kits & demos
106110

107111
View all available starter kits, demos and templates on Github.
108112

109113
<GithubTemplateCard
110114
title="View all templates"
111115
href="https://github.com/thirdweb-example"
112-
tag="Starter"
113116
/>

apps/portal/src/app/contracts/deploy/overview/page.mdx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const metadata = createMetadata({
1212

1313
# Deploy
1414

15-
Deploy is a tool to deploy any contract to any EVM compatible chain through one simple command and an easy-to-use interface. Deploy reduces the complexities of deploying a contract by eliminating steps such as hardcoding private keys, managing RPC URLs, or running scripts to deploy your contracts.
15+
Deployment tools allow you to deploy any contract to any EVM compatible chain through one simple command and an easy-to-use interface. Deploy reduces the complexities of deploying a contract by eliminating steps such as hardcoding private keys, managing RPC URLs, or running scripts to deploy your contracts.
1616

1717
Simply run the following command at the root of your contract directory:
1818

@@ -31,24 +31,14 @@ npx thirdweb deploy
3131
description="Contracts are automatically verified on Sourcify"
3232
iconUrl="/icons/feature-cards/verified.svg"
3333
/>
34-
<FeatureCard
35-
title="Deploy to any EVM"
36-
description="Deploy to over 2,000+ available EVM chains"
37-
iconUrl="/icons/feature-cards/evm.svg"
38-
/>
3934
<FeatureCard
4035
title="Increased security"
4136
description="Avoid exporting private keys with client-side deployment"
4237
iconUrl="/icons/feature-cards/security.svg"
4338
/>
44-
<FeatureCard
45-
title="Streamlined deployment"
46-
description="Avoid writing scripts, setting up RPCs, copying ABIs, etc."
47-
iconUrl="/icons/feature-cards/streamlined-deployment.svg"
48-
/>
4939
<FeatureCard
5040
title="Support for frameworks"
51-
description="Works with contracts built with Hardhat and Foundry"
41+
description="Works with any contract built with Hardhat and Foundry"
5242
iconUrl="/icons/feature-cards/frameworks.svg"
5343
/>
5444
<FeatureCard
@@ -58,7 +48,7 @@ npx thirdweb deploy
5848
/>
5949
<FeatureCard
6050
title="Dashboard"
61-
description="Unlock a management dashboard"
51+
description="Unlock a management dashboard to interact with contracts and view analytics"
6252
iconUrl="/icons/feature-cards/dashboard.svg"
6353
/>
6454
<FeatureCard

apps/portal/src/app/contracts/page.mdx

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { GithubTemplateCard, ExpandableGrid, createMetadata, OpenSourceCard } from "@doc";
1+
import { GithubTemplateCard, ExpandableGrid, createMetadata, OpenSourceCard, DocImage, ArticleIconCard, Grid } from "@doc";
2+
import SupportedChains from "../_images/supported-chains.png";
3+
import { ExternalLink } from "lucide-react";
24

35
export const metadata = createMetadata({
46
title: "thirdweb Contracts",
@@ -8,13 +10,31 @@ export const metadata = createMetadata({
810

911
# What are Contracts?
1012

11-
Contracts is an end-to-end development suite which provides tools to develop, deploy, and manage smart contracts
13+
Contracts is an end-to-end development suite which provides tools to develop, deploy, and manage smart contracts.
1214

13-
### Features
15+
<Grid>
1416

15-
- [Explore (Contract Library)](/contracts/explore/overview): Audited and expansive library of contracts deployable with one-click
16-
- [Modular Contracts](/contracts/modular-contracts/overview): Framework to build highly customizable and secure smart contracts
17-
- [Deployment Tool](/contracts/deploy/overview): Client-side deploy tool to securely deploy any contract to any EVM compatible chain
17+
<ArticleIconCard
18+
title="Deployment Tool"
19+
icon={ExternalLink}
20+
href="/contracts/deploy/overview"
21+
description="Securely deploy any smart contract."
22+
/>
23+
<ArticleIconCard
24+
title="Explore"
25+
icon={ExternalLink}
26+
href="/contracts/explore/overview"
27+
description="Audited and expansive library of contracts."
28+
/>
29+
30+
<ArticleIconCard
31+
title="Modular Contracts"
32+
icon={ExternalLink}
33+
href="/contracts/explore/overview"
34+
description="Build customizable smart contracts."
35+
/>
36+
37+
</Grid>
1838

1939
<OpenSourceCard title="Contracts" href="https://github.com/thirdweb-dev/contracts" />
2040

@@ -91,3 +111,9 @@ Contracts is an end-to-end development suite which provides tools to develop, de
91111
/>
92112

93113
</ExpandableGrid>
114+
115+
## Supported Chains
116+
Contracts is supported on every EVM compatible chain. To view the full list, visit [thirdweb chainlist](https://thirdweb.com/chainlist?service=contracts).
117+
118+
<DocImage src={SupportedChains} />
119+

apps/portal/src/app/contracts/sidebar.tsx

Lines changed: 29 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import type { SideBar } from "@/components/Layouts/DocLayout";
2-
import {
3-
ContractDeployIcon,
4-
ContractExploreIcon,
5-
ContractModularContractIcon,
6-
ContractPublishIcon,
7-
} from "@/icons";
2+
import { ContractModularContractIcon } from "@/icons";
83

94
const prebuiltSlug = "/contracts/explore/pre-built-contracts";
105
const prebuiltModular = "/contracts/explore/pre-built-modular";
@@ -28,10 +23,35 @@ export const sidebar: SideBar = {
2823
href: "/contracts",
2924
},
3025
{ separator: true },
26+
{
27+
name: "Deployment Tools",
28+
isCollapsible: false,
29+
links: [
30+
{
31+
name: "Overview",
32+
href: `${deploySlug}/overview`,
33+
},
34+
{
35+
name: "Deploy Contract",
36+
href: `${deploySlug}/deploy-contract`,
37+
},
38+
{
39+
name: "Publish Contract",
40+
href: `${publishSlug}/publish-contract`,
41+
},
42+
{
43+
name: "CLI Reference",
44+
href: `${deploySlug}/reference`,
45+
},
46+
{
47+
name: "Publish Options",
48+
href: `${publishSlug}/publish-options`,
49+
},
50+
],
51+
},
3152
// explore
3253
{
33-
name: "Explore",
34-
icon: <ContractExploreIcon />,
54+
name: "Explore (Contract Library)",
3555
isCollapsible: false,
3656
links: [
3757
{
@@ -219,8 +239,7 @@ export const sidebar: SideBar = {
219239
// modular contracts
220240

221241
{
222-
name: "Modular Contracts",
223-
icon: <ContractModularContractIcon />,
242+
name: "Modular Contract Framework",
224243
isCollapsible: false,
225244
links: [
226245
{
@@ -774,52 +793,6 @@ export const sidebar: SideBar = {
774793
],
775794
},
776795
{ separator: true },
777-
// deploy
778-
{
779-
name: "Deploy",
780-
icon: <ContractDeployIcon />,
781-
isCollapsible: false,
782-
links: [
783-
{
784-
name: "Overview",
785-
href: `${deploySlug}/overview`,
786-
},
787-
{
788-
name: "Deploy Contract",
789-
href: `${deploySlug}/deploy-contract`,
790-
},
791-
{
792-
name: "CLI Reference",
793-
href: `${deploySlug}/reference`,
794-
},
795-
],
796-
},
797-
{ separator: true },
798-
// publish
799-
{
800-
name: "Publish",
801-
icon: <ContractPublishIcon />,
802-
isCollapsible: false,
803-
links: [
804-
{
805-
name: "Overview",
806-
href: `${publishSlug}/overview`,
807-
},
808-
{
809-
name: "Publish Contract",
810-
href: `${publishSlug}/publish-contract`,
811-
},
812-
{
813-
name: "Publish Options",
814-
href: `${publishSlug}/publish-options`,
815-
},
816-
{
817-
name: "CLI Reference",
818-
href: `${publishSlug}/reference`,
819-
},
820-
],
821-
},
822-
{ separator: true },
823796
// resources
824797
{
825798
name: "Resources",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Insight FAQs
2+
3+
More information coming soon.
Lines changed: 57 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import { OpenSourceCard } from "@doc";
1+
import { OpenSourceCard, DocImage, Grid, ArticleCard, FeatureCard } from "@doc";
22
import { createMetadata } from "@/components/Document";
3+
import SupportedChains from "../_images/supported-chains.png";
4+
import { Wallet, File, MessageCircle, Braces, Bot, Blocks, Album, Server, Zap } from "lucide-react";
5+
36

47
export const metadata = createMetadata({
58
title: "thirdweb Insight",
@@ -12,17 +15,61 @@ export const metadata = createMetadata({
1215

1316
# Insight
1417

15-
Insight is a powerful tool that lets you retrieve blockchain data from any EVM chain, enrich it with metadata, and transform it using custom logic. Whether you're building a gaming inventory system, tracking DeFi metrics, or analyzing NFT collections, Insight makes it easy to get the data you need with simple API calls.
18+
Insight is a tool that lets you retrieve blockchain data from any EVM chain, enrich it with metadata, and transform it using custom logic.
19+
20+
<OpenSourceCard title="Insight" href="https://github.com/thirdweb-dev/insight" />
1621

17-
## Why use Insight?
22+
## Features
1823

19-
- It gives developers an easily understandable data API to query blockchain data.
20-
- No need to index blockchains yourself or manage infrastructure and RPC costs.
21-
- Transform and enrich data with custom Blueprints.
22-
- Insight is open source.
24+
<div
25+
className="my-4 grid gap-2 md:grid-cols-2 lg:grid-cols-2 "
26+
>
27+
<FeatureCard
28+
title="Easy-to-Use API"
29+
description="Easily understandable data API to query blockchain data."
30+
iconUrl={<Braces />}
31+
/>
2332

24-
<OpenSourceCard title="Insight" href="https://github.com/thirdweb-dev/insight" />
33+
<FeatureCard
34+
title="Managed Infrastructure"
35+
description="No need to index blockchains yourself or manage infrastructure and RPC costs."
36+
iconUrl={<Server />}
37+
/>
38+
39+
<FeatureCard
40+
title="Custom Blueprints"
41+
description="Transform and enrich data easily to suit your needs."
42+
iconUrl={<Album/>}
43+
/>
44+
45+
<FeatureCard
46+
title="Lightning-Fast Queries"
47+
description="Access any transaction, event or token API data"
48+
iconUrl={<Zap/>}
49+
/>
50+
51+
52+
</div>
53+
54+
## Video Tutorials
55+
56+
<Grid>
57+
58+
<ArticleCard
59+
title="Blockchain Explorer"
60+
description="Create your own custom schemas and data to get specific data."
61+
href="https://www.youtube.com/watch?v=U2aW7YIUJVw"
62+
/>
63+
64+
<ArticleCard
65+
title="Telegram Bot"
66+
description="Build an on-chain Telegram bot that fetches live blockchain data"
67+
href="https://m.youtube.com/watch?v=HvqewXLVRig"
68+
/>
69+
70+
</Grid>
2571

26-
## Get in touch
72+
## Supported Chains
73+
Insight is supported on select EVM compatible chains. To view the full list, visit [thirdweb chainlist](https://thirdweb.com/chainlist?service=insight).
2774

28-
For dedicated support and feature requests, [contact Sales](https://thirdweb.com/contact-us).
75+
<DocImage src={SupportedChains} />
Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
import type { SideBar } from "@/components/Layouts/DocLayout";
2+
import {
3+
Album,
4+
Box,
5+
Braces,
6+
Brain,
7+
MessageCircleQuestionIcon,
8+
Rocket,
9+
StickyNote,
10+
Wrench,
11+
} from "lucide-react";
212

313
const insightSlug = "/insight";
414

@@ -8,26 +18,27 @@ export const sidebar: SideBar = {
818
{
919
name: "Overview",
1020
href: "/insight",
21+
icon: <Box />,
1122
},
1223
{
13-
name: "Get Started",
14-
href: `${insightSlug}/get-started`,
24+
name: "Use Cases",
25+
href: `${insightSlug}/use-cases`,
26+
icon: <StickyNote />,
1527
},
1628
{
17-
name: "Supported Chains",
18-
href: `${insightSlug}/supported-chains`,
29+
name: "Get Started",
30+
href: `${insightSlug}/get-started`,
31+
icon: <Rocket />,
1932
},
2033
{
2134
name: "Blueprints",
2235
href: `${insightSlug}/blueprints`,
23-
},
24-
{
25-
name: "Use cases",
26-
href: `${insightSlug}/use-cases`,
36+
icon: <Album />,
2737
},
2838
{
2939
name: "Agents & LLMs",
3040
href: `${insightSlug}/agents-and-llms`,
41+
icon: <Brain />,
3142
links: [
3243
{
3344
name: "llms.txt",
@@ -38,6 +49,17 @@ export const sidebar: SideBar = {
3849
{
3950
name: "API Reference",
4051
href: "https://insight-api.thirdweb.com/reference",
52+
icon: <Braces />,
53+
},
54+
{
55+
name: "Troubleshoot",
56+
href: `${insightSlug}/troubleshoot`,
57+
icon: <Wrench />,
58+
},
59+
{
60+
name: "FAQs",
61+
href: `${insightSlug}/faqs`,
62+
icon: <MessageCircleQuestionIcon />,
4163
},
4264
],
4365
};

0 commit comments

Comments
 (0)