-
Notifications
You must be signed in to change notification settings - Fork 563
fixed SEO issues from ahrefs #7688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis update adds or modifies metadata exports in multiple MDX documentation pages, primarily under the CLI section, by introducing structured metadata objects via a Changes
Estimated code review effort1 (~5 minutes) Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 9
🧹 Nitpick comments (8)
apps/portal/src/app/webhooks/page.mdx (1)
8-8
: Hyphenate “onchain” for technical consistencyAcross the docs we usually write “on-chain / off-chain”; consider updating to maintain uniform spelling and SEO keyword consistency.
-description: "Learn how to receive real-time updates for onchain and offchain events using thirdweb.", +description: "Learn how to receive real-time updates for on-chain and off-chain events using thirdweb.",apps/portal/src/app/payments/sell/page.mdx (1)
22-29
: Enhance the meta description for richer SEO & snippet lengthThe updated description is a step forward, but at ~60 chars it doesn’t fully utilize Google’s preferred 150-160 char snippet window.
Consider adding 1-2 specific keywords (e.g., “cross-chain”, “Bridge SDK”, “USDT→USDC”) and a brief value proposition to improve click-through.- description: "Learn how to sell cryptocurrency tokens with thirdweb Payments.", + description: "Learn how to sell cryptocurrency tokens cross-chain with thirdweb Payments using the Bridge SDK — prepare quotes, execute sales, and receive assets on any supported chain.",apps/portal/src/app/chat/page.tsx (1)
8-16
: Add explicit return type to satisfy our TS guidelinesAll
*.tsx
files must declare an explicit return type.
Quick fix:-export default function ChatPage() { +export default function ChatPage(): JSX.Element {apps/portal/src/app/wallets/faq/page.mdx (2)
22-24
: Replace<br /><br />
with semantic paragraphsUsing
<br />
for vertical spacing hampers accessibility and leads to brittle layouts. Prefer separate Markdown/JSX paragraphs or a spacing utility from your design system:- ... <code>signer</code>, you can build ... - <br /><br /> - However, you will need ... + ... <code>signer</code>, you can build ... + +However, you will need ...Same applies to the other instances listed above.
Also applies to: 28-29, 50-52
3-10
: Consider addingkeywords
& OG metadataSince this PR targets SEO, adding a
keywords
array (and possibly Open Graph/Twitter tags) can further boost discoverability:export const metadata = createMetadata({ title: "FAQ for thirdweb Wallet", description: "Frequently asked questions about thirdweb's Wallet", + keywords: ["thirdweb wallet", "web3 faq", "in-app wallet", "account abstraction"], image: {
Optional but low-effort win.
apps/portal/src/app/cli/build/page.mdx (1)
6-8
: Title is too generic – hurts SEO deduplicationSeveral pages now share the exact same
<title>
“thirdweb CLI | Reference”. Search engines may collapse them or flag as duplicate content. Consider a command-specific title, e.g.:- title: "thirdweb CLI | Reference", + title: "thirdweb CLI build | Reference",apps/portal/src/app/cli/upload/page.mdx (1)
8-9
: Duplicate generic titleSame duplication concern; make this command-specific:
- title: "thirdweb CLI | Reference", + title: "thirdweb CLI upload | Reference",apps/portal/src/app/cli/logout/page.mdx (1)
6-8
: Minor wording / grammar tweak“Learn how to logout of …” – when used as a verb, it should be “log out of”. Helps Ahrefs & users alike.
- description: "Learn how to logout of the thirdweb CLI and revoke access from your device.", + description: "Learn how to log out of the thirdweb CLI and revoke this device's access.",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (13)
apps/portal/src/app/chat/page.tsx
(1 hunks)apps/portal/src/app/cli/build/page.mdx
(1 hunks)apps/portal/src/app/cli/create/page.mdx
(1 hunks)apps/portal/src/app/cli/generate/page.mdx
(1 hunks)apps/portal/src/app/cli/install/page.mdx
(1 hunks)apps/portal/src/app/cli/login/page.mdx
(1 hunks)apps/portal/src/app/cli/logout/page.mdx
(1 hunks)apps/portal/src/app/cli/page.mdx
(1 hunks)apps/portal/src/app/cli/upload/page.mdx
(1 hunks)apps/portal/src/app/payments/sell/page.mdx
(1 hunks)apps/portal/src/app/payments/send/page.mdx
(1 hunks)apps/portal/src/app/wallets/faq/page.mdx
(1 hunks)apps/portal/src/app/webhooks/page.mdx
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}
📄 CodeRabbit Inference Engine (CLAUDE.md)
**/*.{ts,tsx}
: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from@/types
or localtypes.ts
barrels
Prefer type aliases over interface except for nominal shapes
Avoidany
andunknown
unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial
,Pick
, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose
Files:
apps/portal/src/app/chat/page.tsx
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit Inference Engine (CLAUDE.md)
Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)
Files:
apps/portal/src/app/chat/page.tsx
🧠 Learnings (13)
📓 Common learnings
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions
apps/portal/src/app/chat/page.tsx (14)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Interactive UI that relies on hooks (useState
, useEffect
, React Query, wallet hooks).
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Wrap client-side data fetching calls in React Query (@tanstack/react-query
)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Anything that consumes hooks from @tanstack/react-query
or thirdweb SDKs.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Client Components (browser): Begin files with 'use client';
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to src/exports/react.native.ts : React Native specific exports are in src/exports/react.native.ts
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to **/*.{ts,tsx} : Limit each file to one stateless, single-responsibility function for clarity
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{tsx} : Expose className
prop on root element of components for overrides
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to **/*.{ts,tsx} : Write idiomatic TypeScript with explicit function declarations and return types
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/components/*.client.tsx : Client components must start with 'use client';
before imports.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Components that listen to user events, animations or live updates.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Use React Query (@tanstack/react-query
) for all client data fetching.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Pages requiring fast transitions where data is prefetched on the client.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : When you need access to browser APIs (localStorage, window, IntersectionObserver etc.).
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/layout.tsx : Building layout shells (layout.tsx
) and top-level pages that mainly assemble data.
apps/portal/src/app/payments/sell/page.mdx (5)
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The projectMeta
prop is not required for the server-rendered ContractTokensPage
component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
Learnt from: MananTank
PR: #7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_hooks/useTokenPriceData.ts:49-49
Timestamp: 2025-05-27T19:55:25.056Z
Learning: In the ERC20 public pages token price data hook (useTokenPriceData.ts
), direct array access on json.data[0]
without optional chaining is intentionally correct and should not be changed to use safety checks.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: MananTank
PR: #7298
File: apps/dashboard/src/app/nebula-app/move-funds/move-funds.tsx:255-277
Timestamp: 2025-06-06T23:47:55.122Z
Learning: The transfer
function from thirdweb/extensions/erc20
accepts human-readable amounts via the amount
property and automatically handles conversion to base units (wei) by fetching the token decimals internally. Manual conversion using toWei()
is not required when using the amount
property.
Learnt from: MananTank
PR: #7081
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/assets/create/create-token-page-impl.tsx:110-118
Timestamp: 2025-05-20T18:54:15.781Z
Learning: In the thirdweb dashboard's token asset creation flow, the transferBatch
function from thirdweb/extensions/erc20
accepts the raw quantity values from the form without requiring explicit conversion to wei using toUnits()
. The function appears to handle this conversion internally or is designed to work with the values in the format they're already provided.
apps/portal/src/app/cli/build/page.mdx (4)
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The projectMeta
prop is not required for the server-rendered ContractTokensPage
component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/(marketplace)/direct-listings/shared-direct-listings-page.tsx:47-52
Timestamp: 2025-05-26T16:29:54.317Z
Learning: The projectMeta
prop is not required for the server-rendered ContractDirectListingsPage
component in the direct listings shared page, following the same pattern as other server components in the codebase where projectMeta
is only needed for client components.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to src/extensions/** : Auto-generated contracts from ABI definitions in extensions
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/exports/** : Export everything via exports/
directory, grouped by feature in the SDK public API
apps/portal/src/app/webhooks/page.mdx (4)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: MananTank
PR: #7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/erc20.tsx:15-17
Timestamp: 2025-05-27T19:54:55.885Z
Learning: The fetchDashboardContractMetadata
function from "@3rdweb-sdk/react/hooks/useDashboardContractMetadata" has internal error handlers for all promises and cannot throw errors, so external error handling is not needed when calling this function.
Learnt from: MananTank
PR: #7356
File: apps/nebula/src/app/not-found.tsx:1-1
Timestamp: 2025-06-17T18:30:52.976Z
Learning: In the thirdweb/js project, the React namespace is available for type annotations (like React.FC) without needing to explicitly import React. This is project-specific configuration that differs from typical TypeScript/React setups.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Anything that consumes hooks from @tanstack/react-query
or thirdweb SDKs.
apps/portal/src/app/cli/generate/page.mdx (5)
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The projectMeta
prop is not required for the server-rendered ContractTokensPage
component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/(marketplace)/direct-listings/shared-direct-listings-page.tsx:47-52
Timestamp: 2025-05-26T16:29:54.317Z
Learning: The projectMeta
prop is not required for the server-rendered ContractDirectListingsPage
component in the direct listings shared page, following the same pattern as other server components in the codebase where projectMeta
is only needed for client components.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to src/extensions/** : Auto-generated contracts from ABI definitions in extensions
Learnt from: MananTank
PR: #7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/erc20.tsx:15-17
Timestamp: 2025-05-27T19:54:55.885Z
Learning: The fetchDashboardContractMetadata
function from "@3rdweb-sdk/react/hooks/useDashboardContractMetadata" has internal error handlers for all promises and cannot throw errors, so external error handling is not needed when calling this function.
Learnt from: MananTank
PR: #7332
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/nft/overview/nft-drop-claim.tsx:82-90
Timestamp: 2025-06-13T13:03:41.732Z
Learning: The thirdweb contract
object is serializable and can safely be used in contexts (e.g., React-Query keys) that require serializable values.
apps/portal/src/app/cli/login/page.mdx (3)
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The projectMeta
prop is not required for the server-rendered ContractTokensPage
component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/(marketplace)/direct-listings/shared-direct-listings-page.tsx:47-52
Timestamp: 2025-05-26T16:29:54.317Z
Learning: The projectMeta
prop is not required for the server-rendered ContractDirectListingsPage
component in the direct listings shared page, following the same pattern as other server components in the codebase where projectMeta
is only needed for client components.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Icons come from lucide-react
or the project-specific …/icons
exports – never embed raw SVG.
apps/portal/src/app/cli/install/page.mdx (3)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/exports/** : Export everything via exports/
directory, grouped by feature in the SDK public API
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The projectMeta
prop is not required for the server-rendered ContractTokensPage
component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/(marketplace)/direct-listings/shared-direct-listings-page.tsx:47-52
Timestamp: 2025-05-26T16:29:54.317Z
Learning: The projectMeta
prop is not required for the server-rendered ContractDirectListingsPage
component in the direct listings shared page, following the same pattern as other server components in the codebase where projectMeta
is only needed for client components.
apps/portal/src/app/wallets/faq/page.mdx (5)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Interactive UI that relies on hooks (useState
, useEffect
, React Query, wallet hooks).
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Prefer composable primitives over custom markup: Button
, Input
, Select
, Tabs
, Card
, Sidebar
, Separator
, Badge
.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Support for in-app wallets (social/email login)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : EIP-1193, EIP-5792, EIP-7702 standard support in wallet modules
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Smart wallets with account abstraction
apps/portal/src/app/cli/create/page.mdx (2)
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The projectMeta
prop is not required for the server-rendered ContractTokensPage
component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/(marketplace)/direct-listings/shared-direct-listings-page.tsx:47-52
Timestamp: 2025-05-26T16:29:54.317Z
Learning: The projectMeta
prop is not required for the server-rendered ContractDirectListingsPage
component in the direct listings shared page, following the same pattern as other server components in the codebase where projectMeta
is only needed for client components.
apps/portal/src/app/payments/send/page.mdx (1)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions
apps/portal/src/app/cli/page.mdx (4)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/exports/** : Export everything via exports/
directory, grouped by feature in the SDK public API
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to src/exports/react.native.ts : React Native specific exports are in src/exports/react.native.ts
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The projectMeta
prop is not required for the server-rendered ContractTokensPage
component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
Learnt from: MananTank
PR: #7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/erc20.tsx:15-17
Timestamp: 2025-05-27T19:54:55.885Z
Learning: The fetchDashboardContractMetadata
function from "@3rdweb-sdk/react/hooks/useDashboardContractMetadata" has internal error handlers for all promises and cannot throw errors, so external error handling is not needed when calling this function.
apps/portal/src/app/cli/upload/page.mdx (1)
Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/(marketplace)/direct-listings/shared-direct-listings-page.tsx:47-52
Timestamp: 2025-05-26T16:29:54.317Z
Learning: The projectMeta
prop is not required for the server-rendered ContractDirectListingsPage
component in the direct listings shared page, following the same pattern as other server components in the codebase where projectMeta
is only needed for client components.
🪛 LanguageTool
apps/portal/src/app/cli/logout/page.mdx
[grammar] ~7-~7: Ensure spelling is correct
Context: ...Reference", description: "Learn how to logout of the thirdweb CLI and revoke access f...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Unit Tests
- GitHub Check: Size
- GitHub Check: Analyze (javascript)
🔇 Additional comments (3)
apps/portal/src/app/payments/send/page.mdx (1)
28-30
: Title suffix addition looks good for SEO consistency.The updated title follows the “{Page} | thirdweb documentation” convention used elsewhere, improving brand visibility without exceeding recommended length (~60 chars). No further action required.
apps/portal/src/app/chat/page.tsx (1)
9-15
: Indentation-only update is fineNo functional impact detected; component behaviour remains unchanged.
apps/portal/src/app/wallets/faq/page.mdx (1)
12-12
: Verify@components/Details
path & export shape
@components/*
aliases are sometimes case-sensitive (esp. on *nix CI) and may exportDetails
as default rather than named. Double-check that:
- The alias actually resolves to
.../Details.tsx|mdx
.- The component file does
export const Details
(orexport { Details }
) and notexport default
.A silent resolve failure will hard-crash the page at build time.
export const metadata = createMetadata({ | ||
image: { | ||
title: "thirdweb CLI reference", | ||
icon: "wallets", | ||
}, | ||
title: "thirdweb CLI generate | Reference", | ||
description: "Learn how to use the thirdweb CLI to generate type-safe functions and events for deployed contracts.", | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing import for createMetadata
Same issue as the other CLI pages – pull the helper into scope to keep the MDX compiler happy.
+import { createMetadata } from "@/lib/metadata"; /* adjust if different */
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
export const metadata = createMetadata({ | |
image: { | |
title: "thirdweb CLI reference", | |
icon: "wallets", | |
}, | |
title: "thirdweb CLI generate | Reference", | |
description: "Learn how to use the thirdweb CLI to generate type-safe functions and events for deployed contracts.", | |
}); | |
import { createMetadata } from "@/lib/metadata"; /* adjust if different */ | |
export const metadata = createMetadata({ | |
image: { | |
title: "thirdweb CLI reference", | |
icon: "wallets", | |
}, | |
title: "thirdweb CLI generate | Reference", | |
description: "Learn how to use the thirdweb CLI to generate type-safe functions and events for deployed contracts.", | |
}); |
🤖 Prompt for AI Agents
In apps/portal/src/app/cli/generate/page.mdx lines 1 to 8, the function
createMetadata is used but not imported, causing the MDX compiler to fail. Add
an import statement at the top of the file to bring createMetadata into scope
from its module, matching the import style used in other CLI pages.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: samina <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7688 +/- ##
==========================================
- Coverage 56.38% 56.36% -0.03%
==========================================
Files 908 908
Lines 58247 58247
Branches 4224 4225 +1
==========================================
- Hits 32844 32829 -15
- Misses 25293 25310 +17
+ Partials 110 108 -2
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
apps/portal/src/app/cli/logout/page.mdx (2)
1-1
: Confirm import path & apply spacing nitpickThe spacing inside the named import should follow project style, and please double-check that
@doc
actually resolves to the module that exportscreateMetadata
.-import { createMetadata} from "@doc"; +import { createMetadata } from "@doc";
9-9
: Grammar tweak: use the verb form “log out”“Logout” is a noun; as a verb the correct form is “log out”.
- description: "Learn how to logout of the thirdweb CLI and revoke access from your device.", + description: "Learn how to log out of the thirdweb CLI and revoke access from your device.",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (8)
apps/portal/src/app/cli/build/page.mdx
(1 hunks)apps/portal/src/app/cli/create/page.mdx
(1 hunks)apps/portal/src/app/cli/generate/page.mdx
(1 hunks)apps/portal/src/app/cli/install/page.mdx
(1 hunks)apps/portal/src/app/cli/login/page.mdx
(1 hunks)apps/portal/src/app/cli/logout/page.mdx
(1 hunks)apps/portal/src/app/cli/upload/page.mdx
(1 hunks)apps/portal/src/app/wallets/faq/page.mdx
(2 hunks)
✅ Files skipped from review due to trivial changes (2)
- apps/portal/src/app/cli/create/page.mdx
- apps/portal/src/app/cli/install/page.mdx
🚧 Files skipped from review as they are similar to previous changes (5)
- apps/portal/src/app/cli/login/page.mdx
- apps/portal/src/app/cli/upload/page.mdx
- apps/portal/src/app/wallets/faq/page.mdx
- apps/portal/src/app/cli/build/page.mdx
- apps/portal/src/app/cli/generate/page.mdx
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions
apps/portal/src/app/cli/logout/page.mdx (6)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Import UI primitives from @/components/ui/*
(Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
Learnt from: jnsdls
PR: #7364
File: apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx:36-41
Timestamp: 2025-06-18T02:13:34.500Z
Learning: In the logout flow in apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx, when doLogout()
fails, the cleanup steps (resetAnalytics(), wallet disconnect, router refresh) should NOT execute. This is intentional to maintain consistency - if server-side logout fails, client-side cleanup should not occur.
Learnt from: MananTank
PR: #7434
File: apps/dashboard/src/app/(app)/team///contract/[chain]/[contractAddress]/components/project-selector.tsx:62-76
Timestamp: 2025-06-24T21:38:03.155Z
Learning: In the project-selector.tsx component for contract imports, the addToProject.mutate() call is intentionally not awaited (fire-and-forget pattern) to allow immediate navigation to the contract page while the import happens in the background. This is a deliberate design choice to prioritize user experience.
Learnt from: arcoraven
PR: #7505
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/analytics/components/WebhookAnalyticsCharts.tsx:186-204
Timestamp: 2025-07-10T10:18:33.238Z
Learning: The ThirdwebBarChart component in apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/analytics/components/WebhookAnalyticsCharts.tsx does not accept standard accessibility props like aria-label
and role
in its TypeScript interface, causing compilation errors when added.
Learnt from: MananTank
PR: #7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx:153-226
Timestamp: 2025-06-10T00:50:20.795Z
Learning: In apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx, the updateStatus function correctly expects a complete MultiStepState["status"] object. For pending states, { type: "pending" } is the entire status object. For error states, { type: "error", message: React.ReactNode } is the entire status object. The current code incorrectly spreads the entire step object instead of passing just the status object.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Server Components (Node edge): Start files with import "server-only";
🪛 LanguageTool
apps/portal/src/app/cli/logout/page.mdx
[grammar] ~9-~9: Ensure spelling is correct
Context: ...Reference", description: "Learn how to logout of the thirdweb CLI and revoke access f...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Size
🔇 Additional comments (1)
apps/portal/src/app/cli/logout/page.mdx (1)
3-10
: Metadata structure looks solidNo functional issues spotted with the metadata object; matches the pattern used across other CLI pages.
PR-Codex overview
This PR primarily focuses on enhancing the documentation for the
thirdweb
CLI and related functionalities, improving the clarity and detail of descriptions, and restructuring FAQs to provide a better user experience.Detailed summary
title
inapps/portal/src/app/payments/send/page.mdx
.description
inapps/portal/src/app/payments/sell/page.mdx
.description
inapps/portal/src/app/webhooks/page.mdx
.metadata
forthirdweb CLI
pages in variousapps/portal/src/app/cli/*
files.apps/portal/src/app/wallets/faq/page.mdx
using<Details>
for better organization.Summary by CodeRabbit
New Features
Style
Documentation