-
Notifications
You must be signed in to change notification settings - Fork 376
feat(TextInput): Added OUIA for TextInput #3174
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
Conversation
|
@redallen @karelhala test failed: |
c6e319b to
c632616
Compare
|
@quarckster Hi, I just wanted to ask what's the status on this please. Any ETA? :) |
|
@vmuzikar I wait for help from @redallen or @karelhala. My typescript knowledge is limited. |
redallen
left a comment
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.
Let me shed some light on this. The defaultProps are being typechecked. The type prop has a value of 'text', which typescript sees as a string rather than the union 'text' | 'otherString' | ....
The solution is to give defaultProps a type which I've done by adding } as TextInputProps; so it know that type isn't a string, but rather the same union we declared earlier.
redallen
left a comment
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.
Update the snapshots and this is good!
|
PatternFly-React preview: https://patternfly-react-pr-3174.surge.sh |
de9a48f to
879ef9b
Compare
Codecov Report
@@ Coverage Diff @@
## master #3174 +/- ##
==========================================
- Coverage 67.18% 67.18% -0.01%
==========================================
Files 907 907
Lines 25589 25594 +5
Branches 2269 2271 +2
==========================================
+ Hits 17192 17195 +3
- Misses 7357 7358 +1
- Partials 1040 1041 +1
Continue to review full report at Codecov.
|
879ef9b to
0af4787
Compare
tlabaj
left a comment
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 one still has some conflicts and is failing Jest test
0af4787 to
52afa0c
Compare
| readOnly={isReadOnly} | ||
| ref={innerRef} | ||
| {...(ouiaContext.isOuia && { | ||
| 'data-ouia-component-type': 'PF4/TextInput', |
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.
The rest of the OUIA enabled components do not include the PF4/ prefix. Why are you adding it for only TextInput?
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.
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.
Very well. You'll have to handle not having the PF4/ prefix for older versions in your QA suite.
|
Can't merge since there are conflicts. |
7f3127f to
d9999cd
Compare
|
@redallen fixed |
|
Should be rebased on our |
Part of #2425
What: Added OUIA props to TextInput component