diff --git a/playwright/e2e/register/email.spec.ts b/playwright/e2e/register/email.spec.ts index 74c8ba7962b..cd990f9eafd 100644 --- a/playwright/e2e/register/email.spec.ts +++ b/playwright/e2e/register/email.spec.ts @@ -32,7 +32,7 @@ test.describe("Email Registration", async () => { }); test( - "registers an account and lands on the use case selection screen", + "registers an account and lands on the home page", { tag: "@screenshot" }, async ({ page, mailhogClient, request, checkA11y }) => { await expect(page.getByRole("textbox", { name: "Username" })).toBeVisible(); @@ -57,7 +57,7 @@ test.describe("Email Registration", async () => { const [emailLink] = messages.items[0].text.match(/http.+/); await request.get(emailLink); // "Click" the link in the email - await expect(page.locator(".mx_UseCaseSelection_skip")).toBeVisible(); + await expect(page.getByText("Welcome alice")).toBeVisible(); }, ); }); diff --git a/playwright/e2e/register/register.spec.ts b/playwright/e2e/register/register.spec.ts index 90854de33a6..43c73827d4f 100644 --- a/playwright/e2e/register/register.spec.ts +++ b/playwright/e2e/register/register.spec.ts @@ -71,12 +71,6 @@ test.describe("Registration", () => { await expect(termsPolicy.getByLabel("Privacy Policy")).toBeVisible(); await page.getByRole("button", { name: "Accept", exact: true }).click(); - - await expect(page.locator(".mx_UseCaseSelection_skip")).toBeVisible(); - await expect(page).toMatchScreenshot("use-case-selection.png", screenshotOptions); - await checkA11y(); - await page.getByRole("button", { name: "Skip", exact: true }).click(); - await expect(page).toHaveURL(/\/#\/home$/); /* diff --git a/playwright/e2e/user-onboarding/user-onboarding-new.spec.ts b/playwright/e2e/user-onboarding/user-onboarding-new.spec.ts deleted file mode 100644 index 3c7ef1f1710..00000000000 --- a/playwright/e2e/user-onboarding/user-onboarding-new.spec.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -import { test, expect } from "../../element-web-test"; - -test.describe("User Onboarding (new user)", () => { - test.use({ - displayName: "Jane Doe", - }); - - // This first beforeEach happens before the `user` fixture runs - test.beforeEach(async ({ page }) => { - await page.addInitScript(() => { - window.localStorage.setItem("mx_registration_time", "1656633601"); - }); - }); - - test.beforeEach(async ({ page, user }) => { - await expect(page.locator(".mx_UserOnboardingPage")).toBeVisible(); - await expect(page.getByRole("button", { name: "Welcome" })).toBeVisible(); - await expect(page.locator(".mx_UserOnboardingList")).toBeVisible(); - }); - - test("page is shown and preference exists", { tag: "@screenshot" }, async ({ page, app }) => { - await expect(page.locator(".mx_UserOnboardingPage")).toMatchScreenshot( - "User-Onboarding-new-user-page-is-shown-and-preference-exists-1.png", - ); - await app.settings.openUserSettings("Preferences"); - await expect(page.getByText("Show shortcut to welcome checklist above the room list")).toBeVisible(); - }); - - test("app download dialog", { tag: "@screenshot" }, async ({ page }) => { - await page.getByRole("button", { name: "Download apps" }).click(); - await expect( - page.getByRole("dialog").getByRole("heading", { level: 1, name: "Download Element" }), - ).toBeVisible(); - await expect(page.locator(".mx_Dialog")).toMatchScreenshot( - "User-Onboarding-new-user-app-download-dialog-1.png", - { - // Set a constant bg behind the modal to ensure screenshot stability - css: ` - .mx_AppDownloadDialog_wrapper { - background: black; - } - `, - }, - ); - }); - - test("using find friends action should increase progress", async ({ page, homeserver }) => { - const bot = await homeserver.registerUser("botbob", "password", "BotBob"); - - const oldProgress = parseFloat(await page.getByRole("progressbar").getAttribute("value")); - await page.getByRole("button", { name: "Find friends" }).click(); - await page.locator(".mx_InviteDialog_editor").getByRole("textbox").fill(bot.userId); - await page.getByRole("button", { name: "Go" }).click(); - await expect(page.locator(".mx_InviteDialog_buttonAndSpinner")).not.toBeVisible(); - - const message = "Hi!"; - const composer = page.getByRole("textbox", { name: "Send a message…" }); - await composer.fill(`${message}`); - await composer.press("Enter"); - await expect(page.locator(".mx_MTextBody.mx_EventTile_content", { hasText: message })).toBeVisible(); - - await page.goto("/#/home"); - await expect(page.locator(".mx_UserOnboardingPage")).toBeVisible(); - await expect(page.getByRole("button", { name: "Welcome" })).toBeVisible(); - await expect(page.locator(".mx_UserOnboardingList")).toBeVisible(); - - await page.waitForTimeout(500); // await progress bar animation - const progress = parseFloat(await page.getByRole("progressbar").getAttribute("value")); - expect(progress).toBeGreaterThan(oldProgress); - }); -}); diff --git a/playwright/e2e/user-onboarding/user-onboarding-old.spec.ts b/playwright/e2e/user-onboarding/user-onboarding-old.spec.ts deleted file mode 100644 index 8931672b52e..00000000000 --- a/playwright/e2e/user-onboarding/user-onboarding-old.spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -import { test, expect } from "../../element-web-test"; - -test.describe("User Onboarding (old user)", () => { - test.use({ - displayName: "Jane Doe", - }); - - test.beforeEach(async ({ page }) => { - await page.addInitScript(() => { - window.localStorage.setItem("mx_registration_time", "2"); - }); - }); - - test("page and preference are hidden", async ({ page, user, app }) => { - await expect(page.locator(".mx_UserOnboardingPage")).not.toBeVisible(); - await expect(page.locator(".mx_UserOnboardingButton")).not.toBeVisible(); - await app.settings.openUserSettings("Preferences"); - await expect(page.getByText("Show shortcut to welcome checklist above the room list")).not.toBeVisible(); - }); -}); diff --git a/playwright/snapshots/register/register.spec.ts/use-case-selection-linux.png b/playwright/snapshots/register/register.spec.ts/use-case-selection-linux.png deleted file mode 100644 index 1dd98b51e15..00000000000 Binary files a/playwright/snapshots/register/register.spec.ts/use-case-selection-linux.png and /dev/null differ diff --git a/playwright/snapshots/user-onboarding/user-onboarding-new.spec.ts/User-Onboarding-new-user-app-download-dialog-1-linux.png b/playwright/snapshots/user-onboarding/user-onboarding-new.spec.ts/User-Onboarding-new-user-app-download-dialog-1-linux.png deleted file mode 100644 index 024886d01e6..00000000000 Binary files a/playwright/snapshots/user-onboarding/user-onboarding-new.spec.ts/User-Onboarding-new-user-app-download-dialog-1-linux.png and /dev/null differ diff --git a/playwright/snapshots/user-onboarding/user-onboarding-new.spec.ts/User-Onboarding-new-user-page-is-shown-and-preference-exists-1-linux.png b/playwright/snapshots/user-onboarding/user-onboarding-new.spec.ts/User-Onboarding-new-user-page-is-shown-and-preference-exists-1-linux.png deleted file mode 100644 index 1042d92e764..00000000000 Binary files a/playwright/snapshots/user-onboarding/user-onboarding-new.spec.ts/User-Onboarding-new-user-page-is-shown-and-preference-exists-1-linux.png and /dev/null differ diff --git a/res/css/_components.pcss b/res/css/_components.pcss index e9a53cd43cc..66ed7e15c8c 100644 --- a/res/css/_components.pcss +++ b/res/css/_components.pcss @@ -126,7 +126,6 @@ @import "./views/context_menus/_RoomNotificationContextMenu.pcss"; @import "./views/dialogs/_AddExistingToSpaceDialog.pcss"; @import "./views/dialogs/_AnalyticsLearnMoreDialog.pcss"; -@import "./views/dialogs/_AppDownloadDialog.pcss"; @import "./views/dialogs/_BugReportDialog.pcss"; @import "./views/dialogs/_BulkRedactDialog.pcss"; @import "./views/dialogs/_ChangelogDialog.pcss"; @@ -217,8 +216,6 @@ @import "./views/elements/_TagComposer.pcss"; @import "./views/elements/_TextWithTooltip.pcss"; @import "./views/elements/_ToggleSwitch.pcss"; -@import "./views/elements/_UseCaseSelection.pcss"; -@import "./views/elements/_UseCaseSelectionButton.pcss"; @import "./views/elements/_Validation.pcss"; @import "./views/emojipicker/_EmojiPicker.pcss"; @import "./views/location/_LocationPicker.pcss"; @@ -375,11 +372,6 @@ @import "./views/toasts/_IncomingLegacyCallToast.pcss"; @import "./views/toasts/_NonUrgentEchoFailureToast.pcss"; @import "./views/typography/_Heading.pcss"; -@import "./views/user-onboarding/_UserOnboardingButton.pcss"; -@import "./views/user-onboarding/_UserOnboardingHeader.pcss"; -@import "./views/user-onboarding/_UserOnboardingList.pcss"; -@import "./views/user-onboarding/_UserOnboardingPage.pcss"; -@import "./views/user-onboarding/_UserOnboardingTask.pcss"; @import "./views/verification/_VerificationShowSas.pcss"; @import "./views/voip/LegacyCallView/_LegacyCallViewButtons.pcss"; @import "./views/voip/_CallDuration.pcss"; diff --git a/res/css/views/dialogs/_AppDownloadDialog.pcss b/res/css/views/dialogs/_AppDownloadDialog.pcss deleted file mode 100644 index e0591ed7e91..00000000000 --- a/res/css/views/dialogs/_AppDownloadDialog.pcss +++ /dev/null @@ -1,77 +0,0 @@ -.mx_AppDownloadDialog { - display: flex; - flex-direction: column; - gap: $spacing-32; - color: $primary-content; - - &.mx_Dialog_fixedWidth { - width: 640px; - } - - .mx_AppDownloadDialog_desktop { - display: flex; - flex-direction: column; - align-items: center; - gap: $spacing-16; - } - - .mx_AppDownloadDialog_mobile { - display: flex; - flex-direction: row; - gap: $spacing-24; - - .mx_AppDownloadDialog_app { - display: flex; - flex-direction: column; - flex-grow: 1; - flex-basis: 50%; - align-items: center; - gap: $spacing-16; - - .mx_QRCode { - /* intentionally hardcoded color to ensure the QR code is readable in any situation */ - background: #ffffff; - - padding: $spacing-24; - border: 1px solid $quinary-content; - border-radius: 4px; - align-self: stretch; - display: flex; - align-items: center; - flex-direction: column; - - .mx_VerificationQRCode { - height: 144px; - width: 144px; - image-rendering: pixelated; - border-radius: 0; - } - } - - .mx_AppDownloadDialog_info { - font-size: $font-12px; - color: $tertiary-content; - } - - .mx_AppDownloadDialog_links { - display: flex; - flex-direction: row; - gap: $spacing-8; - - .mx_AccessibleButton { - svg { - height: 40px; - } - } - } - } - } - - .mx_AppDownloadDialog_legal { - p { - margin: 0; - font-size: $font-12px; - color: $tertiary-content; - } - } -} diff --git a/res/css/views/elements/_UseCaseSelection.pcss b/res/css/views/elements/_UseCaseSelection.pcss deleted file mode 100644 index ec577a66bdd..00000000000 --- a/res/css/views/elements/_UseCaseSelection.pcss +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -.mx_UseCaseSelection { - display: grid; - grid-template-rows: 1fr 1fr max-content 2fr; - height: 100%; - grid-gap: $spacing-40; - - .mx_UseCaseSelection_title { - display: flex; - flex-direction: column; - justify-content: flex-end; - - h1 { - font-weight: var(--cpd-font-weight-semibold); - font-size: $font-32px; - text-align: center; - } - } - - .mx_UseCaseSelection_info { - display: flex; - flex-direction: column; - gap: $spacing-8; - align-self: flex-end; - - h2 { - margin: 0; - font-weight: 500; - font-size: $font-24px; - text-align: center; - } - - h3 { - margin: 0; - font-weight: 400; - font-size: $font-16px; - color: $secondary-content; - text-align: center; - } - } - - .mx_UseCaseSelection_options { - display: grid; - grid-template-columns: repeat(auto-fit, 232px); - gap: $spacing-32; - align-self: stretch; - justify-content: center; - } - - .mx_UseCaseSelection_skip { - display: flex; - flex-direction: column; - align-self: flex-start; - } -} - -.mx_UseCaseSelection_slideIn { - animation-delay: 800ms; - animation-duration: 300ms; - animation-timing-function: cubic-bezier(0, 0, 0.58, 1); - animation-name: mx_UseCaseSelection_slideInLong; - animation-fill-mode: backwards; - will-change: opacity; -} - -.mx_UseCaseSelection_slideInDelayed { - animation-delay: 1500ms; - animation-duration: 300ms; - animation-timing-function: cubic-bezier(0, 0, 0.58, 1); - animation-name: mx_UseCaseSelection_slideInShort; - animation-fill-mode: backwards; - will-change: transform, opacity; -} - -.mx_UseCaseSelection_selected { - .mx_UseCaseSelection_slideIn, - .mx_UseCaseSelection_slideInDelayed { - animation-delay: 800ms; - animation-duration: 300ms; - animation-fill-mode: forwards; - animation-name: mx_UseCaseSelection_fadeOut; - will-change: opacity; - } -} - -@keyframes mx_UseCaseSelection_slideInLong { - 0% { - transform: translate(0, 20px); - opacity: 0; - } - 100% { - transform: translate(0, 0); - opacity: 1; - } -} - -@keyframes mx_UseCaseSelection_slideInShort { - 0% { - transform: translate(0, 8px); - opacity: 0; - } - 100% { - transform: translate(0, 0); - opacity: 1; - } -} - -@keyframes mx_UseCaseSelection_fadeOut { - 0% { - opacity: 1; - } - 100% { - opacity: 0; - } -} diff --git a/res/css/views/elements/_UseCaseSelectionButton.pcss b/res/css/views/elements/_UseCaseSelectionButton.pcss deleted file mode 100644 index 9393b8a53c2..00000000000 --- a/res/css/views/elements/_UseCaseSelectionButton.pcss +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -.mx_UseCaseSelectionButton { - display: flex; - flex-direction: column; - align-items: center; - padding: $spacing-24 $spacing-16; - background: $background; - border: 1px solid $quinary-content; - border-radius: 8px; - text-align: center; - position: relative; - transition-property: box-shadow, transform; - transition-duration: 300ms; - - .mx_UseCaseSelectionButton_icon { - /* workaround: design expects a layering of two colors */ - background: linear-gradient(0deg, rgba(172, 59, 168, 0.15), rgba(172, 59, 168, 0.15)), #ffffff; - border-radius: 14px; - padding: $spacing-8; - margin-bottom: $spacing-16; - - &::before { - content: ""; - display: block; - /* this has to remain the same color across all themes, - as its background has a fixed color as well */ - background: #1e1e1e; - mask-position: center; - mask-repeat: no-repeat; - mask-size: contain; - width: 22px; - height: 22px; - } - - &.mx_UseCaseSelectionButton_messaging::before { - mask-image: url("$(res)/img/element-icons/chat-bubble.svg"); - } - - &.mx_UseCaseSelectionButton_work::before { - mask-image: url("$(res)/img/element-icons/view-community.svg"); - } - - &.mx_UseCaseSelectionButton_community::before { - mask-image: url("@vector-im/compound-design-tokens/icons/public.svg"); - mask-size: 24px; - } - } - - &:hover, - &:focus { - box-shadow: 0 $spacing-4 $spacing-8 rgba(0, 0, 0, 0.08); - transform: translate(0, -$spacing-8); - } - - .mx_UseCaseSelectionButton_selectedIcon { - right: -12px; - top: -12px; - position: absolute; - border-radius: 24px; - background: $accent; - padding: 6px; - transition-property: opacity, transform; - transition-duration: 150ms; - opacity: 0; - transform: scale(0.6); - - &::before { - content: ""; - display: block; - background: $background; - mask-position: center; - mask-repeat: no-repeat; - mask-size: contain; - width: 12px; - height: 12px; - - mask-image: url("@vector-im/compound-design-tokens/icons/check.svg"); - } - } - - &.mx_UseCaseSelectionButton_selected { - border: 2px solid $accent; - padding: calc($spacing-24 - 1px) calc($spacing-16 - 1px); - box-shadow: 0 $spacing-4 $spacing-8 rgba(0, 0, 0, 0.08); - - .mx_UseCaseSelectionButton_selectedIcon { - opacity: 1; - transform: scale(1); - } - } -} diff --git a/res/css/views/user-onboarding/_UserOnboardingButton.pcss b/res/css/views/user-onboarding/_UserOnboardingButton.pcss deleted file mode 100644 index 75b1b1eb68d..00000000000 --- a/res/css/views/user-onboarding/_UserOnboardingButton.pcss +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -.mx_UserOnboardingButton { - display: flex; - flex-direction: column; - align-content: stretch; - align-items: stretch; - border-radius: 8px; - margin: $spacing-8 $spacing-8 0; - padding: $spacing-12; - - &.mx_UserOnboardingButton_selected, - &:hover, - &:focus-within { - background-color: $panel-actions; - } - - .mx_UserOnboardingButton_content { - display: flex; - flex-direction: row; - gap: 5px; - align-items: center; - - .mx_Heading_h4 { - margin-right: auto; - font: var(--cpd-font-body-md-regular); - color: $primary-content; - } - - .mx_UserOnboardingButton_percentage { - font-size: $font-12px; - color: $secondary-content; - } - - .mx_UserOnboardingButton_close { - position: relative; - box-sizing: border-box; - width: 14px; - height: 14px; - border-radius: 7px; - border: 1px solid $secondary-content; - flex-shrink: 0; - - &::before { - background-color: $secondary-content; - content: ""; - mask-repeat: no-repeat; - mask-position: center; - mask-size: 12px; - width: inherit; - height: inherit; - position: absolute; - left: -1px; - top: -1px; - mask-image: url("@vector-im/compound-design-tokens/icons/close.svg"); - } - } - } - - .mx_ProgressBar { - width: auto; - margin-top: $spacing-8; - background: $background; - } - - &.mx_UserOnboardingButton_completed .mx_ProgressBar { - display: none; - } -} diff --git a/res/css/views/user-onboarding/_UserOnboardingHeader.pcss b/res/css/views/user-onboarding/_UserOnboardingHeader.pcss deleted file mode 100644 index 6402e8c859e..00000000000 --- a/res/css/views/user-onboarding/_UserOnboardingHeader.pcss +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -.mx_UserOnboardingHeader { - display: flex; - flex-direction: row; - padding: $spacing-32; - border-radius: 16px; - background: $system; - gap: $spacing-64; - - animation-delay: 1500ms; - animation-duration: 300ms; - animation-timing-function: cubic-bezier(0, 0, 0.58, 1); - animation-name: mx_UserOnboardingHeader_slideIn; - animation-fill-mode: backwards; - will-change: opacity, transform; - - @media (max-width: 1280px) { - margin: $spacing-32; - } - - .mx_UserOnboardingHeader_dot { - color: $accent; - } - - .mx_UserOnboardingHeader_content { - display: flex; - flex-direction: column; - flex-basis: 50%; - flex-shrink: 1; - flex-grow: 1; - min-width: 0; - gap: $spacing-24; - margin-right: auto; - - p { - margin: 0; - } - - .mx_AccessibleButton { - margin-top: auto; - align-self: flex-start; - padding: $spacing-12 $spacing-24; - } - } - - .mx_UserOnboardingHeader_image { - flex-basis: 30%; - flex-shrink: 1; - flex-grow: 1; - align-self: center; - height: calc(100% + $spacing-64 + $spacing-64); - aspect-ratio: 4 / 3; - object-fit: contain; - min-width: 0; - min-height: 0; - margin-top: -$spacing-64; - margin-bottom: -$spacing-64; - - animation-delay: 1500ms; - animation-duration: 300ms; - animation-timing-function: cubic-bezier(0, 0, 0.58, 1); - animation-name: mx_UserOnboardingHeader_slideInLong; - animation-fill-mode: backwards; - will-change: opacity, transform; - } -} - -@keyframes mx_UserOnboardingHeader_slideIn { - 0% { - transform: translate(0, 8px); - opacity: 0; - } - 100% { - transform: translate(0, 0); - opacity: 1; - } -} - -@keyframes mx_UserOnboardingHeader_slideInLong { - 0% { - transform: translate(0, 32px); - } - 100% { - transform: translate(0, 0); - } -} diff --git a/res/css/views/user-onboarding/_UserOnboardingList.pcss b/res/css/views/user-onboarding/_UserOnboardingList.pcss deleted file mode 100644 index bd198de2fee..00000000000 --- a/res/css/views/user-onboarding/_UserOnboardingList.pcss +++ /dev/null @@ -1,67 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -.mx_UserOnboardingList { - display: flex; - flex-direction: column; - margin: 0 $spacing-32; - - animation-duration: 300ms; - animation-timing-function: cubic-bezier(0, 0, 0.58, 1); - animation-name: mx_UserOnboardingList_slideIn; - animation-fill-mode: backwards; - will-change: opacity; - - .mx_UserOnboardingList_header { - display: flex; - flex-direction: row; - gap: 12px; - align-items: center; - - .mx_UserOnboardingList_hint { - color: $secondary-content; - } - } - - .mx_UserOnboardingList_progress { - display: flex; - flex-direction: column; - counter-reset: user-onboarding; - - .mx_ProgressBar { - width: auto; - margin-top: $spacing-16; - height: 16px; - - @mixin ProgressBarBorderRadius 16px; - } - } - - .mx_UserOnboardingList_list { - display: grid; - grid-template-columns: max-content 1fr max-content; - - appearance: none; - list-style: none; - margin: $spacing-32 0 0; - padding: 0; - - grid-gap: $spacing-24; - } -} - -@keyframes mx_UserOnboardingList_slideIn { - 0% { - transform: translate(0, 8px); - opacity: 0; - } - 100% { - transform: translate(0, 0); - opacity: 1; - } -} diff --git a/res/css/views/user-onboarding/_UserOnboardingPage.pcss b/res/css/views/user-onboarding/_UserOnboardingPage.pcss deleted file mode 100644 index 285a1b34d48..00000000000 --- a/res/css/views/user-onboarding/_UserOnboardingPage.pcss +++ /dev/null @@ -1,27 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -.mx_UserOnboardingPage { - width: 100%; - height: 100%; - - align-self: stretch; - max-width: 1200px; - margin: 0 auto auto; - - display: flex; - flex-direction: column; - box-sizing: border-box; - - gap: $spacing-64; - padding: $spacing-64 100px; - - @media (max-width: 1280px) { - padding: $spacing-48 $spacing-32; - } -} diff --git a/res/css/views/user-onboarding/_UserOnboardingTask.pcss b/res/css/views/user-onboarding/_UserOnboardingTask.pcss deleted file mode 100644 index 756a9d36043..00000000000 --- a/res/css/views/user-onboarding/_UserOnboardingTask.pcss +++ /dev/null @@ -1,112 +0,0 @@ -/* -Copyright 2024 New Vector Ltd. -Copyright 2022 The Matrix.org Foundation C.I.C. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -.mx_UserOnboardingTask { - display: contents; - - .mx_UserOnboardingTask_number { - counter-increment: user-onboarding; - grid-column: 1; - color: $secondary-content; - width: 32px; - height: 32px; - text-align: center; - border: 2px solid $quinary-content; - border-radius: 32px; - line-height: 32px; - align-self: center; - position: relative; - - &::before { - content: counter(user-onboarding); - } - } - - .mx_UserOnboardingTask_content { - grid-column: 2; - display: flex; - flex-direction: column; - flex-grow: 1; - flex-shrink: 1; - - transition: all 500ms; - - .mx_UserOnboardingTask_title { - font: var(--cpd-font-body-md-medium); - } - - .mx_UserOnboardingTask_description { - font-size: $font-12px; - } - } - - .mx_UserOnboardingTask_action.mx_AccessibleButton { - grid-column: 3; - min-width: 180px; - - @media (max-width: 800px) { - grid-column: 2; - margin-top: -16px; - } - } - - &.mx_UserOnboardingTask_completed { - .mx_UserOnboardingTask_number { - &::before { - content: ""; - position: absolute; - inset: -2px; - background: var(--cpd-color-icon-accent-tertiary); - border-radius: 32px; - - animation-duration: 300ms; - animation-fill-mode: both; - animation-name: mx_UserOnboardingTask_spring; - will-change: opacity, transform; - } - - &::after { - background-color: var(--cpd-color-icon-on-solid-primary); - content: ""; - mask-repeat: no-repeat; - mask-position: center; - mask-size: 24px; - width: inherit; - height: inherit; - position: absolute; - left: 0; - top: 0; - mask-image: url("@vector-im/compound-design-tokens/icons/check.svg"); - - animation-duration: 300ms; - animation-fill-mode: both; - animation-name: mx_UserOnboardingTask_spring; - will-change: opacity, transform; - } - } - - .mx_UserOnboardingTask_content { - opacity: 0.6; - } - } -} - -@keyframes mx_UserOnboardingTask_spring { - 0% { - opacity: 0; - transform: scale(0.6); - } - 50% { - opacity: 1; - transform: scale(1.2); - } - 100% { - opacity: 1; - transform: scale(1); - } -} diff --git a/res/img/badges/f-droid.svg b/res/img/badges/f-droid.svg deleted file mode 100644 index d97143c42be..00000000000 --- a/res/img/badges/f-droid.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/res/img/badges/google-play.svg b/res/img/badges/google-play.svg deleted file mode 100644 index 973d9d3afc5..00000000000 --- a/res/img/badges/google-play.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/res/img/badges/ios.svg b/res/img/badges/ios.svg deleted file mode 100644 index e723d1cc046..00000000000 --- a/res/img/badges/ios.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/res/img/user-onboarding/CommunityMessaging.png b/res/img/user-onboarding/CommunityMessaging.png deleted file mode 100644 index ec13eef8d66..00000000000 Binary files a/res/img/user-onboarding/CommunityMessaging.png and /dev/null differ diff --git a/res/img/user-onboarding/PersonalMessaging.png b/res/img/user-onboarding/PersonalMessaging.png deleted file mode 100644 index 8dce18ad909..00000000000 Binary files a/res/img/user-onboarding/PersonalMessaging.png and /dev/null differ diff --git a/res/img/user-onboarding/WorkMessaging.png b/res/img/user-onboarding/WorkMessaging.png deleted file mode 100644 index 7c3b813a84a..00000000000 Binary files a/res/img/user-onboarding/WorkMessaging.png and /dev/null differ diff --git a/src/PosthogTrackers.ts b/src/PosthogTrackers.ts index 4af210411e3..02faa6b5ec5 100644 --- a/src/PosthogTrackers.ts +++ b/src/PosthogTrackers.ts @@ -24,7 +24,6 @@ const notLoggedInMap: Record, ScreenName> = { [Views.WELCOME]: "Welcome", [Views.LOGIN]: "Login", [Views.REGISTER]: "Register", - [Views.USE_CASE_SELECTION]: "UseCaseSelection", [Views.FORGOT_PASSWORD]: "ForgotPassword", [Views.COMPLETE_SECURITY]: "CompleteSecurity", [Views.E2E_SETUP]: "E2ESetup", diff --git a/src/Views.ts b/src/Views.ts index 90480b26695..6c0df53a661 100644 --- a/src/Views.ts +++ b/src/Views.ts @@ -33,9 +33,6 @@ enum Views { // flow to setup SSSS / cross-signing on this account E2E_SETUP, - // screen that allows users to select which use case they’ll use matrix for - USE_CASE_SELECTION, - // we are logged in with an active matrix client. The logged_in state also // includes guests users as they too are logged in at the client level. LOGGED_IN, diff --git a/src/components/structures/LeftPanel.tsx b/src/components/structures/LeftPanel.tsx index e4964dd9725..92e612a477b 100644 --- a/src/components/structures/LeftPanel.tsx +++ b/src/components/structures/LeftPanel.tsx @@ -35,7 +35,6 @@ import { UIComponent } from "../../settings/UIFeature"; import AccessibleButton, { ButtonEvent } from "../views/elements/AccessibleButton"; import PosthogTrackers from "../../PosthogTrackers"; import PageType from "../../PageTypes"; -import { UserOnboardingButton } from "../views/user-onboarding/UserOnboardingButton"; import { Landmark, LandmarkNavigation } from "../../accessibility/LandmarkNavigation"; interface IProps { @@ -398,10 +397,6 @@ export default class LeftPanel extends React.Component { {shouldShowComponent(UIComponent.FilterContainer) && this.renderSearchDialExplore()} {this.renderBreadcrumbs()} {!this.props.isMinimized && } -