-
Notifications
You must be signed in to change notification settings - Fork 2
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
UI update: regex checking for Project Name/Tag inputs in edit metadata modal #319
Merged
Merged
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3980978
Merge pull request #296 from pepkit/dev
khoroshevskyi 7a6a64c
Merge pull request #299 from pepkit/dev
nleroy917 367ae24
Merge pull request #302 from pepkit/dev
khoroshevskyi ea0fc47
added regex checking (alphanumeric, _, -) for updating project name a…
sanghoonio 0acf9b2
added check project name and tag on paste
sanghoonio cfb32cd
switch to useEffect()
sanghoonio ac4a07f
add case for when name or tag are empty
sanghoonio 1fbfb82
removed useEffect() and set variable instead. updated regex check in …
sanghoonio ad1521a
remove unused import
nleroy917 91bef9c
remove some unused imports
nleroy917 6c8fcee
use react-hook-form for edit-project-meta components. update text-sec…
sanghoonio 23b0791
added name and tag error messages for fork modal. added combined erro…
sanghoonio 2983f32
updated combined name, tag error messages
sanghoonio 0e1d43b
project component ui
sanghoonio a4f2032
minor height adjustment
sanghoonio b93909f
color adjustments
sanghoonio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is awesome, I didn't know this was possible with
react-hook-form
!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.
So I added that mode: 'onChange' line to make it work but wasn't sure if it would cause lag if it started checking after every single input. Is this negligible with react/our use case or is it something we have to worry about?