Skip to content

Resolve Oddities in the UI - #23

Merged
mfisher31 merged 3 commits into
mieweb:mainfrom
mfisher31:theme-display-broken
Apr 7, 2026
Merged

mfisher31 merged 3 commits into
mieweb:mainfrom
mfisher31:theme-display-broken

Conversation

@mfisher31

@mfisher31 mfisher31 commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

useBrand() was only called inside SettingsPage, so the brand CSS was never injected unless the user navigated there. Moving the call to AppLayout ensures the saved brand is applied on every page load.

Also: prevents rendering the login/landing page if already logged in when 1) refreshing with the browser, or URL hacking to / or /app directly.

Also: Removes un-related github links to the prettier project

Fixes #21
Fixes #19
Fixes #18

useBrand() was only called inside SettingsPage, so the brand CSS was
never injected unless the user navigated there. Moving the call to
AppLayout ensures the saved brand is applied on every page load.
SSR previously rendered <LoginForm> for all / and /app routes. For
authenticated users refreshing or navigating directly, the browser
painted the login form before JS loaded, causing a visible flash.

- ssr.tsx: render a loading placeholder for / and /app/* routes instead
  of LoginForm; server cannot know auth state so the loading state is
  the correct neutral SSR output
- client/main.tsx: add Meteor.userId() check (reads localStorage
  synchronously) so the client shows a loading state during the DDP
  reconnect window rather than flashing the login form
@mfisher31

Copy link
Copy Markdown
Contributor Author

@rnavyaprabha - I can't assign reviewer, but FYI about this P.R.

@mfisher31 mfisher31 changed the title Apply Brand in AppLayout Resolve Oddities in the UI Apr 7, 2026
@mfisher31
mfisher31 merged commit a5e09a3 into mieweb:main Apr 7, 2026
@mfisher31
mfisher31 deleted the theme-display-broken branch April 8, 2026 14:07
@github-project-automation github-project-automation Bot moved this from Ready to Done in Scrum Team Jerry Apr 8, 2026
@mfisher31 mfisher31 self-assigned this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

1 participant