Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(experience): add global loading status on page redirect #5774

Conversation

simeng-li
Copy link
Contributor

@simeng-li simeng-li commented Apr 23, 2024

Summary

Add a new useGlobalRedirect hook to handle all the sign-in/sign-up success redirections. Show the global loading status on redirect.
This will prevent user interaction from the sign-in page while the HTTP redirect request is still loading.

Testing

WIP

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@github-actions github-actions bot added the enhancement Make it better label Apr 23, 2024
Copy link

github-actions bot commented Apr 23, 2024

COMPARE TO master

Total Size Diff 📈 +2.71 KB

Diff by File
Name Diff
.changeset/friendly-chicken-pump.md 📈 +401 Bytes
packages/experience/src/containers/SocialLinkAccount/use-social-link-related-user.ts 📈 +109 Bytes
packages/experience/src/containers/VerificationCode/use-continue-flow-code-verification.ts 📈 +146 Bytes
packages/experience/src/containers/VerificationCode/use-register-flow-code-verification.ts 📈 +112 Bytes
packages/experience/src/containers/VerificationCode/use-sign-in-flow-code-verification.ts 📈 +112 Bytes
packages/experience/src/hooks/use-global-redirect-to.ts 📈 +745 Bytes
packages/experience/src/hooks/use-password-sign-in.ts 📈 +103 Bytes
packages/experience/src/hooks/use-send-mfa-payload.ts 📈 +103 Bytes
packages/experience/src/hooks/use-skip-mfa.ts 📈 +103 Bytes
packages/experience/src/hooks/use-social-link-account.ts 📈 +103 Bytes
packages/experience/src/hooks/use-social-register.ts 📈 +103 Bytes
packages/experience/src/pages/Consent/index.tsx 📈 +109 Bytes
packages/experience/src/pages/Continue/SetPassword/index.tsx 📈 +128 Bytes
packages/experience/src/pages/Continue/SetUsername/use-set-username.ts 📈 +109 Bytes
packages/experience/src/pages/RegisterPassword/index.tsx 📈 +127 Bytes
packages/experience/src/pages/SocialSignInWebCallback/use-single-sign-on-listener.ts 📈 +158 Bytes

@simeng-li simeng-li requested review from a team, wangsijie and charIeszhao and removed request for a team April 23, 2024 07:47
@simeng-li simeng-li marked this pull request as ready for review April 23, 2024 07:48
@simeng-li simeng-li requested a review from a team April 23, 2024 07:48
@simeng-li
Copy link
Contributor Author

Hold this PR for a comprehensive testing.

Copy link

github-actions bot commented May 9, 2024

This PR is stale because it has been open 10 for days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label May 9, 2024
@simeng-li simeng-li removed the stale label May 14, 2024
add global loading status on page redirect
@simeng-li simeng-li force-pushed the simeng-log-8266-should-show-loading-state-when-redirection-is-happening branch from 9aef633 to 3f8c027 Compare May 17, 2024 08:36
@simeng-li simeng-li requested a review from gao-sun as a code owner May 17, 2024 09:01
@simeng-li
Copy link
Contributor Author

@gao-sun changeset included PTAL

@simeng-li simeng-li merged commit cb1a38c into master May 20, 2024
27 checks passed
@simeng-li simeng-li deleted the simeng-log-8266-should-show-loading-state-when-redirection-is-happening branch May 20, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make it better size/m
Development

Successfully merging this pull request may close these issues.

None yet

4 participants