From 3b6dabcd7c50d9665cbaf2f1737a8e4239bf9471 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Mon, 9 Nov 2026 14:18:07 -0500 Subject: [PATCH] feat(ui): add global search button to the phone header --- frontend/src/components/MobileTopBar.jsx | 16 ++++++++++++---- frontend/src/i18n/locales/ar.json | 4 ++++ frontend/src/i18n/locales/bn.json | 4 ++++ frontend/src/i18n/locales/de.json | 4 ++++ frontend/src/i18n/locales/en.json | 4 ++++ frontend/src/i18n/locales/es.json | 4 ++++ frontend/src/i18n/locales/fr.json | 4 ++++ frontend/src/i18n/locales/id.json | 4 ++++ frontend/src/i18n/locales/it.json | 4 ++++ frontend/src/i18n/locales/ko.json | 4 ++++ frontend/src/i18n/locales/pl.json | 4 ++++ frontend/src/i18n/locales/pt.json | 4 ++++ frontend/src/i18n/locales/ru.json | 4 ++++ frontend/src/i18n/locales/th.json | 4 ++++ frontend/src/i18n/locales/tr.json | 4 ++++ frontend/src/i18n/locales/vi.json | 4 ++++ frontend/src/i18n/locales/zh-Hans.json | 4 ++++ frontend/src/i18n/locales/zh-Hant.json | 4 ++++ 18 files changed, 80 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/MobileTopBar.jsx b/frontend/src/components/MobileTopBar.jsx index ce8c96c8..5d6f0974 100644 --- a/frontend/src/components/MobileTopBar.jsx +++ b/frontend/src/components/MobileTopBar.jsx @@ -1,9 +1,8 @@ -import { Menu, Plus, X } from 'lucide-react'; +import { Menu, Plus, Search, X } from 'lucide-react'; import { t } from '../i18n/t'; import { useTheme } from '../contexts/useTheme.js'; import ServerKitLogo from './ServerKitLogo'; import NotificationBell from './NotificationBell'; -import QuickCreate from './QuickCreate'; import { Button as SharedButton } from '@/components/ui/button'; import { useRegisteredPrimaryAction } from '../contexts/pagePrimaryAction.js'; @@ -45,7 +44,16 @@ const MobileTopBar = ({ navOpen, onToggle }) => { {brandName}
- {primary ? ( + window.dispatchEvent(new CustomEvent('serverkit:open-palette'))} + > + + {primary && ( { > - ) : } + )}
diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json index fd8ffa01..7d167c6a 100644 --- a/frontend/src/i18n/locales/ar.json +++ b/frontend/src/i18n/locales/ar.json @@ -7910,6 +7910,10 @@ "users": "المستخدمين", "workspaceBrandColor": "لون العلامة التجارية لمساحة العمل", "workspaceCreated": "تم إنشاء مساحة العمل" + }, + "mobileSearch": { + "label": "بحث", + "title": "البحث في كل شيء (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/bn.json b/frontend/src/i18n/locales/bn.json index a2d57197..f8a941b3 100644 --- a/frontend/src/i18n/locales/bn.json +++ b/frontend/src/i18n/locales/bn.json @@ -7910,6 +7910,10 @@ "users": "ব্যবহারকারীদের", "workspaceBrandColor": "কর্মক্ষেত্র ব্র্যান্ডের রঙ", "workspaceCreated": "ওয়ার্কস্পেস তৈরি করা হয়েছে" + }, + "mobileSearch": { + "label": "অনুসন্ধান", + "title": "সবকিছু অনুসন্ধান করুন (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json index 8213f5d4..052ecc5e 100644 --- a/frontend/src/i18n/locales/de.json +++ b/frontend/src/i18n/locales/de.json @@ -7910,6 +7910,10 @@ "users": "Benutzer", "workspaceBrandColor": "Markenfarbe des Arbeitsbereichs", "workspaceCreated": "Arbeitsbereich erstellt" + }, + "mobileSearch": { + "label": "Suchen", + "title": "Alles durchsuchen (Strg K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 7519ce78..0f5f08ce 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -3837,6 +3837,10 @@ "yourDatabaseIsAt": "Your database is at", "yourSchemaAlreadyMatchesThisRepairs": "Your schema already matches {{value}}; this repairs the version pointer{{value2}}." }, + "mobileSearch": { + "label": "Search", + "title": "Search everything (Ctrl K)" + }, "modals": { "anyHost": "% (any host)", "attachServiceHint": "Optional. An attached database is listed on the service and is cleaned up with it.", diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json index aa3374cb..989dc0c1 100644 --- a/frontend/src/i18n/locales/es.json +++ b/frontend/src/i18n/locales/es.json @@ -7911,6 +7911,10 @@ "users": "Usuarios", "workspaceBrandColor": "Color de marca del espacio de trabajo", "workspaceCreated": "Espacio de trabajo creado" + }, + "mobileSearch": { + "label": "Buscar", + "title": "Buscar en todo (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/fr.json b/frontend/src/i18n/locales/fr.json index 7dbf8a5f..c5a925b0 100644 --- a/frontend/src/i18n/locales/fr.json +++ b/frontend/src/i18n/locales/fr.json @@ -7910,6 +7910,10 @@ "users": "Utilisateurs", "workspaceBrandColor": "Couleur de la marque de l'espace de travail", "workspaceCreated": "Espace de travail créé" + }, + "mobileSearch": { + "label": "Rechercher", + "title": "Tout rechercher (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/id.json b/frontend/src/i18n/locales/id.json index 0deb3725..53bcba89 100644 --- a/frontend/src/i18n/locales/id.json +++ b/frontend/src/i18n/locales/id.json @@ -7910,6 +7910,10 @@ "users": "Pengguna", "workspaceBrandColor": "Warna merek ruang kerja", "workspaceCreated": "Ruang kerja dibuat" + }, + "mobileSearch": { + "label": "Cari", + "title": "Cari semuanya (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/it.json b/frontend/src/i18n/locales/it.json index 35d70d00..b502b7bd 100644 --- a/frontend/src/i18n/locales/it.json +++ b/frontend/src/i18n/locales/it.json @@ -7910,6 +7910,10 @@ "users": "Utenti", "workspaceBrandColor": "Colore del marchio dell'area di lavoro", "workspaceCreated": "Area di lavoro creata" + }, + "mobileSearch": { + "label": "Cerca", + "title": "Cerca ovunque (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json index f443a27d..e86e7248 100644 --- a/frontend/src/i18n/locales/ko.json +++ b/frontend/src/i18n/locales/ko.json @@ -7910,6 +7910,10 @@ "users": "사용자", "workspaceBrandColor": "워크스페이스 브랜드 색상", "workspaceCreated": "작업공간이 생성되었습니다." + }, + "mobileSearch": { + "label": "검색", + "title": "전체 검색 (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/pl.json b/frontend/src/i18n/locales/pl.json index be143d55..101d38c6 100644 --- a/frontend/src/i18n/locales/pl.json +++ b/frontend/src/i18n/locales/pl.json @@ -7910,6 +7910,10 @@ "users": "Użytkownicy", "workspaceBrandColor": "Kolor marki Workspace", "workspaceCreated": "Utworzono obszar roboczy" + }, + "mobileSearch": { + "label": "Szukaj", + "title": "Szukaj wszędzie (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/pt.json b/frontend/src/i18n/locales/pt.json index c2da6733..224b725f 100644 --- a/frontend/src/i18n/locales/pt.json +++ b/frontend/src/i18n/locales/pt.json @@ -7910,6 +7910,10 @@ "users": "Usuários", "workspaceBrandColor": "Cor da marca do espaço de trabalho", "workspaceCreated": "Espaço de trabalho criado" + }, + "mobileSearch": { + "label": "Pesquisar", + "title": "Pesquisar tudo (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/ru.json b/frontend/src/i18n/locales/ru.json index 309072fa..7e9eeaab 100644 --- a/frontend/src/i18n/locales/ru.json +++ b/frontend/src/i18n/locales/ru.json @@ -7910,6 +7910,10 @@ "users": "Пользователи", "workspaceBrandColor": "Фирменный цвет рабочего пространства", "workspaceCreated": "Рабочая область создана" + }, + "mobileSearch": { + "label": "Поиск", + "title": "Поиск везде (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/th.json b/frontend/src/i18n/locales/th.json index 28985eb8..af4c36fb 100644 --- a/frontend/src/i18n/locales/th.json +++ b/frontend/src/i18n/locales/th.json @@ -7910,6 +7910,10 @@ "users": "ผู้ใช้", "workspaceBrandColor": "สีของแบรนด์พื้นที่ทำงาน", "workspaceCreated": "สร้างพื้นที่ทำงานแล้ว" + }, + "mobileSearch": { + "label": "ค้นหา", + "title": "ค้นหาทุกอย่าง (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/tr.json b/frontend/src/i18n/locales/tr.json index 9a793f13..5fb988a0 100644 --- a/frontend/src/i18n/locales/tr.json +++ b/frontend/src/i18n/locales/tr.json @@ -7910,6 +7910,10 @@ "users": "Kullanıcılar", "workspaceBrandColor": "Çalışma alanı marka rengi", "workspaceCreated": "Çalışma alanı oluşturuldu" + }, + "mobileSearch": { + "label": "Ara", + "title": "Her yerde ara (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/vi.json b/frontend/src/i18n/locales/vi.json index ec51356a..b055a75c 100644 --- a/frontend/src/i18n/locales/vi.json +++ b/frontend/src/i18n/locales/vi.json @@ -7910,6 +7910,10 @@ "users": "Người dùng", "workspaceBrandColor": "Màu sắc thương hiệu không gian làm việc", "workspaceCreated": "Đã tạo không gian làm việc" + }, + "mobileSearch": { + "label": "Tìm kiếm", + "title": "Tìm mọi thứ (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/zh-Hans.json b/frontend/src/i18n/locales/zh-Hans.json index b79a7c37..55663a3f 100644 --- a/frontend/src/i18n/locales/zh-Hans.json +++ b/frontend/src/i18n/locales/zh-Hans.json @@ -7910,6 +7910,10 @@ "users": "用户", "workspaceBrandColor": "工作空间品牌颜色", "workspaceCreated": "工作区已创建" + }, + "mobileSearch": { + "label": "搜索", + "title": "搜索全部 (Ctrl K)" } }, "auth": { diff --git a/frontend/src/i18n/locales/zh-Hant.json b/frontend/src/i18n/locales/zh-Hant.json index a95be96b..bcfe0d88 100644 --- a/frontend/src/i18n/locales/zh-Hant.json +++ b/frontend/src/i18n/locales/zh-Hant.json @@ -7910,6 +7910,10 @@ "users": "使用者", "workspaceBrandColor": "工作區品牌色彩", "workspaceCreated": "工作區已建立" + }, + "mobileSearch": { + "label": "搜尋", + "title": "搜尋全部 (Ctrl K)" } }, "auth": {