-
Notifications
You must be signed in to change notification settings - Fork 3k
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: Leaving thread navigates to Concierge page #27127
Conversation
One issue here is that with the rooms beta if we leave a room, instead of being navigated to the concierge page we'll get a VIDEOScreen.Recording.2023-09-11.at.11.49.16.mov |
@Ollyws I forgot about rooms in the first place. Fixed that! |
@tienifr Thanks for the update. I've come across another issue where if you leave a room then press the back button it will redirect you to a VIDEOScreen.Recording.2023-09-12.at.11.32.32.mov |
@Ollyws Agree that once we leave rooms/threads, we should navigate back to LHN on pressing back button. Updated to fix that. |
Reviewer Checklist
Screenshots/VideosWebMacOS_Chrome.mp4Mobile Web - ChromeAndroid_Chrome.mp4Mobile Web - SafariiOS_Safari.mp4DesktopMacOS_Desktop.mp4iOSiOS_Native.mp4AndroidAndroid_Native.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.
Thanks for the changes!
LGTM.
Bump @roryabraham |
@roryabraham Can you take a look? |
Sorry for the delay and thanks for resolving conflicts as they came up here. |
✋ 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/roryabraham in version: 1.3.73-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.73-1 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
@@ -1822,6 +1822,10 @@ function leaveRoom(reportID) { | |||
if (Navigation.getTopmostReportId() === reportID) { | |||
Navigation.goBack(); | |||
} | |||
if (report.parentReportID) { | |||
Navigation.navigate(ROUTES.getReportRoute(report.parentReportID), CONST.NAVIGATION.TYPE.FORCED_UP); |
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.
Coming from #28087
CONST.NAVIGATION.TYPE.FORCED_UP
has caused an edge case on web, where if you reply in a thread, refresh the page and select 'Leave the thread', LHN disappears from the screen
Details
Leaving thread navigates to Concierge page while it should be the parent report page.
Fixed Issues
$ #26250
PROPOSAL: #26250 (comment)
Tests
Offline tests
NA
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 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
leave-thread-compressed.mov
Mobile Web - Chrome
Screen.Recording.2023-09-11.at.14.54.49.mov
Mobile Web - Safari
Screen.Recording.2023-09-11.at.14.51.38.mov
Desktop
Screen.Recording.2023-09-11.at.14.48.12.mov
iOS
Screen.Recording.2023-09-11.at.14.49.47.mov
Android
Screen.Recording.2023-09-11.at.14.58.17.mov