Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Scaffold

Manav Rathi70051b66b72e
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
index fdc2900fc8..53646284a5 100644
--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
@@ -4,6 +4,7 @@ import {
type GalleryBarImplProps,
} from "@/new/photos/components/Gallery/BarImpl";
import { PeopleHeader } from "@/new/photos/components/Gallery/PeopleHeader";
+import { PeopleSelector } from "@/new/photos/components/PeopleSelector";
import {
areOnlySystemCollections,
collectionsSortBy,
@@ -107,6 +108,7 @@ export const GalleryBarAndListHeader: React.FC<CollectionsProps> = ({
const [openCollectionShareView, setOpenCollectionShareView] =
useState(false);
const [openAlbumCastDialog, setOpenAlbumCastDialog] = useState(false);
+ const [openPeopleSelector, setOpenPeopleSelector] = useState(false);
const [collectionsSortBy, setCollectionsSortBy] =
useCollectionsSortByLocalState("updation-time-desc");
@@ -189,6 +191,13 @@ export const GalleryBarAndListHeader: React.FC<CollectionsProps> = ({
activePerson,
]);
+ // TODO-Cluster
+ useEffect(() => {
+ if (process.env.NEXT_PUBLIC_ENTE_WIP_CL) {
+ setOpenPeopleSelector(true);
+ }
+ }, []);
+
if (shouldBeHidden) {
return <></>;
}
@@ -238,6 +247,10 @@ export const GalleryBarAndListHeader: React.FC<CollectionsProps> = ({
onClose={() => setOpenAlbumCastDialog(false)}
collection={activeCollection}
/>
+ <PeopleSelector
+ open={openPeopleSelector}
+ onClose={() => setOpenPeopleSelector(false)}
+ />
</>
);
};
diff --git a/web/packages/new/photos/components/PeopleSelector.tsx b/web/packages/new/photos/components/PeopleSelector.tsx
new file mode 100644
index 0000000000..cff12f9359
--- /dev/null
+++ b/web/packages/new/photos/components/PeopleSelector.tsx
@@ -0,0 +1,24 @@
+import { useIsMobileWidth } from "@/base/hooks";
+import { Dialog } from "@mui/material";
+import React from "react";
+import type { DialogVisibilityProps } from "./mui/Dialog";
+
+type PeopleSelectorProps = DialogVisibilityProps;
+
+export const PeopleSelector: React.FC<PeopleSelectorProps> = ({
+ open,
+ onClose,
+}) => {
+ const isFullScreen = useIsMobileWidth();
+
+ return (
+ <Dialog
+ {...{ open, onClose }}
+ fullWidth
+ fullScreen={isFullScreen}
+ maxWidth={"sm"}
+ >
+ Hello
+ </Dialog>
+ );
+};