-
Notifications
You must be signed in to change notification settings - Fork 204
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: integrate TextInput #1202
Merged
Merged
fix: integrate TextInput #1202
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
12767d5
integrate TextField into create infrastructure page
ajhollid 48c3f05
integrate TextInput
ajhollid a9493db
integrate TextInput into login page
ajhollid 7b392bc
expose on TextInput
ajhollid 475e927
integrate TextInput into register page
ajhollid 9d8ea82
Merge pull request #1205 from bluewave-labs/fix/fe/text-input-register
ajhollid 0a3d1c3
Merge pull request #1204 from bluewave-labs/fix/fe/login-text-input
ajhollid 3bfdbf5
Merge pull request #1203 from bluewave-labs/fix/fe/create-monitor-tex…
ajhollid 2bfefcb
Expose flex on TextInput
ajhollid 9e3a2bb
integrate TextInput into profile panel
ajhollid 817bbb1
Adjust helper text spcing, expose hidden prop
ajhollid efd0d68
integate TextInput into PasswordPanel
ajhollid f81b595
expose margin, integrate into TeamPanel
ajhollid 74e9f19
integrate TextInput into advanced settings page
ajhollid bdfe91c
integrate into ForgotPassword page
ajhollid 3ff9412
Integrate into SetNewPassword
ajhollid bbcf326
Remove unused imports, integrate into CreateMaintenance
ajhollid 1334645
integrate into configure
ajhollid 19eceec
finish create monitor integration
ajhollid 101c5b7
Integrate into pagespeed configure
ajhollid 93a77f4
integrate in to create pagespeed
ajhollid 6443203
integrate in to settings
ajhollid 16069b4
remove test route and page
ajhollid 061b450
remove Field component
ajhollid c62d62f
Merge branch 'develop' into fix/fe/text-input-integration
ajhollid 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
💡 Codebase verification
Yo dawg, we got some serious prop validation issues up in here! 🍝
Looking at the implementation and usage, there's a major issue that's making my knees weak:
<PasswordEndAdornment />
fieldType
is used in comparison:fieldType === "password"
setFieldType
is called in the onClick handlerThe current PropTypes are indeed looser than mom's spaghetti! Here's what's wrong:
fieldType
is only valid as "password" or "text"The original review comment is spot-on with its suggested fix:
🔗 Analysis chain
Yo, these PropTypes are looser than mom's spaghetti! 🍝
The current PropTypes declaration needs some tightening up to prevent potential runtime issues:
fieldType
should be restricted to specific values since it's used in a comparisonHere's how we can make it more robust:
Let's verify if these props are always provided:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 1493
Script:
Length of output: 7257