-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Enhance NFT Reveal feature #5862
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 ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5862 +/- ##
=======================================
Coverage 55.18% 55.18%
=======================================
Files 1123 1123
Lines 59611 59611
Branches 5031 5031
=======================================
Hits 32895 32895
Misses 25996 25996
Partials 720 720
*This pull request uses carry forward flags. Click here to find out more. |
...d/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/reveal-button.tsx
Outdated
Show resolved
Hide resolved
2880bbe to
18a86d0
Compare
size-limit report 📦
|
Merge activity
|
TOOL-2730
TOOL-2733
TOOL-2738
[x] Dont show Reveal-button if nothing to reveal
[x] Dont allow to select batches that were revealed already
[x] Show UI for the un-revealed. metadata
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the `nfts/components/reveal-button.tsx` file to enhance the NFT reveal functionality by adding a tooltip and handling cases for revealed batches. It also modifies a comment in `next-env.d.ts` to point to the correct documentation link.
### Detailed summary
- Updated documentation link in `next-env.d.ts`.
- Imported `ToolTipLabel` in `nfts/components/reveal-button.tsx`.
- Added a check to return `null` if no batches are available.
- Implemented logic to display a tooltip and disabled button when all batches are revealed.
- Disabled options in the select dropdown for revealed batches.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
18a86d0 to
8136ec9
Compare

TOOL-2730
TOOL-2733
TOOL-2738
[x] Dont show Reveal-button if nothing to reveal
[x] Dont allow to select batches that were revealed already
[x] Show UI for the un-revealed. metadata
PR-Codex overview
This PR updates the
nfts/components/reveal-button.tsxfile to enhance the NFT reveal button's functionality and user experience. It introduces checks for batch reveal status and integrates a tooltip for better user feedback.Detailed summary
next-env.d.ts.ToolTipLabelimport inreveal-button.tsx.nullif no batches are available.