Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix-codex-review

Aswin Asoka99f2deb5d68
diff --git a/desktop/changes/add-name-search.md b/desktop/changes/add-name-search.md
new file mode 100644
index 0000000000..1e00fd9110
--- /dev/null
+++ b/desktop/changes/add-name-search.md
@@ -0,0 +1 @@
+- Added search when assigning names to people.
diff --git a/web/apps/photos/src/components/gallery/PeopleHeader.tsx b/web/apps/photos/src/components/gallery/PeopleHeader.tsx
index 390b11a344..f0d3c18cd9 100644
--- a/web/apps/photos/src/components/gallery/PeopleHeader.tsx
+++ b/web/apps/photos/src/components/gallery/PeopleHeader.tsx
@@ -366,21 +366,21 @@ const AddPersonDialog: React.FC<AddPersonDialogProps> = ({
>
<Stack sx={{ gap: 1.5, padding: "10px 8px 6px 24px" }}>
<SpacedRow>
- <Typography variant="h3">{t("add_name")}</Typography>
+ <DialogTitle variant="h3" sx={{ p: 0 }}>
+ {t("add_name")}
+ </DialogTitle>
<DialogCloseIconButton onClose={handleClose} />
</SpacedRow>
<TextField
fullWidth
type="search"
size="small"
- placeholder={`${t("search")} ${t("people").toLowerCase()}...`}
+ placeholder={t("search_people")}
value={searchTerm}
onChange={(event) => setSearchTerm(event.target.value)}
autoFocus
slotProps={{
- htmlInput: {
- "aria-label": `${t("search")} ${t("people")}`,
- },
+ htmlInput: { "aria-label": t("search_people") },
input: {
startAdornment: (
<InputAdornment position="start">
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 82e92695c7..ef5d2ae9f4 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -464,6 +464,7 @@
"link_edit_disabled_for_free_accounts": "You need a paid subscription to change this link setting",
"sharing_user_does_not_exist": "Could not find a user with that email",
"search": "Search",
+ "search_people": "Search people...",
"search_results": "Search results",
"no_results": "No results found",
"no_photos_found_here": "No photos found here",