-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix: Web/Desktop - On back button press navigates to Confirm task screen instead of hide modal #24055
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
Conversation
|
@eVoloshchak 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] |
|
Bump @eVoloshchak :) |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-04.at.16.58.14.movMobile Web - Chromescreen-20230804-171240.mp4Mobile Web - SafariScreen.Recording.2023-08-04.at.17.30.42.movDesktopScreen.Recording.2023-08-04.at.17.00.47.moviOSScreen.Recording.2023-08-04.at.17.02.20.movAndroidscreen-20230804-171633.mp4 |
| <HeaderWithBackButton | ||
| title={props.translate('task.assignee')} | ||
| onBackButtonPress={() => (lodashGet(props.task.report, 'isExistingTaskReport') ? Navigation.dismissModal() : Navigation.goBack(ROUTES.NEW_TASK))} | ||
| onBackButtonPress={() => (props.route.params && props.route.params.reportID ? Navigation.dismissModal() : Navigation.goBack(ROUTES.NEW_TASK))} |
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.
| onBackButtonPress={() => (props.route.params && props.route.params.reportID ? Navigation.dismissModal() : Navigation.goBack(ROUTES.NEW_TASK))} | |
| onBackButtonPress={() => (lodashGet(props.route.params, 'reportID') ? Navigation.dismissModal() : Navigation.goBack(ROUTES.NEW_TASK))} |
Can we use lodashGet here instead?
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.
Yes, updated!
eVoloshchak
left a comment
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.
Looks good and tests well!
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #21200 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
Gentle bump @pecanoro |
pecanoro
left a comment
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! I also tested it and it seems to be working as expected
|
✋ 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/pecanoro in version: 1.3.51-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
|
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.3.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
Details
#21200
Fixed Issues
$ #21200
PROPOSAL: #21200 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Screen.Recording.2023-08-02.at.6.32.22.PM.mov
Mobile Web - Chrome
d.webm
Mobile Web - Safari
Simulator.Screen.Recording.-.iPhone.14.-.2023-08-02.at.18.40.04.mp4
Desktop
Screen.Recording.2023-08-02.at.6.37.37.PM.mov
iOS
Simulator.Screen.Recording.-.iPhone.14.-.2023-08-02.at.18.38.21.mp4
Android
ab.webm