}
diff --git a/src/components/views/user-onboarding/UserOnboardingHeader.tsx b/src/components/views/user-onboarding/UserOnboardingHeader.tsx
new file mode 100644
index 0000000000..264a0c64bc
--- /dev/null
+++ b/src/components/views/user-onboarding/UserOnboardingHeader.tsx
@@ -0,0 +1,98 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import * as React from "react";
+
+import defaultDispatcher from "../../../dispatcher/dispatcher";
+import { _t } from "../../../languageHandler";
+import PosthogTrackers from "../../../PosthogTrackers";
+import SdkConfig from "../../../SdkConfig";
+import { UseCase } from "../../../settings/enums/UseCase";
+import AccessibleButton, { ButtonEvent } from "../../views/elements/AccessibleButton";
+import Heading from "../../views/typography/Heading";
+
+const onClickSendDm = (ev: ButtonEvent) => {
+ PosthogTrackers.trackInteraction("WebUserOnboardingHeaderSendDm", ev);
+ defaultDispatcher.dispatch({ action: 'view_create_chat' });
+};
+
+interface Props {
+ useCase: UseCase;
+}
+
+export function UserOnboardingHeader({ useCase }: Props) {
+ let title: string;
+ let description: string;
+ let image;
+ let actionLabel: string;
+
+ switch (useCase) {
+ case UseCase.PersonalMessaging:
+ title = _t("Secure messaging for friends and family");
+ description = _t("With free end-to-end encrypted messaging, and unlimited voice and video calls, " +
+ "%(brand)s is a great way to stay in touch.", {
+ brand: SdkConfig.get("brand"),
+ });
+ image = require("../../../../res/img/user-onboarding/PersonalMessaging.png");
+ actionLabel = _t("Start your first chat");
+ break;
+ case UseCase.WorkMessaging:
+ title = _t("Secure messaging for work");
+ description = _t("With free end-to-end encrypted messaging, and unlimited voice and video calls," +
+ " %(brand)s is a great way to stay in touch.", {
+ brand: SdkConfig.get("brand"),
+ });
+ image = require("../../../../res/img/user-onboarding/WorkMessaging.png");
+ actionLabel = _t("Find your co-workers");
+ break;
+ case UseCase.CommunityMessaging:
+ title = _t("Community ownership");
+ description = _t("Keep ownership and control of community discussion.\n" +
+ "Scale to support millions, with powerful moderation and interoperability.");
+ image = require("../../../../res/img/user-onboarding/CommunityMessaging.png");
+ actionLabel = _t("Find your people");
+ break;
+ default:
+ title = _t("Welcome to %(brand)s", {
+ brand: SdkConfig.get("brand"),
+ });
+ description = _t("With free end-to-end encrypted messaging, and unlimited voice and video calls," +
+ " %(brand)s is a great way to stay in touch.", {
+ brand: SdkConfig.get("brand"),
+ });
+ image = require("../../../../res/img/user-onboarding/PersonalMessaging.png");
+ actionLabel = _t("Start your first chat");
+ break;
+ }
+
+ return (
+
+
+
+ { title }
+ .
+
+
+ { description }
+
+
+ { actionLabel }
+
+
+
+
+ );
+}
diff --git a/src/components/views/user-onboarding/UserOnboardingList.tsx b/src/components/views/user-onboarding/UserOnboardingList.tsx
new file mode 100644
index 0000000000..dd7860ede9
--- /dev/null
+++ b/src/components/views/user-onboarding/UserOnboardingList.tsx
@@ -0,0 +1,66 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import * as React from "react";
+import { useMemo } from "react";
+
+import { UserOnboardingTask as Task } from "../../../hooks/useUserOnboardingTasks";
+import { _t } from "../../../languageHandler";
+import SdkConfig from "../../../SdkConfig";
+import ProgressBar from "../../views/elements/ProgressBar";
+import Heading from "../../views/typography/Heading";
+import { UserOnboardingTask } from "./UserOnboardingTask";
+
+interface Props {
+ completedTasks: Task[];
+ waitingTasks: Task[];
+}
+
+export function UserOnboardingList({ completedTasks, waitingTasks }: Props) {
+ const completed = completedTasks.length;
+ const waiting = waitingTasks.length;
+ const total = completed + waiting;
+
+ const tasks = useMemo(() => [
+ ...completedTasks.map((it): [Task, boolean] => [it, true]),
+ ...waitingTasks.map((it): [Task, boolean] => [it, false]),
+ ], [completedTasks, waitingTasks]);
+
+ return (
+
+ );
+}
diff --git a/src/components/views/user-onboarding/UserOnboardingPage.tsx b/src/components/views/user-onboarding/UserOnboardingPage.tsx
new file mode 100644
index 0000000000..7ca1323298
--- /dev/null
+++ b/src/components/views/user-onboarding/UserOnboardingPage.tsx
@@ -0,0 +1,84 @@
+/*
+Copyright 2020-2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import { useEffect, useState } from "react";
+import * as React from "react";
+
+import { useInitialSyncComplete } from "../../../hooks/useIsInitialSyncComplete";
+import { useSettingValue } from "../../../hooks/useSettings";
+import { useUserOnboardingTasks } from "../../../hooks/useUserOnboardingTasks";
+import { MatrixClientPeg } from "../../../MatrixClientPeg";
+import SdkConfig from "../../../SdkConfig";
+import { UseCase } from "../../../settings/enums/UseCase";
+import { getHomePageUrl } from "../../../utils/pages";
+import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
+import EmbeddedPage from "../../structures/EmbeddedPage";
+import HomePage from "../../structures/HomePage";
+import { UserOnboardingHeader } from "./UserOnboardingHeader";
+import { UserOnboardingList } from "./UserOnboardingList";
+
+interface Props {
+ justRegistered?: boolean;
+}
+
+// We decided to only show the new user onboarding page to new users
+// For now, that means we set the cutoff at 2022-07-01 00:00 UTC
+const USER_ONBOARDING_CUTOFF_DATE = new Date(1_656_633_600);
+export function showUserOnboardingPage(useCase: UseCase): boolean {
+ return useCase !== null || MatrixClientPeg.userRegisteredAfter(USER_ONBOARDING_CUTOFF_DATE);
+}
+
+const ANIMATION_DURATION = 2800;
+export function UserOnboardingPage({ justRegistered = false }: Props) {
+ const config = SdkConfig.get();
+ const pageUrl = getHomePageUrl(config);
+
+ const useCase = useSettingValue("FTUE.useCaseSelection");
+ const [completedTasks, waitingTasks] = useUserOnboardingTasks();
+
+ const initialSyncComplete = useInitialSyncComplete();
+ const [showList, setShowList] = useState(false);
+ useEffect(() => {
+ if (initialSyncComplete) {
+ let handler: number | null = setTimeout(() => {
+ handler = null;
+ setShowList(true);
+ }, ANIMATION_DURATION);
+ return () => {
+ clearTimeout(handler);
+ handler = null;
+ };
+ } else {
+ setShowList(false);
+ }
+ }, [initialSyncComplete, setShowList]);
+
+ // Only show new onboarding list to users who registered after a given date or have chosen a use case
+ if (!showUserOnboardingPage(useCase)) {
+ return ;
+ }
+
+ if (pageUrl) {
+ return ;
+ }
+
+ return
+
+ { showList && (
+
+ ) }
+ ;
+}
diff --git a/src/components/views/user-onboarding/UserOnboardingTask.tsx b/src/components/views/user-onboarding/UserOnboardingTask.tsx
new file mode 100644
index 0000000000..48accab8d3
--- /dev/null
+++ b/src/components/views/user-onboarding/UserOnboardingTask.tsx
@@ -0,0 +1,64 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import classNames from "classnames";
+import * as React from "react";
+
+import { UserOnboardingTask as Task } from "../../../hooks/useUserOnboardingTasks";
+import AccessibleButton from "../../views/elements/AccessibleButton";
+import Heading from "../../views/typography/Heading";
+
+interface Props {
+ task: Task;
+ completed?: boolean;
+}
+
+export function UserOnboardingTask({ task, completed = false }: Props) {
+ return (
+
+ );
+}
diff --git a/src/hooks/useAnimation.ts b/src/hooks/useAnimation.ts
new file mode 100644
index 0000000000..c728d57704
--- /dev/null
+++ b/src/hooks/useAnimation.ts
@@ -0,0 +1,55 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import { logger } from "matrix-js-sdk/src/logger";
+import { useCallback, useEffect, useRef } from "react";
+
+import SettingsStore from "../settings/SettingsStore";
+
+const debuglog = (...args: any[]) => {
+ if (SettingsStore.getValue("debug_animation")) {
+ logger.log.call(console, "Animation debuglog:", ...args);
+ }
+};
+
+export function useAnimation(enabled: boolean, callback: (timestamp: DOMHighResTimeStamp) => boolean) {
+ const handle = useRef(null);
+
+ const handler = useCallback(
+ (timestamp: DOMHighResTimeStamp) => {
+ if (callback(timestamp)) {
+ handle.current = requestAnimationFrame(handler);
+ } else {
+ debuglog("Finished animation!");
+ }
+ },
+ [callback],
+ );
+
+ useEffect(() => {
+ debuglog("Started animation!");
+ if (enabled) {
+ handle.current = requestAnimationFrame(handler);
+ }
+ return () => {
+ if (handle.current) {
+ debuglog("Aborted animation!");
+ cancelAnimationFrame(handle.current);
+ handle.current = null;
+ }
+ };
+ }, [enabled, handler]);
+}
diff --git a/src/hooks/useIsInitialSyncComplete.ts b/src/hooks/useIsInitialSyncComplete.ts
new file mode 100644
index 0000000000..33174fa182
--- /dev/null
+++ b/src/hooks/useIsInitialSyncComplete.ts
@@ -0,0 +1,25 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import { ClientEvent } from "matrix-js-sdk/src/matrix";
+
+import { MatrixClientPeg } from "../MatrixClientPeg";
+import { useEventEmitterState } from "./useEventEmitter";
+
+export function useInitialSyncComplete(): boolean {
+ const cli = MatrixClientPeg.get();
+ return useEventEmitterState(cli, ClientEvent.Sync, () => cli.isInitialSyncComplete());
+}
diff --git a/src/hooks/useSmoothAnimation.ts b/src/hooks/useSmoothAnimation.ts
new file mode 100644
index 0000000000..8d652f3257
--- /dev/null
+++ b/src/hooks/useSmoothAnimation.ts
@@ -0,0 +1,85 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import { logger } from "matrix-js-sdk/src/logger";
+import { useCallback, useEffect, useRef, useState } from "react";
+
+import SettingsStore from "../settings/SettingsStore";
+import { useAnimation } from "./useAnimation";
+
+const debuglog = (...args: any[]) => {
+ if (SettingsStore.getValue("debug_animation")) {
+ logger.log.call(console, "Animation debuglog:", ...args);
+ }
+};
+
+/**
+ * Utility function to smoothly animate to a certain target value
+ * @param initialValue Initial value to be used as initial starting point
+ * @param targetValue Desired value to animate to (can be changed repeatedly to whatever is current at that time)
+ * @param duration Duration that each animation should take
+ * @param enabled Whether the animation should run or not
+ */
+export function useSmoothAnimation(
+ initialValue: number,
+ targetValue: number,
+ duration: number,
+ enabled: boolean,
+): number {
+ const state = useRef<{ timestamp: DOMHighResTimeStamp | null, value: number }>({
+ timestamp: null,
+ value: initialValue,
+ });
+ const [currentValue, setCurrentValue] = useState(initialValue);
+ const [currentStepSize, setCurrentStepSize] = useState(0);
+
+ useEffect(() => {
+ const totalDelta = targetValue - state.current.value;
+ setCurrentStepSize(totalDelta / duration);
+ state.current = { ...state.current, timestamp: null };
+ }, [duration, targetValue]);
+
+ const update = useCallback(
+ (timestamp: DOMHighResTimeStamp): boolean => {
+ if (!state.current.timestamp) {
+ state.current = { ...state.current, timestamp };
+ return true;
+ }
+
+ if (Math.abs(currentStepSize) < Number.EPSILON) {
+ return false;
+ }
+
+ const timeDelta = timestamp - state.current.timestamp;
+ const valueDelta = currentStepSize * timeDelta;
+ const maxValueDelta = targetValue - state.current.value;
+ const clampedValueDelta = Math.sign(valueDelta) * Math.min(Math.abs(maxValueDelta), Math.abs(valueDelta));
+ const value = state.current.value + clampedValueDelta;
+
+ debuglog(`Animating to ${targetValue} at ${value} timeDelta=${timeDelta}, valueDelta=${valueDelta}`);
+
+ setCurrentValue(value);
+ state.current = { value, timestamp };
+
+ return Math.abs(maxValueDelta) > Number.EPSILON;
+ },
+ [currentStepSize, targetValue],
+ );
+
+ useAnimation(enabled, update);
+
+ return currentValue;
+}
diff --git a/src/hooks/useUserOnboardingContext.ts b/src/hooks/useUserOnboardingContext.ts
new file mode 100644
index 0000000000..8b1d6bcfb4
--- /dev/null
+++ b/src/hooks/useUserOnboardingContext.ts
@@ -0,0 +1,62 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import { useCallback, useEffect, useState } from "react";
+import { ClientEvent, IMyDevice, Room } from "matrix-js-sdk/src/matrix";
+
+import { MatrixClientPeg } from "../MatrixClientPeg";
+import DMRoomMap from "../utils/DMRoomMap";
+import { useEventEmitter } from "./useEventEmitter";
+
+export interface UserOnboardingContext {
+ avatar: string | null;
+ myDevice: string;
+ devices: IMyDevice[];
+ dmRooms: {[userId: string]: Room};
+}
+
+export function useUserOnboardingContext(): UserOnboardingContext | null {
+ const [context, setContext] = useState(null);
+
+ const cli = MatrixClientPeg.get();
+ const handler = useCallback(async () => {
+ const profile = await cli.getProfileInfo(cli.getUserId());
+
+ const myDevice = cli.getDeviceId();
+ const devices = await cli.getDevices();
+
+ const dmRooms = DMRoomMap.shared().getUniqueRoomsWithIndividuals() ?? {};
+ setContext({
+ avatar: profile?.avatar_url ?? null,
+ myDevice,
+ devices: devices.devices,
+ dmRooms: dmRooms,
+ });
+ }, [cli]);
+
+ useEventEmitter(cli, ClientEvent.AccountData, handler);
+ useEffect(() => {
+ const handle = setInterval(handler, 2000);
+ handler();
+ return () => {
+ if (handle) {
+ clearInterval(handle);
+ }
+ };
+ }, [handler]);
+
+ return context;
+}
diff --git a/src/hooks/useUserOnboardingTasks.ts b/src/hooks/useUserOnboardingTasks.ts
new file mode 100644
index 0000000000..41bd043463
--- /dev/null
+++ b/src/hooks/useUserOnboardingTasks.ts
@@ -0,0 +1,150 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import { useMemo } from "react";
+
+import { UserTab } from "../components/views/dialogs/UserTab";
+import { ButtonEvent } from "../components/views/elements/AccessibleButton";
+import { Action } from "../dispatcher/actions";
+import defaultDispatcher from "../dispatcher/dispatcher";
+import { _t } from "../languageHandler";
+import { Notifier } from "../Notifier";
+import PosthogTrackers from "../PosthogTrackers";
+import { UseCase } from "../settings/enums/UseCase";
+import { useSettingValue } from "./useSettings";
+import { UserOnboardingContext, useUserOnboardingContext } from "./useUserOnboardingContext";
+
+export interface UserOnboardingTask {
+ id: string;
+ title: string;
+ description: string;
+ relevant?: UseCase[];
+ action?: {
+ label: string;
+ onClick?: (ev?: ButtonEvent) => void;
+ href?: string;
+ hideOnComplete?: boolean;
+ };
+}
+
+interface InternalUserOnboardingTask extends UserOnboardingTask {
+ completed: (ctx: UserOnboardingContext) => boolean;
+}
+
+const hasOpenDMs = (ctx: UserOnboardingContext) => Boolean(Object.entries(ctx.dmRooms).length);
+
+const onClickStartDm = (ev: ButtonEvent) => {
+ PosthogTrackers.trackInteraction("WebUserOnboardingTaskSendDm", ev);
+ defaultDispatcher.dispatch({ action: 'view_create_chat' });
+};
+
+const tasks: InternalUserOnboardingTask[] = [
+ {
+ id: "create-account",
+ title: _t("Create account"),
+ description: _t("You made it!"),
+ completed: () => true,
+ },
+ {
+ id: "find-friends",
+ title: _t("Find and invite your friends"),
+ description: _t("It’s what you’re here for, so lets get to it"),
+ completed: hasOpenDMs,
+ relevant: [UseCase.PersonalMessaging, UseCase.Skip],
+ action: {
+ label: _t("Find friends"),
+ onClick: onClickStartDm,
+ },
+ },
+ {
+ id: "find-coworkers",
+ title: _t("Find and invite your co-workers"),
+ description: _t("Get stuff done by finding your teammates"),
+ completed: hasOpenDMs,
+ relevant: [UseCase.WorkMessaging],
+ action: {
+ label: _t("Find people"),
+ onClick: onClickStartDm,
+ },
+ },
+ {
+ id: "find-community-members",
+ title: _t("Find and invite your community members"),
+ description: _t("Get stuff done by finding your teammates"),
+ completed: hasOpenDMs,
+ relevant: [UseCase.CommunityMessaging],
+ action: {
+ label: _t("Find people"),
+ onClick: onClickStartDm,
+ },
+ },
+ {
+ id: "download-apps",
+ title: _t("Download Element"),
+ description: _t("Don’t miss a thing by taking Element with you"),
+ completed: (ctx: UserOnboardingContext) => {
+ return Boolean(ctx.devices.filter(it => it.device_id !== ctx.myDevice).length);
+ },
+ action: {
+ label: _t("Download apps"),
+ href: "https://element.io/get-started#download",
+ onClick: (ev: ButtonEvent) => {
+ PosthogTrackers.trackInteraction("WebUserOnboardingTaskDownloadApps", ev);
+ },
+ },
+ },
+ {
+ id: "setup-profile",
+ title: _t("Set up your profile"),
+ description: _t("Make sure people know it’s really you"),
+ completed: (info: UserOnboardingContext) => Boolean(info.avatar),
+ action: {
+ label: _t("Your profile"),
+ onClick: (ev: ButtonEvent) => {
+ PosthogTrackers.trackInteraction("WebUserOnboardingTaskSetupProfile", ev);
+ defaultDispatcher.dispatch({
+ action: Action.ViewUserSettings,
+ initialTabId: UserTab.General,
+ });
+ },
+ },
+ },
+ {
+ id: "permission-notifications",
+ title: _t("Turn on notifications"),
+ description: _t("Don’t miss a reply or important message"),
+ completed: () => Notifier.isPossible(),
+ action: {
+ label: _t("Enable notifications"),
+ onClick: (ev: ButtonEvent) => {
+ PosthogTrackers.trackInteraction("WebUserOnboardingTaskEnableNotifications", ev);
+ Notifier.setEnabled(true);
+ },
+ hideOnComplete: true,
+ },
+ },
+];
+
+export function useUserOnboardingTasks(): [UserOnboardingTask[], UserOnboardingTask[]] {
+ const useCase = useSettingValue("FTUE.useCaseSelection") ?? UseCase.Skip;
+ const relevantTasks = useMemo(
+ () => tasks.filter(it => !it.relevant || it.relevant.includes(useCase)),
+ [useCase],
+ );
+ const onboardingInfo = useUserOnboardingContext();
+ const completedTasks = relevantTasks.filter(it => onboardingInfo && it.completed(onboardingInfo));
+ return [completedTasks, relevantTasks.filter(it => !completedTasks.includes(it))];
+}
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 8845403293..0001785901 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -993,6 +993,24 @@
"When rooms are upgraded": "When rooms are upgraded",
"My Ban List": "My Ban List",
"This is your list of users/servers you have blocked - don't leave the room!": "This is your list of users/servers you have blocked - don't leave the room!",
+ "Create account": "Create account",
+ "You made it!": "You made it!",
+ "Find and invite your friends": "Find and invite your friends",
+ "It’s what you’re here for, so lets get to it": "It’s what you’re here for, so lets get to it",
+ "Find friends": "Find friends",
+ "Find and invite your co-workers": "Find and invite your co-workers",
+ "Get stuff done by finding your teammates": "Get stuff done by finding your teammates",
+ "Find people": "Find people",
+ "Find and invite your community members": "Find and invite your community members",
+ "Download Element": "Download Element",
+ "Don’t miss a thing by taking Element with you": "Don’t miss a thing by taking Element with you",
+ "Download apps": "Download apps",
+ "Set up your profile": "Set up your profile",
+ "Make sure people know it’s really you": "Make sure people know it’s really you",
+ "Your profile": "Your profile",
+ "Turn on notifications": "Turn on notifications",
+ "Don’t miss a reply or important message": "Don’t miss a reply or important message",
+ "Enable notifications": "Enable notifications",
"Sends the given message with confetti": "Sends the given message with confetti",
"sends confetti": "sends confetti",
"Sends the given message with fireworks": "Sends the given message with fireworks",
@@ -1129,6 +1147,19 @@
"Anchor": "Anchor",
"Headphones": "Headphones",
"Folder": "Folder",
+ "Secure messaging for friends and family": "Secure messaging for friends and family",
+ "With free end-to-end encrypted messaging, and unlimited voice and video calls, %(brand)s is a great way to stay in touch.": "With free end-to-end encrypted messaging, and unlimited voice and video calls, %(brand)s is a great way to stay in touch.",
+ "Start your first chat": "Start your first chat",
+ "Secure messaging for work": "Secure messaging for work",
+ "Find your co-workers": "Find your co-workers",
+ "Community ownership": "Community ownership",
+ "Keep ownership and control of community discussion.\nScale to support millions, with powerful moderation and interoperability.": "Keep ownership and control of community discussion.\nScale to support millions, with powerful moderation and interoperability.",
+ "Find your people": "Find your people",
+ "Welcome to %(brand)s": "Welcome to %(brand)s",
+ "Only %(count)s steps to go|other": "Only %(count)s steps to go",
+ "Only %(count)s steps to go|one": "Only %(count)s step to go",
+ "You did it!": "You did it!",
+ "Complete these to get the most out of %(brand)s": "Complete these to get the most out of %(brand)s",
"Your server isn't responding to some requests.": "Your server isn't responding to some requests.",
"Decline (%(counter)s)": "Decline (%(counter)s)",
"Accept to continue:": "Accept to continue:",
@@ -3253,7 +3284,6 @@
"Continue with previous account": "Continue with previous account",
"Log in to your new account.": "Log in to your new account.",
"Registration Successful": "Registration Successful",
- "Create account": "Create account",
"Host account on": "Host account on",
"Decide where your account is hosted": "Decide where your account is hosted",
"It looks like you don't have a Security Key or any other devices you can verify against. This device will not be able to access old encrypted messages. In order to verify your identity on this device, you'll need to reset your verification keys.": "It looks like you don't have a Security Key or any other devices you can verify against. This device will not be able to access old encrypted messages. In order to verify your identity on this device, you'll need to reset your verification keys.",
diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx
index b9871b3bbd..44d82da5cd 100644
--- a/src/settings/Settings.tsx
+++ b/src/settings/Settings.tsx
@@ -952,6 +952,10 @@ export const SETTINGS: {[setting: string]: ISetting} = {
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
default: false,
},
+ "debug_animation": {
+ supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
+ default: false,
+ },
"audioInputMuted": {
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
default: false,
diff --git a/yarn.lock b/yarn.lock
index a41ac45be9..b024fa0b47 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1508,10 +1508,10 @@
resolved "https://registry.yarnpkg.com/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz#497c67a1cef50d1a2459ba60f315e448d2ad87fe"
integrity sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==
-"@matrix-org/analytics-events@^0.1.2":
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/@matrix-org/analytics-events/-/analytics-events-0.1.2.tgz#820b1a78d1471f21da96274d92eb161b41f9e880"
- integrity sha512-TumnmENiuTtSmfcVwzovLDq4pRgRlUmuq1bxOtli9XWMgscs3Z6URu5PJcvuFj87L7bKJrGCNS3zR+DMUxc7kg==
+"@matrix-org/analytics-events@^0.2.0":
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/@matrix-org/analytics-events/-/analytics-events-0.2.0.tgz#453925c939ecdd5ca6c797d293deb8cf0933f1b8"
+ integrity sha512-+0/Sydm4MNOcqd8iySJmojVPB74Axba4BXlwTsiKmL5fgYqdUkwmqkO39K7Pn8i+a+8pg11oNvBPkpWs3O5Qww==
"@matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.8.tgz":
version "3.2.8"