From 812689030be6fbb3837c397143de23a43bef2df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20V=C3=A9lez=20Vidal?= Date: Wed, 26 Apr 2023 18:09:22 +0200 Subject: [PATCH] Mm 50013 - readd invite members screen cloud version (#22971) * MM-50013-readd-invite-members-screen-cloud-version * add the copy invite and fade in the skip buttons * unify cloud and self hosted version * add logic to send emails, and finish launching workspace * fix styles * remove unintended change * fix translations * fix unit tests * fix styles * fix styles --------- Co-authored-by: Mattermost Build --- .../invite_members.test.tsx.snap | 140 +++++++++++- .../invite_members_link.test.tsx.snap | 20 ++ .../preparing_workspace/invite_members.scss | 49 ++++- .../invite_members.test.tsx | 28 +++ .../preparing_workspace/invite_members.tsx | 200 +++++++++++++++--- .../invite_members_link.scss | 44 ++-- .../invite_members_link.test.tsx | 33 ++- .../invite_members_link.tsx | 36 ++-- .../preparing_workspace/plugins.tsx | 38 +--- .../preparing_workspace.scss | 1 + .../preparing_workspace.tsx | 35 +-- webapp/channels/src/i18n/en.json | 8 +- webapp/channels/src/sass/base/_structure.scss | 1 - 13 files changed, 516 insertions(+), 117 deletions(-) diff --git a/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members.test.tsx.snap b/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members.test.tsx.snap index 4aa2442f0a..eabb389cb1 100644 --- a/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members.test.tsx.snap +++ b/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members.test.tsx.snap @@ -71,7 +71,145 @@ exports[`InviteMembers component should match snapshot 1`] = `
+
+ + + +`; + +exports[`InviteMembers component should match snapshot when it is cloud 1`] = ` +
+
+
+
+
+
+ Previous step +
+

+ + Who works with you? + +

+

+ + Collaboration is tough by yourself. Invite a few team members. Separate each email address with a space or comma. + +

+
+
+ +

+   + +

+

+   + 0 results available. Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu, press Tab to select the option and exit the menu. +

+
+
+
+
+ Enter email addresses +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + +
+
diff --git a/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members_link.test.tsx.snap b/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members_link.test.tsx.snap index 0610646391..1abd12f11b 100644 --- a/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members_link.test.tsx.snap +++ b/webapp/channels/src/components/preparing_workspace/__snapshots__/invite_members_link.test.tsx.snap @@ -1,6 +1,26 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`components/preparing-workspace/invite_members_link should match snapshot 1`] = ` +
+ +
+`; + +exports[`components/preparing-workspace/invite_members_link should match snapshot when displayed including the input field 1`] = `