From a5754162ceeaec455c41f76e25e0f6d99fbc658b Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 9 Jun 2026 14:43:42 +0200 Subject: [PATCH] fix(journey-editor): add required params to m.journey_item_moved() calls The screen-reader live announcement was calling m.journey_item_moved() without the required {position, total, newPosition} parameters, which the i18n template uses to build the full announcement string. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/geschichte/JourneyEditor.svelte | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/geschichte/JourneyEditor.svelte b/frontend/src/lib/geschichte/JourneyEditor.svelte index ccc2a81a..b77d245e 100644 --- a/frontend/src/lib/geschichte/JourneyEditor.svelte +++ b/frontend/src/lib/geschichte/JourneyEditor.svelte @@ -149,7 +149,11 @@ async function handleMoveUp(index: number) { if (index === 0) return; const ids = items.map((i) => i.id); [ids[index - 1], ids[index]] = [ids[index], ids[index - 1]]; - liveAnnounce = m.journey_item_moved(); + liveAnnounce = m.journey_item_moved({ + position: index + 1, + total: items.length, + newPosition: index + }); await handleReorder(ids); } @@ -157,7 +161,11 @@ async function handleMoveDown(index: number) { if (index === items.length - 1) return; const ids = items.map((i) => i.id); [ids[index], ids[index + 1]] = [ids[index + 1], ids[index]]; - liveAnnounce = m.journey_item_moved(); + liveAnnounce = m.journey_item_moved({ + position: index + 1, + total: items.length, + newPosition: index + 2 + }); await handleReorder(ids); }