-
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
[#Wave-Control: Add NetSuite] Add Support for NetSuite Token Input #44661
[#Wave-Control: Add NetSuite] Add Support for NetSuite Token Input #44661
Conversation
Uploading the demo video. The API is failing and I'll finish the checklist once that's done. web-netsuite-token-input-ui.mov |
@@ -60,6 +60,12 @@ type ConnectionLayoutProps = { | |||
|
|||
/** Name of the current connection */ | |||
connectionName: ConnectionName; | |||
|
|||
/** Block the screen when the connection is not empty */ | |||
reverseConnectionEmptyCheck?: boolean; |
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.
For the Token Input we want that the connection should be empty and it should be blocked when connection is not empty. I couldn't come up with a better name.
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.
How about `isForEmptyConnection
const ref: ForwardedRef<InteractiveStepSubHeaderHandle> = useRef(null); | ||
|
||
const submit = () => { | ||
Navigation.goBack(ROUTES.POLICY_ACCOUNTING.getRoute(policyID)); |
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.
Navigation.goBack(ROUTES.POLICY_ACCOUNTING.getRoute(policyID)); | |
Navigation.goBack(); |
@mananjadhav This is again causing navigation issues.
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.
Fixed
Looking at the video - after making the connection can we optimistically update the onyx data for NetSuite to indicate that it's syncing? From there, the IS job to make the connection will send onyx updates with the status of the sync. |
I removed all videos containing credentials. Adding these videos with secure entry. web-netsuite-steps.movweb-netsuite-form.mov |
Reviewer Checklist
Screenshots/VideosContains sensitive info, so see this in slack thread below. https://expensify.slack.com/archives/C06ML6X0W9L/p1720060654300349 |
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
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 comment but will consider it a NAB and we can fix in a follow-up
@@ -60,6 +60,12 @@ type ConnectionLayoutProps = { | |||
|
|||
/** Name of the current connection */ | |||
connectionName: ConnectionName; | |||
|
|||
/** Block the screen when the connection is not empty */ | |||
reverseConnectionEmptyCheck?: boolean; |
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.
How about `isForEmptyConnection
Thanks for merging. I'll update in one my other PRs. |
✋ 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/yuwenmemon in version: 9.0.5-0 🚀
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.0.5-2 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
Details
Fixed Issues
$ #43434
PROPOSAL:
Tests
Prerequisite:
NetSuite
integration enabled.Test Steps
Workspace Settings
> Choose your workspace that has Accounting enabled.Accounting
menu.Connect
button next toNetSuite
.1-5
.step 5
, you should see the form with three inputs -NetSuite Account ID
,Token ID
andToken Secret
.NetSuite Account ID
you should see the description text for the field.Confirm
.Policy Accounting
page.Note: While this PR is made, the connection sync in progress doesn't show up for NetSuite. This is not a part of the current PR, hence you might see a delay in the connection info.
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.