Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Sep 30, 2025


PR-Codex overview

This PR focuses on updating the transaction confirmation logic in the create-nft-page.tsx file, specifically handling different scenarios based on the number of batches in the transaction.

Detailed summary

  • Added an else if condition to check if totalBatches is greater than 1.
  • Calls sendAndConfirmTxNoPayModal.mutateAsync(tx) for both the new condition and the original else case when totalBatches is 1 or less.

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

Summary by CodeRabbit

  • New Features
    • Streamlined multi-batch transaction confirmation when configuring NFT claim conditions: when multiple batches are required and a wallet is connected, a no-payment confirmation modal is now used to reduce prompts and improve reliability. Single-batch flows continue to use the standard payment confirmation path.

@vercel vercel bot temporarily deployed to Preview – nebula September 30, 2025 18:51 Inactive
@vercel
Copy link

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
thirdweb-www Ready Ready Preview Comment Sep 30, 2025 7:10pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs-v2 Skipped Skipped Sep 30, 2025 7:10pm
nebula Skipped Skipped Sep 30, 2025 7:10pm
thirdweb_playground Skipped Skipped Sep 30, 2025 7:10pm
wallet-ui Skipped Skipped Sep 30, 2025 7:10pm

@vercel vercel bot temporarily deployed to Preview – docs-v2 September 30, 2025 18:51 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 30, 2025 18:51 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 30, 2025 18:51 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2025

⚠️ No Changeset found

Latest commit: dbadc23

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 30, 2025

Walkthrough

Updated handleSetClaimConditionsERC1155 to route multi-batch transactions to the no-pay modal flow when a wallet is present; single-batch (or no-wallet) transactions continue to use the standard pay flow. A fallback to the standard flow exists if the no-pay modal path errors.

Changes

Cohort / File(s) Summary
ERC1155 claim conditions batching flow
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
Modified handleSetClaimConditionsERC1155 control flow: for totalBatches > 1 with a wallet present, invoke sendAndConfirmTxNoPayModal.mutateAsync(tx) (no-pay modal) first; retain sendAndConfirmTx.mutateAsync(tx) for single-batch or as a fallback on no-pay errors.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as User
  participant UI as CreateNFT Page
  participant W as Wallet
  participant TX as Tx Sender

  U->>UI: Set claim conditions (ERC1155)
  UI->>UI: Validate funds, prepare batches (totalBatches)
  alt totalBatches > 1 and wallet present
    UI->>TX: sendAndConfirmTxNoPayModal.mutateAsync(tx)
    note right of TX #DDFFDD: No-pay modal path for batched tx
    TX-->>UI: Result / Error
    opt Fallback on error
      UI->>TX: sendAndConfirmTx.mutateAsync(tx)
      TX-->>UI: Result / Error
    end
  else Single batch or no wallet
    UI->>TX: sendAndConfirmTx.mutateAsync(tx)
    TX-->>UI: Result / Error
  end
  UI-->>U: Success / Failure
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description remains the unfilled template comments and only includes an auto-generated PR-Codex overview, so it does not provide the required title, issue tag, reviewer notes, or testing instructions mandated by the repository template. Populate the description template by specifying the PR title following the “[SDK/Dashboard/Portal] Feature/Fix:” format, include the Linear issue or branch tag if applicable, add notes for the reviewer explaining any important context, and describe explicit steps for how to test the changes.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title succinctly captures the primary change of disabling the pay modal in the ERC1155 set claim conditions when cost estimation has already been performed in the dashboard, making it fully related to the main update in the changeset.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 10-01-dashboard_disable_pay_modal_in_erc1155_set_claim_conditions_if_cost_estimation_is_already_done_in_dashboard

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4fd18e4 and dbadc23.

📒 Files selected for processing (1)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{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 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

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-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/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
apps/{dashboard,playground}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/{dashboard,playground}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/_ (e.g., Button, Input, Tabs, Card)
Use NavLink for internal navigation to get active state handling
Use Tailwind CSS for styling; no inline styles
Merge class names with cn() from @/lib/utils for conditional classes
Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components must start with import "server-only"; use next/headers, server‑only env, heavy data fetching, and redirect() where appropriate
Client Components must start with 'use client'; handle interactivity with hooks and browser APIs
Server-side data fetching: call getAuthToken() from cookies, send Authorization: Bearer <token> header, and return typed results (avoid any)
Client-side data fetching: wrap calls in React Query with descriptive, stable queryKeys and set sensible staleTime/cacheTime (≥ 60s default); keep tokens secret via internal routes or server actions
Do not import posthog-js in server components (client-side only)

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
apps/{dashboard,playground}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Expose a className prop on the root element of every component

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
🧠 Learnings (1)
📚 Learning: 2025-06-10T00:46:00.514Z
Learnt from: MananTank
PR: thirdweb-dev/js#7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/form.ts:25-42
Timestamp: 2025-06-10T00:46:00.514Z
Learning: In NFT creation functions, the setClaimConditions function signatures are intentionally different between ERC721 and ERC1155. ERC721 setClaimConditions accepts the full CreateNFTFormValues, while ERC1155 setClaimConditions accepts a custom object with nftCollectionInfo and nftBatch parameters because it processes batches differently than the entire form data.

Applied to files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
⏰ 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: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx (1)

331-336: Transaction routing logic is correct; AI summary inconsistency noted.

The changes correctly implement the PR objective by routing multi-batch transactions to the no-pay modal after funds verification:

  • Line 331: First batch with funds check → no-pay modal
  • Lines 332-333: Subsequent batches or gasless multi-batch → no-pay modal
  • Lines 334-335: Single batch → standard pay modal

However, the AI summary states "A fallback to the standard flow exists if the no-pay modal path errors," but no try-catch block or error-recovery logic is present in the code. If sendAndConfirmTxNoPayModal.mutateAsync(tx) throws, the error will propagate without falling back to the pay modal flow.

If a fallback is intended, consider wrapping line 331 or 333 in a try-catch block:

 if (batch.startIndex === 0 && totalBatches > 1 && !params.gasless) {
   // ... funds check ...
-  await sendAndConfirmTxNoPayModal.mutateAsync(tx);
+  try {
+    await sendAndConfirmTxNoPayModal.mutateAsync(tx);
+  } catch (error) {
+    // Fallback to standard pay modal if no-pay modal fails
+    await sendAndConfirmTx.mutateAsync(tx);
+  }
 } else if (totalBatches > 1) {
-  await sendAndConfirmTxNoPayModal.mutateAsync(tx);
+  try {
+    await sendAndConfirmTxNoPayModal.mutateAsync(tx);
+  } catch (error) {
+    await sendAndConfirmTx.mutateAsync(tx);
+  }
 } else {
   await sendAndConfirmTx.mutateAsync(tx);
 }

Otherwise, the current implementation is intentional and the AI summary should be updated to remove the fallback claim.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

Comment @coderabbitai help to get the list of available commands and usage tips.

@MananTank MananTank marked this pull request as ready for review September 30, 2025 18:52
@MananTank MananTank requested review from a team as code owners September 30, 2025 18:52
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Sep 30, 2025
Copy link
Member Author


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.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.28%. Comparing base (21d5d0b) to head (dbadc23).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8161   +/-   ##
=======================================
  Coverage   56.28%   56.28%           
=======================================
  Files         906      906           
  Lines       59208    59208           
  Branches     4180     4180           
=======================================
  Hits        33324    33324           
  Misses      25779    25779           
  Partials      105      105           
Flag Coverage Δ
packages 56.28% <ø> (ø)
🚀 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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 30, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.69 KB (0%) 1.3 s (0%) 207 ms (+249.26% 🔺) 1.6 s
thirdweb (cjs) 361.52 KB (0%) 7.3 s (0%) 611 ms (+22.16% 🔺) 7.9 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 110 ms (+3503.07% 🔺) 225 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 42 ms (+3086.16% 🔺) 52 ms
thirdweb/react (minimal + tree-shaking) 19.14 KB (0%) 383 ms (0%) 94 ms (+3809.25% 🔺) 476 ms

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

🧹 Nitpick comments (2)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx (2)

331-336: Multi-batch no‑pay path: LGTM. Add fallback on late insufficient‑funds errors.

The routing to no‑pay flow for multi‑batch runs aligns with the PR objective. To protect UX if gas spikes after the first‑batch precheck, fall back to the pay‑modal path only on “insufficient funds” errors.

-      await sendAndConfirmTxNoPayModal.mutateAsync(tx);
-    } else if (totalBatches > 1) {
-      await sendAndConfirmTxNoPayModal.mutateAsync(tx);
-    } else {
-      await sendAndConfirmTx.mutateAsync(tx);
-    }
+      await sendAndConfirmTxNoPayModal.mutateAsync(tx);
+    } else if (totalBatches > 1) {
+      try {
+        await sendAndConfirmTxNoPayModal.mutateAsync(tx);
+      } catch (err) {
+        // Fallback only when clearly insufficient funds; keep other errors intact
+        const msg = String((err as any)?.message ?? (err as any)?.shortMessage ?? err);
+        if (/insufficient funds/i.test(msg)) {
+          await sendAndConfirmTx.mutateAsync(tx);
+        } else {
+          throw err;
+        }
+      }
+    } else {
+      await sendAndConfirmTx.mutateAsync(tx);
+    }

Nit: you can also dedupe the two no‑pay calls by computing a const useNoPay = totalBatches > 1 and invoking the chosen mutate once after the first‑batch precheck.


301-321: Precheck math may overestimate when the last batch is smaller; use a ceil’d remainder split (and guard batch size).

Multiplying a single‑batch estimate by totalBatches can overestimate when the final batch has fewer items, potentially blocking valid submits. Consider accounting for the remainder with a ceil’d proportional cost, and add a simple guard for batch.count.

-    const totalBatches = Math.ceil(values.nfts.length / batch.count);
+    if (batch.count <= 0) {
+      throw new Error("Invalid batch size");
+    }
+    const totalBatches = Math.ceil(values.nfts.length / batch.count);

-      const totalCost = costPerBatch * BigInt(totalBatches);
+      const remainder = values.nfts.length % batch.count;
+      const totalCost =
+        remainder === 0
+          ? costPerBatch * BigInt(totalBatches)
+          : // (totalBatches - 1) full batches + ceil(costPerBatch * remainder/count)
+            costPerBatch * BigInt(totalBatches - 1) +
+            ((costPerBatch * BigInt(remainder) + BigInt(batch.count) - 1n) / BigInt(batch.count));

This keeps the check conservative (ceil) while reducing false negatives for users with just‑enough balance.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 21d5d0b and 4fd18e4.

📒 Files selected for processing (1)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{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 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

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-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/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
apps/{dashboard,playground}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/{dashboard,playground}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/_ (e.g., Button, Input, Tabs, Card)
Use NavLink for internal navigation to get active state handling
Use Tailwind CSS for styling; no inline styles
Merge class names with cn() from @/lib/utils for conditional classes
Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components must start with import "server-only"; use next/headers, server‑only env, heavy data fetching, and redirect() where appropriate
Client Components must start with 'use client'; handle interactivity with hooks and browser APIs
Server-side data fetching: call getAuthToken() from cookies, send Authorization: Bearer <token> header, and return typed results (avoid any)
Client-side data fetching: wrap calls in React Query with descriptive, stable queryKeys and set sensible staleTime/cacheTime (≥ 60s default); keep tokens secret via internal routes or server actions
Do not import posthog-js in server components (client-side only)

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
apps/{dashboard,playground}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Expose a className prop on the root element of every component

Files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
🧠 Learnings (1)
📚 Learning: 2025-06-10T00:46:00.514Z
Learnt from: MananTank
PR: thirdweb-dev/js#7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/form.ts:25-42
Timestamp: 2025-06-10T00:46:00.514Z
Learning: In NFT creation functions, the setClaimConditions function signatures are intentionally different between ERC721 and ERC1155. ERC721 setClaimConditions accepts the full CreateNFTFormValues, while ERC1155 setClaimConditions accepts a custom object with nftCollectionInfo and nftBatch parameters because it processes batches differently than the entire form data.

Applied to files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/create-nft-page.tsx
⏰ 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: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 30, 2025

Merge activity

…estimation is already done in dashboard (#8161)

<!--

## 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 updates the logic for handling transaction confirmations in the `create-nft-page.tsx` file, specifically addressing scenarios with multiple batches.

### Detailed summary
- Added a conditional check for `totalBatches > 1`.
- If true, it uses `sendAndConfirmTxNoPayModal.mutateAsync(tx)` for transaction confirmation.
- If false, it defaults to `sendAndConfirmTx.mutateAsync(tx)` for single batch transactions.

> ✨ 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**
  * Streamlined multi-batch transaction confirmation when configuring NFT claim conditions. When multiple batches are required and a wallet is connected, a no-payment confirmation modal is used to reduce prompts and improve reliability. Single-batch flows continue to use the standard confirmation path.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@graphite-app graphite-app bot force-pushed the 10-01-dashboard_disable_pay_modal_in_erc1155_set_claim_conditions_if_cost_estimation_is_already_done_in_dashboard branch from 4fd18e4 to dbadc23 Compare September 30, 2025 19:01
@vercel vercel bot temporarily deployed to Preview – docs-v2 September 30, 2025 19:02 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 30, 2025 19:02 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 30, 2025 19:02 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 30, 2025 19:02 Inactive
@graphite-app graphite-app bot merged commit dbadc23 into main Sep 30, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 10-01-dashboard_disable_pay_modal_in_erc1155_set_claim_conditions_if_cost_estimation_is_already_done_in_dashboard branch September 30, 2025 19:10
@vercel vercel bot temporarily deployed to Production – docs-v2 September 30, 2025 19:10 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui September 30, 2025 19:10 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants