-
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
Fix "Add custom segment or record" image appears briefly after adding first segment #48297
Conversation
@mollfpr PR is ready for review |
fd175d3
to
78f8f7f
Compare
78f8f7f
to
7810fdc
Compare
.../accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteImportAddCustomListPage.tsx
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: Native48297.Android.mp4Android: mWeb Chrome48297.mWeb-Chrome.mp4iOS: Native48297.iOS.moviOS: mWeb Safari48297.mWeb-Safari.movMacOS: Chrome / Safari48297.Web.mp4MacOS: Desktop48297.Desktop.mp4 |
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.
LGTM 👍
@@ -40,7 +40,9 @@ function NetSuiteImportAddCustomSegmentPage({policy}: WithPolicyConnectionsProps | |||
const customSegments = useMemo(() => config?.syncOptions?.customSegments ?? [], [config?.syncOptions]); | |||
|
|||
const handleFinishStep = useCallback(() => { | |||
Navigation.goBack(ROUTES.POLICY_ACCOUNTING_NETSUITE_IMPORT_CUSTOM_FIELD_MAPPING.getRoute(policyID, CONST.NETSUITE_CONFIG.IMPORT_CUSTOM_FIELDS.CUSTOM_SEGMENTS)); | |||
InteractionManager.runAfterInteractions(() => { |
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.
@CyberAndrii Why was this logic added here?
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.
#48297 (comment). Delays the navigation until optimistic onyx data is applied and the page is re-rendered
Details
Fixed Issues
$ #47501
PROPOSAL: #47501 (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
47501.android.native.webm
Android: mWeb Chrome
47501.android.mWeb.webm
iOS: Native
47501.ios.native.mp4
iOS: mWeb Safari
47501.ios.mWeb.mp4
MacOS: Chrome / Safari
47501.macos.safari.mov
MacOS: Desktop
47501.macos.desktop.mov