π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use
Manav Rathi211171b78a70
diff --git a/web/packages/new/photos/components/gallery/BarImpl.tsx b/web/packages/new/photos/components/gallery/BarImpl.tsxindex 2e4dd67159..c4775337e9 100644--- a/web/packages/new/photos/components/gallery/BarImpl.tsx+++ b/web/packages/new/photos/components/gallery/BarImpl.tsx@@ -515,7 +515,7 @@ const CollectionBarCard: React.FC<CollectionBarCardProps> = ({onClick={() => onSelectCollectionID(collectionSummary.id)}><CardText>{collectionSummary.name}</CardText>- <CollectionBarCardIcon type={collectionSummary.type} />+ <CollectionBarCardIcon attributes={collectionSummary.attributes} /></ItemCard>{activeCollectionID === collectionSummary.id && <ActiveIndicator />}</div>@@ -532,22 +532,22 @@ const CardText: React.FC<React.PropsWithChildren> = ({ children }) => ();interface CollectionBarCardIconProps {- type: CollectionSummaryType;+ attributes: CollectionSummaryType[];}const CollectionBarCardIcon: React.FC<CollectionBarCardIconProps> = ({- type,+ attributes,}) => (<CollectionBarCardIcon_>- {type == "favorites" && <FavoriteRoundedIcon />}- {type == "archived" && (+ {attributes.includes("favorites") && <FavoriteRoundedIcon />}+ {attributes.includes("pinned") && <PushPinIcon />}+ {attributes.includes("outgoingShare") && <PeopleIcon />}+ {(attributes.includes("incomingShareViewer") ||+ attributes.includes("incomingShareCollaborator")) && <PeopleIcon />}+ {attributes.includes("sharedOnlyViaLink") && <LinkIcon />}+ {attributes.includes("archived") && (<ArchiveIcon sx={{ color: "fixed.overlayIndicatorMuted" }} />)}- {type == "outgoingShare" && <PeopleIcon />}- {(type == "incomingShareViewer" ||- type == "incomingShareCollaborator") && <PeopleIcon />}- {type == "sharedOnlyViaLink" && <LinkIcon />}- {type == "pinned" && <PushPinIcon />}</CollectionBarCardIcon_>);@@ -556,6 +556,7 @@ const CollectionBarCardIcon_ = styled(Overlay)`display: flex;justify-content: flex-start;align-items: flex-end;+ gap: 4px;& > .MuiSvgIcon-root {font-size: 20px;}diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.tsindex 37da3b9adc..72c6d31b4f 100644--- a/web/packages/new/photos/components/gallery/reducer.ts+++ b/web/packages/new/photos/components/gallery/reducer.ts@@ -1117,6 +1117,7 @@ const deriveCollectionSummaries = (...pseudoCollectionOptionsForFiles([]),id: DUMMY_UNCATEGORIZED_COLLECTION,type: "uncategorized",+ attributes: ["uncategorized"],name: t("section_uncategorized"),});}@@ -1126,6 +1127,7 @@ const deriveCollectionSummaries = (...pseudoCollectionOptionsForFiles(allSectionFiles),id: ALL_SECTION,type: "all",+ attributes: ["all"],name: t("section_all"),});collectionSummaries.set(TRASH_SECTION, {@@ -1133,6 +1135,7 @@ const deriveCollectionSummaries = (id: TRASH_SECTION,name: t("section_trash"),type: "trash",+ attributes: ["trash"],coverFile: undefined,});const archivedFiles = uniqueFilesByID(@@ -1143,6 +1146,7 @@ const deriveCollectionSummaries = (id: ARCHIVE_SECTION,name: t("section_archive"),type: "archive",+ attributes: ["archive"],coverFile: undefined,});@@ -1179,6 +1183,7 @@ const deriveHiddenCollectionSummaries = (id: HIDDEN_ITEMS_SECTION,name: t("hidden_items"),type: "hiddenItems",+ attributes: ["hiddenItems"],});return hiddenCollectionSummaries;@@ -1285,6 +1290,7 @@ const createCollectionSummaries = (collectionSummaries.set(collection.id, {id: collection.id,type,+ attributes,name,latestFile: collectionFiles?.[0],coverFile: coverFiles.get(collection.id),