Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Oct 14, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on fixing the upload logic in the createDelayedRevealBatch function for handling delayed reveal batches in the thirdweb library. It enhances the functionality by ensuring proper file naming and integrates the retrieval of the next token ID.

Detailed summary

  • Updated createDelayedRevealBatch to use Promise.all for concurrent uploads and token ID retrieval.
  • Introduced startFileNumber to correctly calculate file names for batch uploads.
  • Removed mock implementations in tests, replacing them with direct function calls.
  • Improved test coverage for delayed reveal functionality, ensuring proper metadata handling.

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

@vercel
Copy link

vercel bot commented Oct 14, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 2:07am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 2:07am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 2:07am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 2:07am

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2024

🦋 Changeset detected

Latest commit: 6faf63f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

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

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 14, 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.

@kien-ngo kien-ngo added the hotfix This pull request should be prioritized in the merge queue. label Oct 14, 2024
Copy link
Contributor Author

kien-ngo commented Oct 14, 2024

Merge activity

  • Oct 14, 10:20 AM EDT: The merge label 'hotfix' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 14, 9:53 PM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 14, 10:05 PM EDT: A user merged this pull request with the Graphite merge queue.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.77 KB (0%) 856 ms (0%) 350 ms (+38.25% 🔺) 1.3 s
thirdweb (cjs) 102.62 KB (0%) 2.1 s (0%) 669 ms (-1.44% 🔽) 2.8 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 132 ms (+291.33% 🔺) 229 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 117 ms (+2779.21% 🔺) 127 ms
thirdweb/react (minimal + tree-shaking) 17.35 KB (0%) 347 ms (0%) 99 ms (+39.64% 🔺) 446 ms

@codecov
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.28%. Comparing base (da9f196) to head (6faf63f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5009      +/-   ##
==========================================
+ Coverage   45.27%   45.28%   +0.01%     
==========================================
  Files        1058     1058              
  Lines       54660    54670      +10     
  Branches     3947     3950       +3     
==========================================
+ Hits        24747    24757      +10     
  Misses      29222    29222              
  Partials      691      691              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from da9f196
packages 40.21% <100.00%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
...c721/lazyMinting/write/createDelayedRevealBatch.ts 83.11% <100.00%> (+2.51%) ⬆️

@kien-ngo kien-ngo requested a review from gregfromstl October 14, 2024 22:45
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing the upload logic for creating delayed reveal batches in the `thirdweb` package. It improves the handling of file uploads and the calculation of starting file numbers for batches, ensuring proper functionality during NFT batch creation and reveal.

### Detailed summary
- Updated `createDelayedRevealBatch` to use `Promise.all` for concurrent uploads and token ID retrieval.
- Added logic to calculate the starting file number for batch uploads.
- Removed mock implementations for certain functions in the test file.
- Enhanced test cases to verify proper creation and revealing of NFT batches.

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotfix This pull request should be prioritized in the merge queue. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants