Skip to content

731 display validations errors on click #745

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

Merged
merged 16 commits into from
Nov 5, 2019

Conversation

BenGamma
Copy link
Contributor

@BenGamma BenGamma commented Nov 4, 2019

Fix

  • Errors with cover image upload after merging Fix/revert image upload feat #735 . To do so I removed the ability to upload multiple cover images for now. The imageInput component and how we use it with multiple images (ideally using react-final-form FieldArray) needs a bit of work to be totally stable.
  • Tidy up and UI improvements/fixes on the form fields.

Added

  • You can now click on the submit button on /how-to/create, event/create and your profile /settings page to see the validation errors. I did a lot of refactoring on the form components (SelectField, LocationField, etc..). Closes display errors on fields on save click #731

Capture d’écran 2019-11-04 à 20 50 38

Known issues

When editing your profile settings there is some conflicts between the values from react-final-form and the state customFieldValues. Working on a fix now.

@BenGamma BenGamma requested a review from chrismclarke November 4, 2019 19:53
Copy link
Member

@chrismclarke chrismclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested with the settings page and worked really nicely. It might be worth double-checking existing tests with the new changes (I know some looked for button validation states). Hopefully by tomorrow the full test suite should be back up and running to make this process easier, but for now happy to merge and then troubleshoot after.

@BenGamma
Copy link
Contributor Author

BenGamma commented Nov 5, 2019

Yeah I agree with the test but we'll troubleshoot soon after v0.8 release. I'll deactivate them for now to allow build on productionand master branch.

@BenGamma BenGamma merged commit 011771f into master Nov 5, 2019
@BenGamma BenGamma deleted the 731_display_validations_errors_on_click branch November 5, 2019 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

display errors on fields on save click
2 participants