π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Adapt
Manav Rathi804dc98f68f0
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsxindex f6229ac003..858d54bf62 100644--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx@@ -41,6 +41,7 @@ import LocationOnOutlinedIcon from "@mui/icons-material/LocationOnOutlined";import PhotoOutlinedIcon from "@mui/icons-material/PhotoOutlined";import TextSnippetOutlinedIcon from "@mui/icons-material/TextSnippetOutlined";import VideocamOutlinedIcon from "@mui/icons-material/VideocamOutlined";+import FaceRetouchingNaturalIcon from '@mui/icons-material/FaceRetouchingNatural';import {Box,CircularProgress,@@ -273,7 +274,8 @@ export const FileInfo: React.FC<FileInfoProps> = ({}/>{isMLEnabled() && annotatedFaces.length > 0 && (- <InfoItem icon={<FolderOutlinedIcon />}>+ <InfoItem icon={<FaceRetouchingNaturalIcon />}>+ {/*t("UNIDENTIFIED_FACES") TODO-Cluster remove */}<FilePeopleListfile={file}annotatedFaceIDs={annotatedFaces}diff --git a/web/packages/new/photos/components/PeopleList.tsx b/web/packages/new/photos/components/PeopleList.tsxindex 037c2a444f..938ff4a1c9 100644--- a/web/packages/new/photos/components/PeopleList.tsx+++ b/web/packages/new/photos/components/PeopleList.tsx@@ -2,8 +2,7 @@ import { useIsSmallWidth } from "@/base/hooks";import type { EnteFile } from "@/media/file";import { faceCrop, type AnnotatedFaceID } from "@/new/photos/services/ml";import type { Person, PreviewableFace } from "@/new/photos/services/ml/people";-import { Skeleton, Typography, styled } from "@mui/material";-import { t } from "i18next";+import { Skeleton, styled } from "@mui/material";import React, { useEffect, useState } from "react";import { UnstyledButton } from "./UnstyledButton";@@ -89,46 +88,34 @@ export const FilePeopleList: React.FC<FilePeopleListProps> = ({file,annotatedFaceIDs,onSelectFace,-}) => {- if (annotatedFaceIDs.length == 0) return <></>;-- return (- <>- <Typography variant="large" p={1}>- {t("people")}- {/*t("UNIDENTIFIED_FACES") TODO-Cluster remove */}- </Typography>- <FileFaceList>- {annotatedFaceIDs.map((annotatedFaceID) => (- <AnnotatedFaceButton- key={annotatedFaceID.faceID}- onClick={() => onSelectFace(annotatedFaceID)}- >- <FaceCropImageView- faceID={annotatedFaceID.faceID}- file={file}- placeholderDimension={79}- />- </AnnotatedFaceButton>- ))}- </FileFaceList>- </>- );-};+}) => (+ <FilePeopleList_>+ {annotatedFaceIDs.map((annotatedFaceID) => (+ <AnnotatedFaceButton+ key={annotatedFaceID.faceID}+ onClick={() => onSelectFace(annotatedFaceID)}+ >+ <FaceCropImageView+ faceID={annotatedFaceID.faceID}+ file={file}+ placeholderDimension={64}+ />+ </AnnotatedFaceButton>+ ))}+ </FilePeopleList_>+);-const FileFaceList = styled("div")`+const FilePeopleList_ = styled("div")`display: flex;flex-wrap: wrap;- justify-content: center;- align-items: center;- gap: 5px;- margin: 5px;+ gap: 8px;+ margin-block-end: 5px;`;const AnnotatedFaceButton = styled(UnstyledButton)(({ theme }) => `- width: 79px;- height: 79px;+ width: 64px;+ height: 64px;border-radius: 50%;overflow: hidden;& > img {@@ -162,7 +149,7 @@ export const SuggestionFaceList: React.FC<SuggestionFaceListProps> = ({{faces.map(({ file, faceID }) => (<SuggestionFace key={faceID}><FaceCropImageView- placeholderDimension={79}+ placeholderDimension={64}{...{ file, faceID }}/></SuggestionFace>