-
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
Add XeroChartOfAccountsPage #41849
Add XeroChartOfAccountsPage #41849
Conversation
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.
Code LGTM 🚀
@@ -242,6 +242,7 @@ const SCREENS = { | |||
QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECTOR: 'Policy_Accounting_Quickbooks_Online_Invoice_Account_Selector', | |||
XERO_IMPORT: 'Policy_Accounting_Xero_Import', | |||
XERO_ORGANIZATION: 'Policy_Accounting_Xero_Customers', | |||
XERO_CHART_OF_ACCOUNTS: 'Policy_Accounting_Xero_Import_Chart_Of_Accounts', |
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.
Was this Import
added intentionally?
XERO_CHART_OF_ACCOUNTS: 'Policy_Accounting_Xero_Import_Chart_Of_Accounts', | |
XERO_CHART_OF_ACCOUNTS: 'Policy_Accounting_Xero_Chart_Of_Accounts', |
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, it's intended. Quickbooks Chart of accounts page has the same naming and I'm trying to keep the same convention 😄
@Expensify/design could you take a look please? |
Screenshot looks pretty good to me! |
@SzymczakJ please change the target branch to |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
src/languages/es.ts
Outdated
accountsDescription: 'Cuando estás conectado a Quickbooks Online, los planes de cuentas siempre se importan a Expensify como categorías.', | ||
accountsSwitchTitle: 'Elige abajo si las categorías importadas serán activadas o desactivadas por defecto.', | ||
accountsSwitchDescription: 'Las categorías activas estarán disponibles para ser escogidas cuando se crea un gasto.', |
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.
Not the correct translation
<View style={[styles.flexRow, styles.mb2, styles.alignItemsCenter, styles.justifyContentBetween]}> | ||
<View style={styles.flex1}> | ||
<Text fontSize={variables.fontSizeNormal}>{translate('workspace.common.enabled')}</Text> | ||
</View> | ||
<OfflineWithFeedback pendingAction={pendingFields?.enableNewCategories}> | ||
<View style={[styles.flex1, styles.alignItemsEnd, styles.pl3]}> | ||
<Switch | ||
accessibilityLabel={translate('workspace.accounting.accounts')} | ||
isOn={!!enableNewCategories} | ||
onToggle={() => | ||
Connections.updatePolicyConnectionConfig(policyID, CONST.POLICY.CONNECTIONS.NAME.XERO, CONST.XERO_CONFIG.ENABLE_NEW_CATEGORIES, !enableNewCategories) | ||
} | ||
/> | ||
</View> | ||
</OfflineWithFeedback> | ||
</View> | ||
<View style={styles.flex1}> | ||
<Text style={styles.mutedTextLabel}>{translate('workspace.xero.accountsSwitchDescription')}</Text> | ||
</View> |
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.
Replace with ToggleSettingOptionRow
and pass errors
and onCloseError
@s77rt fixed your comments! |
<Text style={styles.mutedTextLabel}>{translate('workspace.xero.accountsSwitchDescription')}</Text> | ||
</View> | ||
<ToggleSettingOptionRow | ||
key={translate('workspace.xero.accountsSwitchTitle')} |
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.
Why is key needed?
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.
blooper on my side 😅
title={translate('workspace.common.enabled')} | ||
subtitle={translate('workspace.xero.accountsSwitchDescription')} | ||
shouldPlaceSubtitleBelowSwitch | ||
wrapperStyle={styles.mv3} |
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.
wrapperStyle={styles.mv3} |
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.
In QBO we don't have the extra margin
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 good to me
🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.74-6 🚀
|
Details
This PR add Xero chart of accounts page.
Fixed Issues
$ #39731
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Same as tests
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
androidChartOfAccounts.mov
Android: mWeb Chrome
androidwebChartOfAccounts.mov
iOS: Native
iosChartOfAccounts.mov
iOS: mWeb Safari
ioswebCHartOfAccounts.mov
MacOS: Chrome / Safari
webChartOfAccounts.mov
MacOS: Desktop
desktopChartOfAccounts.mov