π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename
Manav Rathic6497dcb5a14
diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsxindex 92d5435436..be7d6441d4 100644--- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx+++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx@@ -4,7 +4,7 @@ import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import log from "@/base/log";import type { Collection } from "@/media/collection";import { useSettingsSnapshot } from "@/new/photos/components/utils/use-snapshot";-import { photosDialogZIndex } from "@/new/photos/components/utils/z-index";+import { photosDialogZ } from "@/new/photos/components/utils/z-index";import {publishCastPayload,revokeAllCastTokens,@@ -134,7 +134,7 @@ export const AlbumCastDialog: React.FC<AlbumCastDialogProps> = ({open={open}onClose={onClose}title={t("cast_album_to_tv")}- sx={{ zIndex: photosDialogZIndex }}+ sx={{ zIndex: photosDialogZ }}>{view == "choose" && (<Stack sx={{ py: 1, gap: 4 }}>diff --git a/web/apps/photos/src/components/FilesDownloadProgress.tsx b/web/apps/photos/src/components/FilesDownloadProgress.tsxindex e86172afaf..89361ad8e0 100644--- a/web/apps/photos/src/components/FilesDownloadProgress.tsx+++ b/web/apps/photos/src/components/FilesDownloadProgress.tsx@@ -1,5 +1,5 @@import { Notification } from "@/new/photos/components/Notification";-import { photosDialogZIndex } from "@/new/photos/components/utils/z-index";+import { photosDialogZ } from "@/new/photos/components/utils/z-index";import { useAppContext } from "@/new/photos/types/context";import { t } from "i18next";import { GalleryContext } from "pages/gallery";@@ -120,7 +120,7 @@ export const FilesDownloadProgress: React.FC<FilesDownloadProgressProps> = ({horizontal="left"sx={{"&&": { bottom: `${index * 80 + 20}px` },- zIndex: photosDialogZIndex,+ zIndex: photosDialogZ,}}open={isFilesDownloadStarted(attributes)}onClose={handleClose(attributes)}diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsxindex 16cfc10345..525461be5c 100644--- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx@@ -29,8 +29,8 @@ import {} from "@/new/photos/components/utils/dialog";import { useSettingsSnapshot } from "@/new/photos/components/utils/use-snapshot";import {- fileInfoDrawerZIndex,- photosDialogZIndex,+ fileInfoDrawerZ,+ photosDialogZ,} from "@/new/photos/components/utils/z-index";import { tagNumericValue, type RawExifTags } from "@/new/photos/services/exif";import {@@ -392,7 +392,7 @@ const FileInfoSidebar = styled(<SidebarDrawer {...props} anchor="right" />),)({- zIndex: fileInfoDrawerZIndex,+ zIndex: fileInfoDrawerZ,});interface InfoItemProps {@@ -801,7 +801,7 @@ const FileNameEditDialog = ({};return (<TitledMiniDialog- sx={{ zIndex: photosDialogZIndex }}+ sx={{ zIndex: photosDialogZ }}open={isInEditMode}onClose={closeEditMode}title={t("rename_file")}diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsxindex 7a38a86793..79b0851690 100644--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx@@ -12,7 +12,7 @@ import log from "@/base/log";import { downloadAndRevokeObjectURL } from "@/base/utils/web";import { downloadManager } from "@/gallery/services/download";import { EnteFile } from "@/media/file";-import { photosDialogZIndex } from "@/new/photos/components/utils/z-index";+import { photosDialogZ } from "@/new/photos/components/utils/z-index";import { getLocalCollections } from "@/new/photos/services/collections";import { AppContext } from "@/new/photos/types/context";import { CenteredFlex } from "@ente/shared/components/Container";@@ -525,7 +525,7 @@ export const ImageEditorOverlay: React.FC<ImageEditorOverlayProps> = (<Backdropsx={{backgroundColor: "background.default" /* Opaque */,- zIndex: photosDialogZIndex,+ zIndex: photosDialogZ,width: "100%",}}opendiff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsxindex 422407a261..48d0366771 100644--- a/web/apps/photos/src/pages/_app.tsx+++ b/web/apps/photos/src/pages/_app.tsx@@ -26,7 +26,7 @@ import {updateReadyToInstallDialogAttributes,} from "@/new/photos/components/utils/download";import { useLoadingBar } from "@/new/photos/components/utils/use-loading-bar";-import { photosDialogZIndex } from "@/new/photos/components/utils/z-index";+import { photosDialogZ } from "@/new/photos/components/utils/z-index";import { runMigrations } from "@/new/photos/services/migration";import { initML, isMLSupported } from "@/new/photos/services/ml";import { getFamilyPortalRedirectURL } from "@/new/photos/services/user-details";@@ -181,7 +181,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {<ThemedLoadingBar ref={loadingBarRef} /><AttributedMiniDialog- sx={{ zIndex: photosDialogZIndex }}+ sx={{ zIndex: photosDialogZ }}{...miniDialogProps}/>diff --git a/web/packages/new/photos/components/PhotoDateTimePicker.tsx b/web/packages/new/photos/components/PhotoDateTimePicker.tsxindex b78a1140ad..a2dabd4cae 100644--- a/web/packages/new/photos/components/PhotoDateTimePicker.tsx+++ b/web/packages/new/photos/components/PhotoDateTimePicker.tsx@@ -6,7 +6,7 @@ import {import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";import dayjs, { Dayjs } from "dayjs";import React, { useState } from "react";-import { fileInfoDrawerZIndex } from "./utils/z-index";+import { fileInfoDrawerZ } from "./utils/z-index";interface PhotoDateTimePickerProps {/**@@ -105,7 +105,7 @@ export const PhotoDateTimePicker: React.FC<PhotoDateTimePickerProps> = ({photo viewer and the info drawer */dialog: {sx: {- zIndex: fileInfoDrawerZIndex + 1,+ zIndex: fileInfoDrawerZ + 1,},},}}diff --git a/web/packages/new/photos/components/utils/z-index.tsx b/web/packages/new/photos/components/utils/z-index.tsxindex a988a362b6..2b1529197b 100644--- a/web/packages/new/photos/components/utils/z-index.tsx+++ b/web/packages/new/photos/components/utils/z-index.tsx@@ -2,16 +2,16 @@* PhotoSwipe sets the zIndex of its "pswp" class to 1500. We need to go higher* than that for our drawers and dialogs to get them to show above it.*/-export const photoSwipeZIndex = 1500;+export const photoSwipeZ = 1500;/*** The file info drawer needs to be higher than the photo viewer.*/-export const fileInfoDrawerZIndex = photoSwipeZIndex + 1;+export const fileInfoDrawerZ = photoSwipeZ + 1;/*** Dialogs (not necessarily always) need to be higher still so to ensure they* are visible above the drawer in case they are shown in response to some* action taken in the file info drawer.*/-export const photosDialogZIndex = 1600;+export const photosDialogZ = 1600;