-
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
[#Wave-Control: Add NetSuite]: Settings Configuration in NewDot: Import - Add Custom Records/Lists #44942
[#Wave-Control: Add NetSuite]: Settings Configuration in NewDot: Import - Add Custom Records/Lists #44942
Conversation
…-records-list-page
…stom-records-list-page
…-records-list-page
…-records-list-page
Removed draft logic as discussed here. |
...rkspace/accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteCustomListPicker.tsx
Show resolved
Hide resolved
...rkspace/accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteCustomListPicker.tsx
Outdated
Show resolved
Hide resolved
.../accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteImportAddCustomListPage.tsx
Outdated
Show resolved
Hide resolved
.../accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteImportAddCustomListPage.tsx
Outdated
Show resolved
Hide resolved
...counting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteImportAddCustomSegmentPage.tsx
Outdated
Show resolved
Hide resolved
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.0.6-0 🚀
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.0.6-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.6-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.6-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
|
||
const [customSegmentType, setCustomSegmentType] = useState<ValueOf<typeof CONST.NETSUITE_CUSTOM_RECORD_TYPES> | undefined>(); | ||
|
||
const validate = useCallback( |
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.
Some validation was missing here which caused issue:
To solve the issue we added new error case and translations for the specific case, more details in the proposal.
if (screenIndex === CONST.NETSUITE_CUSTOM_FIELD_SUBSTEP_INDEXES.CUSTOM_LISTS.CUSTOM_LIST_PICKER) { | ||
Navigation.goBack(ROUTES.POLICY_ACCOUNTING_NETSUITE_IMPORT_CUSTOM_FIELD_MAPPING.getRoute(policyID, CONST.NETSUITE_CONFIG.IMPORT_CUSTOM_FIELDS.CUSTOM_LISTS)); | ||
return; | ||
} | ||
ref.current?.movePrevious(); | ||
prevScreen(); | ||
}; |
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.
We are not clearing the form errors on going back which is causing issue #49266, we do need to clear errors because we are using the same Form by just changing the content of the sub-step.
stepNames={CONST.NETSUITE_CONFIG.NETSUITE_ADD_CUSTOM_SEGMENT_STEP_NAMES} | ||
/> | ||
</View> | ||
<View style={[styles.flexGrow1, styles.mt3]}> |
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.
We should use styles.flex1
here instead of styles.flexGrow1
to allow form scrollable. More details here #50065 (comment)
FYI, this caused the following issue: #49986 |
Details
Add
workflow and has changes from the previous PR ([#Wave-Control: Add NetSuite]: Settings Configuration in NewDot: Import Custom Records/Lists #44792) -Listing
,View
,Edit
andRemove
.NetSuite
beta enabled for the user. You can return true in the canUseNetSuiteIntegration method.custom lists
from text input to picker in this PR.Fixed Issues
$ #43437
PROPOSAL:
Tests
Tests for List, View, Update, Remove
Accounting
from the LHSNet Suite
in the active connections along with theOracle NetSuite
logo.Import
button.Custom segments/records
without any data.Custom segments/records
using theAdd custom segments/records
button.Custom segments/records
with data now.Custom segment/record
and the segmentName that you added.Name
,Internal ID
,Script
andMapping
mapping
you should see the dropdown withTags
andReport
option. For the other fields it should be a text field.Save
.Remove
and you should see a confirmation modal for remove.Custom lists
in the import screenTests for List, View, Update, Remove
confirm
button should take you back to the listing screen with the newly added record.Custom list
.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
android-add-custom-lists.mov
Steps
https://github.com/Expensify/App/assets/3069065/acb70e66-4c3d-4952-8966-36b9190f31cf
Steps Completion
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
ios-add-custom-segments.mov
ios-add-custom-lists.mov
MacOS: Chrome / Safari
web-add-custom-segment-lists.mov
web-add-custom-segment-errors.mov
MacOS: Desktop
desktop-add-custom-segments-lists.mov