fix(frontend): unify full-screen loaders to remove hydration mismatch

↗ view on GitHub · willchen96 · 2026-07-25 · cb2306c5

The provider Suspense fallback, the MFA gate loader, and the (pages)
layout auth loader were three near-identical spinners with different
Tailwind classes. Server and client can resolve those gates differently
on first paint (auth settles from localStorage before the boundary
hydrates), so the differing attributes surfaced as a hydration mismatch
on nearly every dev page load. One shared FullScreenLoader makes every
branch render byte-identical DOM.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Repository open-legal-products/mike
Author willchen96 <weiye.chen96@icloud.com>
Authored
Parents 62da94be
Stats 4 files changed , +23 , -26
Part of Add Playwright coverage for critical legal-AI flows

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-cb2306c5.md from inside the repo you want the change in.

⬇ Download capture-commit-cb2306c5.md