-
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
[Navigation Reboot] Implement UP press #18402
[Navigation Reboot] Implement UP press #18402
Conversation
* test flatlist for android * fix linter * fix name * fix not working features * limit rerenders
Hey! I noticed that there was a bug with offline status - if it was fixed could we align the |
yes there was offline indicator issue yesterday and fixed. |
Ok, I am travelling to Scotland today so slower to respond sorry, could we also check if this issue will be fixed after this refactor #14125 |
@mountiny The issue is fixed, so I added it to the PR's description |
Running the build now |
npm has a |
Asked in Slack here for help with testing from contributors https://expensify.slack.com/archives/C01GTK53T8Q/p1684335996442389 |
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
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.
@0xmiroslav I would be happy to merge this to the navigation-refactor branch now as it seems quite reliable and we can do all the proper testing on that last branch PR as now it seems good already
Can you please give this a review and confrim if there is anything you thing we need to fix in this PR?
@mountiny sure! job 3 is failing. not sure if it also happens on navigation-refactor |
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!
Reviewer Checklist
Screenshots/VideosWe have tested extensively using the internal builds, and we will test the last branch a lot too WebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.25-1 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.25-8 🚀
|
@@ -64,7 +64,7 @@ class YearPickerPage extends React.Component { | |||
*/ | |||
updateSelectedYear(selectedYear) { | |||
// We have to navigate using concatenation here as it is not possible to pass a function as a route param | |||
Navigation.navigate(`${this.props.route.params.backTo}?year=${selectedYear}`); | |||
Navigation.goBack(`${ROUTES.SETTINGS_PERSONAL_DETAILS_DATE_OF_BIRTH}?year=${selectedYear}`, true); |
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.
Ah so we hard coded the route, but was the original intention for this to be more generic? This change would break the re-usability of this component I think...
}; | ||
|
||
// eslint-disable-next-line rulesdir/no-negated-variables | ||
const FullPageNotFoundView = (props) => { | ||
if (props.shouldShow) { | ||
return ( | ||
<> | ||
<HeaderWithCloseButton | ||
shouldShowBackButton={props.shouldShowBackButton} |
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.
Removal of shouldShowBackButton
in this PR caused this issue.
Issue: Back Button is shown on desktop in Report Screen
Details
This PR is a part of Navigation Reboot. It introduces implementation of
UP
functionality mentioned in this design doc.Also deprecating the close X button
CC: @mountiny
Fixed Issues
$ #15849
$ #15850
$ #18092
$ #14125
Tests
The tests are mentioned in design doc
IMPORTANT: Please, use https://staging.new.expensify.com/settings/about link for testing in the AdHoc build (https://new.expensify.com/settings/about will open the web browser)
Offline tests
QA Steps
Same as the 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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android