Skip to content

Conversation

saminacodes
Copy link
Member

@saminacodes saminacodes commented Jul 8, 2025

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

[Portal] Fix: Remove deprecated deployPackContract page and add redirect

## Notes for the reviewer

This PR removes the documentation page for `deployPackContract` from the portal and sets up a redirect.

- The `deployPackContract` function is deprecated and incompatible with the Pectra update.
- The page was dynamically generated, so no `.mdx` file was deleted.
- Changes include:
    - Adding a redirect from `/references/typescript/v5/deploy/deployPackContract` to `/contracts` in `redirects.mjs`.
    - Removing all references and the full documentation content for `DEPLOY.deployPackContract` from `llms.txt` and `llms-full.txt`.

## How to test

1. After deployment, navigate to `https://portal.thirdweb.com/typescript/v5/deploy/deployPackContract`.
2. Verify that the page automatically redirects to `https://portal.thirdweb.com/contracts`.
3. (Optional) Verify that searching for "deployPackContract" on the portal no longer yields the specific documentation page.

-->

Slack Thread


PR-Codex overview

This PR focuses on the deprecation of the Pack contract and updates related documentation and redirects accordingly. It removes references to Pack in various files and adds a new FAQ section explaining the reasons for its deprecation.

Detailed summary

  • Removed Pack contract entry from sidebar.tsx.
  • Deleted the page.mdx for Pack contract deployment.
  • Added FAQs about Pack contract deprecation in faq/page.mdx.
  • Updated redirects in redirects.mjs to remove Pack references.
  • Updated public documentation to reflect the removal of Pack.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Documentation

    • Removed all documentation and references related to the Pack contract, including its dedicated page and deployment instructions.
    • Added a new Contracts FAQ page explaining the deprecation of the Pack contract and suggesting alternative contract types.
    • Updated sidebar navigation by removing the Pack contract link and adding a link to the new FAQ page.
  • Chores

    • Updated redirects to consolidate Pack contract-related paths and direct them to the general contracts page.

Copy link

changeset-bot bot commented Jul 8, 2025

⚠️ No Changeset found

Latest commit: 6492021

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Jul 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 6:44pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Jul 8, 2025 6:44pm
nebula ⬜️ Skipped (Inspect) Jul 8, 2025 6:44pm
thirdweb_playground ⬜️ Skipped (Inspect) Jul 8, 2025 6:44pm
wallet-ui ⬜️ Skipped (Inspect) Jul 8, 2025 6:44pm

Copy link
Contributor

coderabbitai bot commented Jul 8, 2025

Walkthrough

References to the Pack contract and its deployment have been removed from documentation, code, and navigation. Redirects for Pack contract-related paths now point to a general contracts page. A new FAQ page explains the deprecation of the Pack contract, and sidebar navigation has been updated to reflect these changes.

Changes

File(s) Change Summary
apps/portal/public/llms-full.txt, apps/portal/public/llms.txt Removed documentation and function declaration for deployPackContract and its usage.
apps/portal/redirects.mjs Updated and added redirects to consolidate Pack contract paths to the general contracts page.
apps/portal/src/app/contracts/explore/pre-built-contracts/pack/page.mdx Deleted the Pack contract documentation page.
apps/portal/src/app/contracts/faq/page.mdx Added a new FAQ page explaining Pack contract deprecation and alternatives.
apps/portal/src/app/contracts/sidebar.tsx Removed Pack contract link and added FAQ link in the sidebar navigation.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant PortalApp
    participant Docs
    participant Redirects

    User->>PortalApp: Navigates to Pack contract docs or deploy path
    PortalApp->>Redirects: Checks for updated route
    Redirects-->>PortalApp: Redirects to general contracts page
    PortalApp->>Docs: Displays contracts or FAQ documentation
    User->>PortalApp: Searches for Pack contract info
    PortalApp->>Docs: Shows FAQ explaining deprecation and alternatives
Loading
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

graphite-app bot commented Jul 8, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Jul 8, 2025
Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.52%. Comparing base (028f871) to head (6492021).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7565   +/-   ##
=======================================
  Coverage   56.52%   56.52%           
=======================================
  Files         906      906           
  Lines       57979    57979           
  Branches     4223     4223           
=======================================
  Hits        32774    32774           
  Misses      25097    25097           
  Partials      108      108           
Flag Coverage Δ
packages 56.52% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented Jul 8, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.23 KB (0%) 1.3 s (0%) 349 ms (+128.88% 🔺) 1.7 s
thirdweb (cjs) 353.21 KB (0%) 7.1 s (0%) 1.3 s (+8.11% 🔺) 8.4 s
thirdweb (minimal + tree-shaking) 5.69 KB (0%) 114 ms (0%) 73 ms (+753.71% 🔺) 186 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 57 ms (+1798.21% 🔺) 67 ms
thirdweb/react (minimal + tree-shaking) 19.58 KB (0%) 392 ms (0%) 40 ms (+43.66% 🔺) 432 ms

@vercel vercel bot temporarily deployed to Preview – thirdweb-www July 8, 2025 08:03 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 8, 2025 08:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 8, 2025 08:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 8, 2025 08:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 8, 2025 18:36 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 8, 2025 18:36 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 8, 2025 18:36 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 8, 2025 18:36 Inactive
@joaquim-verges joaquim-verges marked this pull request as ready for review July 8, 2025 18:59
@joaquim-verges joaquim-verges requested review from a team as code owners July 8, 2025 18:59
@joaquim-verges joaquim-verges changed the title Remove page and set up redirect [SDK] Remove page and set up redirect Jul 8, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🔭 Outside diff range comments (1)
apps/portal/public/llms.txt (1)

131-138: Remove all residual deployPackContract references

A repository-wide search still surfaces stragglers—please remove or update these occurrences:

  • packages/thirdweb/CHANGELOG.md (lines 3325, 3327)
  • packages/thirdweb/src/extensions/prebuilts/deploy-pack.ts (lines 66, 68, 80)
  • packages/thirdweb/src/extensions/prebuilts/deploy-pack.test.ts (lines 6, 12)
  • packages/thirdweb/src/extensions/pack/createNewPack.test.ts (lines 22, 33)
  • packages/thirdweb/src/exports/deploys.ts (line 37)
  • apps/portal/redirects.mjs (line 373)

In particular, drop the obsolete redirect in apps/portal/redirects.mjs:

-  "/references/typescript/v5/deploy/deployPackContract": "/contracts",

After applying these changes, rerun:

rg -n "deployPackContract"

to confirm no references remain.

🧹 Nitpick comments (2)
apps/portal/public/llms.txt (1)

138-138: Extraneous diff artefact / blank line

Line 138 contains only the diff marker ~ with no content, leaving an unnecessary blank.
Trivial but worth tidying to keep the generated index crisp.

+
apps/portal/src/app/contracts/faq/page.mdx (1)

14-23: Consider minor grammatical improvement in the explanation.

The FAQ content is informative and provides good alternatives. However, consider this minor improvement for clarity:

-Pack contracts were officially deprecated after the Pectra release from Ethereum.
+Pack contracts were officially deprecated after Ethereum's Pectra release.

The alternatives provided (Edition Drop, Marketplace, Custom contracts) are excellent suggestions that align well with the deprecation strategy.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 028f871 and 6492021.

📒 Files selected for processing (6)
  • apps/portal/public/llms-full.txt (0 hunks)
  • apps/portal/public/llms.txt (1 hunks)
  • apps/portal/redirects.mjs (4 hunks)
  • apps/portal/src/app/contracts/explore/pre-built-contracts/pack/page.mdx (0 hunks)
  • apps/portal/src/app/contracts/faq/page.mdx (1 hunks)
  • apps/portal/src/app/contracts/sidebar.tsx (1 hunks)
💤 Files with no reviewable changes (2)
  • apps/portal/public/llms-full.txt
  • apps/portal/src/app/contracts/explore/pre-built-contracts/pack/page.mdx
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.{ts,tsx}`: Write idiomatic TypeScript with explicit function declarations ...

**/*.{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 local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown 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
Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

📄 Source: CodeRabbit Inference Engine (CLAUDE.md)

List of files the instruction was applied to:

  • apps/portal/src/app/contracts/sidebar.tsx
🧠 Learnings (4)
📓 Common learnings
Learnt from: MananTank
PR: thirdweb-dev/js#7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/claim-conditions/shared-claim-conditions-page.tsx:43-49
Timestamp: 2025-05-26T16:31:02.480Z
Learning: In the thirdweb dashboard codebase, when `redirectToContractLandingPage()` is called, an explicit return statement is not required afterward because the function internally calls Next.js's `redirect()` which throws an error to halt execution.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: MananTank
PR: thirdweb-dev/js#7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx:155-160
Timestamp: 2025-06-10T00:46:58.580Z
Learning: In the dashboard application, the route structure for team and project navigation is `/team/[team_slug]/[project_slug]/...` without a `/project/` segment. Contract links should be formatted as `/team/${teamSlug}/${projectSlug}/contract/${chainId}/${contractAddress}`.
apps/portal/src/app/contracts/sidebar.tsx (10)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/layout.tsx : Layouts should reuse `SidebarLayout` / `FullWidthSidebarLayout` (`@/components/blocks/SidebarLayout`).
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.489Z
Learning: Applies to src/extensions/**/*.{ts,tsx} : Auto-generated contracts from ABI definitions in extensions
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{tsx,ts} : Use `NavLink` for internal navigation with automatic active states in dashboard and playground apps
Learnt from: MananTank
PR: thirdweb-dev/js#7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx:155-160
Timestamp: 2025-06-10T00:46:58.580Z
Learning: In the dashboard application, the route structure for team and project navigation is `/team/[team_slug]/[project_slug]/...` without a `/project/` segment. Contract links should be formatted as `/team/${teamSlug}/${projectSlug}/contract/${chainId}/${contractAddress}`.
Learnt from: MananTank
PR: thirdweb-dev/js#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: MananTank
PR: thirdweb-dev/js#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: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/components/**/*.{ts,tsx} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.
Learnt from: MananTank
PR: thirdweb-dev/js#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: jnsdls
PR: thirdweb-dev/js#7188
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/accounts/components/accounts-count.tsx:15-15
Timestamp: 2025-05-29T00:46:09.063Z
Learning: In the accounts component at apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/accounts/components/accounts-count.tsx, the 3-column grid layout (md:grid-cols-3) is intentionally maintained even when rendering only one StatCard, as part of the design structure for this component.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/layout.tsx : Building layout shells (`layout.tsx`) and top-level pages that mainly assemble data.
apps/portal/redirects.mjs (12)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/api/**/*.{ts,tsx} : Redirect logic using `redirect()` from `next/navigation`.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.489Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{tsx,ts} : Server Components: Implement redirect logic with `redirect()` from `next/navigation`
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.489Z
Learning: Applies to src/extensions/**/*.{ts,tsx} : Auto-generated contracts from ABI definitions in extensions
Learnt from: MananTank
PR: thirdweb-dev/js#7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/claim-conditions/shared-claim-conditions-page.tsx:43-49
Timestamp: 2025-05-26T16:31:02.480Z
Learning: In the thirdweb dashboard codebase, when `redirectToContractLandingPage()` is called, an explicit return statement is not required afterward because the function internally calls Next.js's `redirect()` which throws an error to halt execution.
Learnt from: MananTank
PR: thirdweb-dev/js#7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/shared-analytics-page.tsx:33-39
Timestamp: 2025-05-26T16:30:24.965Z
Learning: In the thirdweb dashboard codebase, redirectToContractLandingPage function already handles execution termination internally (likely using Next.js redirect() which throws an exception), so no explicit return statement is needed after calling it.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.489Z
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-06-30T10:25:29.489Z
Learning: Applies to packages/react-native-adapter/**/*.{ts,tsx} : Mobile platform shims are in `packages/react-native-adapter/`
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.489Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{tsx,ts} : Client Components: Handle interactive UI with React hooks (`useState`, `useEffect`, React Query, wallet hooks)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{tsx,ts} : Use `NavLink` for internal navigation with automatic active states in dashboard and playground apps
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Applies to packages/thirdweb/src/exports/**/*.{ts,tsx} : Export everything via `exports/` directory, grouped by feature in the public API of the SDK
Learnt from: MananTank
PR: thirdweb-dev/js#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: MananTank
PR: thirdweb-dev/js#7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx:155-160
Timestamp: 2025-06-10T00:46:58.580Z
Learning: In the dashboard application, the route structure for team and project navigation is `/team/[team_slug]/[project_slug]/...` without a `/project/` segment. Contract links should be formatted as `/team/${teamSlug}/${projectSlug}/contract/${chainId}/${contractAddress}`.
apps/portal/src/app/contracts/faq/page.mdx (5)
Learnt from: MananTank
PR: thirdweb-dev/js#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: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.489Z
Learning: Applies to src/extensions/**/*.{ts,tsx} : Auto-generated contracts from ABI definitions in extensions
Learnt from: MananTank
PR: thirdweb-dev/js#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-06-30T10:25:29.488Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: MananTank
PR: thirdweb-dev/js#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.
🪛 LanguageTool
apps/portal/src/app/contracts/faq/page.mdx

[grammar] ~1-~1: Use proper spacing conventions.
Context: ...{ createMetadata, Details } from "@doc"; export const metadata = createMetadata({...

(QB_NEW_EN_OTHER_ERROR_IDS_000007)


[grammar] ~10-~10: Use proper spacing conventions.
Context: ...racts FAQs", icon: "contract", }, }); # Contracts FAQs <Details summary="Why ca...

(QB_NEW_EN_OTHER_ERROR_IDS_000007)


[grammar] ~12-~12: Use proper spacing conventions.
Context: ...n: "contract", }, }); # Contracts FAQs

Pack contracts were officially deprecated after the Pectra release from Ethereum. The pack contract implementation is incompatible with the Pectra update, which introduced breaking changes to the Ethereum protocol. As a result, support for pack contracts has been removed from thirdweb's deployment tools to ensure compatibility and security. If you need similar functionality, consi...

(QB_NEW_EN_OTHER_ERROR_IDS_000007)


[grammar] ~20-~20: Use proper spacing conventions.
Context: ...uilt with our modular contract framework For existing pack contracts, they will c...

(QB_NEW_EN_OTHER_ERROR_IDS_000007)


[grammar] ~22-~22: Use proper spacing conventions.
Context: ...new deployments are no longer supported.

(QB_NEW_EN_OTHER_ERROR_IDS_000007)

🔇 Additional comments (4)
apps/portal/src/app/contracts/sidebar.tsx (1)

809-812: LGTM! FAQ link addition looks good.

The new FAQ link is properly placed in the Resources section and correctly points to the FAQ page being added in this PR.

apps/portal/redirects.mjs (2)

373-373: LGTM! TypeScript v5 deploy redirect is correctly added.

The redirect for the deprecated deployPackContract function properly points to the general contracts page.


808-808: LGTM! Pack contract redirects are comprehensive.

All Pack contract related paths are properly redirected to "/contracts", ensuring users are directed to the appropriate page when accessing deprecated Pack contract URLs.

Also applies to: 822-822, 947-947

apps/portal/src/app/contracts/faq/page.mdx (1)

1-10: LGTM! Metadata configuration is properly structured.

The metadata follows the expected format with appropriate title, description, and image configuration.

@joaquim-verges joaquim-verges merged commit e1f4901 into main Jul 8, 2025
25 checks passed
@joaquim-verges joaquim-verges deleted the cursor/remove-page-and-set-up-redirect-0be2 branch July 8, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portal Involves changes to the Portal (docs) codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants