π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Skip recovery key in social onboarding
Anand Baburajan21089fea8aee
diff --git a/web/apps/social/public/images/recovery-key.svg b/web/apps/social/public/images/recovery-key.svgdeleted file mode 100644index 8437e5fa49..0000000000--- a/web/apps/social/public/images/recovery-key.svg+++ /dev/null@@ -1,21 +0,0 @@-<svg width="101" height="82" viewBox="0 0 101 82" fill="none" xmlns="http://www.w3.org/2000/svg">-<g clip-path="url(#clip0_5209_26072)">-<path d="M96.0763 80.3227L59.8352 80.2548C59.1616 80.2548 58.488 79.9833 57.9828 79.5421L53.6379 65.1859C53.5032 65.0501 53.3684 64.9144 53.2337 64.7447L46.2617 54.6309C46.1943 54.5291 46.127 54.4272 46.0596 54.3254L29.8589 22.4228C28.9158 20.5901 30.2631 18.418 32.284 18.418H97.2214C98.434 18.418 99.4444 19.1986 99.8149 20.3186C99.9159 20.5901 99.9496 20.8955 99.9496 21.201L99.3097 73.0258C99.3097 77.0645 100.118 80.3227 96.0763 80.3227Z" fill="#08C225"/>-<path d="M99.8817 20.2853L40.8721 20.9302L39.4912 18.3848H97.2883C98.5008 18.3848 99.5112 19.1993 99.8817 20.2853Z" fill="white"/>-<path d="M98.3322 72.993C98.4332 67.5967 99.0058 25.6821 99.0731 21.3379C99.1742 20.3876 98.5006 19.4712 97.5238 19.3355C77.7192 19.3015 52.5256 19.4033 32.7211 19.4373H32.1485C31.138 19.5052 30.397 20.6591 30.7339 21.6094C30.8686 22.0506 31.6096 23.3742 31.879 23.9172C35.5166 31.0444 43.6338 46.9957 47.2377 53.9193C49.3259 56.9059 52.1215 60.9786 54.2097 63.9313C54.3444 64.1349 54.5465 64.3386 54.7149 64.4743L54.816 64.7798L59.1608 79.136L58.824 78.5929C59.0261 78.7966 59.2956 78.9323 59.565 78.9663C59.8682 79.0342 60.5081 79.0002 60.8112 79.0002C71.1514 79.0681 84.6239 79.102 94.9977 79.1699C95.7387 79.1699 96.8165 79.2378 97.4564 78.9323C98.2648 78.5251 98.2985 77.473 98.3322 76.6245C98.3995 75.4706 98.3322 74.2827 98.3322 72.993ZM100.387 73.027C100.353 76.6924 101.296 81.342 96.1092 81.3759H93.5157C83.6808 81.3759 70.5788 81.4099 60.8112 81.4099H60.0702C59.0261 81.4438 57.982 81.1044 57.241 80.3917L57.0052 80.1881L56.9042 79.8826L52.5593 65.5264L52.8961 66.0695C52.7614 65.9676 52.6604 65.8319 52.5593 65.6961C52.3909 65.4925 52.0541 64.9834 51.8857 64.7798C49.9659 61.9628 47.1703 57.9241 45.2505 55.0732C41.6803 48.0818 33.6305 32.0287 30.0266 24.9354L29.4203 23.7136L29.1172 23.1027C27.6015 20.4215 29.6897 17.1634 32.7547 17.4009C51.8183 17.4349 76.5741 17.4688 95.6377 17.5028H97.3891C99.41 17.5028 101.128 19.3694 100.993 21.4057C100.791 25.4784 100.488 67.8003 100.387 73.027Z" fill="black"/>-<path d="M97.4227 80.2559L41.2423 80.2898H27.2646C25.5469 80.2898 23.9975 79.5771 22.886 78.4231C22.0103 77.4729 21.4041 76.2511 21.2357 74.8935L15.072 19.8784C14.8025 17.5027 16.655 15.3984 19.0464 15.3984H32.3505C34.7418 15.3984 37.0322 16.4166 38.6489 18.1814L43.0948 23.0008C44.7115 24.7656 47.0018 25.7838 49.3932 25.7838H82.064C84.1186 25.7838 85.8026 27.345 86.0384 29.3813V29.4492L86.5099 34.0309L90.3496 70.7529C90.9222 76.1492 92.0337 80.2219 97.4227 80.2559Z" fill="#E7FAEA"/>-<path d="M97.4229 80.2549L41.2426 80.2889L39.2891 79.2707C42.7582 55.0383 59.2621 36.1682 86.5102 33.9961L90.3499 70.752C90.9224 76.1483 92.0339 80.221 97.4229 80.2549Z" fill="#08C225" fill-opacity="0.11"/>-<path d="M86.0389 29.414H49.0906C46.3961 29.414 43.8026 28.3619 41.8828 26.4953L35.9885 20.7935C35.0118 19.8432 33.6982 19.3341 32.351 19.3341H19.8552C18.7774 19.3341 17.9691 20.2844 18.1038 21.3365L24.7727 78.388H22.9202C22.0445 77.4377 21.4382 76.2159 21.2698 74.8583L15.1062 19.8432C14.8367 17.4675 16.6892 15.3633 19.0806 15.3633H32.3846C34.776 15.3633 37.0663 16.3815 38.683 18.1463L43.129 22.9656C44.7457 24.7304 47.036 25.7486 49.4274 25.7486H82.0982C84.1527 25.7486 85.8368 27.3098 86.0726 29.3461L86.0389 29.414Z" fill="white"/>-<path d="M20.0907 74.9951C19.5181 69.9382 14.3649 24.1206 13.9607 20.3534C13.6576 18.4867 14.3312 16.4843 15.8469 15.2964C16.5879 14.6855 17.4972 14.3122 18.474 14.2104C18.9455 14.1425 21.7411 14.1765 22.28 14.1765C24.3009 14.1765 29.1846 14.2104 31.1382 14.1765C32.1823 14.1765 33.2601 14.1425 34.3042 14.3801C36.224 14.7874 38.0091 15.7716 39.3564 17.1631C39.4911 17.2988 39.7269 17.5704 39.8616 17.74L43.8697 22.1182C45.0148 23.4079 46.5979 24.2563 48.3156 24.4939C49.0566 24.6297 50.3028 24.5618 51.1111 24.5957C59.0262 24.6297 69.7369 24.8672 77.652 24.9351L80.6159 24.9691C81.5253 25.003 82.9399 24.8672 83.8157 25.3084C85.466 25.9193 86.6786 27.5484 86.847 29.3132L87.0154 30.8066L87.6553 36.7119C88.7668 47.5724 90.1814 59.8923 91.4276 70.6849C91.9328 74.6218 92.5728 79.2714 97.5239 79.1017C97.5239 78.6266 97.5576 83.5817 97.4902 81.4775H27.77C23.9304 81.6472 20.4949 78.7963 20.0907 74.9951ZM22.4147 74.7236C22.6505 76.9296 24.4693 78.7963 26.6249 79.0678C27.4332 79.2036 37.0997 79.0678 38.2112 79.1017C56.2307 79.0678 78.9319 79.1017 96.8503 79.0678H97.4566C97.4566 76.9296 97.4902 81.9526 97.4566 81.4435C91.8992 81.3417 90.1141 77.269 89.5751 72.3818C88.8005 65.3565 87.9921 55.582 87.2511 48.6924C86.847 44.7894 85.8365 34.7435 85.4324 30.9423L85.2976 29.449C85.1629 27.8199 83.7146 26.4624 82.0642 26.4963C75.9342 26.4963 66.1667 26.6999 59.9356 26.7678C57.9821 26.8018 52.9973 26.8357 51.0775 26.8696H49.5955C46.8336 26.9375 44.0381 25.7496 42.1856 23.6794L38.1775 19.3352L37.9418 19.0637L37.807 18.9279L37.706 18.8261C36.3924 17.4346 34.5063 16.5861 32.5865 16.5522C31.5423 16.5182 29.252 16.5522 28.2079 16.5522C26.3554 16.5861 21.1685 16.5522 19.3497 16.5522C17.9014 16.4504 16.5205 17.4346 16.3184 18.9279C16.251 19.3012 16.2847 19.7085 16.3521 20.0818C16.7226 23.6115 21.8758 69.9043 22.4147 74.7236Z" fill="black"/>-<path d="M52.2968 55.9213C56.0171 55.9213 59.0331 52.8823 59.0331 49.1335C59.0331 45.3847 56.0171 42.3457 52.2968 42.3457C48.5765 42.3457 45.5605 45.3847 45.5605 49.1335C45.5605 52.8823 48.5765 55.9213 52.2968 55.9213Z" fill="black"/>-<path d="M50.576 52.1855L49.9395 66.7827H56.8778L54.5437 52.1855H50.576Z" fill="black"/>-<path d="M0.743902 14.8717C2.38081 14.6171 3.98067 14.7495 5.58727 15.0006C7.19723 15.2755 8.74657 15.6862 10.178 16.5618C10.6058 16.8299 10.7338 17.3967 10.4677 17.8277C10.3296 18.0483 10.114 18.1909 9.88163 18.2384C9.0396 18.4149 8.22451 18.4319 7.41953 18.3979C4.99785 18.235 2.61321 17.6954 0.450875 16.5347C0.0231233 16.2903 -0.125074 15.7405 0.117431 15.3129C0.255524 15.0685 0.491293 14.9158 0.74727 14.8717H0.743902Z" fill="black"/>-<path d="M12.6471 12.6554C9.42714 10.4291 7.03914 7.33721 4.84649 4.14355C4.13581 3.06768 3.46219 1.95788 2.89971 0.759833C2.77509 0.495109 2.88624 0.176082 3.14895 0.0505078C3.33083 -0.0377336 3.53629 -0.0105824 3.68785 0.101416C4.75218 0.882013 5.70536 1.75425 6.62486 2.65702C8.44365 4.47615 10.1277 6.41067 11.5794 8.53865C12.2934 9.61112 12.967 10.7209 13.4756 11.9631C13.6912 12.462 13.095 12.9575 12.6504 12.6521L12.6471 12.6554Z" fill="black"/>-<path d="M19.4038 10.2725C18.6662 8.99644 18.6695 7.55403 18.9087 6.15914C19.003 5.70096 19.131 5.24618 19.3634 4.788C19.7878 3.89202 21.1519 3.90559 21.5729 4.788C22.3374 6.50532 22.4587 8.58917 21.5358 10.2759C21.0744 11.0701 19.8619 11.0633 19.4038 10.2759V10.2725Z" fill="black"/>-</g>-<defs>-<clipPath id="clip0_5209_26072">-<rect width="101" height="82" fill="white"/>-</clipPath>-</defs>-</svg>diff --git a/web/apps/social/src/pages/index.tsx b/web/apps/social/src/pages/index.tsxindex 21cea215f9..2177e82e16 100644--- a/web/apps/social/src/pages/index.tsx+++ b/web/apps/social/src/pages/index.tsx@@ -14,10 +14,6 @@ import {} from "screens/OnboardingScreen";import { ProfileScreen, profileBackground } from "screens/ProfileScreen";import { PublicProfileScreen } from "screens/PublicProfileScreen";-import {- RecoveryKeyScreen,- recoveryKeyBackground,-} from "screens/RecoveryKeyScreen";import {SetupProfileScreen,setupProfileBackground,@@ -37,13 +33,12 @@ type Screen =| "create-account"| "login"| "verify-email"- | "recovery-key"| "setup-profile"| "share-profile-link"| "home"| "profile";-type ProfileBackScreen = "login" | "recovery-key";+type ProfileBackScreen = "login" | "verify-email";const samplePublicProfileData = {avatarUrl: "/images/sample-avatar.jpg",@@ -86,7 +81,7 @@ const Page: React.FC = () => {const [email, setEmail] = useState("[email protected]");const [profile, setProfile] = useState<SetupProfile | null>(null);const [profileBackScreen, setProfileBackScreen] =- useState<ProfileBackScreen>("recovery-key");+ useState<ProfileBackScreen>("verify-email");const openSetupProfile = (backScreen: ProfileBackScreen) => {setProfileBackScreen(backScreen);@@ -109,19 +104,17 @@ const Page: React.FC = () => {? onboardingGreen: screen == "verify-email"? verifyEmailBackground- : screen == "recovery-key"- ? recoveryKeyBackground- : screen == "login"- ? loginBackground- : screen == "setup-profile"- ? setupProfileBackground- : screen == "share-profile-link"- ? shareProfileLinkBackground- : screen == "home"- ? homeBackground- : screen == "profile"- ? profileBackground- : createAccountBackground;+ : screen == "login"+ ? loginBackground+ : screen == "setup-profile"+ ? setupProfileBackground+ : screen == "share-profile-link"+ ? shareProfileLinkBackground+ : screen == "home"+ ? homeBackground+ : screen == "profile"+ ? profileBackground+ : createAccountBackground;return (<>@@ -173,13 +166,7 @@ const Page: React.FC = () => {email={email}onBack={() => setScreen("create-account")}onChangeEmail={() => setScreen("create-account")}- onVerify={() => setScreen("recovery-key")}- />- )}- {screen == "recovery-key" && (- <RecoveryKeyScreen- onBack={() => setScreen("verify-email")}- onNext={() => openSetupProfile("recovery-key")}+ onVerify={() => openSetupProfile("verify-email")}/>)}{screen == "setup-profile" && (diff --git a/web/apps/social/src/screens/RecoveryKeyScreen.tsx b/web/apps/social/src/screens/RecoveryKeyScreen.tsxdeleted file mode 100644index 365efd6aad..0000000000--- a/web/apps/social/src/screens/RecoveryKeyScreen.tsx+++ /dev/null@@ -1,313 +0,0 @@-import { Box } from "@mui/material";-import React from "react";--export const recoveryKeyBackground = "#FAFAFA";--const green = "#08C225";-const textBase = "#000";-const textMuted = "#666";-const paleGreen = "#E7F6E9";--const mockRecoveryKeyCardText =- "Capture your wildest ideas, jot down quirky thoughts, or record memories you want to cherish. Let your imagination run free and splatter your creativity on the page!";--interface RecoveryKeyScreenProps {- onBack: () => void;- onNext?: () => void;-}--const BackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);--const PlusIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 18, width: 18 }}- >- <path- d="M12 5V19M5 12H19"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);--export const RecoveryKeyScreen: React.FC<RecoveryKeyScreenProps> = ({- onBack,- onNext,-}) => (- <Box- component="main"- sx={{- bgcolor: recoveryKeyBackground,- color: textBase,- display: "grid",- minHeight: "100svh",- overflow: "hidden",- placeItems: { xs: "stretch", sm: "start center" },- }}- >- <Box- sx={{- bgcolor: recoveryKeyBackground,- boxSizing: "border-box",- display: "flex",- flexDirection: "column",- minHeight: "100svh",- mx: "auto",- pb: "120px",- px: 3,- width: "100%",- "@media (min-width: 600px)": { maxWidth: 375 },- }}- >- <Box- component="header"- sx={{- display: "grid",- gridTemplateColumns: "42px 1fr 42px",- height: 42,- mt: "32px",- width: "100%",- }}- >- <Box- component="button"- type="button"- aria-label="Back"- onClick={onBack}- sx={{- alignItems: "center",- bgcolor: "transparent",- border: 0,- color: textBase,- cursor: "pointer",- display: "flex",- height: 42,- justifyContent: "flex-start",- p: 0,- width: 42,- "&:focus-visible": {- borderRadius: "50%",- outline: `2px solid ${green}`,- outlineOffset: 2,- },- }}- >- <BackIcon />- </Box>- <Box- component="h1"- sx={{- alignSelf: "center",- fontFamily: '"Inter Variable", Inter, sans-serif',- fontSize: 20,- fontWeight: 600,- justifySelf: "center",- lineHeight: "28px",- m: 0,- whiteSpace: "nowrap",- }}- >- Recovery Key- </Box>- <Box />- </Box>-- <Box- sx={{- alignItems: "center",- display: "flex",- flexDirection: "column",- gap: "40px",- mt: "40px",- width: "100%",- }}- >- <Box- component="img"- alt=""- src="/images/recovery-key.svg"- sx={{ height: 82, width: 101 }}- />-- <Box- sx={{- alignItems: "center",- display: "flex",- flexDirection: "column",- gap: "24px",- width: "100%",- }}- >- <Box- sx={{- display: "flex",- flexDirection: "column",- fontFamily: '"Inter Variable", Inter, sans-serif',- fontSize: 14,- fontWeight: 500,- gap: "8px",- lineHeight: "20px",- textAlign: "center",- width: "100%",- }}- >- <Box sx={{ color: textBase }}>- If you forget your password, the only way you can- recover your data is with this key.- </Box>- <Box- sx={{ color: textMuted, mx: "auto", maxWidth: 298 }}- >- Please save this key in a safe place.- </Box>- </Box>-- <Box- component="button"- type="button"- aria-label="Recovery key actions"- sx={{- bgcolor: green,- border: 0,- borderRadius: "20px",- color: "white",- cursor: "pointer",- display: "flex",- flexDirection: "column",- gap: "12px",- p: "20px",- textAlign: "left",- width: "100%",- "&:focus-visible": {- outline: `2px solid ${green}`,- outlineOffset: 3,- },- }}- >- <Box- sx={{- alignItems: "flex-start",- display: "flex",- gap: "4px",- width: "100%",- }}- >- <Box- sx={{- flex: "1 1 0",- fontFamily:- '"Inter Variable", Inter, sans-serif',- fontSize: 14,- fontWeight: 500,- lineHeight: "20px",- minWidth: 0,- }}- >- {mockRecoveryKeyCardText}- </Box>- <Box- sx={{- alignItems: "center",- color: textBase,- display: "flex",- flexShrink: 0,- height: 38,- justifyContent: "center",- width: 38,- }}- >- <PlusIcon />- </Box>- </Box>- <Box- sx={{- alignItems: "center",- alignSelf: "stretch",- bgcolor: paleGreen,- borderRadius: "20px",- color: green,- display: "flex",- fontFamily:- '"Inter Variable", Inter, sans-serif',- fontSize: 14,- fontWeight: 500,- height: 48,- justifyContent: "center",- lineHeight: "20px",- px: 3,- }}- >- Share key- </Box>- </Box>- </Box>- </Box>-- <Box- sx={{- bgcolor: recoveryKeyBackground,- bottom: 0,- boxSizing: "border-box",- left: "50%",- maxWidth: 375,- p: 3,- position: "fixed",- transform: "translateX(-50%)",- width: "100%",- }}- >- <Box- component="button"- type="button"- onClick={onNext}- sx={{- alignItems: "center",- bgcolor: green,- border: 0,- borderRadius: "20px",- color: "white",- cursor: onNext ? "pointer" : "default",- display: "flex",- fontFamily: '"Inter Variable", Inter, sans-serif',- fontSize: 14,- fontWeight: 500,- height: 48,- justifyContent: "center",- lineHeight: "20px",- p: "14px 24px",- width: "100%",- "&:focus-visible": {- outline: `2px solid ${green}`,- outlineOffset: 3,- },- "&:hover": onNext ? { bgcolor: "#07AE22" } : undefined,- }}- >- Next- </Box>- </Box>- </Box>- </Box>-);