-
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
Swap from withPolicy to withPolicyConnections for advanced Quickbooks pages #40718
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 |
App/src/pages/workspace/accounting/qbo/advanced/QuickbooksAccountSelectPage.tsx Lines 26 to 30 in 827b1f2
App/src/pages/workspace/accounting/qbo/advanced/QuickbooksInvoiceAccountSelectPage.tsx Lines 26 to 30 in 827b1f2
App/src/pages/workspace/accounting/qbo/advanced/QuickbooksInvoiceAccountSelectPage.tsx Line 41 in 827b1f2
|
…-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. |
src/pages/workspace/accounting/qbo/advanced/QuickbooksAdvancedPage.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/accounting/qbo/advanced/QuickbooksAdvancedPage.tsx
Outdated
Show resolved
Hide resolved
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 |
src/pages/workspace/accounting/qbo/advanced/QuickbooksAccountSelectPage.tsx
Outdated
Show resolved
Hide resolved
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>
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 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
MacOS: Chrome / Safari
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Desktop