From bbcb0c489a7626513ad27959d9757565bf828007 Mon Sep 17 00:00:00 2001 From: CCS Admin Date: Sun, 1 Mar 2026 20:19:37 +0000 Subject: [PATCH] fix: replace Unicode escape sequences with UTF-8 characters in ReportViewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unicode escapes like \u00e4 render as literal text in JSX content instead of the intended German umlauts (ä, ü, Ü). Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/ReportViewer.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/ReportViewer.tsx b/frontend/src/components/ReportViewer.tsx index c66534e..ed1341b 100644 --- a/frontend/src/components/ReportViewer.tsx +++ b/frontend/src/components/ReportViewer.tsx @@ -8,7 +8,7 @@ const FALLGRUPPEN_LABELS: Record = { kardio: 'Kardiologie', intensiv: 'Intensivmedizin', galle: 'Gallenblase', - sd: 'Schilddr\u00fcse', + sd: 'Schilddrüse', } const FALLGRUPPEN_KEYS = ['onko', 'kardio', 'intensiv', 'galle', 'sd'] as const @@ -19,7 +19,7 @@ function fmt(n: number): string { function NoData() { return ( -

Keine Daten verf\u00fcgbar.

+

Keine Daten verfügbar.

) } @@ -35,7 +35,7 @@ function Sheet1({ data }: { data: any }) { { key: 'erstberatungen', label: 'Erstberatungen' }, { key: 'unterlagen', label: 'Unterlagen' }, { key: 'ablehnungen', label: 'Ablehnungen' }, - { key: 'keine_rm', label: 'Keine R\u00fcckmeldung' }, + { key: 'keine_rm', label: 'Keine Rückmeldung' }, { key: 'gutachten', label: 'Gutachten' }, ] as const @@ -187,7 +187,7 @@ function Sheet3({ data, fallgruppen }: { data: any; fallgruppen: readonly string const SUB_LABELS: Record = { gutachten: 'Gutachten', alternative: 'Alternative', - bestaetigung: 'Best\u00e4tigung', + bestaetigung: 'Bestätigung', } const GROUP_KEYS = ['gesamt', ...fallgruppen] as const @@ -273,7 +273,7 @@ function Sheet3({ data, fallgruppen }: { data: any; fallgruppen: readonly string } // --------------------------------------------------------------------------- -// Sheet 4 — Therapie\u00e4nderungen +// Sheet 4 — Therapieänderungen // --------------------------------------------------------------------------- // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -282,11 +282,11 @@ function Sheet4({ data }: { data: any }) { const COLS = [ { key: 'gutachten', label: 'Gutachten' }, - { key: 'ta_ja', label: 'Therapie\u00e4nderung Ja' }, - { key: 'ta_nein', label: 'Therapie\u00e4nderung Nein' }, + { key: 'ta_ja', label: 'Therapieänderung Ja' }, + { key: 'ta_nein', label: 'Therapieänderung Nein' }, { key: 'diagnosekorrektur', label: 'Diagnosekorrektur' }, { key: 'unterversorgung', label: 'Unterversorgung' }, - { key: 'uebertherapie', label: '\u00dcbertherapie' }, + { key: 'uebertherapie', label: 'Übertherapie' }, ] as const // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -388,7 +388,7 @@ export function ReportViewer({ data }: { data: Record }) { KW gesamt Fachgebiete Gutachten - Therapie\u00e4nderungen + Therapieänderungen {hasOnko && ICD onko}