Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Nov 1, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on refactoring the NFTLazyMintButton and LazyMintNftForm components to replace the Drawer UI with a Sheet UI, improving the user interface for lazy minting NFTs.

Detailed summary

  • Replaced Drawer with Sheet in NFTLazyMintButton.
  • Updated state management from useDisclosure to useState.
  • Modified LazyMintNftForm to accept setOpen prop for controlling the Sheet.
  • Removed useModalContext and related modal handling.
  • Added toast notifications for success and error handling.
  • Adjusted form structure and error handling in LazyMintNftForm.

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

@vercel
Copy link

vercel bot commented Nov 1, 2024

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 Nov 2, 2024 2:13am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 2, 2024 2:13am
thirdweb_playground ⬜️ Skipped (Inspect) Nov 2, 2024 2:13am
wallet-ui ⬜️ Skipped (Inspect) Nov 2, 2024 2:13am

@changeset-bot
Copy link

changeset-bot bot commented Nov 1, 2024

⚠️ No Changeset found

Latest commit: 5484075

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

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 1, 2024 21:15 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 1, 2024 21:15 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 1, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

@vercel vercel bot temporarily deployed to Preview – wallet-ui November 1, 2024 21:15 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Nov 1, 2024
Copy link
Contributor Author

kien-ngo commented Nov 1, 2024

@kien-ngo kien-ngo marked this pull request as ready for review November 1, 2024 21:15
@codecov
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.36%. Comparing base (9d1f75d) to head (5484075).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5264   +/-   ##
=======================================
  Coverage   45.36%   45.36%           
=======================================
  Files        1067     1067           
  Lines       55449    55449           
  Branches     3989     3989           
=======================================
  Hits        25157    25157           
  Misses      29601    29601           
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 9d1f75d
packages 40.41% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 2.1 s (-49.31% 🔽) 2.9 s
thirdweb (cjs) 102.88 KB (0%) 2.1 s (0%) 6.3 s (-4.32% 🔽) 8.4 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 278 ms (+123.86% 🔺) 375 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 231 ms (+414.02% 🔺) 241 ms
thirdweb/react (minimal + tree-shaking) 17 KB (0%) 341 ms (0%) 664 ms (+78.62% 🔺) 1.1 s

@kien-ngo kien-ngo force-pushed the kien/remove-drawer-mintTo-form branch from aa57271 to 43d2a7f Compare November 2, 2024 01:09
@kien-ngo kien-ngo force-pushed the kien/remove-drawer-lazyMint-form branch from aca761b to c488825 Compare November 2, 2024 01:09
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 2, 2024 01:09 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 2, 2024 01:09 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 2, 2024 01:09 Inactive
@graphite-app graphite-app bot added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 2, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 2, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on refactoring the `NFTLazyMintButton` and `LazyMintNftForm` components to replace the `Drawer` UI component with a `Sheet` component for a better user interface experience during the NFT minting process.

### Detailed summary
- Replaced `Drawer` with `Sheet` in `NFTLazyMintButton`.
- Added `SheetTrigger` and `SheetContent` to manage the button and form display.
- Introduced `setOpen` state in `NFTLazyMintButton` to control the `Sheet`.
- Modified `LazyMintNftForm` to accept `setOpen` prop for closing the `Sheet`.
- Updated success and error handling with `toast` notifications instead of modal context.

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

<!-- end pr-codex -->
@gregfromstl gregfromstl force-pushed the kien/remove-drawer-mintTo-form branch from 43d2a7f to 9d1f75d Compare November 2, 2024 01:55
@gregfromstl gregfromstl force-pushed the kien/remove-drawer-lazyMint-form branch from c488825 to 5484075 Compare November 2, 2024 01:56
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 2, 2024 01:56 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 2, 2024 01:56 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 2, 2024 01:56 Inactive
Base automatically changed from kien/remove-drawer-mintTo-form to main November 2, 2024 02:06
@graphite-app graphite-app bot merged commit 5484075 into main Nov 2, 2024
29 of 31 checks passed
@graphite-app graphite-app bot deleted the kien/remove-drawer-lazyMint-form branch November 2, 2024 02:14
@vercel vercel bot temporarily deployed to Production – wallet-ui November 2, 2024 02:14 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 November 2, 2024 02:14 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground November 2, 2024 02:14 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb-www November 2, 2024 02:28 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. merge-queue Adds the pull request to Graphite's merge queue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants