π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
checkpoint
Manav Rathiebc40d1b650b
diff --git a/web/apps/photos/src/components/Collections/CollectionListBar.tsx b/web/apps/photos/src/components/Collections/CollectionListBar.tsxindex 7a7a012d13..90b997987b 100644--- a/web/apps/photos/src/components/Collections/CollectionListBar.tsx+++ b/web/apps/photos/src/components/Collections/CollectionListBar.tsx@@ -12,7 +12,7 @@ import LinkIcon from "@mui/icons-material/Link";import NavigateNextIcon from "@mui/icons-material/NavigateNext";import PeopleIcon from "@mui/icons-material/People";import PushPin from "@mui/icons-material/PushPin";-import { Box, IconButton, Typography, styled } from "@mui/material";+import { Box, IconButton, Stack, Typography, styled } from "@mui/material";import Tooltip from "@mui/material/Tooltip";import { CollectionTile } from "components/Collections/styledComponents";import {@@ -42,6 +42,14 @@ interface CollectionListBarProps {* Called when the user changes the active collection.*/setActiveCollectionID: (id?: number) => void;+ /**+ * The ID of the currently selected person (if any).+ */+ activePersonID: string | undefined;+ /**+ * Called when the user changes the active person.+ */+ setActivePersonID: (id: string | undefined) => void;/*** Called when the user selects the option to show a modal with all the* collections.@@ -66,6 +74,8 @@ export const CollectionListBar: React.FC<CollectionListBarProps> = ({isInHiddenSection,activeCollectionID,setActiveCollectionID,+ activePersonID,+ // setActivePersonIDonShowAllCollections,collectionListSortBy,setCollectionListSortBy,@@ -145,12 +155,17 @@ export const CollectionListBar: React.FC<CollectionListBarProps> = ({onCollectionClick,);+ const mode = activePersonID ? "people" : "albums";+return (<CollectionListBarWrapper><SpaceBetweenFlex mb={1}>- <Typography>- {isInHiddenSection ? t("HIDDEN_ALBUMS") : t("ALBUMS")}- </Typography>+ <Stack direction="row" gap={1}>+ <Typography color={mode == "people" ? "text.muted" : "text.base"}>+ {isInHiddenSection ? t("HIDDEN_ALBUMS") : t("ALBUMS")}+ </Typography>+ {mode == "people" && <Typography>{t("people")}</Typography>}+ </Stack>{isMobile && (<Box display="flex" alignItems={"center"} gap={1}><CollectionListSortBydiff --git a/web/apps/photos/src/components/Collections/index.tsx b/web/apps/photos/src/components/Collections/index.tsxindex e066c75b27..3927cf70c4 100644--- a/web/apps/photos/src/components/Collections/index.tsx+++ b/web/apps/photos/src/components/Collections/index.tsx@@ -150,6 +150,10 @@ export default function Collections(props: Iprops) {isInHiddenSection={isInHiddenSection}activeCollectionID={activeCollectionID}setActiveCollectionID={setActiveCollectionID}+ activePersonID={+ process.env.NEXT_PUBLIC_ENTE_WIP_CL ? "test" : undefined+ }+ setActivePersonID={(id) => console.log(id)}onShowAllCollections={openAllCollections}collectionListSortBy={collectionListSortBy}setCollectionListSortBy={setCollectionListSortBy}