-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Feature: Updated Mintable Modules #5404
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd 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. |
packages/thirdweb/src/extensions/modules/MintableERC1155/mintWithRole.ts
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5404 +/- ##
==========================================
- Coverage 45.53% 45.52% -0.01%
==========================================
Files 1070 1070
Lines 55709 55715 +6
Branches 4031 4031
==========================================
+ Hits 25365 25367 +2
- Misses 29657 29661 +4
Partials 687 687
*This pull request uses carry forward flags. Click here to find out more.
|
|
@GWSzeto is there an eng linear ticket for this? The one linked is under design and marked as completed. Sorry for being strict about this it just helps give context so we can review |
...ard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/Mintable.tsx
Outdated
Show resolved
Hide resolved
packages/thirdweb/src/extensions/modules/MintableERC1155/mintWithRole.ts
Outdated
Show resolved
Hide resolved
MananTank
left a comment
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.
please address comments
Merge activity
|
https://linear.app/thirdweb/project/[modular-contracts]-modules-ui-c7a2be28299d/overview <!-- start pr-codex --> ## PR-Codex overview This PR focuses on enhancing the `Mintable` functionality in the dashboard and improving the handling of URIs in the `MintableERC721` and `MintableERC1155` modules. It also refines role management for minting processes. ### Detailed summary - Changed the condition in `module-instance.tsx` to check for "Mintable" instead of "Mintable-ignore". - Updated `mintWithRole.ts` in both `MintableERC721` and `MintableERC1155` to conditionally process `nfts` and set `baseURI`. - Simplified import statements in `Mintable.tsx`. - Modified `hasMinterRole` and `grantRoleTx` to use a more concise syntax for role checking and granting in `Mintable.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
b4dff16 to
55edd4c
Compare
https://linear.app/thirdweb/project/[modular-contracts]-modules-ui-c7a2be28299d/overview
PR-Codex overview
This PR focuses on improving the handling of mintable modules in the dashboard and thirdweb packages, specifically refining the conditions for checking roles and optimizing the URI handling for NFTs.
Detailed summary
module-instance.tsxto check for "Mintable" instead of "Mintable-ignore".mintWithRole.tsfor bothMintableERC721andMintableERC1155to check if NFTs are not empty before processing.hasAllRolesandgrantRolesinMintable.tsxfor better role management.