Skip to content

Commit 65ba7ea

Browse files
committed
Dashboard: Migrate Batch Upload NFTs from chakra to tailwind, UI improvements (#7689)
<!-- ## 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 focuses on refactoring and enhancing the handling of file uploads and previews in the dashboard application, particularly for NFT minting processes. It includes updates to UI components, improved file handling, and the introduction of new features for better user experience. ### Detailed summary - Deleted obsolete CSV example files. - Added `FilePreview` component in multiple files for consistent file preview handling. - Enhanced `FilePreview` styling with background and class adjustments. - Updated `DownloadFileButton` to support additional props for styling. - Improved `BatchTable` to handle pagination and display NFT data more effectively. - Refactored `UploadStep` to provide clearer instructions and better error handling. - Introduced a new `ShuffleNFTsCard` component for shuffling NFT order before upload. - Added enhanced password and placeholder input handling in the `DelayedRevealConfiguration` component. > ✨ 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 * **Refactor** * Replaced Chakra UI and third-party libraries with a custom UI system across batch upload components for a more unified look and feel. * Simplified and restyled batch minting forms, tables, upload steps, and reveal configuration. * Updated drag-and-drop functionality to use a dedicated DropZone component. * Streamlined table rendering and pagination with manual state management and local UI components. * Improved layout, styling, and accessibility for option selection, shuffle toggle, and modal dialogs. * Enhanced media preview styling and standardized file preview imports for improved consistency. * Added tabbed format selection and enriched instructional content with downloadable CSV/JSON examples in the upload step. * Improved submit button placement and added help links for user guidance during batch minting. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 66b9bf3 commit 65ba7ea

File tree

14 files changed

+969
-780
lines changed

14 files changed

+969
-780
lines changed

apps/dashboard/public/assets/examples/example-with-ipfs.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

apps/dashboard/public/assets/examples/example-with-maps.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/dashboard/public/assets/examples/example.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)