[#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.
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.
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.
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
Addworkflow and has changes from the previous PR ([#Wave-Control: Add NetSuite]: Settings Configuration in NewDot: Import Custom Records/Lists #44792) -Listing,View,EditandRemove.NetSuitebeta enabled for the user. You can return true in the canUseNetSuiteIntegration method.custom listsfrom text input to picker in this PR.Fixed Issues
$ #43437
PROPOSAL:
Tests
Tests for List, View, Update, Remove
Accountingfrom the LHSNet Suitein the active connections along with theOracle NetSuitelogo.Importbutton.Custom segments/recordswithout any data.Custom segments/recordsusing theAdd custom segments/recordsbutton.Custom segments/recordswith data now.Custom segment/recordand the segmentName that you added.Name,Internal ID,ScriptandMappingmappingyou should see the dropdown withTagsandReportoption. For the other fields it should be a text field.Save.Removeand you should see a confirmation modal for remove.Custom listsin the import screenTests for List, View, Update, Remove
confirmbutton should take you back to the listing screen with the newly added record.Custom list.Offline tests
QA Steps
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-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