feat: Add dropzone and upload file dropdown #3110
Draft
+8,951
−15,021
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
This pull request introduces a bulk product search feature via file upload in the search input, enabling users to upload CSV or Excel files containing SKU and Quantity information. The main changes include adding a reusable
Dropzonecomponent, extending the search input to support file uploads, and implementing a modal dropdown for uploading and parsing files. This enhances the user experience for bulk product operations and improves code modularity.The entire journey will be completed in subsequent PRs.
How it works?
Component and API enhancements:
Dropzonecomponent to the UI library, exposing its props and state for use in other components. (packages/components/src/molecules/Dropzone/Dropzone.tsx,packages/components/src/molecules/Dropzone/index.ts,packages/components/src/index.ts)Dependency updates:
react-dropzoneandxlsxlibraries to support file upload and parsing functionality. (packages/components/package.json,packages/core/package.json)How to test it?
Starters Deploy Preview
References
Checklist
You may erase this after checking them all 😉
PR Title and Commit Messages
feat,fix,chore,docs,style,refactor,ciandtestPR Description
breaking change,bug,contributing,performance,documentation..Dependencies
pnpm-lock.yamlfile when there were changes to the packagesDocumentation
@Mariana-Caetanoto review and update (Or submit a doc request)