Open ambroisegithub opened 5 days ago
Name | Link |
---|---|
Latest commit | 1aba0bfd498cf54740e7c3587ae7496b40f69f09 |
Latest deploy log | https://app.netlify.com/sites/dynamite-frontend/deploys/668a710d4b089c00082e32be |
Attention: Patch coverage is 10.86142%
with 238 lines
in your changes missing coverage. Please review.
Project coverage is 81.15%. Comparing base (
633e0ac
) to head (257ad0b
). Report is 2 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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
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
The product form is implemented and styled according to design specifications.
Form inputs are validated for correctness and completeness.
Integration with backend API for posting new products is functional.
Unit tests are written and passing, covering form submission and API interactions.