-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement "Add Product" Functionality in Vendor Dashboard #67
Conversation
100cf29
to
97b0633
Compare
✅ Deploy Preview for dynamite-frontend ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #67 +/- ##
===========================================
+ Coverage 71.97% 74.60% +2.62%
===========================================
Files 87 89 +2
Lines 8094 8908 +814
Branches 471 527 +56
===========================================
+ Hits 5826 6646 +820
+ Misses 2260 2254 -6
Partials 8 8 ☔ View full report in Codecov by Sentry. |
6ef2dfa
to
24b3e75
Compare
178e5ca
to
2c81ffb
Compare
d8d270c
to
35a225d
Compare
35a225d
to
dac04f1
Compare
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.
Well done
dac04f1
to
7a23a12
Compare
Co-authored-by: Pray Eddy SHIMWA <[email protected]>
vendor should add product (#67) Co-authored-by: Pray Eddy SHIMWA <[email protected]>
rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication users can now signup with facebook (#74) side bar implementation (#75) implement stage 1 design of otp form (#58) (#61) rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> implementation of dashboard nav bar (#79) added Admin Dashboard Home (#85) fix bannerSection (#87) feat(dashboard-metrics): implement visitor insights chart and top categories (#84) - implement visitor insights chart - implement top categories section [Delivers #73] Fix image and routing (#92) fix lint error finall fix lint finall fix lint show message when product deleted fix the commit fix console lint error Fix image and routing (#92) finall fix lint show message when product deleted fix the commit fix console lint error fix the store fix the husky add created at column Co-authored-by: Rurangwa Leo <[email protected]> vendor should add product (#67) Co-authored-by: Pray Eddy SHIMWA <[email protected]> feat(product-details-page): implement product details page (#108) - implement product details ui components -write appropriate tests [Delivers #101] Co-authored-by: AMBROISE Muhayimana <[email protected]> implemented add to cart and cart (#112) added Seller Dashboard (#110) feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage fix the add new product button fix the add new product button
rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication users can now signup with facebook (#74) side bar implementation (#75) implement stage 1 design of otp form (#58) (#61) rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> implementation of dashboard nav bar (#79) added Admin Dashboard Home (#85) fix bannerSection (#87) feat(dashboard-metrics): implement visitor insights chart and top categories (#84) - implement visitor insights chart - implement top categories section [Delivers #73] Fix image and routing (#92) fix lint error finall fix lint finall fix lint show message when product deleted fix the commit fix console lint error Fix image and routing (#92) finall fix lint show message when product deleted fix the commit fix console lint error fix the store fix the husky add created at column Co-authored-by: Rurangwa Leo <[email protected]> vendor should add product (#67) Co-authored-by: Pray Eddy SHIMWA <[email protected]> feat(product-details-page): implement product details page (#108) - implement product details ui components -write appropriate tests [Delivers #101] Co-authored-by: AMBROISE Muhayimana <[email protected]> implemented add to cart and cart (#112) added Seller Dashboard (#110) feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage fix the add new product button fix the add new product button
added Seller Dashboard (#110) implement stage 1 design of otp form (#58) (#94) (#106) rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication users can now signup with facebook (#74) side bar implementation (#75) implement stage 1 design of otp form (#58) (#61) rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> implementation of dashboard nav bar (#79) added Admin Dashboard Home (#85) fix bannerSection (#87) feat(dashboard-metrics): implement visitor insights chart and top categories (#84) - implement visitor insights chart - implement top categories section [Delivers #73] Fix image and routing (#92) fix lint error finall fix lint finall fix lint show message when product deleted fix the commit fix console lint error Fix image and routing (#92) finall fix lint show message when product deleted fix the commit fix console lint error fix the store fix the husky add created at column Co-authored-by: Rurangwa Leo <[email protected]> vendor should add product (#67) Co-authored-by: Pray Eddy SHIMWA <[email protected]> feat(product-details-page): implement product details page (#108) - implement product details ui components -write appropriate tests [Delivers #101] Co-authored-by: AMBROISE Muhayimana <[email protected]> implemented add to cart and cart (#112) added Seller Dashboard (#110) feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage fix the add new product button fix the add new product button add the best selling products table in admin dashboard (#107) Added changes on footer (#117) fix link to product details fix link to product details fix link to product details fix link to product details add the best selling products table in admin dashboard (#107) Added changes on footer (#117) fix link to product details fix link to product details fix link to product details fix link to product details
added Seller Dashboard (#110) implement stage 1 design of otp form (#58) (#94) (#106) rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication users can now signup with facebook (#74) side bar implementation (#75) implement stage 1 design of otp form (#58) (#61) rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> implementation of dashboard nav bar (#79) added Admin Dashboard Home (#85) fix bannerSection (#87) feat(dashboard-metrics): implement visitor insights chart and top categories (#84) - implement visitor insights chart - implement top categories section [Delivers #73] Fix image and routing (#92) fix lint error finall fix lint finall fix lint show message when product deleted fix the commit fix console lint error Fix image and routing (#92) finall fix lint show message when product deleted fix the commit fix console lint error fix the store fix the husky add created at column Co-authored-by: Rurangwa Leo <[email protected]> vendor should add product (#67) Co-authored-by: Pray Eddy SHIMWA <[email protected]> feat(product-details-page): implement product details page (#108) - implement product details ui components -write appropriate tests [Delivers #101] Co-authored-by: AMBROISE Muhayimana <[email protected]> implemented add to cart and cart (#112) added Seller Dashboard (#110) feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage feat(wishlist): implement buyer wishlist (#100) - implement wishlist UI components [Delivers #96] implement stage 1 design of otp form (#58) (#61) (#88) working on orders page rebase from dev and fix eslint errors implement nextSibling functiion implement previousSibling while you delete rebase from develop resolve deployment errors implement 2fa functionality working on verify otp codes and redirect rebasing from develop resolve vendor token must be string implement 2fa verfication Co-authored-by: Rurangwa Leo <[email protected]> fix the image on popular section on langing page fix the image on popular section on langing page add exclude for caverage fix the add new product button fix the add new product button add the best selling products table in admin dashboard (#107) Added changes on footer (#117) fix link to product details fix link to product details fix link to product details fix link to product details add the best selling products table in admin dashboard (#107) Added changes on footer (#117) fix link to product details fix link to product details fix link to product details fix link to product details Co-authored-by: NIYOMUGABO BERNARD <[email protected]>
Description
This pull request aims to enable vendors to add new products to their inventory via the vendor dashboard. It involves creating a form for product details, integrating it with Redux Toolkit for state management, implementing POST methods to send product data to the backend API, and ensuring functionality and reliability through comprehensive unit testing.
Acceptance Criteria
Tasks
Design Form Components
Create React components for the product form inputs.
Use TailwindCSS for styling and responsiveness.
Implement Form Validation
Validate input fields on the client-side for required fields and format (e.g., price, dates).
Display error messages for invalid input.
Integrate with Backend API
Develop POST methods to send product data to the backend API.
Handle success and error responses from the API.
Write Unit Tests
Write Jest/Testing Library tests to verify form submission, validation, and API integration.
Definition of Done