-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-49821] Allow pasting multiple emails into invite modal #12052
[MM-49821] Allow pasting multiple emails into invite modal #12052
Conversation
/update-branch |
E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label. |
@laneycs Do you think we're okay with this state so we can move on to dev review and QA? Or is there more functionality we want to include at this stage? |
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.
@kostaspt We are ready to roll. Noting that this has been tested and approved by 3 team members in https://community.mattermost.com/private-core/pl/qgoyid7m93fhjbrnfsw4md7d6y
Is this meant to be draft still or ready for us to review? |
I had in mind to convert it to regular PR, but I forgot – sorry. |
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 have to add Telemetry to track the number of people that are added from pasting vs typing (https://mattermost.atlassian.net/browse/MM-49773) but I will have to wait for this to merge in order to utilize the new functionality. Do you want to add that part of the telemetry in this PR?
Maybe we could add an optional callback prop to that increments the paste count and use trackEvent
in the submit function?
@BenCookie95 Sounds good. I'll add this part to this PR. |
Thanks Kostas! |
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.
Hi @kostaspt, I found two issues.
-
Other special characters are also getting accepted.
Example:[email protected] % [email protected]
-
The email of the Deactivated user is getting accepted. Please see the below.
Filmage.2023-02-08_012120.mp4
|
@furqanmlk Not sure if this is better, but beyond that is potentially a different UX direction. Kapture.2023-02-08.at.15.53.23.mp4 |
/update-branch |
/update-branch |
/e2e-test |
Successfully triggered E2E testing! |
@kostaspt |
…mail # Conflicts: # components/widgets/inputs/users_emails_input.tsx
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.
Working as expected
Test server destroyed |
Summary
When pasting multiple valid emails separated with
,
,
,;
it will be handled as if a user typed all those and pressed enter afterward.Ticket Link
https://mattermost.atlassian.net/browse/MM-49821
Related Pull Requests
N/A
Screenshots
Kapture.2023-01-23.at.17.31.58.mp4
Release Note