From e635fdad5cd8fffe4680a4092f0b667996c1b930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Mon, 11 May 2026 17:06:47 +0100 Subject: [PATCH] Fix PHP-LARAVEL-1S browser translation crash (#381) ## Sentry issue - https://whisper-money.sentry.io/issues/PHP-LARAVEL-1S ## Root cause - Browser/page translation mutated React-managed DOM on /onboarding by injecting font wrappers. React later attempted to unmount a node that translation had moved, causing NotFoundError removeChild. ## Fix - Mark the Inertia root document as not translatable with translate="no", notranslate class, and google notranslate meta tag. - Add regression coverage for the root template markers. ## Verification - vendor/bin/pint --dirty --format agent - php artisan test --compact tests/Feature/PwaTest.php --- resources/views/app.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/app.blade.php b/resources/views/app.blade.php index 3500dd8a..170b62cf 100644 --- a/resources/views/app.blade.php +++ b/resources/views/app.blade.php @@ -1,10 +1,11 @@ - ($appearance ?? 'system') == 'dark'])> + ($appearance ?? 'system') == 'dark'])> + {{-- Inline script to detect system dark mode preference and apply it immediately --}}