Skip to content

Conversation

domlander
Copy link
Contributor

@domlander domlander commented Aug 21, 2025

What does this change?

Prevent flicker from 'sign in' to 'my account'
Delay showing right-hand side of the top bar on desktop until the sign-in state is known

Why?

Fix CLS, flickering

TODO

  • Questions to resolve before opening PR

    • What about no JS users? We can't sign in without JS, but on the Sign In page there is a clear message to users that they need to enable Javascript if they want to sign in.
    • What if it takes a really long time to get auth state? (Use Promise.race to show "Sign In state after x seconds?")
    • What if we cant get auth state?
  • Update stories to include sign in states

Alternatives? Reserve enough space for both "Sign In" and "Account". This will create some form of misalignment, either with the grid or with the other element in the top bar

Screenshots

CLS

Screenshot 2025-08-21 at 11 10 35

Flicker

Screen.Recording.2025-08-21.at.11.08.14.mov

@domlander domlander changed the title Doml/header cls Fix Sign In CLS on desktop Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant