-
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
Add missing calls to App.confirmReadyToOpenApp #51110
Conversation
@abdulrahuman5196 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] |
@@ -102,6 +103,7 @@ function InitialSettingsPage({currentUserPersonalDetails}: InitialSettingsPagePr | |||
|
|||
useEffect(() => { | |||
Wallet.openInitialSettingsPage(); | |||
App.confirmReadyToOpenApp(); |
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.
useEffect(() => { | ||
App.confirmReadyToOpenApp(); | ||
}, []); | ||
|
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.
@abdulrahuman5196 Please complete PR reviewer checklist, thanks! |
Hi, Checking now |
Hi @aldo-expensify I am facing server not found error after clicking on Screen.Recording.2024-10-22.at.1.10.55.AM.mov |
hmm, seems like it is trying to connect to the dev web api which contributors / C+ don't have. @mananjadhav I think you have tested QBO stuff... do you know what @abdulrahuman5196 may have misconfigured in their env to be making calls to |
@abdulrahuman5196 This is expected during development, when I encountered this I removed the |
Thanks @ikevin127 |
@abdulrahuman5196 do you think you will be able to review this soon? |
@abdulrahuman5196 in case QBO is harder to make work than other, for the testing steps, any kind of integration should work. |
Hi, Checking this now again, will let you know if I am able to unblock this dev issue. |
Checking again now |
Thank you for the help everyone. I am able to connect QBO, Will work on further checking and close this out. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariScreen.Recording.2024-10-29.at.12.46.40.AM.mp4MacOS: Chrome / SafariScreen.Recording.2024-10-29.at.12.43.24.AM.mp4MacOS: DesktopScreen.Recording.2024-10-29.at.12.44.18.AM.mp4 |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @jasperhuangg
🎀 👀 🎀
C+ Reviewed
I also checked mweb safari and its working fine and making reconnectApp call. |
@arosiclair 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] |
Thanks! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.0.55-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.55-10 🚀
|
Details
Seems like when we open the App from settings, the function confirmReadyToOpenApp is never called, which results in us never calling ReconnectApp here because the promise returned from getPolicyParamsForOpenOrReconnect never resolves
This PR is adding calls to
App.confirmReadyToOpenApp
where I think it is missing.cc @jasperhuangg since you added the function
App.confirmReadyToOpenApp
here: #18114Some more context: https://expensify.slack.com/archives/C03TQ48KC/p1729204325866909
Fixed Issues
$ #49371 (comment)
PROPOSAL:
Tests
Accounting
for a workspace and go to theAccounting
settings pagehttps://<domain>/settings/workspaces/<policyID>/accounting
and keep it somewhere (you will have to return to it later)OpenInitialSettingsPage
andReconnectApp
requestsOffline tests
QA Steps
Accounting
for a workspace and go to theAccounting
settings pagehttps://<domain>/settings/workspaces/<policyID>/accounting
and keep it somewhere (you will have to return to it later)OpenInitialSettingsPage
andReconnectApp
requestsPR 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
Starting the sync and closing the tab before it finishes:
Screen.Recording.2024-10-18.at.1.25.41.PM.mov
Reopening the tab:
Screen.Recording.2024-10-18.at.1.27.38.PM.mov
MacOS: Desktop