-
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
[HOLD for payment 2023-10-25] [$1000] Web - App maintains focus but does not scroll to bottom at cursor position on reload #27153
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01048bbbaff6031064 |
Triggered auto assignment to @dylanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @bfitzexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App maintains focus but does not scroll to bottom at cursor position on reload. What is the root cause of that problem?When we refresh the page, Composer component saves the position of the cursor whereas don't save scrollTop property. What changes do you think we should make in order to solve the problem?We need to add a line to set scrollTop property like this: in this line in useEffect hook. Totally, the code looks like
What alternative solutions did you explore? (Optional)we can also use |
ProposalPlease re-state the problem that we are trying to solve in this issue.App maintains focus but does not scroll to bottom at cursor position on reload What is the root cause of that problem?Its refreshing, that is why it is losing the state What changes do you think we should make in order to solve the problem?We need to add a single line of code to set the value of scrollTop
The updated code will look like this
What alternative solutions did you explore? (Optional)Contributor details |
📣 @usafhassan! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@usafhassan Welcome 👋 and thanks for your proposal! Please read our contributing guide and use the proposal template there. For both proposals I think it'd be nice to add to the RCAs why steps 5 & 6 work to set the correct scroll position. @usafhassan @binary3oul |
@binary3oul Thanks, I'm still interested in why steps 5 & 6 work to set the correct scroll position though 😄 |
When we refresh the page, Composer component saves the position of the cursor whereas don't save scrollTop property. |
Specifically why does this step currently work though:
|
@jjcoffee P.S. I have updated my proposal according to the template |
@usafhassan Thanks, but my point is even if I scroll up to the top of the message and then perform the same steps (open details page, reload, go back), the input is scrolled to the bottom. I think it'd be useful to understand what's happening there as presumably we could use the same on reload to keep things nice and clean! |
@jjcoffee when we close the side menu, the |
@jjcoffee also we can add another dependency variable for reload and set it to true in initial state, then add it in dependency array of useEffect where we are setting the scroll position, this will set it to correct position on reload |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Reviewing tomorrow! |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @jeet-dhandha 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@jjcoffee - There's an issue with Mobile Safari its auto-focusing by default. This is happening in |
All mobile devices don't focus, when its not an empty chat. MobileSafari.mp4 |
@jeet-dhandha Yeah I would say if there's a general issue on native devices that the composer isn't focused (whether intentional or not), that would be out of scope for this issue. Feel free to report it! |
@jeet-dhandha @jjcoffee mind giving us an update? |
@dylanexpensify PR is under review - just needed quite a bit of back and forth to get the code in shape! |
@jjcoffee I have asked u to review again but seems like u r busy with other tasks. CC: @dylanexpensify |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.86-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-25. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
payment tomorrow! |
Bump for payment |
Regression test proposal
Do we agree 👍 or 👎 |
Payments complete - will review the proposed regression steps tomorrow |
Regression steps look good, opened an issue to get it updated. We're all done here, thanks everyone |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should scroll to cursor position if focus is maintained on composer box
Actual Result:
App maintains focus but does not scroll to bottom at cursor position in compose box
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.67.0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
scroll.to.bottom.not.working.for.big.messages.1.mp4
Recording.4382.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694063310399689
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: