Repository navigation
[HybridApp] feat: go back to OD when trying to sign out - #44092
AndrewGable merged 1 commit into
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 |
|
✋ 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
GenericErrorPageand clickSign Outbutton. 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop