-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
feat(UiKit): Users select #31455
feat(UiKit): Users select #31455
Conversation
🦋 Changeset detectedLatest commit: 719635a The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #31455 +/- ##
===========================================
- Coverage 56.24% 56.23% -0.01%
===========================================
Files 2428 2428
Lines 53560 53560
Branches 11031 11031
===========================================
- Hits 30124 30122 -2
- Misses 20798 20832 +34
+ Partials 2638 2606 -32
Flags with carried forward coverage won't be shown. Click here to find out 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.
I actually had several other changes to request, but there's a bigger issue that I noticed upon further. Some (if not all) of the components created for the fuselage-ui-kit package, are copies of other existing components that are already in use. Even some comments have been copied over, as well as API calls (some have minor changes).
This feels a little strange to me, as we should not be copying implementation like this. Even more so because there are some implementation flaws on these components (like irrelevant useMemos and some weird logic) that was not modified/removed/improved in any sort of form. Could you explain the reasoning behind this? Is there any way we could improve this by reusing the same components?
Also, are we expecting that federated users will be shown in apps? I think this should be discussed since federated users have some limitations on how they work compared to regular users.
Btw, I know this is already a little too critic, but the name chosen for the components Multi....Multiple
, doesn't it seem a little... redundant?
...ages/fuselage-ui-kit/src/elements/UsersSelectElement/MulitUserAutoCompleteMultipleOption.tsx
Outdated
Show resolved
Hide resolved
...ages/fuselage-ui-kit/src/elements/UsersSelectElement/MulitUserAutoCompleteMultipleOption.tsx
Outdated
Show resolved
Hide resolved
In fact, I was copying core implementations, thanks to raise the points where my eyes passed by without notice some of the dumb errors... I will correct them ASAP. Another important thing to mention is: I know that we don't have a perfect autocomplete/select component to use, and we have a lot of different implementations of it in so many parts of the code. I already have created a different task to create a separated package for users/channel selectors who should centralize all... like |
…/user-channel-uikit
…t.Chat into feat/user-channel-uikit
…/user-channel-uikit
3a5187b
…retention * 'develop' of github.com:RocketChat/Rocket.Chat: (36 commits) refactor: IntegrationHistory out of DB Watcher (#32502) fix: Message update being broadcasted without updated values (#32472) test: make api teams test fully independent (#31756) test: Fix test name (#32490) fix: streams being called with no logged user (#32489) feat: Un-encrypted messages not allowed in E2EE rooms (#32040) feat(UiKit): Users select (#31455) fix: Re-login same browser tab issues (#32479) chore: move all webclient code out of the COSS folders (#32273) chore(deps): bump thehanimo/pr-title-checker from 1.3.7 to 1.4.1 (#30619) fix: Don't show join default channels option for edit user form (#31750) fix: CAS user merge not working (#32444) fix: Overriding Retention Policy not working (#32454) fix: `rooms.export` endpoint generates an empty export when given an invalid date (#32364) fix: "Allow Password Change for OAuth Users" setting is not honored in the "Forgot Password" flow (#32398) fix: Bypass trash when removing OTR system messages and read receipts (#32269) fix: Monitors dissapearing from Unit upon edit (#32393) fix: Link image preview not opening in gallery (#32391) feat: Allow visitors & integrations to access downloaded files after a room has closed (#32439) regression: Users tab misaligned (#32451) ...
This PR introduces new input components to UiKit:
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
CORE-59