diff --git a/components/search/__tests__/search-filter-panel.test.tsx b/components/search/__tests__/search-filter-panel.test.tsx index c4f654ea5..4f02cc9cf 100644 --- a/components/search/__tests__/search-filter-panel.test.tsx +++ b/components/search/__tests__/search-filter-panel.test.tsx @@ -79,12 +79,12 @@ describe('SearchFilterPanel', () => { expect(screen.queryByRole('button', { name: /clear_all/ })).toBeNull(); }); - it('clears everything and closes on Done or Enter', () => { + it('clears everything and closes on Search or Enter', () => { const { onClearAll, onDone } = renderPanel({ subject: 'invoice' }); fireEvent.click(screen.getByRole('button', { name: /clear_all/ })); expect(onClearAll).toHaveBeenCalledTimes(1); fireEvent.submit(screen.getByLabelText('subject').closest('form')!); - fireEvent.click(screen.getByRole('button', { name: 'done' })); + fireEvent.click(screen.getByRole('button', { name: 'search' })); expect(onDone).toHaveBeenCalledTimes(2); }); }); diff --git a/components/search/search-filter-panel.tsx b/components/search/search-filter-panel.tsx index 3b91e0fa1..9d9b2080e 100644 --- a/components/search/search-filter-panel.tsx +++ b/components/search/search-filter-panel.tsx @@ -15,7 +15,7 @@ interface SearchFilterPanelProps { filters: SearchFilters; onChange: (patch: Partial, mode: FilterChangeMode) => void; onClearAll: () => void; - /** Runs any pending search and closes the panel (Done, or Enter in a field). */ + /** Runs any pending search and closes the panel (Search, or Enter in a field). */ onDone: () => void; /** The folder picker, shared with Mountain View's form. */ folderSelect?: ReactNode; @@ -62,7 +62,7 @@ function sizePresetOf(filters: SearchFilters): string { * Every criterion is in view at once, labelled on the left; the yes/no ones * are on/off chips, the date and size offer the usual ranges with a custom * one behind them. Changes run the search as they are made, so the list - * behind already shows the result when Done closes the panel. + * behind already shows the result when Search closes the panel. */ export function SearchFilterPanel({ filters, onChange, onClearAll, onDone, folderSelect }: SearchFilterPanelProps) { const t = useTranslations("advanced_search"); @@ -247,7 +247,7 @@ export function SearchFilterPanel({ filters, onChange, onClearAll, onDone, folde )} diff --git a/locales/ar/common.json b/locales/ar/common.json index abb0b3c3a..f5c7b2c7d 100644 --- a/locales/ar/common.json +++ b/locales/ar/common.json @@ -5001,7 +5001,6 @@ "any_size": "أي حجم", "larger_than_mb": "أكبر من {size} ميغابايت", "custom_size": "حجم مخصص", - "done": "تم", "name_or_address": "الاسم أو العنوان" }, "welcome": { diff --git a/locales/ca/common.json b/locales/ca/common.json index 7a79939d2..c5e8f90dc 100644 --- a/locales/ca/common.json +++ b/locales/ca/common.json @@ -5001,7 +5001,6 @@ "any_size": "Qualsevol mida", "larger_than_mb": "Més de {size} MB", "custom_size": "Mida personalitzada", - "done": "Fet", "name_or_address": "Nom o adreça" }, "welcome": { diff --git a/locales/cs/common.json b/locales/cs/common.json index 2bb0818cc..470fff17a 100644 --- a/locales/cs/common.json +++ b/locales/cs/common.json @@ -4871,7 +4871,6 @@ "any_size": "Libovolná velikost", "larger_than_mb": "Větší než {size} MB", "custom_size": "Vlastní velikost", - "done": "Hotovo", "name_or_address": "Jméno nebo adresa" }, "welcome": { diff --git a/locales/da/common.json b/locales/da/common.json index dad06620e..7a3de8339 100644 --- a/locales/da/common.json +++ b/locales/da/common.json @@ -5001,7 +5001,6 @@ "any_size": "Alle størrelser", "larger_than_mb": "Større end {size} MB", "custom_size": "Tilpasset størrelse", - "done": "Færdig", "name_or_address": "Navn eller adresse" }, "welcome": { diff --git a/locales/de/common.json b/locales/de/common.json index 5f0adf407..08a5dfc6e 100644 --- a/locales/de/common.json +++ b/locales/de/common.json @@ -4871,7 +4871,6 @@ "any_size": "Beliebig", "larger_than_mb": "Größer als {size} MB", "custom_size": "Eigene Größe", - "done": "Fertig", "name_or_address": "Name oder Adresse" }, "welcome": { diff --git a/locales/en/common.json b/locales/en/common.json index 243c1a1f8..0ac5922d9 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -5001,7 +5001,6 @@ "any_size": "Any size", "larger_than_mb": "Larger than {size} MB", "custom_size": "Custom size", - "done": "Done", "name_or_address": "Name or address" }, "welcome": { diff --git a/locales/es/common.json b/locales/es/common.json index ae9bda45e..6752de642 100644 --- a/locales/es/common.json +++ b/locales/es/common.json @@ -4871,7 +4871,6 @@ "any_size": "Cualquier tamaño", "larger_than_mb": "Más de {size} MB", "custom_size": "Tamaño personalizado", - "done": "Listo", "name_or_address": "Nombre o dirección" }, "welcome": { diff --git a/locales/et/common.json b/locales/et/common.json index 1e4d42b81..f1c378c57 100644 --- a/locales/et/common.json +++ b/locales/et/common.json @@ -5001,7 +5001,6 @@ "any_size": "Iga suurus", "larger_than_mb": "Suurem kui {size} MB", "custom_size": "Kohandatud suurus", - "done": "Valmis", "name_or_address": "Nimi või aadress" }, "welcome": { diff --git a/locales/fa/common.json b/locales/fa/common.json index 65663686c..2da9a6e5a 100644 --- a/locales/fa/common.json +++ b/locales/fa/common.json @@ -5001,7 +5001,6 @@ "any_size": "هر اندازه", "larger_than_mb": "بزرگ‌تر از {size} مگابایت", "custom_size": "اندازه دلخواه", - "done": "انجام شد", "name_or_address": "نام یا نشانی" }, "welcome": { diff --git a/locales/fr/common.json b/locales/fr/common.json index 514b20378..c41f6a286 100644 --- a/locales/fr/common.json +++ b/locales/fr/common.json @@ -4871,7 +4871,6 @@ "any_size": "Toutes tailles", "larger_than_mb": "Plus de {size} Mo", "custom_size": "Taille personnalisée", - "done": "Terminé", "name_or_address": "Nom ou adresse" }, "welcome": { diff --git a/locales/he/common.json b/locales/he/common.json index a7baace39..dee262172 100644 --- a/locales/he/common.json +++ b/locales/he/common.json @@ -4789,7 +4789,6 @@ "any_size": "כל גודל", "larger_than_mb": "גדול מ-{size} MB", "custom_size": "גודל מותאם", - "done": "סיום", "name_or_address": "שם או כתובת" }, "welcome": { diff --git a/locales/hu/common.json b/locales/hu/common.json index d719d7f79..2acb340f5 100644 --- a/locales/hu/common.json +++ b/locales/hu/common.json @@ -5001,7 +5001,6 @@ "any_size": "Bármilyen méret", "larger_than_mb": "Nagyobb mint {size} MB", "custom_size": "Egyéni méret", - "done": "Kész", "name_or_address": "Név vagy cím" }, "welcome": { diff --git a/locales/it/common.json b/locales/it/common.json index fd2423aa8..3c24fa252 100644 --- a/locales/it/common.json +++ b/locales/it/common.json @@ -4871,7 +4871,6 @@ "any_size": "Qualsiasi dimensione", "larger_than_mb": "Più di {size} MB", "custom_size": "Dimensione personalizzata", - "done": "Fatto", "name_or_address": "Nome o indirizzo" }, "welcome": { diff --git a/locales/ja/common.json b/locales/ja/common.json index e077191e5..a192cfc9b 100644 --- a/locales/ja/common.json +++ b/locales/ja/common.json @@ -4871,7 +4871,6 @@ "any_size": "サイズ指定なし", "larger_than_mb": "{size} MB より大きい", "custom_size": "サイズを指定", - "done": "完了", "name_or_address": "名前またはアドレス" }, "welcome": { diff --git a/locales/ko/common.json b/locales/ko/common.json index bf85cc43c..42a1e7baf 100644 --- a/locales/ko/common.json +++ b/locales/ko/common.json @@ -4871,7 +4871,6 @@ "any_size": "모든 크기", "larger_than_mb": "{size}MB 초과", "custom_size": "크기 직접 지정", - "done": "완료", "name_or_address": "이름 또는 주소" }, "welcome": { diff --git a/locales/lv/common.json b/locales/lv/common.json index 1d670880b..9b30806e2 100644 --- a/locales/lv/common.json +++ b/locales/lv/common.json @@ -4871,7 +4871,6 @@ "any_size": "Jebkurš izmērs", "larger_than_mb": "Lielāks par {size} MB", "custom_size": "Pielāgots izmērs", - "done": "Gatavs", "name_or_address": "Vārds vai adrese" }, "welcome": { diff --git a/locales/mn/common.json b/locales/mn/common.json index d9759deed..5cb6a933f 100644 --- a/locales/mn/common.json +++ b/locales/mn/common.json @@ -5001,7 +5001,6 @@ "any_size": "Ямар ч хэмжээ", "larger_than_mb": "{size} MB-аас их", "custom_size": "Өөрийн хэмжээ", - "done": "Болсон", "name_or_address": "Нэр эсвэл хаяг" }, "welcome": { diff --git a/locales/nb/common.json b/locales/nb/common.json index 2fafd10a2..708cf47ab 100644 --- a/locales/nb/common.json +++ b/locales/nb/common.json @@ -5001,7 +5001,6 @@ "any_size": "Alle størrelser", "larger_than_mb": "Større enn {size} MB", "custom_size": "Egendefinert størrelse", - "done": "Ferdig", "name_or_address": "Navn eller adresse" }, "welcome": { diff --git a/locales/nl/common.json b/locales/nl/common.json index 27e3bfcee..0290e9e32 100644 --- a/locales/nl/common.json +++ b/locales/nl/common.json @@ -4871,7 +4871,6 @@ "any_size": "Elke grootte", "larger_than_mb": "Groter dan {size} MB", "custom_size": "Aangepaste grootte", - "done": "Klaar", "name_or_address": "Naam of adres" }, "welcome": { diff --git a/locales/pl/common.json b/locales/pl/common.json index be06b4fda..897ef6039 100644 --- a/locales/pl/common.json +++ b/locales/pl/common.json @@ -4871,7 +4871,6 @@ "any_size": "Dowolny rozmiar", "larger_than_mb": "Większe niż {size} MB", "custom_size": "Własny rozmiar", - "done": "Gotowe", "name_or_address": "Imię lub adres" }, "welcome": { diff --git a/locales/pt/common.json b/locales/pt/common.json index 596a7a982..73f060dbd 100644 --- a/locales/pt/common.json +++ b/locales/pt/common.json @@ -4871,7 +4871,6 @@ "any_size": "Qualquer tamanho", "larger_than_mb": "Maior que {size} MB", "custom_size": "Tamanho personalizado", - "done": "Concluído", "name_or_address": "Nome ou endereço" }, "welcome": { diff --git a/locales/ro/common.json b/locales/ro/common.json index b1d462048..26633ecc4 100644 --- a/locales/ro/common.json +++ b/locales/ro/common.json @@ -5001,7 +5001,6 @@ "any_size": "Orice dimensiune", "larger_than_mb": "Mai mare de {size} MB", "custom_size": "Dimensiune personalizată", - "done": "Gata", "name_or_address": "Nume sau adresă" }, "welcome": { diff --git a/locales/ru/common.json b/locales/ru/common.json index a5e3acf71..b0d758057 100644 --- a/locales/ru/common.json +++ b/locales/ru/common.json @@ -4871,7 +4871,6 @@ "any_size": "Любой размер", "larger_than_mb": "Больше {size} МБ", "custom_size": "Свой размер", - "done": "Готово", "name_or_address": "Имя или адрес" }, "welcome": { diff --git a/locales/sk/common.json b/locales/sk/common.json index dcb14ff6a..46e9c0440 100644 --- a/locales/sk/common.json +++ b/locales/sk/common.json @@ -5001,7 +5001,6 @@ "any_size": "Ľubovoľná veľkosť", "larger_than_mb": "Väčšie ako {size} MB", "custom_size": "Vlastná veľkosť", - "done": "Hotovo", "name_or_address": "Meno alebo adresa" }, "welcome": { diff --git a/locales/th/common.json b/locales/th/common.json index 881359531..98dff5de8 100644 --- a/locales/th/common.json +++ b/locales/th/common.json @@ -1036,7 +1036,6 @@ "any_size": "ทุกขนาด", "larger_than_mb": "ใหญ่กว่า {size} MB", "custom_size": "กำหนดขนาดเอง", - "done": "เสร็จสิ้น", "name_or_address": "ชื่อหรือที่อยู่" }, "global_search": { diff --git a/locales/tr/common.json b/locales/tr/common.json index 50e40029e..7110da678 100644 --- a/locales/tr/common.json +++ b/locales/tr/common.json @@ -5001,7 +5001,6 @@ "any_size": "Herhangi bir boyut", "larger_than_mb": "{size} MB'tan büyük", "custom_size": "Özel boyut", - "done": "Bitti", "name_or_address": "Ad veya adres" }, "welcome": { diff --git a/locales/uk/common.json b/locales/uk/common.json index 25c7531de..7e9164679 100644 --- a/locales/uk/common.json +++ b/locales/uk/common.json @@ -4871,7 +4871,6 @@ "any_size": "Будь-який розмір", "larger_than_mb": "Більше {size} МБ", "custom_size": "Власний розмір", - "done": "Готово", "name_or_address": "Ім'я або адреса" }, "welcome": { diff --git a/locales/zh-TW/common.json b/locales/zh-TW/common.json index 031e647f1..1d61146b2 100644 --- a/locales/zh-TW/common.json +++ b/locales/zh-TW/common.json @@ -5001,7 +5001,6 @@ "any_size": "任意大小", "larger_than_mb": "大於 {size} MB", "custom_size": "自訂大小", - "done": "完成", "name_or_address": "姓名或地址" }, "welcome": { diff --git a/locales/zh/common.json b/locales/zh/common.json index bc30a8250..da51c1acf 100644 --- a/locales/zh/common.json +++ b/locales/zh/common.json @@ -4871,7 +4871,6 @@ "any_size": "任意大小", "larger_than_mb": "大于 {size} MB", "custom_size": "自定义大小", - "done": "完成", "name_or_address": "姓名或地址" }, "welcome": {