fix(web): restore login page design and add runtime config injection #435
Reference in New Issue
Block a user
Delete Branch "fix/login-page-design"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Restored Round 5 login page design: The redesigned auth UI components (AuthShell, AuthCard, AuthBrand, AuthStatusPill, AuthDivider) were on a feature branch but never merged to main. This adds them to the UI package and rewrites the login page to use them, matching the design reference with animated gradient background, card chrome, dark-mode support, and "Command Center" branding.
Fixed runtime API URL injection: NEXT_PUBLIC_API_URL was hardcoded at build time via CI build-arg, making it impossible to override in Docker/Portainer env vars. The root layout now injects runtime env vars into window.MOSAIC_ENV via a synchronous script tag, and config.ts reads those values first. This lets deployed containers use their own API URL without rebuilding the image.
Updated all auth component tests: Tests updated to match new component structure, CSS classes, and content ("Command Center" heading, AuthShell layout classes, AuthDivider default text).
Files Changed
Test plan