logto icon indicating copy to clipboard operation
logto copied to clipboard

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

Open simeng-li opened this issue 1 year ago • 4 comments

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

simeng-li avatar Apr 23 '24 02:04 simeng-li

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +2.71 KB

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

github-actions[bot] avatar Apr 23 '24 02:04 github-actions[bot]

Hold this PR for a comprehensive testing.

simeng-li avatar Apr 24 '24 02:04 simeng-li

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[bot] avatar May 09 '24 01:05 github-actions[bot]

@gao-sun changeset included PTAL

simeng-li avatar May 17 '24 09:05 simeng-li