-
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
Navigate back to correct page from private note edit page #40951
Conversation
@shubham1206agra 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] |
src/libs/ReportUtils.ts
Outdated
} | ||
const currentUserPrivateNote = report.privateNotes?.[session.accountID]?.note ?? ''; | ||
if (isEmpty(currentUserPrivateNote)) { | ||
goBackToDetailsPage(report); |
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.
As I said earlier, this will not work correctly.
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.
@shubham1206agra I think this function is missing the selfDM case that appears in navigateToDetailsPage
. So I think we can add this case in this function instead of modified a new version of navigateToDetailsPage
. WDYT?
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.
No the goback page is also wrong 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.
What's wrong here. Can you detail? Thanks.
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.
It goes to ROUTES.REPORT_SETTINGS
instead of ROUTES.REPORT_WITH_ID_DETAILS
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.
@shubham1206agra Got it. I updated.
src/libs/ReportUtils.ts
Outdated
if (isSelfDM(report)) { | ||
Navigation.goBack(ROUTES.PROFILE.getRoute(currentUserAccountID ?? 0)); | ||
return; | ||
} |
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.
We don't need this.
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.
@shubham1206agra I updated.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2024-05-04.at.8.59.20.PM.moviOS: NativeiOS: mWeb SafariScreen.Recording.2024-05-04.at.8.51.50.PM.movMacOS: Chrome / SafariScreen.Recording.2024-05-04.at.8.48.18.PM.movMacOS: DesktopScreen.Recording.2024-05-04.at.9.02.31.PM.mov |
@mountiny Please help to review the PR when you have a chance. Thanks. |
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.
Thanks, going to hold merging until green light
@mountiny I think we can merge this PR now. |
@mountiny Is the PR ready for merge? |
We are still having a merge freeze |
@mountiny Can we merge this now? |
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.
Thanks!
@mountiny Can we merge this PR now? |
✋ 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/mountiny in version: 1.4.77-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
Details
Navigate back to correct page from private note edit page
Fixed Issues
$ #40502
PROPOSAL: #40502 (comment)
Tests
Offline tests
None
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
Android: mWeb Chrome
Screen.Recording.2024-04-25.at.08.26.09.mov
iOS: Native
Screen.Recording.2024-04-25.at.08.38.39.mov
iOS: mWeb Safari
Screen.Recording.2024-04-25.at.08.24.23.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-25.at.08.21.45.mov
MacOS: Desktop
Screen.Recording.2024-04-25.at.08.42.44.mov