-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Create ValidatedTextField #1485
Create ValidatedTextField #1485
Conversation
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
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.
Great job @spiteless . Overall the PR optimizes the form by reducing code, and making it versatile. I do have some requested changes I'd like to see before merging.
- Brief comment that explains the use/need of the validated text field, description of complicated props, just so future devs have a better understanding. Something as simple as 'register - react hook forms method used for the project form' etc.
- Rename parts/medium to be a little more descriptive. Considering we may be adding reusable drop downs, etc. maybe naming the file 'form utilities'? Or something along those lines so it is clear these are connected to the project form and their relationship to that form.
Handle isEdit without a ternary operator
Library imports first, local imports second separated by line break
d36b9fb
to
aa6d7e8
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.
@spiteless nice refactor on this one! Local testing looks good 👍
Also liked @plang-psm suggestion to add explanatory comment's to the ValidatedTextField
component
The ProjectForm
component is looking so much better thanks to both of you! 🎉
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.
Great job Trillium!
Fixes #1482
Part of larger refactor #1481
What changes did you make and why did you make them ?
isEdit
simpler in ValidatedTextFieldScreenshots of Proposed Changes Of The Website
None, this only refactors a component