You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(widget): three host conditions leave a blank slot, unreported #239
Three host conditions leave a blank slot and nothing a volunteer can see: a module tag rewritten as a classic script, a host that patches requestIdleCallback, and client-side page translation.
Unguarded idle callback and import.src/loader/index.ts:274-291 calls requestIdleCallback without a guard and import('../Widget') without a .catch. src/lib/embed-announce.ts:67-84 already guards the same host patch. Guard both, and log one [sahaj-atlas] line when the widget chunk fails to load.
Client-side translation. Google Translate, GTranslate and Weglot's JS mode rewrite text nodes React owns, which throws removeChild/insertBefore errors and lands on the error screen. Add translate="no" to the scope root (src/Widget.tsx); the widget localises itself.
Acceptance criteria
A host that makes requestIdleCallback throw still gets a mounted widget.
A failed embed.js import logs one [sahaj-atlas] line and no unhandled rejection.
The scope root carries translate="no".
docs/embedding.md names the stripped-module failure and its symptom.
Verification checklist
pnpm test:run covers the loader guard with a throwing requestIdleCallback.
pnpm review:embed: a page with Google's translate element set to French keeps the widget working.
Notes
From the 2026-09-30 integration audit (findings C5, C6, C7).
Activity
fix(widget): three host conditions leave a blank slot, unreported (#240)