-
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] [Import] Chart of accounts page #50545
[QBD] [Import] Chart of accounts page #50545
Conversation
@ZhenjaHorbach 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] |
@hoangzinh |
ah yes it's ready @ZhenjaHorbach |
@ZhenjaHorbach fyi, @lakchote and I had some discussion about this issue here https://new.expensify.com//r/4322790092549381/7849639291558303297 |
@hoangzinh I've talked again with @francoisl who led the Codat integration for QBD. There was some confusion about the setting we were talking about. The However, this is not supported yet in QBD. In the meantime, could you please hide it and put it behind a |
<Text style={styles.pv5}>{translate('workspace.qbd.accountsSwitchTitle')}</Text> | ||
<ToggleSettingOptionRow | ||
title={translate('workspace.common.enabled')} | ||
subtitle={translate('workspace.qbd.accountsSwitchDescription')} | ||
switchAccessibilityLabel={translate('workspace.accounting.accounts')} | ||
shouldPlaceSubtitleBelowSwitch | ||
isActive | ||
onToggle={() => {}} | ||
disabled | ||
showLockIcon | ||
/> |
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.
Let's put this behind a TODO
.
See #50545 (comment)
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.
Updated in this commit 94eb5b4
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.
One comment related to the enabled categories, other than LGTM.
featureName={CONST.POLICY.MORE_FEATURES.ARE_CONNECTIONS_ENABLED} | ||
contentContainerStyle={[styles.pb2, styles.ph5]} | ||
connectionName={CONST.POLICY.CONNECTIONS.NAME.QBD} | ||
shouldBeBlocked={!canUseNewDotQBD} |
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.
Let's add TODO 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.
Added here 4fd1844
@@ -29,7 +29,7 @@ function QuickbooksDesktopImportPage({policy}: WithPolicyProps) { | |||
const sections: QBDSectionType[] = [ | |||
{ | |||
description: translate('workspace.accounting.accounts'), | |||
action: () => {}, // TODO: [QBD] will be implemented in https://github.com/Expensify/App/issues/49703 | |||
action: () => Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_CHART_OF_ACCOUNTS.getRoute(policyID)), | |||
title: translate('workspace.accounting.importAsCategory'), | |||
subscribedSettings: [CONST.QUICKBOOKS_CONFIG.ENABLE_NEW_CATEGORIES], |
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.
Actually, this seems a bit redundant
Since we have nothing to subscribe to at the moment
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.
You;re right. Updated here 73be4e5
Reviewer Checklist
Screenshots/VideosAndroid: Native2024-10-15.12.58.30.movAndroid: mWeb Chrome2024-10-15.12.59.16.moviOS: Nativeios.moviOS: mWeb Safariios-web.movMacOS: Chrome / SafariWeb.movMacOS: Desktopdesktop.mov |
LGTM ! |
@hoangzinh the PRs for the enable new categories toggle have been merged. Could you please adjust code, remove the |
The code for that command won't be deployed until Monday though FYI, tests won't work in the meantime. |
@lakchote Updated. Btw, can you share the Onyx key of this setting? I couldn't find it in the example Onyx data of DD. Is it 'enableNewCategories'? |
Yes that's correct, |
Thank you @francoisl. Please let us know when the PR is deployed. |
@hoangzinh PR has been deployed to staging for the API command |
It worked @lakchote |
Updated test cases and recordings. This PR is ready for re-review. @ZhenjaHorbach do you mind reviewing this PR again? Thank you. |
Yeah |
Everything looks good ! |
@lakchote |
✋ 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.50-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.50-8 🚀
|
Details
Fixed Issues
$ #49703
PROPOSAL:
Tests
Prerequisites:
Offline tests
Same as above
QA Steps
Same as above
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
Screen.Recording.2024-10-15.at.16.53.26.android.mov
Android: mWeb Chrome
Screen.Recording.2024-10-15.at.16.54.34.android.chrome.mov
iOS: Native
Screen.Recording.2024-10-15.at.17.03.47.mov
iOS: mWeb Safari
Screen.Recording.2024-10-15.at.16.58.17.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-15.at.16.49.14.web.mov
MacOS: Desktop
Screen.Recording.2024-10-15.at.16.50.38.desktop.mov