fix: app crash when clicking on not found policy#48390
Conversation
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-04.at.22.39.12.movAndroid: mWeb ChromeScreen.Recording.2024-09-04.at.22.35.40.moviOS: NativeScreen.Recording.2024-09-04.at.22.40.27.moviOS: mWeb SafariScreen.Recording.2024-09-04.at.22.34.48.movMacOS: Chrome / SafariScreen.Recording.2024-09-04.at.22.29.54.movMacOS: DesktopScreen.Recording.2024-09-04.at.22.46.38.mov |
|
@daledah I found the bug: The not found modal is dismissed immediately after opening it. I think it's not related to this issue, can you help check again? Thanks |
|
Still investigating, will give an update today |
|
@dukenv0307 I think this is expected behavior, as in App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 357 to 360 in ae47166 and App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 373 to 385 in ae47166 When the policy is not found, then any RHP Flow will be dismissed. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
Fixed Issues
$ #47946
PROPOSAL: #47946 (comment)
Tests
Offline tests
QA Steps
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
Screen.Recording.2024-09-02.at.14.43.43.mov
Android: mWeb Chrome
Screen.Recording.2024-09-02.at.14.39.43.mov
iOS: Native
Screen.Recording.2024-09-02.at.14.55.24.mov
iOS: mWeb Safari
Screen.Recording.2024-09-02.at.14.53.23.mov
MacOS: Chrome / Safari
Screen.Recording.2024-09-02.at.14.36.09.mov
MacOS: Desktop
Screen.Recording.2024-09-02.at.15.01.14.mov