π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fw
Manav Rathi16e1ab204907
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex e76124ac2d..6aceae2e9b 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -770,7 +770,7 @@ const AddParticipantForm: React.FC<AddParticipantFormProps> = (props) => {{props.secondaryButtonAction && (<FocusVisibleButtononClick={props.secondaryButtonAction}- size="large"+ fullWidthcolor="secondary"sx={{"&&&": {diff --git a/web/apps/photos/src/components/DeleteAccountModal.tsx b/web/apps/photos/src/components/DeleteAccountModal.tsxindex d4198c755e..fd9c06cacc 100644--- a/web/apps/photos/src/components/DeleteAccountModal.tsx+++ b/web/apps/photos/src/components/DeleteAccountModal.tsx@@ -186,7 +186,7 @@ const DeleteAccountModal = ({ open, onClose }: Iprops) => {<Stack spacing={"8px"}><LoadingButtontype="submit"- size="large"+ fullWidthcolor="critical"disabled={!acceptDataDeletion}loading={loading}@@ -194,8 +194,8 @@ const DeleteAccountModal = ({ open, onClose }: Iprops) => {{t("delete_account_confirm")}</LoadingButton><FocusVisibleButton- size="large"- color={"secondary"}+ fullWidth+ color="secondary"onClick={onClose}>{t("cancel")}diff --git a/web/apps/photos/src/components/ExportFinished.tsx b/web/apps/photos/src/components/ExportFinished.tsxindex 7ffef9d036..154e0621ac 100644--- a/web/apps/photos/src/components/ExportFinished.tsx+++ b/web/apps/photos/src/components/ExportFinished.tsx@@ -1,14 +1,9 @@+import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import { formattedNumber } from "@/base/i18n";import { EnteFile } from "@/media/file";import { SpaceBetweenFlex } from "@ente/shared/components/Container";import { formatDateTime } from "@ente/shared/time/format";-import {- Button,- DialogActions,- DialogContent,- Stack,- Typography,-} from "@mui/material";+import { DialogActions, DialogContent, Stack, Typography } from "@mui/material";import { t } from "i18next";import { useState } from "react";import ExportPendingList from "./ExportPendingList";@@ -65,12 +60,20 @@ export default function ExportFinished(props: Props) {</Stack></DialogContent><DialogActions>- <Button color="secondary" size="large" onClick={props.onHide}>+ <FocusVisibleButton+ fullWidth+ color="secondary"+ onClick={props.onHide}+ >{t("close")}- </Button>- <Button size="large" color="primary" onClick={props.onResync}>+ </FocusVisibleButton>+ <FocusVisibleButton+ fullWidth+ color="primary"+ onClick={props.onResync}+ >{t("export_again")}- </Button>+ </FocusVisibleButton></DialogActions><ExportPendingListpendingExports={props.pendingExports}diff --git a/web/apps/photos/src/components/ExportInProgress.tsx b/web/apps/photos/src/components/ExportInProgress.tsxindex e1fbe5379d..9fd81296b5 100644--- a/web/apps/photos/src/components/ExportInProgress.tsx+++ b/web/apps/photos/src/components/ExportInProgress.tsx@@ -1,10 +1,10 @@+import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import {FlexWrapper,VerticallyCentered,} from "@ente/shared/components/Container";import {Box,- Button,DialogActions,DialogContent,LinearProgress,@@ -85,20 +85,20 @@ export default function ExportInProgress(props: Props) {</VerticallyCentered></DialogContent><DialogActions>- <Button+ <FocusVisibleButton+ fullWidthcolor="secondary"- size="large"onClick={props.closeExportDialog}>{t("close")}- </Button>- <Button- size="large"+ </FocusVisibleButton>+ <FocusVisibleButton+ fullWidthcolor="critical"onClick={props.stopExport}>{t("STOP_EXPORT")}- </Button>+ </FocusVisibleButton></DialogActions></>);diff --git a/web/apps/photos/src/components/ExportInit.tsx b/web/apps/photos/src/components/ExportInit.tsxindex 37535bed51..ba9ab4c4f5 100644--- a/web/apps/photos/src/components/ExportInit.tsx+++ b/web/apps/photos/src/components/ExportInit.tsx@@ -1,4 +1,5 @@-import { Button, DialogActions, DialogContent } from "@mui/material";+import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";+import { DialogActions, DialogContent } from "@mui/material";import { t } from "i18next";interface Props {@@ -8,9 +9,13 @@ export default function ExportInit({ startExport }: Props) {return (<DialogContent><DialogActions>- <Button size="large" color="accent" onClick={startExport}>+ <FocusVisibleButton+ fullWidth+ color="accent"+ onClick={startExport}+ >{t("start")}- </Button>+ </FocusVisibleButton></DialogActions></DialogContent>);diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsxindex a7662ed8b9..55891ceaaa 100644--- a/web/apps/photos/src/components/Sidebar/index.tsx+++ b/web/apps/photos/src/components/Sidebar/index.tsx@@ -381,7 +381,7 @@ function MemberSubscriptionManage({ open, userDetails, onClose }) {/><FlexWrapper px={2}><Button- size="large"+ fullWidthvariant="outlined"color="critical"onClick={confirmLeaveFamily}diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsxindex 5e1fa461af..681441734f 100644--- a/web/apps/photos/src/pages/index.tsx+++ b/web/apps/photos/src/pages/index.tsx@@ -2,6 +2,7 @@ import { Login } from "@/accounts/components/Login";import { SignUp } from "@/accounts/components/SignUp";import { EnteLogo } from "@/base/components/EnteLogo";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";+import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import log from "@/base/log";import { albumsAppOrigin, customAPIHost } from "@/base/origins";import { DevSettings } from "@/new/photos/components/DevSettings";@@ -12,7 +13,7 @@ import localForage from "@ente/shared/storage/localForage";import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";import { getToken } from "@ente/shared/storage/localStorage/helpers";import { SESSION_KEYS, getKey } from "@ente/shared/storage/sessionStorage";-import { Box, Button, Stack, Typography, styled } from "@mui/material";+import { Box, Stack, Typography, styled } from "@mui/material";import { t } from "i18next";import { useRouter } from "next/router";@@ -123,16 +124,15 @@ export default function LandingPage() {<Slideshow /></SlideshowPanel><MobileBox>- <Button+ <FocusVisibleButtoncolor="accent"- size="large"onClick={redirectToSignupPage}>{t("new_to_ente")}- </Button>- <Button size="large" onClick={redirectToLoginPage}>+ </FocusVisibleButton>+ <FocusVisibleButton onClick={redirectToLoginPage}>{t("existing_user")}- </Button>+ </FocusVisibleButton><MobileBoxFooter {...{ host }} /></MobileBox><DesktopBox>diff --git a/web/packages/base/components/SingleInputForm.tsx b/web/packages/base/components/SingleInputForm.tsxindex 3690e14619..5b97c50109 100644--- a/web/packages/base/components/SingleInputForm.tsx+++ b/web/packages/base/components/SingleInputForm.tsx@@ -99,14 +99,14 @@ export const SingleInputForm: React.FC<SingleInputFormProps> = ({/><Stack direction="row" sx={{ gap: "12px" }}><FocusVisibleButton- size="large"+ fullWidthcolor="secondary"onClick={onCancel}>{t("cancel")}</FocusVisibleButton><LoadingButton- size="large"+ fullWidthcolor="accent"type="submit"loading={formik.isSubmitting}diff --git a/web/packages/new/photos/components/sidebar/MLSettings.tsx b/web/packages/new/photos/components/sidebar/MLSettings.tsxindex 3d73789064..a85d174021 100644--- a/web/packages/new/photos/components/sidebar/MLSettings.tsx+++ b/web/packages/new/photos/components/sidebar/MLSettings.tsx@@ -1,5 +1,6 @@import { MenuItemGroup } from "@/base/components/Menu";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";+import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import {NestedSidebarDrawer,SidebarDrawerTitlebar,@@ -117,10 +118,10 @@ export const EnableML: React.FC<EnableMLProps> = ({{t("ml_search_description")}</Typography><Stack sx={{ gap: "8px" }}>- <Button color={"accent"} size="large" onClick={onEnable}>+ <Button fullWidth color="accent" onClick={onEnable}>{t("enable")}</Button>- <Button color="secondary" size="large" onClick={moreDetails}>+ <Button fullWidth color="secondary" onClick={moreDetails}>{t("more_details")}</Button></Stack>@@ -212,17 +213,21 @@ export const FaceConsent: React.FC<FaceConsentProps> = ({/></FormGroup><Stack sx={{ gap: "8px", px: "8px" }}>- <Button- color={"accent"}- size="large"+ <FocusVisibleButton+ fullWidth+ color="accent"disabled={!acceptTerms}onClick={onConsent}>{t("ml_consent")}- </Button>- <Button color={"secondary"} size="large" onClick={onCancel}>+ </FocusVisibleButton>+ <FocusVisibleButton+ fullWidth+ color="secondary"+ onClick={onCancel}+ >{t("cancel")}- </Button>+ </FocusVisibleButton></Stack></Stack>);diff --git a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsxindex 906a1d3219..fa11496767 100644--- a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx+++ b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx@@ -99,7 +99,7 @@ const SetupDrawerContents: React.FC<ContentsProps> = ({ onRootClose }) => {>{t("two_factor_info")}</Typography>- <FocusVisibleButton color="accent" size="large" onClick={configure}>+ <FocusVisibleButton color="accent" fullWidth onClick={configure}>{t("enable_two_factor")}</FocusVisibleButton></Stack>diff --git a/web/packages/shared/components/SingleInputForm.tsx b/web/packages/shared/components/SingleInputForm.tsxindex 6185b45779..1ff8b2e471 100644--- a/web/packages/shared/components/SingleInputForm.tsx+++ b/web/packages/shared/components/SingleInputForm.tsx@@ -179,7 +179,7 @@ export default function SingleInputForm(props: SingleInputFormProps) {{props.secondaryButtonAction && (<FocusVisibleButtononClick={props.secondaryButtonAction}- size="large"+ fullWidthcolor="secondary"sx={{"&&&": {@@ -201,7 +201,7 @@ export default function SingleInputForm(props: SingleInputFormProps) {...buttonSx,},}}- size="large"+ fullWidthvariant="contained"color="accent"type="submit"diff --git a/web/packages/shared/themes/components.ts b/web/packages/shared/themes/components.tsindex dfd7728dea..d5c141def2 100644--- a/web/packages/shared/themes/components.ts+++ b/web/packages/shared/themes/components.ts@@ -144,9 +144,6 @@ export const getComponents = (fontSize: "20px",},},- sizeLarge: {- width: "100%",- },},},MuiInputBase: {