Repository navigation
Resolve Oddities in the UI - #23
Merged
Merged
Conversation
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
Contributor
Author
|
@rnavyaprabha - I can't assign reviewer, but FYI about this P.R. |
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.
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/appdirectly.Also: Removes un-related github links to the prettier project
Fixes #21
Fixes #19
Fixes #18