-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[QBD] Export settings main page #50164
[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![Screenshot 2024-10-04 at 14 51 49](https://github.com/user-attachments/assets/8dcc565d-a0e2-4892-8951-736aedc1db84) |
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a clone page from QBO? we have to put a lot of todo line here.
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.
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
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.
LGTM for a backbone PR
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we modify this, to gate access to users who are on the beta for QBD too?
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.
Good idea
Done !
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/export
Offline tests
https://dev.new.expensify.com:8082/settings/workspaces/${policyId}/accounting/quickbooks-desktop/export
QA Steps
https://dev.new.expensify.com:8082/settings/workspaces/${policyId}/accounting/quickbooks-desktop/export
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop