Swap from withPolicy to withPolicyConnections for advanced Quickbooks pages #40718
Conversation
|
@MonilBhavsar 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] |
|
As I said in Slack, let's test if we're actually getting the real data on the staging. It's hard to test this locally right now |
|
you're still using |
|
|
…-policy-connection-for-advanced-config
|
All done @hayata-suenaga, can you test? |
|
sure testing now... |
|
I'm facing a local environment issue and I cannot test this at the moment. While I trouble shoot, I'll write the QA test steps. |
|
Are we down to final reviews needed from @s77rt & @hayata-suenaga here? |
|
Yes @trjExpensify. @hayata-suenaga @s77rt this is up for review |
…-policy-connection-for-advanced-config
…-policy-connection-for-advanced-config
Reviewer Checklist
Screenshots/VideosAndroid: NativeBuild errors |
|
Looks good to me, good catch Tom! |
|
Pushed new changes. let's check. @trjExpensify @pecanoro @hayata-suenaga @s77rt @shawnborton |
Co-authored-by: Rocio Perez-Cano <pecanoro@users.noreply.github.com>
Co-authored-by: Rocio Perez-Cano <pecanoro@users.noreply.github.com>
Co-authored-by: Rocio Perez-Cano <pecanoro@users.noreply.github.com>
hayata-suenaga
left a comment
There was a problem hiding this comment.
I'm not 100% around the logic in the callback for onToggle but let's merge for test on staging
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.4.66-0 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.4.66-0 🚀
|
| policyID, | ||
| CONST.POLICY.CONNECTIONS.NAME.QBO, | ||
| CONST.QUICK_BOOKS_CONFIG.COLLECTION_ACCOUNT_ID, | ||
| isSyncReimbursedSwitchOn ? '' : [...qboAccountOptions, ...invoiceAccountCollectionOptions][0].id, |
There was a problem hiding this comment.
@teneeto Shouldn't this be based on the invoiceAccountCollectionOptions only? This switch will set a collect account and qboAccountOptions may not have valid options (e.g. credit cards)
There was a problem hiding this comment.
@s77rt we can look into this further, we were looking at a situation where qboAccountOptions does not have options but invoiceAccountCollectionOptions does have - it means the switch won't toggle on simply because qbaAccountOptions is missing options.
I'm sure this isn't perfect - I can't test in real-time either. I have limitations in seeing exactly what happens.
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.66-5 🚀
|





Details
Follow up integration withPolicyConnection for advanced config pages
Fixed Issues
$ 37777
PROPOSAL: issue Description
Tests / QA
Offline tests
N/A
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
MacOS: Chrome / Safari
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Desktop