-
Notifications
You must be signed in to change notification settings - Fork 935
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
[Workspace] Update collaborator input to text field #7879
[Workspace] Update collaborator input to text field #7879
Conversation
Signed-off-by: Kapian1234 <[email protected]>
Signed-off-by: Kapian1234 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7879 +/- ##
==========================================
+ Coverage 64.22% 64.30% +0.07%
==========================================
Files 3672 3674 +2
Lines 81152 81135 -17
Branches 12938 12927 -11
==========================================
+ Hits 52121 52172 +51
+ Misses 25822 25752 -70
- Partials 3209 3211 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
onChange={handleGroupOrUserIdChange} | ||
value={type === WorkspacePermissionItemType.User ? userId ?? '' : group ?? ''} |
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.
Prefer rewrite with (type === WorkspacePermissionItemType.User ? userId : group) ?? ''
onChange={handleGroupOrUserIdChange} | ||
value={type === WorkspacePermissionItemType.User ? userId ?? '' : group ?? ''} | ||
data-test-subj="fieldtextInput" |
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.
Prefer using a meaningful test id, such as workspaceFormUserIdOrGroupInput
Signed-off-by: Kapian1234 <[email protected]>
Signed-off-by: Kapian1234 <[email protected]>
* Change the collaborator input from a combobox to a text field Signed-off-by: Kapian1234 <[email protected]> * resolve some problems Signed-off-by: Kapian1234 <[email protected]> * Changeset file for PR #7879 created/updated * resolve some issues Signed-off-by: Kapian1234 <[email protected]> --------- Signed-off-by: Kapian1234 <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 4c1e3e6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Change the collaborator input from a combobox to a text field * resolve some problems * Changeset file for PR #7879 created/updated * resolve some issues --------- (cherry picked from commit 4c1e3e6) Signed-off-by: Kapian1234 <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Change the collaborator input from a combobox to a text field
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration