-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HybridApp] feat: go back to OD when trying to sign out #44092
[HybridApp] feat: go back to OD when trying to sign out #44092
Conversation
@AndrewGable not sure how we should handle the
Also, if we are an anonymous user, I guess we do not want to navigate back to OD? Is it even possible in the context of OD to be an anonymous user in ND? |
If we are redirecting to the sign in page, I think we should redirect the user to OldDot.
I do not think it's currently possible to be an anonymous user in HybridApp. |
Ok, so it should work like that right now 🚀 |
@WoLewicki What kind of error can be used as a trigger for the test? Would throwing an exception from a |
Probably yes, but since Error page is not something you normally want to end up in in your app, it can be tricky to get there without touching the code. |
@akinwale can you review this today, please? Thanks! |
@trjExpensify I'll review today. |
Great, please do! :) |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: Native44092-ios-native.mp4iOS: mWeb SafariMacOS: Chrome / Safari44092-web.mp4MacOS: Desktop |
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.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@WoLewicki could you help to trigger error message?
|
Looking at the code (https://github.com/Expensify/App/blob/1d607acab9c47f2e0da4e8c85de5d90e2d47c11b/src/components/ErrorBoundary/BaseErrorBoundary.tsx) it is only possible to get to this page when you get an error from the App, and I am not sure if there is any scenario available that can get you there. cc @mountiny do you maybe know if it is triggerable? |
I guess we could add a row for HybridApp only to throw an error on the troubleshooting page? |
Do you mean a row in the options of
|
Yeah that's probably a bad idea |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
Details
PR making the user go back to OD when instead of logging out in
HybridApp
.Fixed Issues
$ #43336
PROPOSAL:
Tests
Offline tests
QA Steps
Go to Settings and see that there is no Logout button on HybridApp and there still is one on ND
Trigger Error in App (not sure how to do it) so you are navigated to
GenericErrorPage
and clickSign Out
button. On HybridApp it should navigate to OD, on ND it should sign you out.Validate that for the anonymous user, this PR does not change anything regarding signing out.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop