Skip to content
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

Added "Product Entry" Page to Seller Dashboard with Bulk Upload feature #922

Merged

Conversation

IkkiOcean
Copy link
Contributor

Description:

This PR introduces a new feature for the Agroshop Seller Dashboard. It adds the Product Entry page, allowing sellers to add new products by providing details such as product name, category, price, quantity, and description.

The page is designed as a multi-step form with the following steps:

  1. Step 1: Product Name and Category.
  2. Step 2: Product Price and Quantity.
  3. Step 3: Product Description (with a custom confirmation modal for product review before submission).

The form includes basic validation, and on submitting the product details, the data is logged to the console and an alert is triggered.

Additionally, the page includes the functionality for CSV file uploads for bulk product entry. The CSV file is processed, and validation errors (if any) are shown. Upon successful upload, the CSV file is cleared.

Changes Made:

  • ProductEntry Component: Added a new form with three steps to the ProductEntry component for adding new products.
  • Modal Integration: Implemented a custom modal that opens on the final step to confirm the entered product details.
  • CSV Upload Functionality: Added functionality for handling CSV file uploads with simulated error checking and success handling.
  • State Management: Introduced new state variables to manage form data, modal visibility, and CSV file handling.

Screenshots:

buil.mp4

Related Issues:

Copy link

vercel bot commented Nov 9, 2024

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

Name Status Preview Comments Updated (UTC)
agro-tech-ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2024 10:47am

Copy link
Contributor

github-actions bot commented Nov 9, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@manikumarreddyu manikumarreddyu merged commit 8e39dfc into manikumarreddyu:main Nov 9, 2024
3 checks passed
Copy link
Contributor

github-actions bot commented Nov 9, 2024

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding Seller Dashboard - Setup and Enhancements
2 participants