From f89e3793ecaebde6ed0c99b045a36846da875f6f Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 16 Aug 2024 17:58:52 +0530 Subject: [PATCH 1/2] Hide People header until we start showing clusters --- .../Search/SearchBar/searchInput/MenuWithPeople.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx index 56dbd305fb..103dddaae8 100644 --- a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx +++ b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx @@ -2,7 +2,6 @@ import { PeopleList } from "@/new/photos/components/PeopleList"; import { isMLEnabled } from "@/new/photos/services/ml"; import { Row } from "@ente/shared/components/Container"; import { Box, styled } from "@mui/material"; -import { t } from "i18next"; import { components } from "react-select"; import { Suggestion, SuggestionType } from "types/search"; @@ -36,12 +35,13 @@ const MenuWithPeople = (props) => { return ( - {((isMLEnabled() && indexStatus) || + {/* TODO: Hide People header until we start showing cgroups + {((isMLEnabled() && indexStatus) || (people && people.length > 0)) && ( {t("PEOPLE")} - )} + )} */} {isMLEnabled() && indexStatus && ( {indexStatusSuggestion.label} From 0a5959730115bdbffc284468c064a8506c75f1f1 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 16 Aug 2024 18:07:22 +0530 Subject: [PATCH 2/2] Padding at the top --- .../SearchBar/searchInput/MenuWithPeople.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx index 103dddaae8..25aa944d8e 100644 --- a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx +++ b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx @@ -2,6 +2,7 @@ import { PeopleList } from "@/new/photos/components/PeopleList"; import { isMLEnabled } from "@/new/photos/services/ml"; import { Row } from "@ente/shared/components/Container"; import { Box, styled } from "@mui/material"; +import { t } from "i18next"; import { components } from "react-select"; import { Suggestion, SuggestionType } from "types/search"; @@ -35,13 +36,16 @@ const MenuWithPeople = (props) => { return ( - {/* TODO: Hide People header until we start showing cgroups - {((isMLEnabled() && indexStatus) || - (people && people.length > 0)) && ( - - {t("PEOPLE")} - - )} */} + {isMLEnabled() && + indexStatus && + (people && people.length > 0 ? ( + + {t("PEOPLE")} + + ) : ( + + ))} + {isMLEnabled() && indexStatus && ( {indexStatusSuggestion.label}