From 3ee20711da2a46239d7ceea32cc3b18e35463291 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 3 Dec 2025 11:59:14 +0200 Subject: [PATCH] Fix metrics button missing from mobile (#637) --- .../components/Project/ProjectDetails.tsx | 33 ++++++++++--------- .../components/Shared/IconSortDropdown.tsx | 4 +-- frontend/components/Task/TaskHeader.tsx | 2 +- public/locales/ar/translation.json | 4 ++- public/locales/bg/translation.json | 4 ++- public/locales/da/translation.json | 4 ++- public/locales/de/translation.json | 4 ++- public/locales/el/translation.json | 4 ++- public/locales/en/translation.json | 2 ++ public/locales/es/translation.json | 4 ++- public/locales/fi/translation.json | 4 ++- public/locales/fr/translation.json | 4 ++- public/locales/id/translation.json | 4 ++- public/locales/it/translation.json | 4 ++- public/locales/jp/translation.json | 4 ++- public/locales/ko/translation.json | 4 ++- public/locales/nl/translation.json | 4 ++- public/locales/no/translation.json | 4 ++- public/locales/pl/translation.json | 4 ++- public/locales/pt/translation.json | 4 ++- public/locales/ro/translation.json | 4 ++- public/locales/ru/translation.json | 4 ++- public/locales/sl/translation.json | 4 ++- public/locales/sv/translation.json | 4 ++- public/locales/tr/translation.json | 4 ++- public/locales/ua/translation.json | 4 ++- public/locales/vi/translation.json | 4 ++- public/locales/zh/translation.json | 4 ++- 28 files changed, 95 insertions(+), 42 deletions(-) diff --git a/frontend/components/Project/ProjectDetails.tsx b/frontend/components/Project/ProjectDetails.tsx index 9a8cd79..82c5a52 100644 --- a/frontend/components/Project/ProjectDetails.tsx +++ b/frontend/components/Project/ProjectDetails.tsx @@ -91,11 +91,14 @@ const ProjectDetails: React.FC = () => { () => [ { value: 'status:inProgressFirst', - label: t('tasks.status', 'Status'), + label: t('sort.status', 'Status'), }, - { value: 'created_at:desc', label: 'Created at' }, - { value: 'due_date:asc', label: 'Due date' }, - { value: 'priority:desc', label: 'Priority' }, + { + value: 'created_at:desc', + label: t('sort.created_at', 'Created At'), + }, + { value: 'due_date:asc', label: t('sort.due_date', 'Due Date') }, + { value: 'priority:desc', label: t('sort.priority', 'Priority') }, ], [t] ); @@ -900,11 +903,11 @@ const ProjectDetails: React.FC = () => {
-
-
+
+
{activeTab === 'tasks' && ( -
+
= ({ {isOpen && (
= ({
{/* Task content - full width */} -
+
{/* Task Title */}
diff --git a/public/locales/ar/translation.json b/public/locales/ar/translation.json index 24b84e7..979d073 100644 --- a/public/locales/ar/translation.json +++ b/public/locales/ar/translation.json @@ -143,7 +143,9 @@ "tasks": "مهام", "showingItems": "عرض {{current}} من {{total}} عنصر", "overdue": "متأخر", - "planned": "مخطط" + "planned": "مخطط", + "open": "فتح", + "completed": "مكتمل" }, "timeline": { "activityTimeline": "جدول الأنشطة", diff --git a/public/locales/bg/translation.json b/public/locales/bg/translation.json index dcf6e74..f70ebe8 100644 --- a/public/locales/bg/translation.json +++ b/public/locales/bg/translation.json @@ -143,7 +143,9 @@ "tasks": "задачи", "showingItems": "Показване на {{current}} от {{total}} елемента", "overdue": "Просрочено", - "planned": "Планирано" + "planned": "Планирано", + "open": "Отвори", + "completed": "Завършено" }, "timeline": { "activityTimeline": "Хронология на активността", diff --git a/public/locales/da/translation.json b/public/locales/da/translation.json index 32dd15a..0c4ece3 100644 --- a/public/locales/da/translation.json +++ b/public/locales/da/translation.json @@ -143,7 +143,9 @@ "tasks": "opgaver", "showingItems": "Viser {{current}} af {{total}} elementer", "overdue": "Forsinket", - "planned": "Planlagt" + "planned": "Planlagt", + "open": "Åbn", + "completed": "Fuldført" }, "timeline": { "activityTimeline": "Aktivitets Tidslinje", diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index 29eac5b..5879f23 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -143,7 +143,9 @@ "noProject": "Kein Projekt", "unknownProject": "Unbekanntes Projekt", "tasks": "Aufgaben", - "showingItems": "{{current}} von {{total}} Elementen angezeigt" + "showingItems": "{{current}} von {{total}} Elementen angezeigt", + "open": "Öffnen", + "completed": "Abgeschlossen" }, "timeline": { "activityTimeline": "Aktivitätsverlauf", diff --git a/public/locales/el/translation.json b/public/locales/el/translation.json index 8094cca..418d007 100644 --- a/public/locales/el/translation.json +++ b/public/locales/el/translation.json @@ -356,7 +356,9 @@ "tasks": "εργασίες", "showingItems": "Εμφάνιση {{current}} από {{total}} στοιχεία", "overdue": "Υπερβολικό", - "planned": "Προγραμματισμένο" + "planned": "Προγραμματισμένο", + "open": "Άνοιγμα", + "completed": "Ολοκληρώθηκε" }, "timeline": { "activityTimeline": "Χρονοδιάγραμμα Δραστηριότητας", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index d5e668c..2fd0992 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -137,7 +137,9 @@ "none": "None" }, "show": "Show", + "open": "Open", "all": "All", + "completed": "Completed", "completedOnly": "Completed only", "notCompleted": "Not completed", "noProject": "No project", diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index ab5c480..19f160b 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -356,7 +356,9 @@ "noProject": "Sin proyecto", "unknownProject": "Proyecto desconocido", "tasks": "tareas", - "showingItems": "Mostrando {{current}} de {{total}} elementos" + "showingItems": "Mostrando {{current}} de {{total}} elementos", + "open": "Abrir", + "completed": "Completado" }, "timeline": { "activityTimeline": "Línea de Tiempo de Actividad", diff --git a/public/locales/fi/translation.json b/public/locales/fi/translation.json index 39ee4d9..be1d2c5 100644 --- a/public/locales/fi/translation.json +++ b/public/locales/fi/translation.json @@ -143,7 +143,9 @@ "tasks": "tehtävät", "showingItems": "Näytetään {{current}} / {{total}} kohdetta", "overdue": "Erääntynyt", - "planned": "Suunniteltu" + "planned": "Suunniteltu", + "open": "Avaa", + "completed": "Valmis" }, "timeline": { "activityTimeline": "Toiminta-aikajana", diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json index 5344fc7..7700dd1 100644 --- a/public/locales/fr/translation.json +++ b/public/locales/fr/translation.json @@ -143,7 +143,9 @@ "noProject": "Aucun projet", "unknownProject": "Projet inconnu", "tasks": "tâches", - "showingItems": "Affichage de {{current}} sur {{total}} éléments" + "showingItems": "Affichage de {{current}} sur {{total}} éléments", + "open": "Ouvrir", + "completed": "Terminé" }, "timeline": { "activityTimeline": "Chronologie d'Activité", diff --git a/public/locales/id/translation.json b/public/locales/id/translation.json index c6cc99d..8a8265c 100644 --- a/public/locales/id/translation.json +++ b/public/locales/id/translation.json @@ -143,7 +143,9 @@ "tasks": "tugas", "showingItems": "Menampilkan {{current}} dari {{total}} item", "overdue": "Terlambat", - "planned": "Direncanakan" + "planned": "Direncanakan", + "open": "Buka", + "completed": "Selesai" }, "timeline": { "activityTimeline": "Garis Waktu Aktivitas", diff --git a/public/locales/it/translation.json b/public/locales/it/translation.json index e1f231e..5243afe 100644 --- a/public/locales/it/translation.json +++ b/public/locales/it/translation.json @@ -143,7 +143,9 @@ "tasks": "attività", "showingItems": "Visualizzazione di {{current}} su {{total}} elementi", "overdue": "Scaduto", - "planned": "Pianificato" + "planned": "Pianificato", + "open": "Apri", + "completed": "Completato" }, "timeline": { "activityTimeline": "Timeline delle Attività", diff --git a/public/locales/jp/translation.json b/public/locales/jp/translation.json index a2c8e70..5b998bc 100644 --- a/public/locales/jp/translation.json +++ b/public/locales/jp/translation.json @@ -143,7 +143,9 @@ "tasks": "タスク", "showingItems": "{{total}}件中{{current}}件を表示", "overdue": "期限切れ", - "planned": "計画中" + "planned": "計画中", + "open": "開く", + "completed": "完了" }, "timeline": { "activityTimeline": "アクティビティタイムライン", diff --git a/public/locales/ko/translation.json b/public/locales/ko/translation.json index 5fa6741..812232a 100644 --- a/public/locales/ko/translation.json +++ b/public/locales/ko/translation.json @@ -143,7 +143,9 @@ "tasks": "작업", "showingItems": "{{total}}개 중 {{current}}개 표시", "overdue": "연체", - "planned": "계획됨" + "planned": "계획됨", + "open": "열기", + "completed": "완료됨" }, "timeline": { "activityTimeline": "활동 타임라인", diff --git a/public/locales/nl/translation.json b/public/locales/nl/translation.json index 904149e..fb6525d 100644 --- a/public/locales/nl/translation.json +++ b/public/locales/nl/translation.json @@ -143,7 +143,9 @@ "tasks": "taken", "showingItems": "{{current}} van {{total}} items weergegeven", "overdue": "Te laat", - "planned": "Gepland" + "planned": "Gepland", + "open": "Open", + "completed": "Voltooid" }, "timeline": { "activityTimeline": "Activiteit Tijdlijn", diff --git a/public/locales/no/translation.json b/public/locales/no/translation.json index 5522b67..3f0c0be 100644 --- a/public/locales/no/translation.json +++ b/public/locales/no/translation.json @@ -143,7 +143,9 @@ "tasks": "oppgaver", "showingItems": "Viser {{current}} av {{total}} elementer", "overdue": "Forsinket", - "planned": "Planlagt" + "planned": "Planlagt", + "open": "Åpne", + "completed": "Fullført" }, "timeline": { "activityTimeline": "Aktivitetslinje", diff --git a/public/locales/pl/translation.json b/public/locales/pl/translation.json index 5c6f3b4..a384ae3 100644 --- a/public/locales/pl/translation.json +++ b/public/locales/pl/translation.json @@ -143,7 +143,9 @@ "tasks": "zadania", "showingItems": "Wyświetlanie {{current}} z {{total}} elementów", "overdue": "Przeterminowane", - "planned": "Zaplanowane" + "planned": "Zaplanowane", + "open": "Otwórz", + "completed": "Zakończone" }, "timeline": { "activityTimeline": "Oś czasu aktywności", diff --git a/public/locales/pt/translation.json b/public/locales/pt/translation.json index 47f95a5..2fbce73 100644 --- a/public/locales/pt/translation.json +++ b/public/locales/pt/translation.json @@ -143,7 +143,9 @@ "tasks": "tarefas", "showingItems": "Mostrando {{current}} de {{total}} itens", "overdue": "Atrasado", - "planned": "Planejado" + "planned": "Planejado", + "open": "Abrir", + "completed": "Concluído" }, "timeline": { "activityTimeline": "Linha do Tempo de Atividades", diff --git a/public/locales/ro/translation.json b/public/locales/ro/translation.json index 3fe563f..2b55675 100644 --- a/public/locales/ro/translation.json +++ b/public/locales/ro/translation.json @@ -143,7 +143,9 @@ "tasks": "sarcini", "showingItems": "Se afișează {{current}} din {{total}} elemente", "overdue": "Întârziat", - "planned": "Planificat" + "planned": "Planificat", + "open": "Deschide", + "completed": "Finalizat" }, "timeline": { "activityTimeline": "Cronologia activităților", diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index 1d50577..d1c412a 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -143,7 +143,9 @@ "tasks": "задачи", "showingItems": "Показано {{current}} из {{total}} элементов", "overdue": "Просрочено", - "planned": "Запланировано" + "planned": "Запланировано", + "open": "Открыть", + "completed": "Завершено" }, "timeline": { "activityTimeline": "Хронология активности", diff --git a/public/locales/sl/translation.json b/public/locales/sl/translation.json index 35624c6..502448a 100644 --- a/public/locales/sl/translation.json +++ b/public/locales/sl/translation.json @@ -143,7 +143,9 @@ "tasks": "naloge", "showingItems": "Prikazovanje {{current}} od {{total}} elementov", "overdue": "Zapadlo", - "planned": "Načrtovano" + "planned": "Načrtovano", + "open": "Odpri", + "completed": "Dokončano" }, "timeline": { "activityTimeline": "Časovnica aktivnosti", diff --git a/public/locales/sv/translation.json b/public/locales/sv/translation.json index b091768..8bb9a8f 100644 --- a/public/locales/sv/translation.json +++ b/public/locales/sv/translation.json @@ -143,7 +143,9 @@ "tasks": "uppgifter", "showingItems": "Visar {{current}} av {{total}} objekt", "overdue": "Förfallen", - "planned": "Planerad" + "planned": "Planerad", + "open": "Öppna", + "completed": "Avslutad" }, "timeline": { "activityTimeline": "Aktivitetslinje", diff --git a/public/locales/tr/translation.json b/public/locales/tr/translation.json index 46c1e79..7be3eef 100644 --- a/public/locales/tr/translation.json +++ b/public/locales/tr/translation.json @@ -143,7 +143,9 @@ "tasks": "görevler", "showingItems": "{{total}} öğeden {{current}} tanesi gösteriliyor", "overdue": "Gecikmiş", - "planned": "Planlanmış" + "planned": "Planlanmış", + "open": "Aç", + "completed": "Tamamlandı" }, "timeline": { "activityTimeline": "Etkinlik Zaman Çizelgesi", diff --git a/public/locales/ua/translation.json b/public/locales/ua/translation.json index f4130f3..c4a91f5 100644 --- a/public/locales/ua/translation.json +++ b/public/locales/ua/translation.json @@ -143,7 +143,9 @@ "tasks": "завдання", "showingItems": "Показано {{current}} з {{total}} елементів", "overdue": "Прострочено", - "planned": "Заплановано" + "planned": "Заплановано", + "open": "Відкрити", + "completed": "Завершено" }, "timeline": { "activityTimeline": "Хронологія Активності", diff --git a/public/locales/vi/translation.json b/public/locales/vi/translation.json index aac8350..fa59509 100644 --- a/public/locales/vi/translation.json +++ b/public/locales/vi/translation.json @@ -143,7 +143,9 @@ "tasks": "nhiệm vụ", "showingItems": "Hiển thị {{current}} trong số {{total}} mục", "overdue": "Quá hạn", - "planned": "Đã lên kế hoạch" + "planned": "Đã lên kế hoạch", + "open": "Mở", + "completed": "Đã hoàn thành" }, "timeline": { "activityTimeline": "Dòng Thời Gian Hoạt Động", diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index b917253..07201e5 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -143,7 +143,9 @@ "tasks": "任务", "showingItems": "显示 {{current}} / {{total}} 项", "overdue": "逾期", - "planned": "计划中" + "planned": "计划中", + "open": "打开", + "completed": "已完成" }, "timeline": { "activityTimeline": "活动时间线",