-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 translations for QBO Sync job #41060
Conversation
@@ -102,7 +102,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro | |||
titleTranslationKey: 'workspace.moreFeatures.taxes.title', | |||
subtitleTranslationKey: 'workspace.moreFeatures.taxes.subtitle', | |||
isActive: (policy?.tax?.trackingEnabled ?? false) || isSyncTaxEnabled, | |||
disabled: isSyncTaxEnabled || policy?.connections?.quickbooksOnline.data.country === CONST.COUNTRY.US, | |||
disabled: isSyncTaxEnabled || policy?.connections?.quickbooksOnline?.data?.country === CONST.COUNTRY.US, |
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.
This was crashing because data
was undefined.
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.
ah yep because we're not yet fetching the connections
data when the More Features page is opened 👍
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
I think this is the same crash seen here: #41129
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.
@@ -2196,6 +2196,18 @@ export default { | |||
return 'Importing your QuickBooks Online data'; | |||
case 'startingImport': | |||
return 'Importing your QuickBooks Online data'; | |||
case 'quickbooksOnlineSyncTitle': |
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 planning to use the constant defined in CONST.ts
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.
I wasn't planing to refactor, for some reason we haven't been using CONST 🤷 , so I'm just keeping it consistent
This looks like it just adds translations. Does this need a C+ review? |
@c3024 It doesn't and I made this ready for review by mistake :P, sorry about that |
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
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
I said this in Slack, but I think we should get rid of the switch statement, create individual keys and use translateIfPhraseKey instead. Not gonna block this PR since the switch statement is already there. |
Follow up issue here: #41248 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.68-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.68-3 🚀
|
Needs the following PRs:
Details
More context: #41018 (comment)
Add missing translations coming from the Sync QBO job
The stages names come from here:
https://github.com/Expensify/Integration-Server/blob/7ef13d7fc79a24863e4310e71e5ea348457508c3/src/expensify/progress/ProgressStepMessage.java#L49-L54
These are the same translations from Web-Expensify:
https://github.com/Expensify/Web-Expensify/blob/dd2b65fb6dd4fd0941fa5c462710aa6fc3d9cef6/site/app/global/pushNotificationsTemplates.js#L70-L77
Fixed Issues
$ #41015
$ #41129 (crash)
PROPOSAL:
Tests
It should look like this:
Screen.Recording.2024-04-25.at.11.42.14.PM.mov
Offline tests
QA Steps
N/A
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