-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
#190/show required fields lables on add item page by default #213
base: dev
Are you sure you want to change the base?
#190/show required fields lables on add item page by default #213
Conversation
…ass onImageUploaded instead relates enBloc-org#190
👷 Deploy request for cool-creponne-3e1272 pending review.Visit the deploys page to approve it
|
🤖 meep morp! This PR is now marked as stale because there has been no activity for a while. Please guarantee this is still a relevant PR. |
Removed comment. Thanks Co-authored-by: eliazzo <114364165+eliazzo@users.noreply.github.com>
🤖 meep morp! This PR is now marked as stale because there has been no activity for a while. Please guarantee this is still a relevant PR. |
Hey @AlexVOiceover, |
Hi @nichgalzin and team, I have resolved the conflicts by merging the latest changes from the Thank you! |
Description
Closes #190
The add item form now shows correctly the fields that need to be filled even when an image wasn't attached yet. The previous behaviour was forcing the user to have an image uploaded.
Files changed
app/(dashboard)/add-item/page.tsx
Makes the comprobation of the image being uploaded
components/form/UploadImageInput.tsx
Will pass as a prop a flag to specify if the image was uploaded (onImageUpload)
app/(dashboard)/add-item/pageTypes.ts
This file was created to extend the type PartialItem to include the boolean 'imageUploaded'
UI changes
Tests
Manual tested. Try to create item without image and without some required fields