feat(dashboard): search every trip by title, date or a place on it (#2190)

This commit is contained in:
Maurice
2026-10-01 13:30:44 +02:00
parent 99c62878f3
commit 8c37597bd7
38 changed files with 372 additions and 10 deletions
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'نسخة',
'dashboard.restore': 'استعادة',
'dashboard.archived': 'مؤرشفة',
'dashboard.search.placeholder': 'ابحث عن رحلات أو أماكن',
'dashboard.search.label': 'ابحث في كل الرحلات بالعنوان أو التاريخ أو المكان',
'dashboard.search.clear': 'مسح البحث',
'dashboard.search.empty': 'لا توجد رحلة تطابق «{query}»',
'dashboard.status.ongoing': 'جارية',
'dashboard.status.today': 'اليوم',
'dashboard.status.tomorrow': 'غدًا',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'nüsxə',
'dashboard.restore': 'Bərpa et',
'dashboard.archived': 'Arxivləşdirilib',
'dashboard.search.placeholder': 'Səfər və ya yer axtar',
'dashboard.search.label': 'Bütün səfərləri ad, tarix və ya yerə görə axtar',
'dashboard.search.clear': 'Axtarışı təmizlə',
'dashboard.search.empty': '“{query}” üzrə səfər tapılmadı',
'dashboard.status.ongoing': 'Davam edir',
'dashboard.status.today': 'Bu gün',
'dashboard.status.tomorrow': 'Sabah',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'cópia',
'dashboard.restore': 'Restaurar',
'dashboard.archived': 'Arquivada',
'dashboard.search.placeholder': 'Buscar viagens ou lugares',
'dashboard.search.label': 'Buscar em todas as viagens por título, data ou lugar',
'dashboard.search.clear': 'Limpar busca',
'dashboard.search.empty': 'Nenhuma viagem corresponde a “{query}”',
'dashboard.status.ongoing': 'Em andamento',
'dashboard.status.today': 'Hoje',
'dashboard.status.tomorrow': 'Amanhã',
+4
View File
@@ -36,6 +36,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'còpia',
'dashboard.restore': 'Restaura',
'dashboard.archived': 'Arxivat',
'dashboard.search.placeholder': 'Cerca viatges o llocs',
'dashboard.search.label': 'Cerca tots els viatges per títol, data o lloc',
'dashboard.search.clear': 'Esborra la cerca',
'dashboard.search.empty': 'Cap viatge coincideix amb «{query}»',
'dashboard.status.ongoing': 'En curs',
'dashboard.status.today': 'Avui',
'dashboard.status.tomorrow': 'Demà',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'kopie',
'dashboard.restore': 'Obnovit',
'dashboard.archived': 'Archivováno',
'dashboard.search.placeholder': 'Hledat výlety nebo místa',
'dashboard.search.label': 'Prohledat všechny výlety podle názvu, data nebo místa',
'dashboard.search.clear': 'Vymazat hledání',
'dashboard.search.empty': 'Žádný výlet neodpovídá „{query}“',
'dashboard.status.ongoing': 'Probíhající',
'dashboard.status.today': 'Dnes',
'dashboard.status.tomorrow': 'Zítra',
+4
View File
@@ -40,6 +40,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'Kopie',
'dashboard.restore': 'Wiederherstellen',
'dashboard.archived': 'Archiviert',
'dashboard.search.placeholder': 'Trips oder Orte suchen',
'dashboard.search.label': 'Alle Trips nach Titel, Datum oder Ort durchsuchen',
'dashboard.search.clear': 'Suche leeren',
'dashboard.search.empty': 'Kein Trip passt zu „{query}“',
'dashboard.status.ongoing': 'Laufend',
'dashboard.status.today': 'Heute',
'dashboard.status.tomorrow': 'Morgen',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'copy',
'dashboard.restore': 'Restore',
'dashboard.archived': 'Archived',
'dashboard.search.placeholder': 'Search trips or places',
'dashboard.search.label': 'Search all trips by title, date or place',
'dashboard.search.clear': 'Clear search',
'dashboard.search.empty': 'No trip matches “{query}”',
'dashboard.status.ongoing': 'Ongoing',
'dashboard.status.today': 'Today',
'dashboard.status.tomorrow': 'Tomorrow',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'copia',
'dashboard.restore': 'Restaurar',
'dashboard.archived': 'Archivado',
'dashboard.search.placeholder': 'Buscar viajes o lugares',
'dashboard.search.label': 'Buscar en todos los viajes por título, fecha o lugar',
'dashboard.search.clear': 'Borrar búsqueda',
'dashboard.search.empty': 'Ningún viaje coincide con «{query}»',
'dashboard.status.ongoing': 'En curso',
'dashboard.status.today': 'Hoy',
'dashboard.status.tomorrow': 'Mañana',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'koopia',
'dashboard.restore': 'Taasta',
'dashboard.archived': 'Arhiveeritud',
'dashboard.search.placeholder': 'Otsi reise või kohti',
'dashboard.search.label': 'Otsi kõiki reise pealkirja, kuupäeva või koha järgi',
'dashboard.search.clear': 'Tühjenda otsing',
'dashboard.search.empty': 'Ükski reis ei vasta otsingule „{query}“',
'dashboard.status.ongoing': 'Käimas',
'dashboard.status.today': 'Täna',
'dashboard.status.tomorrow': 'Homme',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'copie',
'dashboard.restore': 'Restaurer',
'dashboard.archived': 'Archivé',
'dashboard.search.placeholder': 'Rechercher voyages ou lieux',
'dashboard.search.label': 'Rechercher tous les voyages par titre, date ou lieu',
'dashboard.search.clear': 'Effacer la recherche',
'dashboard.search.empty': 'Aucun voyage ne correspond à « {query} »',
'dashboard.status.ongoing': 'En cours',
'dashboard.status.today': "Aujourd'hui",
'dashboard.status.tomorrow': 'Demain',
+4
View File
@@ -35,6 +35,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'αντιγραφή',
'dashboard.restore': 'Επαναφορά',
'dashboard.archived': 'Αρχειοθετημένο',
'dashboard.search.placeholder': 'Αναζήτηση ταξιδιών ή τοποθεσιών',
'dashboard.search.label': 'Αναζήτηση όλων των ταξιδιών με τίτλο, ημερομηνία ή τοποθεσία',
'dashboard.search.clear': 'Καθαρισμός αναζήτησης',
'dashboard.search.empty': 'Κανένα ταξίδι δεν ταιριάζει με «{query}»',
'dashboard.status.ongoing': 'Τρέχων',
'dashboard.status.today': 'Σήμερα',
'dashboard.status.tomorrow': 'Αύριο',
+4
View File
@@ -40,6 +40,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'másolat',
'dashboard.restore': 'Visszaállítás',
'dashboard.archived': 'Archivált',
'dashboard.search.placeholder': 'Utak vagy helyek keresése',
'dashboard.search.label': 'Összes út keresése cím, dátum vagy hely szerint',
'dashboard.search.clear': 'Keresés törlése',
'dashboard.search.empty': 'Egy út sem felel meg ennek: „{query}”',
'dashboard.status.ongoing': 'Folyamatban',
'dashboard.status.today': 'Ma',
'dashboard.status.tomorrow': 'Holnap',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'salinan',
'dashboard.restore': 'Pulihkan',
'dashboard.archived': 'Diarsipkan',
'dashboard.search.placeholder': 'Cari perjalanan atau tempat',
'dashboard.search.label': 'Cari semua perjalanan menurut judul, tanggal, atau tempat',
'dashboard.search.clear': 'Hapus pencarian',
'dashboard.search.empty': 'Tidak ada perjalanan yang cocok dengan “{query}”',
'dashboard.status.ongoing': 'Sedang berlangsung',
'dashboard.status.today': 'Hari ini',
'dashboard.status.tomorrow': 'Besok',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'copia',
'dashboard.restore': 'Ripristina',
'dashboard.archived': 'Archiviati',
'dashboard.search.placeholder': 'Cerca viaggi o luoghi',
'dashboard.search.label': 'Cerca tutti i viaggi per titolo, data o luogo',
'dashboard.search.clear': 'Cancella ricerca',
'dashboard.search.empty': 'Nessun viaggio corrisponde a «{query}»',
'dashboard.status.ongoing': 'In corso',
'dashboard.status.today': 'Oggi',
'dashboard.status.tomorrow': 'Domani',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'コピー',
'dashboard.restore': '復元',
'dashboard.archived': 'アーカイブ済み',
'dashboard.search.placeholder': '旅行や場所を検索',
'dashboard.search.label': 'タイトル・日付・場所ですべての旅行を検索',
'dashboard.search.clear': '検索をクリア',
'dashboard.search.empty': '「{query}」に一致する旅行はありません',
'dashboard.status.ongoing': '進行中',
'dashboard.status.today': '今日',
'dashboard.status.tomorrow': '明日',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': '사본',
'dashboard.restore': '복원',
'dashboard.archived': '보관됨',
'dashboard.search.placeholder': '여행 또는 장소 검색',
'dashboard.search.label': '제목, 날짜, 장소로 모든 여행 검색',
'dashboard.search.clear': '검색 지우기',
'dashboard.search.empty': '“{query}”와(과) 일치하는 여행이 없습니다',
'dashboard.status.ongoing': '진행 중',
'dashboard.status.today': '오늘',
'dashboard.status.tomorrow': '내일',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'kopie',
'dashboard.restore': 'Herstellen',
'dashboard.archived': 'Gearchiveerd',
'dashboard.search.placeholder': 'Zoek trips of plekken',
'dashboard.search.label': 'Doorzoek alle trips op titel, datum of plek',
'dashboard.search.clear': 'Zoekopdracht wissen',
'dashboard.search.empty': 'Geen trip komt overeen met ‘{query}’',
'dashboard.status.ongoing': 'Lopend',
'dashboard.status.today': 'Vandaag',
'dashboard.status.tomorrow': 'Morgen',
+4
View File
@@ -36,6 +36,10 @@ const dashboard: TranslationStrings = {
'dashboard.archive': 'Archiwizuj',
'dashboard.restore': 'Przywróć',
'dashboard.archived': 'Zarchiwizowana',
'dashboard.search.placeholder': 'Szukaj podróży lub miejsc',
'dashboard.search.label': 'Przeszukaj wszystkie podróże po tytule, dacie lub miejscu',
'dashboard.search.clear': 'Wyczyść wyszukiwanie',
'dashboard.search.empty': 'Żadna podróż nie pasuje do „{query}”',
'dashboard.status.ongoing': 'W trakcie',
'dashboard.status.today': 'Dzisiaj',
'dashboard.status.tomorrow': 'Jutro',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'копия',
'dashboard.restore': 'Восстановить',
'dashboard.archived': 'В архиве',
'dashboard.search.placeholder': 'Поиск поездок или мест',
'dashboard.search.label': 'Искать все поездки по названию, дате или месту',
'dashboard.search.clear': 'Очистить поиск',
'dashboard.search.empty': 'Нет поездок по запросу «{query}»',
'dashboard.status.ongoing': 'В процессе',
'dashboard.status.today': 'Сегодня',
'dashboard.status.tomorrow': 'Завтра',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'kópia',
'dashboard.restore': 'Obnoviť',
'dashboard.archived': 'Archivované',
'dashboard.search.placeholder': 'Hľadať výlety alebo miesta',
'dashboard.search.label': 'Prehľadať všetky výlety podľa názvu, dátumu alebo miesta',
'dashboard.search.clear': 'Vymazať hľadanie',
'dashboard.search.empty': 'Žiadny výlet nezodpovedá „{query}“',
'dashboard.status.ongoing': 'Prebiehajúca',
'dashboard.status.today': 'Dnes',
'dashboard.status.tomorrow': 'Zajtra',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'kopiera',
'dashboard.restore': 'Återställ',
'dashboard.archived': 'Arkiverad',
'dashboard.search.placeholder': 'Sök resor eller platser',
'dashboard.search.label': 'Sök bland alla resor på titel, datum eller plats',
'dashboard.search.clear': 'Rensa sökning',
'dashboard.search.empty': 'Ingen resa matchar ”{query}”',
'dashboard.status.ongoing': 'Pågående',
'dashboard.status.today': 'Idag',
'dashboard.status.tomorrow': 'I morgon',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': "คัดลอก",
'dashboard.restore': "คืนค่า",
'dashboard.archived': "เก็บถาวรแล้ว",
'dashboard.search.placeholder': 'ค้นหาทริปหรือสถานที่',
'dashboard.search.label': 'ค้นหาทริปทั้งหมดตามชื่อ วันที่ หรือสถานที่',
'dashboard.search.clear': 'ล้างการค้นหา',
'dashboard.search.empty': 'ไม่มีทริปที่ตรงกับ “{query}”',
'dashboard.status.ongoing': "กำลังดำเนินการอยู่",
'dashboard.status.today': "วันนี้",
'dashboard.status.tomorrow': "พรุ่งนี้",
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'kopya',
'dashboard.restore': 'Geri al',
'dashboard.archived': 'Arşivlendi',
'dashboard.search.placeholder': 'Gezi veya yer ara',
'dashboard.search.label': 'Tüm gezilerde başlık, tarih veya yere göre ara',
'dashboard.search.clear': 'Aramayı temizle',
'dashboard.search.empty': '“{query}” ile eşleşen gezi yok',
'dashboard.status.ongoing': 'Devam ediyor',
'dashboard.status.today': 'Bugün',
'dashboard.status.tomorrow': 'Yarın',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'копія',
'dashboard.restore': 'Відновити',
'dashboard.archived': 'В архіві',
'dashboard.search.placeholder': 'Шукати поїздки або місця',
'dashboard.search.label': 'Шукати всі поїздки за назвою, датою або місцем',
'dashboard.search.clear': 'Очистити пошук',
'dashboard.search.empty': 'Немає поїздок за запитом «{query}»',
'dashboard.status.ongoing': 'Триває',
'dashboard.status.today': 'Сьогодні',
'dashboard.status.tomorrow': 'Завтра',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': 'sao chép',
'dashboard.restore': 'Khôi phục',
'dashboard.archived': 'Đã lưu trữ',
'dashboard.search.placeholder': 'Tìm chuyến đi hoặc địa điểm',
'dashboard.search.label': 'Tìm mọi chuyến đi theo tên, ngày hoặc địa điểm',
'dashboard.search.clear': 'Xóa tìm kiếm',
'dashboard.search.empty': 'Không có chuyến đi nào khớp với “{query}”',
'dashboard.status.ongoing': 'Đang thực hiện',
'dashboard.status.today': 'Hôm nay',
'dashboard.status.tomorrow': 'Ngày mai',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': '副本',
'dashboard.restore': '恢復',
'dashboard.archived': '已歸檔',
'dashboard.search.placeholder': '搜尋行程或地點',
'dashboard.search.label': '依標題、日期或地點搜尋所有行程',
'dashboard.search.clear': '清除搜尋',
'dashboard.search.empty': '沒有與「{query}」相符的行程',
'dashboard.status.ongoing': '進行中',
'dashboard.status.today': '今天',
'dashboard.status.tomorrow': '明天',
+4
View File
@@ -39,6 +39,10 @@ const dashboard: TranslationStrings = {
'dashboard.copySuffix': '副本',
'dashboard.restore': '恢复',
'dashboard.archived': '已归档',
'dashboard.search.placeholder': '搜索行程或地点',
'dashboard.search.label': '按标题、日期或地点搜索所有行程',
'dashboard.search.clear': '清除搜索',
'dashboard.search.empty': '没有与“{query}”匹配的行程',
'dashboard.status.ongoing': '进行中',
'dashboard.status.today': '今天',
'dashboard.status.tomorrow': '明天',
+13
View File
@@ -162,3 +162,16 @@ export const activeTripResponseSchema = z.object({
trip: activeTripSchema.nullable(),
});
export type ActiveTripResponse = z.infer<typeof activeTripResponseSchema>;
/**
* Trips whose places match a dashboard search (#2190), so "that diner in
* Philly" finds the trip it was on. A few matching place names per trip ride
* along for the card; title and date matching stays on the client.
*/
export const tripSearchResponseSchema = z.object({
matches: z.array(z.object({
trip_id: z.number(),
places: z.array(z.string()),
})),
});
export type TripSearchResponse = z.infer<typeof tripSearchResponseSchema>;