From d5c1221ab56fb81161e150f97abf9f5a7b1cd7a0 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 14 Sep 2026 12:49:46 +0200 Subject: [PATCH] UI: veraltete Stub-Hinweise in Auftragsdetail und Konfliktliste bereinigt Co-Authored-By: Claude Opus 5 --- messages/de/workOrders.json | 38 +++++++++++++++----- messages/en/workOrders.json | 38 +++++++++++++++----- src/app/(app)/work-orders/conflicts/page.tsx | 2 +- src/components/work-orders/detail-tabs.tsx | 1 - 4 files changed, 61 insertions(+), 18 deletions(-) diff --git a/messages/de/workOrders.json b/messages/de/workOrders.json index d25a8c0..3c02e50 100644 --- a/messages/de/workOrders.json +++ b/messages/de/workOrders.json @@ -9,8 +9,15 @@ "resultCount": "{count, plural, =0 {Keine Aufträge} one {# Auftrag} other {# Aufträge}}", "presetActive": "Kachel-Filter: {name}", "removePreset": "Kachel-Filter entfernen", - "view": { "cards": "Karten", "table": "Tabelle" }, - "pagination": { "prev": "Zurück", "next": "Weiter", "page": "Seite {page} von {pages}" }, + "view": { + "cards": "Karten", + "table": "Tabelle" + }, + "pagination": { + "prev": "Zurück", + "next": "Weiter", + "page": "Seite {page} von {pages}" + }, "filter": { "title": "Filter", "q": "Nummer, Titel, Kunde, Ort", @@ -77,7 +84,12 @@ "billed": "Abgerechnet", "cancelled": "Storniert" }, - "priority": { "low": "Niedrig", "normal": "Normal", "high": "Hoch", "urgent": "Dringend" }, + "priority": { + "low": "Niedrig", + "normal": "Normal", + "high": "Hoch", + "urgent": "Dringend" + }, "billingType": { "fixed": "Pauschal", "time_material": "Nach Aufwand", @@ -229,7 +241,11 @@ }, "photos": { "empty": "Noch keine Fotos.", - "phase": { "before": "Vorher", "during": "Während", "after": "Nachher" }, + "phase": { + "before": "Vorher", + "during": "Während", + "after": "Nachher" + }, "open": "Öffnen", "inReport": "Im Bericht" }, @@ -251,7 +267,10 @@ }, "reports": { "empty": "Noch keine Berichte.", - "type": { "daily": "Tagesbericht", "completion": "Abschlussbericht" }, + "type": { + "daily": "Tagesbericht", + "completion": "Abschlussbericht" + }, "status": { "draft": "Entwurf", "submitted": "Zur Prüfung", @@ -286,7 +305,6 @@ "submit": "Hochladen", "archive": "Entfernen", "download": "Herunterladen", - "stubHint": "Dateien werden bis zur Anbindung der Dokumentenablage direkt im Objektspeicher abgelegt.", "categories": { "order_confirmation": "Auftragsbestätigung", "technical_drawing": "Technische Zeichnung", @@ -320,7 +338,11 @@ "change": "{from} → {to}", "by": "von {name}", "system": "System", - "action": { "create": "Erstellt", "update": "Geändert", "delete": "Gelöscht" } + "action": { + "create": "Erstellt", + "update": "Geändert", + "delete": "Gelöscht" + } }, "assign": { "title": "Auftrag zuweisen", @@ -384,7 +406,7 @@ "applied": "Übernommen.", "discarded": "Verworfen.", "applyHint": "Übernehmen wendet den Vorgang erneut auf den aktuellen Stand an – im Namen der Person, die ihn erfasst hat.", - "stubHint": "Übernehmen ist bis zur Anbindung der Synchronisation nur für Statusänderungen möglich." + "scopeHint": "Übernehmen ist derzeit nur für Statusänderungen möglich; andere Vorgänge bitte im Auftrag nacharbeiten." }, "errors": { "not_found": "Nicht gefunden oder keine Berechtigung.", diff --git a/messages/en/workOrders.json b/messages/en/workOrders.json index bdeed36..24e6292 100644 --- a/messages/en/workOrders.json +++ b/messages/en/workOrders.json @@ -9,8 +9,15 @@ "resultCount": "{count, plural, =0 {No work orders} one {# work order} other {# work orders}}", "presetActive": "Tile filter: {name}", "removePreset": "Remove tile filter", - "view": { "cards": "Cards", "table": "Table" }, - "pagination": { "prev": "Previous", "next": "Next", "page": "Page {page} of {pages}" }, + "view": { + "cards": "Cards", + "table": "Table" + }, + "pagination": { + "prev": "Previous", + "next": "Next", + "page": "Page {page} of {pages}" + }, "filter": { "title": "Filter", "q": "Number, title, customer, city", @@ -77,7 +84,12 @@ "billed": "Billed", "cancelled": "Cancelled" }, - "priority": { "low": "Low", "normal": "Normal", "high": "High", "urgent": "Urgent" }, + "priority": { + "low": "Low", + "normal": "Normal", + "high": "High", + "urgent": "Urgent" + }, "billingType": { "fixed": "Fixed price", "time_material": "Time and material", @@ -229,7 +241,11 @@ }, "photos": { "empty": "No photos yet.", - "phase": { "before": "Before", "during": "During", "after": "After" }, + "phase": { + "before": "Before", + "during": "During", + "after": "After" + }, "open": "Open", "inReport": "In report" }, @@ -251,7 +267,10 @@ }, "reports": { "empty": "No reports yet.", - "type": { "daily": "Daily report", "completion": "Completion report" }, + "type": { + "daily": "Daily report", + "completion": "Completion report" + }, "status": { "draft": "Draft", "submitted": "In review", @@ -286,7 +305,6 @@ "submit": "Upload", "archive": "Remove", "download": "Download", - "stubHint": "Until the document store is connected, files are stored directly in object storage.", "categories": { "order_confirmation": "Order confirmation", "technical_drawing": "Technical drawing", @@ -320,7 +338,11 @@ "change": "{from} → {to}", "by": "by {name}", "system": "System", - "action": { "create": "Created", "update": "Changed", "delete": "Deleted" } + "action": { + "create": "Created", + "update": "Changed", + "delete": "Deleted" + } }, "assign": { "title": "Assign work order", @@ -384,7 +406,7 @@ "applied": "Applied.", "discarded": "Discarded.", "applyHint": "Apply re-runs the operation against the current state – on behalf of the person who recorded it.", - "stubHint": "Until sync is connected, only status changes can be applied." + "scopeHint": "Apply currently supports status changes only; please rework other operations in the order." }, "errors": { "not_found": "Not found or no permission.", diff --git a/src/app/(app)/work-orders/conflicts/page.tsx b/src/app/(app)/work-orders/conflicts/page.tsx index f7925c4..1f63f7c 100644 --- a/src/app/(app)/work-orders/conflicts/page.tsx +++ b/src/app/(app)/work-orders/conflicts/page.tsx @@ -25,7 +25,7 @@ export default async function SyncConflictsPage() {

- {t("conflicts.applyHint")} {t("conflicts.stubHint")} + {t("conflicts.applyHint")} {t("conflicts.scopeHint")}

{conflicts.length === 0 ? ( diff --git a/src/components/work-orders/detail-tabs.tsx b/src/components/work-orders/detail-tabs.tsx index 86de23b..6700197 100644 --- a/src/components/work-orders/detail-tabs.tsx +++ b/src/components/work-orders/detail-tabs.tsx @@ -504,7 +504,6 @@ export async function DocumentsTab({ ctx, wo, locale, tz, uploadError, uploaded -

{t("documents.stubHint")}

)}