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

Fix yup schemas #3509

Merged
merged 4 commits into from
Mar 7, 2023
Merged

Conversation

DingDongSoLong4
Copy link
Collaborator

This reworks all the yup schemas in the various EditPanels, for better input validation. In general the schema is now more strict than before, but I don't think there should be any issues.
I've also done some general cleanup in the area and added a check to disable the "Save" button if there are validation errors.

Lastly I also added internationalization for the invalid date message and for yup's built in required message.

Fixes #3489

@WithoutPants WithoutPants added bug Something isn't working chore Pull requests for refactoring and admin work labels Mar 7, 2023
@WithoutPants WithoutPants added this to the Version 0.20.0 milestone Mar 7, 2023
@WithoutPants WithoutPants merged commit 9ede271 into stashapp:develop Mar 7, 2023
@DingDongSoLong4 DingDongSoLong4 deleted the fix-yup-schemas branch March 7, 2023 14:22
@WithoutPants WithoutPants mentioned this pull request Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chore Pull requests for refactoring and admin work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] can not place a image in tags
2 participants