feat: auto-open transcription panel when navigating from mission-control cards #377

Merged
marcel merged 4 commits from feat/issue-376-auto-open-transcription-panel into main 2026-04-29 21:38:14 +02:00
Showing only changes of commit a81a6e7253 - Show all commits

View File

@@ -364,7 +364,8 @@ onMount(() => {
if (page.url.searchParams.get('task') === 'transcribe') { if (page.url.searchParams.get('task') === 'transcribe') {
transcribeMode = true; transcribeMode = true;
tick().then(() => { tick()
.then(() => {
const closeBtn = document.querySelector<HTMLElement>('[data-testid="panel-close"]'); const closeBtn = document.querySelector<HTMLElement>('[data-testid="panel-close"]');
closeBtn?.scrollIntoView({ closeBtn?.scrollIntoView({
behavior: prefersReducedMotion ? 'instant' : 'smooth', behavior: prefersReducedMotion ? 'instant' : 'smooth',
@@ -372,7 +373,8 @@ onMount(() => {
}); });
closeBtn?.focus({ preventScroll: true }); closeBtn?.focus({ preventScroll: true });
replaceState(page.url.pathname, page.state ?? {}); replaceState(page.url.pathname, page.state ?? {});
}); })
.catch((e) => console.error('task deep-link failed', e));
} }
scrollToCommentFromQuery(new URL(page.url), { scrollToCommentFromQuery(new URL(page.url), {