Skip to content
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

Merged
merged 5 commits into from
Aug 30, 2024

Conversation

Kapian1234
Copy link
Contributor

Description

Change the collaborator input from a combobox to a text field

Issues Resolved

Screenshot

Screenshot 2024-08-28 at 14 19 09

Screenshot 2024-08-28 at 14 18 04

Testing the changes

Changelog

  • feat: Update the collaborator input from a combobox to a text field

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.30%. Comparing base (cb273fc) to head (3fd2904).
Report is 139 commits behind head on main.

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     
Flag Coverage Δ
Linux_1 30.21% <100.00%> (+<0.01%) ⬆️
Linux_2 56.19% <ø> (+0.10%) ⬆️
Linux_3 40.61% <ø> (+0.05%) ⬆️
Linux_4 31.40% <ø> (+0.08%) ⬆️
Windows_1 30.23% <100.00%> (+<0.01%) ⬆️
Windows_2 56.14% <ø> (+0.10%) ⬆️
Windows_3 40.62% <ø> (+0.05%) ⬆️
Windows_4 31.40% <ø> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

onChange={handleGroupOrUserIdChange}
value={type === WorkspacePermissionItemType.User ? userId ?? '' : group ?? ''}
Copy link
Contributor

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"
Copy link
Contributor

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]>
@SuZhou-Joe SuZhou-Joe merged commit 4c1e3e6 into opensearch-project:main Aug 30, 2024
73 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 30, 2024
* 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>
ruanyl pushed a commit that referenced this pull request Sep 2, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants