From c62bf9085c72d7c0699d01a7dd401c49d5ae2f88 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 18 Apr 2026 13:55:38 +0200 Subject: [PATCH] feat(frontend): reorder DescriptionSection fields, expose currentTitle bindable, add Optional divider MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Field order: Titel → Schlagworte → Kurzinhalt → [Optional divider] → Aufbewahrungsort. currentTitle is now bindable so the enrich page can derive the required-fields progress bar. Co-Authored-By: Claude Sonnet 4.6 --- .../document/DescriptionSection.svelte | 49 +++++++++++-------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/frontend/src/lib/components/document/DescriptionSection.svelte b/frontend/src/lib/components/document/DescriptionSection.svelte index ac5b7cd0..8479f9b9 100644 --- a/frontend/src/lib/components/document/DescriptionSection.svelte +++ b/frontend/src/lib/components/document/DescriptionSection.svelte @@ -5,6 +5,7 @@ import { m } from '$lib/paraglide/messages.js'; let { tags = $bindable([]), + currentTitle = $bindable(''), initialTitle = '', initialDocumentLocation = '', initialSummary = '', @@ -13,6 +14,7 @@ let { hideTitle = false }: { tags?: Tag[]; + currentTitle?: string; initialTitle?: string; initialDocumentLocation?: string; initialSummary?: string; @@ -22,8 +24,8 @@ let { } = $props(); let titleDirty = $state(false); -let titleOverride = $state(untrack(() => initialTitle)); -let titleValue = $derived(titleDirty ? titleOverride : suggestedTitle || titleOverride); +currentTitle = untrack(() => initialTitle); +const titleValue = $derived(titleDirty ? currentTitle : suggestedTitle || currentTitle);
@@ -33,7 +35,7 @@ let titleValue = $derived(titleDirty ? titleOverride : suggestedTitle || titleOv
{#if !hideTitle} - +
{/if} - -
- - -

{m.form_helper_archive_location()}

-
-

{m.form_label_tags()}

@@ -91,5 +77,28 @@ let titleValue = $derived(titleDirty ? titleOverride : suggestedTitle || titleOv >{initialSummary}
+ + +
+
+ Optional +
+
+ + +
+ + +

{m.form_helper_archive_location()}

+