π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tweak the debugging panel
Manav Rathid374960c353a
diff --git a/web/apps/photos/src/pages/gallery/index.tsx b/web/apps/photos/src/pages/gallery/index.tsxindex 1876fca7f4..74273eb014 100644--- a/web/apps/photos/src/pages/gallery/index.tsx+++ b/web/apps/photos/src/pages/gallery/index.tsx@@ -6,10 +6,7 @@ import {getLocalFiles,getLocalTrashedFiles,} from "@/new/photos/services/files";-import {- wipClusterEnable,- wipHasSwitchedOnceCmpAndSet,-} from "@/new/photos/services/ml";+import { wipHasSwitchedOnceCmpAndSet } from "@/new/photos/services/ml";import { EnteFile } from "@/new/photos/types/file";import { mergeMetadata } from "@/new/photos/utils/file";import { CenteredFlex } from "@ente/shared/components/Container";@@ -677,11 +674,8 @@ export default function Gallery() {// TODO-Clusterif (process.env.NEXT_PUBLIC_ENTE_WIP_CL_AUTO) {setTimeout(() => {- if (!wipHasSwitchedOnceCmpAndSet()) {- void wipClusterEnable().then(- (y) => y && router.push("cluster-debug"),- );- }+ if (!wipHasSwitchedOnceCmpAndSet())+ router.push("cluster-debug");}, 2000);}}, []);diff --git a/web/packages/new/photos/components/MLSettings.tsx b/web/packages/new/photos/components/MLSettings.tsxindex c8785110b6..dde90b5368 100644--- a/web/packages/new/photos/components/MLSettings.tsx+++ b/web/packages/new/photos/components/MLSettings.tsx@@ -340,8 +340,7 @@ const ManageML: React.FC<ManageMLProps> = ({// TODO-Clusterconst router = useRouter();- // const wipClusterNow = () => wipCluster();- const wipClusterShowNow = () => router.push("/cluster-debug");+ const wipClusterDebug = () => router.push("/cluster-debug");return (<Stack px={"16px"} py={"20px"} gap={4}>@@ -393,31 +392,16 @@ const ManageML: React.FC<ManageMLProps> = ({label={ut("Create clusters β’ internal only option",)}- onClick={wipClusterShowNow}+ onClick={wipClusterDebug}/></MenuItemGroup><MenuSectionTitletitle={ut(- "Create and show in-memory clusters. Takes ~ 1 min. Nothing will be saved or synced to remote. You can also view all clusters in the search dropdown later.",+ "Create and show in-memory clusters (not saved or synced). You can also view them in the search dropdown later.",)}/></Box>)}- {/* {showClusterOpt && (- <Box>- <MenuItemGroup>- <EnteMenuItem- label={ut("View clusters β’ internal only option")}- onClick={wipClusterShowNow}- />- </MenuItemGroup>- <MenuSectionTitle- title={ut(- "Variant of above that opens a page with debug info.",- )}- />- </Box>- )} */}</Stack>);};