8000 fix(auth): avoid blocking sign-in startup by Saikrishna1876 · Pull Request #783 · doop-design/doop · GitHub
[go: up one dir, main page]

Skip to content

fix(auth): avoid blocking sign-in startup - #783

Open
Saikrishna1876 wants to merge 1 commit into
doop-design:mainfrom
Saikrishna1876:fix/issue-621
Open

Saikrishna1876 wants to merge 1 commit into
doop-design:mainfrom
Saikrishna1876:fix/issue-621

Conversation

@Saikrishna1876
@Saikrishna1876 Saikrishna1876 commented Dec 3, 2026 •
Copy link
Copy Markdown
Contributor

Fixes #621.

The sign-in form can stay blank while Chrome waits for the Google Fonts stylesheet or the locale endpoint. Load the stylesheet in the background so the form can use a fallback font. Production includes the server's default language in the initial HTML, and a saved browser preference takes priority. Static builds fetch the default in the background.

Verification

  • Chrome accepted email input while the stylesheet and locale requests were both pending. After the locale response, the form switched to Brazilian Portuguese and kept the email and focus.
  • The production sign-in page opened in Brazilian Portuguese while the stylesheet was pending, with zero locale API requests.
  • 18 focused tests, typecheck, lint, formatting, and the production build passed.

See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@greptile-apps
greptile-apps Bot commented Dec 3, 2026 •
Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge, with the previous language-update issue fixed and no new blocking issues found.

Summary

The PR lets sign-in open without waiting for Google Fonts or the language endpoint.

  • The sign-in page appears before fonts or locale requests finish.
  • Sign-in errors and notices follow the page’s current language.

No new actionable issues were found. Tests were inspected but not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Page opens] --> B{Saved language?}
  B -->|Yes| C[Use saved language]
  B -->|No| D{HTML includes default?}
  D -->|Yes| E[Use server language]
  D -->|No| F[Use English and fetch default]
  C --> G[Render sign-in]
  E --> G
  F --> G
  F --> H[Server responds]
  H --> I[Update text without replacing form]
Loading

Reviews (2) · Last reviewed commit: "fix(auth): avoid blocking sign-in startu..." · Reviewed by Greptile

Comment thread src/main.tsx Resolved
@Saikrishna1876
Copy link
Copy Markdown
Contributor Author

@greptileai

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slow font or locale requests delay the sign-in form

1 participant

0