From 4a88b3ba8245cc74fe5ea6bd0b65f0e7dd2d3ed8 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 5 Apr 2026 22:52:15 +0200 Subject: [PATCH] feat(transcription): add dashed next-block CTA below block list Shows a muted dashed-outline box after the last block: "Markiere eine weitere Passage im Scan, um Block N anzulegen" Guides new users on how to create additional blocks. Matches the spec's empty block CTA design (S1, bottom of block list). i18n key transcription_next_block_cta added for de/en/es. Co-Authored-By: Claude Sonnet 4.6 --- frontend/messages/de.json | 1 + frontend/messages/en.json | 1 + frontend/messages/es.json | 1 + frontend/src/lib/components/TranscriptionEditView.svelte | 7 +++++++ 4 files changed, 10 insertions(+) diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 0e9e45d4..860891f4 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -453,6 +453,7 @@ "transcription_block_delete_confirm": "Block und alle zugehörigen Kommentare wirklich löschen?", "transcription_block_history_btn": "Verlauf", "transcription_empty_cta": "Markiere einen Bereich auf dem Scan, um mit der Transkription zu beginnen", + "transcription_next_block_cta": "Markiere eine weitere Passage im Scan, um Block {number} anzulegen", "transcription_draw_tooltip": "Klicken und ziehen, um einen Textbereich zu markieren", "transcription_quote_stale": "Zitat aus älterer Version", "transcription_block_conflict": "Dieser Block wurde von jemand anderem geändert — bitte neu laden" diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 6516439c..110d0c13 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -453,6 +453,7 @@ "transcription_block_delete_confirm": "Really delete this block and all its comments?", "transcription_block_history_btn": "History", "transcription_empty_cta": "Mark a region on the scan to start transcribing", + "transcription_next_block_cta": "Mark another passage on the scan to create block {number}", "transcription_draw_tooltip": "Click and drag to mark a text region", "transcription_quote_stale": "Quote from an older version", "transcription_block_conflict": "This block was changed by someone else — please reload" diff --git a/frontend/messages/es.json b/frontend/messages/es.json index 628845ad..8ac74c35 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -453,6 +453,7 @@ "transcription_block_delete_confirm": "¿Realmente eliminar este bloque y todos sus comentarios?", "transcription_block_history_btn": "Historial", "transcription_empty_cta": "Marque una región en el escaneo para comenzar a transcribir", + "transcription_next_block_cta": "Marque otro pasaje en el escaneo para crear el bloque {number}", "transcription_draw_tooltip": "Haga clic y arrastre para marcar una región de texto", "transcription_quote_stale": "Cita de una versión anterior", "transcription_block_conflict": "Este bloque fue cambiado por otra persona — por favor recargue" diff --git a/frontend/src/lib/components/TranscriptionEditView.svelte b/frontend/src/lib/components/TranscriptionEditView.svelte index 4bb02688..74d13c94 100644 --- a/frontend/src/lib/components/TranscriptionEditView.svelte +++ b/frontend/src/lib/components/TranscriptionEditView.svelte @@ -173,6 +173,13 @@ $effect(() => { /> {/each} + + +
+ {m.transcription_next_block_cta({ number: sortedBlocks.length + 1 })} +
{:else}