fix: app does not open admin room after onboarding#55654
fix: app does not open admin room after onboarding#55654dangrous merged 16 commits intoExpensify:mainfrom
Conversation
|
Let @DylanDylann and me know if we can be of any help in getting that unit test done! We're trying to get this merged today if possible! |
|
hey @mkzie2, what's blocking you from getting this PR in review? How can we help? This one's a top priority for us, thanks! |
|
@DylanDylann It looks like this is pretty nearly there, just need the test and the lint errors - do you think you could take this one over to move it along? |
|
I had problem with the tests but found a solution. I'm recording evidences. Will be ready in 1 hour. |
|
@mkzie2 Is this ready? |
|
@DylanDylann @dangrous As I'm still having problems with the unit test (it ran successfully locally but did not through GH actions) and given the urgency, I suggest we separate this PR into 2 parts: The fix for the issue & the unit test. I'll create the follow-up PR later. Wdyt? |
|
Hrm, I'd really like the tests to ship with it, if at all possible. Playing around with your latest test (reverting your revert), it's not passing for me locally either. Soooo that might help with testing the test? Pressing the employee selection isn't marking the option as pressed. Maybe because it's a selection list not a button/menu? Not sure if that helps, but maybe |
|
@mkzie2 For simpler, I think we only need to add UTs for navigateAfterOnboarding function instead of simulating the total onboarding flow |
|
Yeah @DylanDylann's suggestion sounds good to me - that should make it easier! Only potential weird part about that is the @mkzie2 can you take a look and try to get this into final review on Monday? Thanks! |
|
@DylanDylann Updated the UT. |
|
Hi all!
Let's shoot for getting this out today! |
|
@mkzie2 Also please merge the latest main to resolve Jest Unit Tests / test (job 3) failure |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-04.at.13.57.39.movAndroid: mWeb ChromeScreen.Recording.2025-02-04.at.13.55.04.moviOS: NativeScreen.Recording.2025-02-04.at.13.57.11.moviOS: mWeb SafariScreen.Recording.2025-02-04.at.13.54.36.movMacOS: Chrome / SafariScreen.Recording.2025-02-04.at.13.45.06.movMacOS: DesktopScreen.Recording.2025-02-04.at.13.55.47.mov |
|
Some minor comments. The rest looks fine cc @dangrous |
|
Updated. |
| expect(Navigation.navigate).not.toHaveBeenCalled(); | ||
| }); | ||
|
|
||
| it('should navigate to last accessed report if shouldOpenOnAdminRoom is true on small screens', () => { |
There was a problem hiding this comment.
It should be "should navigate to last accessed report on small screens"
DylanDylann
left a comment
There was a problem hiding this comment.
Almost done. One minor comment
| expect(Navigation.navigate).not.toHaveBeenCalled(); | ||
| }); | ||
|
|
||
| it('should navigate to last accessed report if shouldOpenOnAdminRoom is true on small screens', () => { |
There was a problem hiding this comment.
| it('should navigate to last accessed report if shouldOpenOnAdminRoom is true on small screens', () => { | |
| it('should navigate to last accessed report on small screens', () => { |
There was a problem hiding this comment.
In this case, we don't need to care shouldOpenOnAdminRoom and onboardingAdminsChatReportID param
There was a problem hiding this comment.
This is the shouldOpenOnAdminRoom function I mentioned. It returns true when the URL contains openOnAdminRoom param:
Not the shouldOpenAdminRoom param we just removed above. So no need to update this comment.
dangrous
left a comment
There was a problem hiding this comment.
This looks good to me!
In the interests of getting this merged, I'm going to go ahead without that comment change - but @mkzie2 can you please create a quick follow up PR to update? What @DylanDylann suggested makes sense.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@dangrous @DylanDylann No need for follow-up PR #55654 (comment) |
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.0.95-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀
|
| // On small screens, this removal redirects navigation to HOME. Dismissing the modal doesn't work properly, | ||
| // so we need to specifically navigate to the last accessed report. | ||
| if (!isSmallScreenWidth) { | ||
| if (onboardingAdminsChatReportID) { |
There was a problem hiding this comment.
We always open #admins room for Manage my team's expenses but for testing accounts (accounts with + in email), the onboarding tasks show up in Concierge chat instead. Led to this issue #57167
Explanation of Change
Fixed Issues
$ #55336
PROPOSAL: #55336 (comment)
Tests
Manage my team's expenses>1-10 employees> Any accounting platform#adminsroomOffline tests
NA
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Screen.Recording.2025-01-30.at.18.52.09.mov
Android: mWeb Chrome
Screen.Recording.2025-01-30.at.18.39.58-compressed.mov
iOS: Native
Screen.Recording.2025-01-30.at.01.23.34-compressed.mov
iOS: mWeb Safari
Screen.Recording.2025-01-30.at.18.37.36-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-30.at.01.18.31-compressed.mov
MacOS: Desktop
Screen.Recording.2025-01-30.at.01.21.54-compressed.mov