Make NetSuiteCustomFieldMappingPicker use new SelectionList#72740
Conversation
Codecov Report❌ Patch coverage is
... and 1497 files with indirect coverage changes 🚀 New features to boost your workflow:
|
…_IMPORT_CUSTOM_FIELD_VIEW
| initiallyFocusedOptionKey={value ?? CONST.INTEGRATION_ENTITY_MAP_TYPES.TAG} | ||
| initiallyFocusedItemKey={value ?? CONST.INTEGRATION_ENTITY_MAP_TYPES.TAG} | ||
| shouldSingleExecuteRowSelect | ||
| shouldUpdateFocusedIndex |
There was a problem hiding this comment.
Could you double check if this prop is needed?
There was a problem hiding this comment.
You're right. We might as well get rid of this prop here. Thanks for noticing
…n NetSuiteCustomFieldMappingPicker
|
@rushatgabhane 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] |
| initiallyFocusedOptionKey={value ?? CONST.INTEGRATION_ENTITY_MAP_TYPES.TAG} | ||
| initiallyFocusedItemKey={value ?? CONST.INTEGRATION_ENTITY_MAP_TYPES.TAG} | ||
| shouldSingleExecuteRowSelect | ||
| shouldUpdateFocusedIndex |
There was a problem hiding this comment.
Should we remove shouldUpdateFocusedIndex here? Are there any cases where the user selects an item but the selection page is not closed?
There was a problem hiding this comment.
This prop is not needed. Selecting an item in the component makes the SelectionList close in every use case
There was a problem hiding this comment.
Removing shouldUpdateFocusedIndex can cause a regression like #73449. Let me test it more carefully. Or to be safe, we can bring it back.
There was a problem hiding this comment.
The alike regression shouldn't happen as the page always closes after an item selection. In the component that migration caused the issue (the one you mentioned), it turned out not to be the case. If you have any doubts, I would appreciate you testing it in detail
| } | ||
|
|
||
| Navigation.navigate(ROUTES.POLICY_ACCOUNTING_NETSUITE_IMPORT_CUSTOM_FIELD_VIEW.getRoute(policyID, importCustomField, valueIndex)); | ||
| Navigation.goBack(ROUTES.POLICY_ACCOUNTING_NETSUITE_IMPORT_CUSTOM_FIELD_VIEW.getRoute(policyID, importCustomField, valueIndex)); |
There was a problem hiding this comment.
Is it related to this PR?
There was a problem hiding this comment.
It is. It's a fix for a navigation issue that occurred after item selection from the migrated component. Previously, instead of closing the modal screen after the selection, the user was navigated to a new one, as visible in the video:
Screen.Recording.2025-10-28.at.12.43.02.mov
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-30.at.22.42.43.movAndroid: mWeb ChromeScreen.Recording.2025-10-30.at.21.25.00.moviOS: HybridAppScreen.Recording.2025-10-30.at.22.41.58.moviOS: mWeb SafariScreen.Recording.2025-10-30.at.21.24.04.movMacOS: Chrome / SafariScreen.Recording.2025-10-30.at.21.22.28.movMacOS: DesktopScreen.Recording.2025-10-30.at.21.40.07.mov |
@OlGierd03 the focused index is not updated in the 5th step Screen.Recording.2025-10-30.at.09.55.02.mov |
You're right. I've missed this use case. Bringing back the |
|
✋ 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/grgia in version: 9.2.42-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.42-11 🚀
|
Explanation of Change
Performed standard SelectionList migration and fixed a navigation bug that occurred when navigating back from the NetSuiteCustomFieldMappingPicker screen.
Fixed Issues
$ #65655
Tests
WorkspacestabMore featuresand enable theAccountingtoggleAccountingtabNetSuiteaccounting system to the workspaceAccounting>Import>Custom Segments/records/Custom listsAdd custom segment/record/Add custom listConfirmit at the end of the addition processDisplayed asbuttonNetSuiteCustomFieldMappingPickeris working correctlyOffline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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.mov
Android: mWeb Chrome
web_android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
web_ios.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov