From e22265f5bcfced229ddc38c662abec0f436554d3 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 21 Apr 2026 13:42:55 +0200 Subject: [PATCH] feat(document-detail): wire notification deep-link scroll in onMount After navHeight setup, call scrollToCommentFromQuery with the page URL and callbacks into the component's local state (transcribeMode, activeAnnotationId, flashAnnotationId) plus SvelteKit's replaceState to strip the consumed query params. afterTick awaits both Svelte's tick() and one requestAnimationFrame, mirroring the existing handleAnnotationClick timing so the annotation panel has rendered before scrollIntoView fires. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/routes/documents/[id]/+page.svelte | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/documents/[id]/+page.svelte b/frontend/src/routes/documents/[id]/+page.svelte index 0d26c275..b83b7c9c 100644 --- a/frontend/src/routes/documents/[id]/+page.svelte +++ b/frontend/src/routes/documents/[id]/+page.svelte @@ -1,6 +1,8 @@