Add handling of the NetSuite beta in NewDot#44064
Conversation
| // 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.
question, I was confused if we should use NETSUITE as single word or NET_SUITE underscore separated.
There was a problem hiding this comment.
one word should be fine I believe
dangrous
left a comment
There was a problem hiding this comment.
Code looks fine! though we're getting a typecheck error, not sure why that's related at this point though...
| 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.
NAB - should this be netSuite instead of netsuite?
There was a problem hiding this comment.
Nah this matches the casing on Web-E
| // 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.
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.
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 |
mananjadhav
left a comment
There was a problem hiding this comment.
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] |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| 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.
@yuwenmemon I think we should have used verified instead of lastErrorSyncDate
There was a problem hiding this comment.
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 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop