Repository navigation
fix(web): replace plain "Loading..." route fallback with a styled loading state - #3057
Merged
Merged
Conversation
…ding state The lazy-route Suspense fallback was a bare `<div>Loading...</div>`, which rendered as unstyled text in the top-left corner while the /home and /wizard chunks loaded. HomeLayout then rendered an empty div during the Workspace bootstrap. - Add PageLoading (centered LangBot mark + spinner, theme-aware, fades in after 200ms so fast loads show nothing) and ContentLoading. - Use PageLoading for route fallbacks and HomeLayout's bootstrap phase so the two phases look like one continuous state. - Wrap the /home content area in its own Suspense so the sidebar/header stay visible while a page chunk loads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
While the WebUI loads, a bare
Loading...text appears in the top-left corner. It is the lazy-route Suspense fallback inweb/src/router.tsx(<div>Loading...</div>), shown while the/home//wizardchunks download. After that,HomeLayoutrenders an empty<div />during the Workspace bootstrap.Fix
web/src/components/RouteLoading.tsx:PageLoading: full-viewport, centered LangBot mark with a subtle breathing animation and a small spinner. It follows the light/dark theme, fades in after 200ms so fast loads show nothing, respectsprefers-reduced-motion, and keeps an sr-only i18n label (common.loading).ContentLoading: a centered spinner for the content area.PageLoading, so the two phases look like one continuous state with no text and no blank flash between them./homecontent area gets its own Suspense boundary, so the sidebar and header stay visible while a page chunk loads.Verification
tsc --noEmit, eslint and prettier pass;vite buildsucceeds./api/**in Playwright to keep/home/botsloading. Screenshots in light and dark mode show the centered logo and spinner, with no top-left text.Refs LANG-534
🤖 Generated with Claude Code