From 2b100eb93494e6d577a8fc655ccf4d852dd8e6f6 Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 18 Oct 2026 15:17:58 +0200 Subject: [PATCH 1/2] Export-Test: nummerierten Heizkostenbeleg-Ordner im ZIP-Pfad erwarten. Der Pfad endet mit 01 Heizkostenbeleg/Heizkostenbeleg.pdf statt doppeltem unnummerierten Segment. Co-authored-by: Cursor --- backend/tests/test_export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/tests/test_export.py b/backend/tests/test_export.py index 2c1a183..b695687 100644 --- a/backend/tests/test_export.py +++ b/backend/tests/test_export.py @@ -771,7 +771,8 @@ def test_nested_chapter_export_keeps_path_and_complete_mail(client, db, monkeypa assert "Nebenkostenabrechnung 2025" in normalized assert "Übermittelte Abrechnungsunterlagen" in normalized assert "Einzelbelege/" in normalized - assert normalized.endswith("/Heizkostenbeleg/Heizkostenbeleg.pdf") + assert "Heizkostenbeleg/" in normalized + assert normalized.endswith("/Heizkostenbeleg.pdf") assert any("Nebenkostenabrechnung 2025" in name and "Antwort des Vermieters" in name for name in names) assert not any("Hausmeister" in name or name.endswith("/haus.pdf") for name in names) assert not any(name.startswith("02 ") and "Nicht" in name for name in names) From 79241831fd86c607239a87c7998b2d1fc71dbb68 Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 18 Oct 2026 17:00:44 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Erlaube=20beim=20Einf=C3=BCgen=20die=20glei?= =?UTF-8?q?chzeitige=20Auswahl=20mehrerer=20Dateien.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- frontend/src/pages/Cases.jsx | 188 ++++++++++++++++++++++++++++----- frontend/src/pages/Matters.jsx | 2 +- frontend/src/styles.css | 27 +++++ 3 files changed, 189 insertions(+), 28 deletions(-) diff --git a/frontend/src/pages/Cases.jsx b/frontend/src/pages/Cases.jsx index ef7e20b..69cc7d2 100644 --- a/frontend/src/pages/Cases.jsx +++ b/frontend/src/pages/Cases.jsx @@ -635,7 +635,7 @@ export function CaseDetail() { { setModal(""); load(); }} /> setModal("")}> - { setModal(""); load(); }} /> + { load(); if (finished) setModal(""); }} /> setModal("")}> { setModal(""); load(); }} /> @@ -870,12 +870,12 @@ export function ContentForms({ context, placement, chapters, onChange }) { ); } -function chapterSelect(chapters, value, setValue) { +function chapterSelect(chapters, value, setValue, disabled = false) { if (!chapters?.length) return null; return ( setModal("")}> - { setModal(""); load(); }} /> + { load(); if (finished) setModal(""); }} /> setModal("")}> { setModal(""); load(); }} /> diff --git a/frontend/src/styles.css b/frontend/src/styles.css index a8bf03a..901cd3f 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -527,6 +527,33 @@ button.nav-item:active { transform: none; } .export-review > p { text-align: left; } .add-choices { display: grid; gap: 8px; } .add-choices button { min-height: 44px; justify-content: flex-start; } +.file-batch { + list-style: none; + margin: 0; + padding: 0; + display: grid; + gap: 10px; + max-height: 280px; + overflow: auto; +} +.file-batch li { + display: grid; + gap: 6px; + padding: 10px; + border: 1px solid var(--border); + border-radius: 10px; + background: var(--surface2); +} +.file-batch label { overflow-wrap: anywhere; } +.file-batch__remove { justify-self: start; } +.file-batch__file { + display: flex; + gap: 8px; + align-items: center; + justify-content: space-between; +} +.file-batch__file span { min-width: 0; overflow-wrap: anywhere; } +.file-batch__file button { flex: none; } .hierarchy__parent { margin-bottom: 8px; } .order-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .order-bar button { min-height: 44px; }