diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx index ed7ae74945..eefbfd572c 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 { SingleInputDialogTest } from "@/new/photos/components/SingleInputFormV2"; import { areOnlySystemCollections, collectionsSortBy, @@ -107,6 +108,7 @@ export const GalleryBarAndListHeader: React.FC = ({ const [openCollectionShareView, setOpenCollectionShareView] = useState(false); const [openAlbumCastDialog, setOpenAlbumCastDialog] = useState(false); + const [openPeopleSelector, setOpenPeopleSelector] = useState(false); const [collectionsSortBy, setCollectionsSortBy] = useCollectionsSortByLocalState("updation-time-desc"); @@ -190,6 +192,13 @@ export const GalleryBarAndListHeader: React.FC = ({ people, ]); + // TODO-Cluster + useEffect(() => { + if (process.env.NEXT_PUBLIC_ENTE_WIP_CL) { + setOpenPeopleSelector(true); + } + }, []); + if (shouldBeHidden) { return <>; } @@ -239,6 +248,10 @@ export const GalleryBarAndListHeader: React.FC = ({ onClose={() => setOpenAlbumCastDialog(false)} collection={activeCollection} /> + setOpenPeopleSelector(false)} + /> ); }; diff --git a/web/packages/new/photos/components/SingleInputFormV2.tsx b/web/packages/new/photos/components/SingleInputFormV2.tsx new file mode 100644 index 0000000000..2d747f6026 --- /dev/null +++ b/web/packages/new/photos/components/SingleInputFormV2.tsx @@ -0,0 +1,47 @@ +import { Dialog, DialogContent, DialogTitle, TextField } from "@mui/material"; +import React from "react"; +import type { DialogVisibilityProps } from "./mui/Dialog"; + +/** + * A TextField and two buttons. + */ +export const SingleInputFormV2: React.FC = () => { + return ( +
+ +
+ ); +}; + +export const SingleInputDialogTest: React.FC = ({ + open, + onClose, +}) => { + // const handleSubmit: SingleInputFormProps["callback"] = async ( + // inputValue, + // setFieldError, + // ) => { + // try { + // await onSubmit(inputValue); + // onClose(); + // } catch (e) { + // log.error(`Error when submitting value ${inputValue}`, e); + // setFieldError(t("UNKNOWN_ERROR")); + // } + // }; + + return ( + + {"Title"} + + + + + ); +};