[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.
Let's put this behind a TODO.
See #50545 (comment)
lakchote
left a comment
There was a problem hiding this comment.
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} |
| 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.
Actually, this seems a bit redundant
Since we have nothing to subscribe to at the moment
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 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
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