-
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
Fix chat doesn't scroll to bottom when adding message while linked to an old action #46724
Fix chat doesn't scroll to bottom when adding message while linked to an old action #46724
Conversation
@ZhenjaHorbach 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] |
Send button is still broken on mWeb. ios.mweb.mp4 |
Sometimes the scroll to the bottom doesn't work especially if you go to the linked action and then refresh. That will be fixed by #45004. |
Thanks for the information ! |
Reviewer Checklist
Screenshots/VideosAndroid: Native2024-08-12.12.21.01.movAndroid: mWeb Chromeandroid-web.moviOS: Nativeios.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
return; | ||
} | ||
if (!hasNewestReportActionRef.current) { | ||
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID)); | ||
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.
Do we need return here ?
Because of this line the main issue will still be relevant when we click on the "From" link in header to navigate back to the main chat
And then write something
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.
I'm trying to follow the same logic of scrollToBottomAndMarkReportAsRead.
App/src/pages/home/report/ReportActionsList.tsx
Lines 415 to 421 in 55a29dd
const scrollToBottomAndMarkReportAsRead = () => { | |
if (!hasNewestReportAction) { | |
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID)); | |
Report.openReport(report.reportID); | |
return; | |
} | |
reportScrollManager.scrollToBottom(); |
I guess we need to hold for #46627 then
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.
Hmmm, yeah
Just tested the changes from another PR with new changes from this PR
And it helped to fix our main issue
Then let's wait until another PR is merged
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.
@bernhardoj
Another PR was merged !
Could you update the branch to the latest main version, please?
And I think we should update the description and add new videos for this PR
Because first of all we should fix the bug in the issue description
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.
Done (except native because pressing the send button crashes the iOS and doesn't work on Android, on mWeb disabling strict mode makes it work again).
ios.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.
I'm more talking about why scrolling doesn't work on Android native when go back to the main chat and send message
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.
Oh, just reinstalled android app
And everything works
Could you please reinstall ios and android native apps and record videos for checklist?
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.
Let me try 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.
Nice, it works. Completed recordings
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.
Great job
Thank you !
LGTM |
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!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.0.22-0 🚀
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.0.22-1 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.22-9 🚀
|
return; | ||
} | ||
if (!hasNewestReportActionRef.current) { | ||
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID)); |
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 are missing handling the case when the chat is on RHN, which caused this issue with the report on RHN navigating to the center.
Details
The chat doesn't scroll to bottom when adding message while linked to an old action. This PR fix it.
Fixed Issues
$ #46290
PROPOSAL: #46290 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mwbe.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4