-
Notifications
You must be signed in to change notification settings - Fork 107
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
[IOPID-2566] Refactor AuthErrorComponent #6565
Conversation
… params and move spid request states on redux
Jira Pull Request LinkThis Pull Request refers to the following Jira issue IOPID-2566 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6565 +/- ##
==========================================
- Coverage 49.29% 49.28% -0.01%
==========================================
Files 1555 1558 +3
Lines 32122 32156 +34
Branches 7267 7330 +63
==========================================
+ Hits 15834 15849 +15
- Misses 16250 16258 +8
- Partials 38 49 +11
... and 11 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Short description
This PR removes the
onRetry
function from theAuthErrorScreen
navigation params in order to suppress the warning related to it. The retry logic is now handled in a dedicated redux reducer.Important
In the
ts/screens/authentication/IdpLoginScreen.tsx
component thenavigate
method has been replaced with thereplace
. This change gives us the possibility to skip theretryLollipopLogin
step because thereplace
unmounts the route and in a further navigation on thets/screens/authentication/IdpLoginScreen.tsx
theuseLollipopLoginSource
hook will be executed from start.List of changes proposed in this pull request
onRetry
from theAuthErrorScreen
navigation paramsisNativeLogin
param into theAuthErrorScreen
navigation paramsts/screens/authentication/IdpLoginScreen.tsx
andts/screens/authentication/idpAuthSessionHandler.tsx
retry logic in a dedicated redux reducernavigate
function with thereplace
function in thets/screens/authentication/IdpLoginScreen.tsx
Demo
iOS
Standard login
ios-standard-login-before.mp4
ios-standard-login-after.mp4
Native login
ios-native-login-before.mp4
ios-native-login-after.mp4
Android
Standard login
android-standard-login-before.mp4
android-standard-login-after.mp4
Native login
android-native-login-before.mp4
android-native-login-after.mp4
How to test
Replicate what is shown in the demos. By default, the standard login flow is enabled. To test the native login, ensure that the local feature flag is enabled in the environment variables and that the remote one is enabled on the dev-server.