-
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
Display sync error when connecting to NetSuite with invalid credentials #47059
Conversation
@tgolen The original issue was resolved, we were unable to register with invalid credentials. Screen.Recording.2024-08-10.at.17.42.12.movthanks :D |
Yes, please update that error message in this PR. |
Should we change the existing message 'Waiting for imported data to load' or add a new loading message? If so, what message should we display for this scenario? |
I believe we should add another message/step @nyomanjyotisa, I haven't looked deep into it yet but it doesn't seem like we're going to have any complications, what do you think? |
I don't know... sorry. I'm not very familiar with all the different states. Maybe @yuwenmemon or @francoisl could offer some opinions. Also, it would probably help them if you could lay out more clearly what you are asking for. I'm a little lost at this point. |
Sorry for the mess, give me a moment and I'll summarize Edit: Sorry team, I made a mess here. @nyomanjyotisa's work is fine, I thought we should create a message for the verification moment, but the current one is correct, we use the same one for the other login methods (Xero, Sage, ...), sorry for that, my inattention. I will fill out the checklist today. Sorry again for the that @tgolen. |
Reviewer Checklist
Screenshots/VideosAndroid: Native47059_android_native.movAndroid: mWeb Chrome47059_android_web.moviOS: Native47059_ios_native.moviOS: mWeb Safari47059_ios_web.movMacOS: Chrome / Safari47059_chorme_web.movMacOS: Desktop47059_chorme_desktop.mov |
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.
Re-tested, LGTM.
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.
Cool, no worries @brunovjk!
✋ 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/tgolen in version: 9.0.23-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.23-0 🚀
|
@@ -372,7 +372,10 @@ function getSynchronizationErrorMessage(policy: OnyxEntry<Policy>, connectionNam | |||
const syncError = Localize.translateLocal('workspace.accounting.syncError', connectionName); | |||
// NetSuite does not use the conventional lastSync object, so we need to check for lastErrorSyncDate | |||
if (connectionName === CONST.POLICY.CONNECTIONS.NAME.NETSUITE) { | |||
if (!isSyncInProgress && !!policy?.connections?.[CONST.POLICY.CONNECTIONS.NAME.NETSUITE].lastErrorSyncDate) { | |||
if ( |
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 causing "Can't connect to NetSuite" message to appear after connecting to Netsuite, we fixed this in #50032.
Details
Fixed Issues
$ #46768
PROPOSAL: #46768 (comment)
Tests
Offline tests
QA Steps
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
Display-sync-error-when-connecting-to-NetSuite-with-invalid-credentials-by-nyomanjyotisa-.-Pull-Request-47059-.-Expensify-App.1.mp4
Android: mWeb Chrome
Video-detail-page.2.mp4
iOS: Native
iOS: mWeb Safari
RPReplay_Final1723117099.1.mp4
MacOS: Chrome / Safari
-1-New-Expensify.20.mp4
MacOS: Desktop
Display-sync-error-when-connecting-to-NetSuite-with-invalid-credentials-by-nyomanjyotisa-.-Pull-Request-47059-.-Expensify-App.mp4