logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
7.79k stars 383 forks source link

refactor(experience): rename `SingleSignOnContext` to `UserInteractionContext` #6163

Closed xiaoyijun closed 3 days ago

xiaoyijun commented 5 days ago

Summary

This pull request refactors the SingleSignOnContext to UserInteractionContext to better reflect its broader purpose in managing user interaction data during the sign-in process. The changes aim to improve code clarity and provide more flexibility for future enhancements.

Key changes:

Testing

Test locally and all IT passed.

Checklist

github-actions[bot] commented 5 days ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +565 Bytes

Diff by File |Name|Diff| |---|---| |packages/experience/src/App.tsx|:chart_with_upwards_trend: +12 Bytes| |packages/experience/src/Providers/SingleSignOnContextProvider/SingleSignOnContext.tsx|:chart_with_upwards_trend: +751 Bytes| |packages/experience/src/Providers/SingleSignOnContextProvider/index.tsx|:chart_with_upwards_trend: +1.8 KB| |packages/experience/src/Providers/UserInteractionContextProvider/UserInteractionContext.tsx|:chart_with_upwards_trend: +769 Bytes| |packages/experience/src/Providers/UserInteractionContextProvider/index.tsx|:chart_with_upwards_trend: +2.19 KB| |packages/experience/src/hooks/use-check-single-sign-on.ts|:chart_with_upwards_trend: +31 Bytes| |packages/experience/src/hooks/use-single-sign-on-watch.ts|:chart_with_upwards_trend: +27 Bytes| |packages/experience/src/pages/Register/IdentifierRegisterForm/index.test.tsx|:chart_with_upwards_trend: +12 Bytes| |packages/experience/src/pages/SignIn/IdentifierSignInForm/index.test.tsx|:chart_with_upwards_trend: +12 Bytes| |packages/experience/src/pages/SignIn/PasswordSignInForm/index.test.tsx|:chart_with_upwards_trend: +12 Bytes| |packages/experience/src/pages/SingleSignOnConnectors/index.tsx|:chart_with_upwards_trend: +31 Bytes| |packages/experience/src/pages/SingleSignOnEmail/index.tsx|:chart_with_upwards_trend: +18 Bytes|