-
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: After going back from a thread, clicking on New Message button doesn't scroll to the new message at the bottom #22645
Fix: After going back from a thread, clicking on New Message button doesn't scroll to the new message at the bottom #22645
Conversation
@thesahindia 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] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@thesahindia, could you please review my pull request (PR)? Please let me know if I missed anything in the PR. |
I'll be taking this over! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-18.at.2.56.25.PM.movMobile Web - ChromeScreen.Recording.2023-07-18.at.3.05.35.PM.movMobile Web - SafariScreen.Recording.2023-07-18.at.3.03.09.PM.movDesktopScreen.Recording.2023-07-18.at.7.02.55.PM.moviOSScreen.Recording.2023-07-18.at.3.02.35.PM.movAndroidScreen.Recording.2023-07-18.at.3.06.37.PM.mov |
Why does the migration to a functional component make your originally proposed solution invalid? I think the changes that you've made right now are more of a work around. Can you please explain? |
@allroundexperts This is the proposal for this PR. Thanks. |
Hi @lazar-stamenkovic! Also, the screen recording for Desktop is missing. |
Hi @allroundexperts , Please take a look again. |
You can open the console and just enter |
it works for desktop perfectly. i attached screen recording. Electron.-.New.Expensify.-.18.July.2023.mp4 |
@allroundexperts i attached the screen record on Desktop in description. |
Thanks for adding the screen recording @lazar-stamenkovic! I'm not sure why it wasn't working previously. I just tested it again and it seems to work fine. Maybe I was on a wrong branch. |
Can you please add QA steps as well? |
@allroundexperts I added QA steps in 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.
LGTM!
@allroundexperts thanks for your review. |
@deetergp please review the PR and let me know if you need any updating. |
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!
src/libs/actions/Report.js
Outdated
}; | ||
|
||
let newActionSubscriber = defaultNewActionSubscriber; | ||
// new action subscriber array for report pages |
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.
// new action subscriber array for report pages | |
// New action subscriber array for report pages |
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.
Updated!
@lazar-stamenkovic lint is failing and one NAB |
@mountiny fixed lint errors. thanks for review |
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 everyone!
@lazar-stamenkovic Congratulations to your first contribution! We are very glad to have you here, hope to see many more 🍾
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Thanks @mountiny |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.45-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
Details
After going back from a thread, clicking on New Message button doesn't scroll to the new message at the bottom. This PR fixes this bug.
Fixed Issues
$ #21603
PROPOSAL: #21603 (comment), #21603 (comment)
Tests
Offline tests
Same above
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
New.Expensify.-.web.mp4
Mobile Web - Chrome
expensify-mobile-chrome.mov
Mobile Web - Safari
Expensify-mobile-safari-compress.mov
Desktop
Electron.-.New.Expensify.-.18.July.2023.mp4
iOS
expensify-ios.mov
Android
expensify-android.mp4