π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Form tweaks
Manav Rathi72dc52672464
diff --git a/web/apps/photos/src/pages/cluster-debug.tsx b/web/apps/photos/src/pages/cluster-debug.tsxindex ae2ea6b225..6337daffd1 100644--- a/web/apps/photos/src/pages/cluster-debug.tsx+++ b/web/apps/photos/src/pages/cluster-debug.tsx@@ -102,8 +102,10 @@ interface OptionsFormProps {}const OptionsForm: React.FC<OptionsFormProps> = ({ onCluster }) => {+ // Formik converts nums to a string on edit.const toFloat = (n: number | string) =>typeof n == "string" ? parseFloat(n) : n;+const { values, handleSubmit, handleChange, isSubmitting } =useFormik<ClusteringOpts>({initialValues: {@@ -123,8 +125,6 @@ const OptionsForm: React.FC<OptionsFormProps> = ({ onCluster }) => {}),});- console.log("rendering form", { isSubmitting });-return (<form onSubmit={handleSubmit}><Stack>@@ -178,7 +178,11 @@ const OptionsForm: React.FC<OptionsFormProps> = ({ onCluster }) => {/></Stack><Box marginInlineStart={"auto"} p={1}>- <Button color="secondary" type="submit">+ <Button+ color="secondary"+ type="submit"+ disabled={isSubmitting}+ >Cluster</Button></Box>@@ -335,8 +339,8 @@ const ClusterResHeader: React.FC<ClusterResHeaderProps> = ({ clusterRes }) => {return (<Stack m={1}>- <Typography variant="small" mb={1}>- {`${clusters.length} clusters in ${(timeTakenMs / 1000).toFixed(0)} seconds. Faces total ${totalFaceCount} filtered ${filteredFaceCount} clustered ${clusteredFaceCount} unclustered ${unclusteredFaceCount}.`}+ <Typography mb={1} variant="small">+ {`${clusters.length} clusters in ${(timeTakenMs / 1000).toFixed(0)} seconds β’ ${totalFaceCount} faces ${filteredFaceCount} filtered ${clusteredFaceCount} clustered ${unclusteredFaceCount} unclustered`}</Typography><Typography variant="small" color="text.muted">Showing only top 30 clusters, bottom 30 clusters, and