-
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 handling of the NetSuite beta in NewDot #44064
Conversation
@@ -1798,6 +1799,7 @@ const CONST = { | |||
// Here we will add other connections names when we add support for them | |||
QBO: 'quickbooksOnline', | |||
XERO: 'xero', | |||
NETSUITE: 'netsuite', |
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.
question, I was confused if we should use NETSUITE
as single word or NET_SUITE
underscore separated.
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 word should be fine I believe
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 looks fine! though we're getting a typecheck error, not sure why that's related at this point though...
@@ -363,6 +363,7 @@ const CONST = { | |||
SPOTNANA_TRAVEL: 'spotnanaTravel', | |||
ACCOUNTING_ON_NEW_EXPENSIFY: 'accountingOnNewExpensify', | |||
XERO_ON_NEW_EXPENSIFY: 'xeroOnNewExpensify', | |||
NETSUITE_ON_NEW_EXPENSIFY: 'netsuiteOnNewExpensify', |
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.
NAB - should this be netSuite
instead of netsuite
?
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.
Nah this matches the casing on Web-E
@@ -1798,6 +1799,7 @@ const CONST = { | |||
// Here we will add other connections names when we add support for them | |||
QBO: 'quickbooksOnline', | |||
XERO: 'xero', | |||
NETSUITE: 'netsuite', |
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 word should be fine I believe
@yuwenmemon Can you fix the lint issues? |
if (connectionName === CONST.POLICY.CONNECTIONS.NAME.NETSUITE) { | ||
return !isSyncInProgress && !!policy?.connections?.[CONST.POLICY.CONNECTIONS.NAME.NETSUITE].lastErrorSyncDate | ||
} |
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 fixes our Typecheck issue
@hayata-suenaga 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] |
🎯 @mananjadhav, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #44121. |
I'll just do one basic test on Web before completing the checklist. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariWith beta enabled MacOS: Desktop |
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.
All yours @dangrous
@hayata-suenaga 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] |
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!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@@ -236,6 +236,11 @@ function updateManyPolicyConnectionConfigs<TConnectionName extends ConnectionNam | |||
} | |||
|
|||
function hasSynchronizationError(policy: OnyxEntry<Policy>, connectionName: PolicyConnectionName, isSyncInProgress: boolean): boolean { | |||
// NetSuite does not use the conventional lastSync object, so we need to check for lastErrorSyncDate | |||
if (connectionName === CONST.POLICY.CONNECTIONS.NAME.NETSUITE) { | |||
return !isSyncInProgress && !!policy?.connections?.[CONST.POLICY.CONNECTIONS.NAME.NETSUITE].lastErrorSyncDate; |
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.
@yuwenmemon I think we should have used verified
instead of lastErrorSyncDate
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.
No, verified
is a different setting that governs whether or not we show the sync button. I actually think we may not need to use it in NewDot at all. It's an old setting for OldDot.
🚀 Deployed to staging by https://github.com/dangrous in version: 9.0.1-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.1-19 🚀
|
I don't think it was a regression but we should have accounted for |
@mananjadhav please review
cc @mountiny
Details
Adds logic to filter out the NetSuite integration if you're not on the beta.
Fixed Issues
None, but discussed here: https://expensify.slack.com/archives/C06ML6X0W9L/p1718837727812639
Tests/QA
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