[QBD] Export settings main page#50164
Conversation
|
@allgandalf 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] |
|
PR is ready ! |
|
Does this need a C+ review ? @ZhenjaHorbach @hoangzinh @lakchote |
|
@allgandalf |
|
Can my review be dismissed here please |
Unfortunately, I can't =( |
Reviewer Checklist
Screenshots/VideosAndroid: Native |
|
@ZhenjaHorbach the PR title saying "Advanced settings main page" but PR is about "Export main page". Can you check again? |
Oh |
| { | ||
| description: translate('workspace.accounting.preferredExporter'), | ||
| onPress: () => Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_PREFERRED_EXPORTER.getRoute(policyID)), // TODO: should be updated to use new routes | ||
| title: qboConfig?.export?.exporter ?? policyOwner, |
There was a problem hiding this comment.
Is it a clone page from QBO? we have to put a lot of todo line here.
There was a problem hiding this comment.
Yes, according to docs export settings main screens are very similar
And I think there will be enough TODO here
https://github.com/Expensify/App/pull/50164/files#diff-d3e40fcf1fbd0236640562b12ae6c7cf27ff38980417a0f97dbc1d0e74ff563aR22
Since when qbd config will be ready we will need to test the correctness of the data
hoangzinh
left a comment
There was a problem hiding this comment.
LGTM for a backbone PR
lakchote
left a comment
There was a problem hiding this comment.
Left a comment, also modified Fixed issues text in your PR as it won't fix the related issue since there are TODO items.
| displayName={QuickbooksDesktopExportPage.displayName} | ||
| headerTitle="workspace.accounting.export" | ||
| title="workspace.qbd.exportDescription" | ||
| accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN]} |
There was a problem hiding this comment.
Should we modify this, to gate access to users who are on the beta for QBD too?
There was a problem hiding this comment.
Good idea
Done !
lakchote
left a comment
There was a problem hiding this comment.
Added comment related to the QBD beta and accessVariants
src/pages/workspace/accounting/qbd/export/QuickbooksDesktopExportPage.tsx
Outdated
Show resolved
Hide resolved
|
✋ 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/lakchote in version: 9.0.46-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.46-5 🚀
|
| titleStyle={styles.ph5} | ||
| shouldBeBlocked={!canUseNewDotQBD} // TODO: remove it once the QBD beta is done | ||
| connectionName={CONST.POLICY.CONNECTIONS.NAME.QBO} // TODO: should be updated to use the new connection | ||
| onBackButtonPress={() => Navigation.goBack(ROUTES.POLICY_ACCOUNTING.getRoute(policyID))} |
There was a problem hiding this comment.
Looks like having a fallback to the goBack function here led to the following issue:
which was fixed by removing the fallback, more details in the proposed solution.
There was a problem hiding this comment.
Thanks for the heads up @ikevin127.
cc @ZhenjaHorbach @hoangzinh for visibility





Details
[Wave Control] [QBD] Export settings main page
Fixed Issues
Related to #49707, will fix it once there aren't TODO items anymore.
PROPOSAL:
Tests
https://dev.new.expensify.com:8082/settings/workspaces/${policyId}/accounting/quickbooks-desktop/exportOffline tests
https://dev.new.expensify.com:8082/settings/workspaces/${policyId}/accounting/quickbooks-desktop/exportQA Steps
https://dev.new.expensify.com:8082/settings/workspaces/${policyId}/accounting/quickbooks-desktop/exportPR 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop