π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename
Manav Rathi85143b9a2444
diff --git a/web/apps/photos/src/components/FileListWithViewer.tsx b/web/apps/photos/src/components/FileListWithViewer.tsxindex d4a206c614..18cab6f2a7 100644--- a/web/apps/photos/src/components/FileListWithViewer.tsx+++ b/web/apps/photos/src/components/FileListWithViewer.tsx@@ -79,8 +79,8 @@ export type FileListWithViewerProps = {| "user"| "isInIncomingSharedCollection"| "isInHiddenSection"- | "fileCollectionIDs"- | "allCollectionsNameByID"+ | "fileNormalCollectionIDs"+ | "collectionNameByID"| "pendingVisibilityUpdates"| "onVisualFeedback"| "onFileVisibilityUpdate"@@ -108,8 +108,8 @@ export const FileListWithViewer: React.FC<FileListWithViewerProps> = ({favoriteFileIDs,isInIncomingSharedCollection,isInHiddenSection,- fileCollectionIDs,- allCollectionsNameByID,+ fileNormalCollectionIDs,+ collectionNameByID,pendingVisibilityUpdates,setFilesDownloadProgressAttributesCreator,onFileVisibilityUpdate,@@ -221,8 +221,8 @@ export const FileListWithViewer: React.FC<FileListWithViewerProps> = ({isInHiddenSection,isInIncomingSharedCollection,favoriteFileIDs,- fileCollectionIDs,- allCollectionsNameByID,+ fileNormalCollectionIDs,+ collectionNameByID,pendingVisibilityUpdates,onVisualFeedback,onFileVisibilityUpdate,diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex cf083cc4b3..8770ab398b 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -1104,8 +1104,8 @@ const Page: React.FC = () => {setSelected={setSelected}activeCollectionID={activeCollectionID}activePersonID={activePerson?.id}- fileCollectionIDs={state.fileNormalCollectionIDs}- allCollectionsNameByID={state.collectionNameByID}+ fileNormalCollectionIDs={state.fileNormalCollectionIDs}+ collectionNameByID={state.collectionNameByID}isInIncomingSharedCollection={normalCollectionSummaries.get(activeCollectionID)?.type == "incomingShareCollaborator" ||diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsxindex 5a5873f210..7def6ae0ea 100644--- a/web/apps/photos/src/pages/shared-albums.tsx+++ b/web/apps/photos/src/pages/shared-albums.tsx@@ -522,8 +522,6 @@ export default function PublicCollectionGallery() {selected={selected}setSelected={setSelected}activeCollectionID={ALL_SECTION}- fileCollectionIDs={undefined}- allCollectionsNameByID={undefined}setFilesDownloadProgressAttributesCreator={setFilesDownloadProgressAttributesCreator}diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsxindex 2f5fb2dfce..83a0c444ca 100644--- a/web/packages/gallery/components/FileInfo.tsx+++ b/web/packages/gallery/components/FileInfo.tsx@@ -128,8 +128,8 @@ export type FileInfoProps = ModalVisibilityProps & {*/allowMap?: boolean;/**- * If set, then a clickable chip will be shown for each collection that this- * file is a part of.+ * If set, then a clickable chip will be shown for each normal collection+ * that this file is a part of.** Uses {@link fileCollectionIDs}, {@link allCollectionsNameByID} and* {@link onSelectCollection}, so all of those props should also be set for@@ -137,17 +137,18 @@ export type FileInfoProps = ModalVisibilityProps & {*/showCollections?: boolean;/**- * A map from file IDs to the IDs of the collections that they're a part of.+ * A map from file IDs to the IDs of the normal (non-hidden) collections+ * that they're a part of.** Used when {@link showCollections} is set.*/- fileCollectionIDs?: Map<number, number[]>;+ fileNormalCollectionIDs?: Map<number, number[]>;/*** A map from collection IDs to their name.** Used when {@link showCollections} is set.*/- allCollectionsNameByID?: Map<number, string>;+ collectionNameByID?: Map<number, string>;/*** Called when the action on the file info drawer has changed some the* metadata for some file, and we need to sync with remote to get our@@ -188,8 +189,8 @@ export const FileInfo: React.FC<FileInfoProps> = ({allowEdits,allowMap,showCollections,- fileCollectionIDs,- allCollectionsNameByID,+ fileNormalCollectionIDs,+ collectionNameByID,onNeedsRemoteSync,onUpdateCaption,onSelectCollection,@@ -338,14 +339,14 @@ export const FileInfo: React.FC<FileInfoProps> = ({</InfoItem>)}{showCollections &&- fileCollectionIDs &&- allCollectionsNameByID &&+ fileNormalCollectionIDs &&+ collectionNameByID &&onSelectCollection && (<Albums{...{file,- fileCollectionIDs,- allCollectionsNameByID,+ fileNormalCollectionIDs,+ collectionNameByID,onSelectCollection,}}/>@@ -1003,14 +1004,14 @@ const ExifItem = styled("div")`type AlbumsProps = Required<Pick<FileInfoProps,- "fileCollectionIDs" | "allCollectionsNameByID" | "onSelectCollection"+ "fileNormalCollectionIDs" | "collectionNameByID" | "onSelectCollection">> & { file: EnteFile };const Albums: React.FC<AlbumsProps> = ({file,- fileCollectionIDs,- allCollectionsNameByID,+ fileNormalCollectionIDs,+ collectionNameByID,onSelectCollection,}) => (<InfoItem icon={<FolderOutlinedIcon />}>@@ -1023,17 +1024,15 @@ const Albums: React.FC<AlbumsProps> = ({alignItems: "flex-start",}}>- {fileCollectionIDs+ {fileNormalCollectionIDs.get(file.id)- ?.filter((collectionID) =>- allCollectionsNameByID.has(collectionID),- )+ ?.filter((collectionID) => collectionNameByID.has(collectionID)).map((collectionID) => (<ChipButtonkey={collectionID}onClick={() => onSelectCollection(collectionID)}>- {allCollectionsNameByID.get(collectionID)}+ {collectionNameByID.get(collectionID)}</ChipButton>))}</Stack>diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsxindex a01d3db249..e767c53387 100644--- a/web/packages/gallery/components/viewer/FileViewer.tsx+++ b/web/packages/gallery/components/viewer/FileViewer.tsx@@ -256,8 +256,8 @@ export type FileViewerProps = ModalVisibilityProps & {onSaveEditedImageCopy?: ImageEditorOverlayProps["onSaveEditedCopy"];} & Pick<FileInfoProps,- | "fileCollectionIDs"- | "allCollectionsNameByID"+ | "fileNormalCollectionIDs"+ | "collectionNameByID"| "onSelectCollection"| "onSelectPerson">;@@ -277,8 +277,8 @@ export const FileViewer: React.FC<FileViewerProps> = ({isInHiddenSection,favoriteFileIDs,pendingVisibilityUpdates,- fileCollectionIDs,- allCollectionsNameByID,+ fileNormalCollectionIDs,+ collectionNameByID,onTriggerSyncWithRemote,onVisualFeedback,onToggleFavorite,@@ -909,7 +909,7 @@ export const FileViewer: React.FC<FileViewerProps> = ({onUpdateCaption={handleUpdateCaption}onSelectCollection={handleSelectCollection}onSelectPerson={handleSelectPerson}- {...{ fileCollectionIDs, allCollectionsNameByID }}+ {...{ fileNormalCollectionIDs, collectionNameByID }}/><MoreMenuopen={!!moreMenuAnchorEl}