-
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
@swm/navigation refactor #19263
@swm/navigation refactor #19263
Conversation
…igation-version Bump react-navigation/native and react-navigation/stack version
…neNavigatorOnsStack
…ators in auth screen to be more consistent
fix bug with opening report screen twice from deeplinks
leftPaneMaxWidth: 375, | ||
sideBarWidth: 375, |
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.
These are actually same. We can deprecate one.
Critical bug on iOS safari: Arrow navigation doesn't work at all. When click < , it creates new tab instead of going back. Screen.Recording.2023-06-06.at.10.55.41.PM.mov |
@0xmiroslav Do you have reproduction steps? I cannot seem to reproduce RPReplay_Final1686085681.mp4 |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.25-1 🚀
|
import PropTypes from 'prop-types'; | ||
import {useIsFocused, useNavigation, useRoute} from '@react-navigation/native'; | ||
import {Freeze} from 'react-freeze'; | ||
import withWindowDimensions, {windowDimensionsPropTypes} from '../../components/withWindowDimensions'; |
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.
Also, why is withWindowDimensions
used here? I don't see any uses of the props. Is it just so it re-renders on resize? Or could we remove it?
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.
Good catch! I think that may be some leftovers. I am going to remove it and test if everything is working correctly, but it should be okay
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.25-8 🚀
|
...commonScreenOptions, | ||
// we want pop in RHP since there are some flows that would work weird otherwise | ||
animationTypeForReplace: 'pop', | ||
cardStyle: styles.navigationModalCard(this.props.isSmallScreenWidth), |
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.
This caused a regression #20709. We should have kept using getNavigationModalCardStyle
. We modified this function in #19682 but that change was not caught after we merged main
24d3f34#diff-5b711055e18a2a6ec042cebe121391e826554644d2965d3365250d90d5d39c32
@@ -293,7 +293,7 @@ function updateSelectedTimezone(selectedTimezone) { | |||
], | |||
}, | |||
); | |||
Navigation.drawerGoBack(ROUTES.SETTINGS_TIMEZONE); | |||
Navigation.navigate(ROUTES.SETTINGS_TIMEZONE); |
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.
This change caused #22813. The above change worked well in normal flow but when opening through a deep link, the back button wasn't working as expected.
Details
Copy of #18605 with the newest
main
branch merged.Fixed Issues
$ #19665
Tests
Most of the regression testing will come from Applause running through the App tests and logging any navigation errors (unusual results). Since there are virtually limitless combinations and flows within the App, we will only create a couple specific ones which we will ask Applause to go through and we can use to test the PRs. We would also ask QA to run full regression on the main PR before we merge these changes.
Note: For all of these, we should test them on all platforms (except resizing on mobile)
Deep link to authenticated page when signed out (pending route)
Deep link from notification
Correct Back button behavior when deep linking
Smooth navigation after resizing
Verify Up button behavior after navigating to a nested page
Test all deep links
Note: We had issues with deep links recently and to prevent this we will add new regression tests which will test all the possible deep link routes in the App. We won't write them down here as it's not tightly connected to the core idea of this doc, but noting it here so we don’t forget about this.
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
web.mp4
Mobile Web - Chrome
mobile_chrome.mp4
Mobile Web - Safari
mobile_safari.mp4
Desktop
desktop.mov
iOS
ios.mp4
Android
android.mp4