π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(CollectionSelector):add-archived-icon
Aswin Asok901371cb1345
diff --git a/web/apps/photos/src/components/CollectionSelector.tsx b/web/apps/photos/src/components/CollectionSelector.tsxindex c148459dbb..e070b643ed 100644--- a/web/apps/photos/src/components/CollectionSelector.tsx+++ b/web/apps/photos/src/components/CollectionSelector.tsx@@ -17,6 +17,7 @@ import {collectionDialogTitleSx as titleSx,} from "@/components/CollectionDialog/styles";import { CollectionsSortOptions } from "@/components/CollectionsSortOptions";+import ArchiveIcon from "@mui/icons-material/Archive";import CloseIcon from "@mui/icons-material/Close";import FavoriteIcon from "@mui/icons-material/Favorite";import PushPinIcon from "@mui/icons-material/PushPin";@@ -317,6 +318,7 @@ const CollectionSummaryButton: React.FC<CollectionSummaryButtonProps> = ({const isPinned =collectionSummary.attributes.has("pinned") ||collectionSummary.attributes.has("shareePinned");+ const isArchived = collectionSummary.attributes.has("archived");return (<ItemCard@@ -342,7 +344,7 @@ const CollectionSummaryButton: React.FC<CollectionSummaryButtonProps> = ({</Typography></Tooltip></TopGradientOverlay>- {(isFavorite || isPinned) && (+ {(isFavorite || isPinned || isArchived) && (<Boxsx={{position: "absolute",@@ -358,6 +360,9 @@ const CollectionSummaryButton: React.FC<CollectionSummaryButtonProps> = ({{isPinned && (<PushPinIcon sx={{ fontSize: 20, color: "white" }} />)}+ {isArchived && (+ <ArchiveIcon sx={{ fontSize: 20, color: "white" }} />+ )}</Box>)}</ItemCard>diff --git a/web/apps/photos/src/components/Collections/AllAlbums.tsx b/web/apps/photos/src/components/Collections/AllAlbums.tsxindex 9e0dd5d9ca..50af33191c 100644--- a/web/apps/photos/src/components/Collections/AllAlbums.tsx+++ b/web/apps/photos/src/components/Collections/AllAlbums.tsx@@ -24,6 +24,7 @@ import type { RemotePullOpts } from "@/components/gallery";import { StarIcon } from "@/components/icons/StarIcon";import { Delete02Icon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";+import ArchiveIcon from "@mui/icons-material/Archive";import ArrowForwardIcon from "@mui/icons-material/ArrowForward";import CloseIcon from "@mui/icons-material/Close";import PushPinIcon from "@mui/icons-material/PushPin";@@ -792,6 +793,7 @@ const AlbumCard: React.FC<AlbumCardProps> = ({}) => {const isFavorite = collectionSummary.type === "userFavorites";const isPinned = collectionSummary.attributes.has("pinned");+ const isArchived = collectionSummary.attributes.has("archived");return (<ItemCard@@ -810,7 +812,7 @@ const AlbumCard: React.FC<AlbumCardProps> = ({{t("photos_count", { count: collectionSummary.fileCount })}</Typography></TileTextOverlay>- {(isFavorite || isPinned) && (+ {(isFavorite || isPinned || isArchived) && (<Boxsx={{position: "absolute",@@ -826,6 +828,9 @@ const AlbumCard: React.FC<AlbumCardProps> = ({{isPinned && (<PushPinIcon sx={{ fontSize: 20, color: "white" }} />)}+ {isArchived && (+ <ArchiveIcon sx={{ fontSize: 20, color: "white" }} />+ )}</Box>)}</ItemCard>