251eb9c3fc156aff6f8b05a00e136c6c98b5ebb6
Pure function that reads commentId + annotationId from the page URL, enters transcribe mode if needed, activates the block's annotation, scrolls the target comment into view, focuses it for screen readers, fires the existing annotation flash, and strips the params via the injected callback. All side effects go through callbacks so the helper is unit-testable without mounting the page or a DOM (only scrollIntoView/focus are called on the injected element). Eight tests cover both absent params, happy path, transcribe-mode activation, missing DOM target, reduced motion, flash trigger, and URL strip. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
Python
73.3%
TypeScript
11.4%
Java
10.8%
Svelte
4.2%
Shell
0.1%