-
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
[HOLD #40724] [$250] IOU –Expense chat doesn't scroll to bottom when send message and create second money request #40594
Comments
Triggered auto assignment to @puneetlath ( |
@puneetlath Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@lanitochka17 is this happening on specific platforms? Or all? |
@puneetlath only Android |
@puneetlath Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01cba2ec575ed8acd2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU –Expense chat doesn't scroll to bottom when send message or money request What is the root cause of that problem?Currently we are using DateUtils library to create the optimistic values, for example when we send a new message the report created and lastVisibleActionCreated are not using the same instance/values of the DateUtils. we are using it two times which cause the difference between them causing hasNewestReportAction to be false and this makes the auto scroll not works. What changes do you think we should make in order to solve the problem?We should modify every method related to build optimistic when sending a new comment, split expense, submit expense, etc. To fix the new comment sending, the Lines 3442 to 3444 in 9f51274
To add a comment we use the App/src/libs/actions/Report.ts Lines 439 to 448 in 9f51274
But this never going to match because the
To send a split expense we should modify createSplitsAndOnyxData to use the same currentTime like:
(For the last one it might be better to modify To submit an expense we should modify
This way we can send the create date from getMoneyRequestInformation passing the same
Tests:Sending a new message and a new split expense Fixed.optimistic.time.-.autoscroll.test.mp4Sending a new "submit expense": Submit.expense.test.mov |
@hoangzinh thoughts on the proposals so far? |
@samilabud I don't think your RC is correct. Can you check why user just sent a new message but shouldEnableAutoScrollToTopThreshold is false, lead to "we set the FlatList without this prop" as you said above? |
Hi, when the reportActionsView load, set a variable to determinate if there are a new message, when the user sent a new message that value is false and later we send that false into the next statement:
Because of this false value, the FlatList going to take that behavior not matter what we are sending as a message. |
Actually, your solution doesn't work in offline mode Screen.Recording.2024-05-03.at.18.19.58.mp4
@samilabud If we put a log there, we can see that value would be true after seconds. Can you find a reason for it? |
Hey @hoangzinh, as far I can see to determinate if we has a new message we are comparing the last time we synchronized with the server ( If we are online
If we are offline
As I said in before it seems the logic behind is to wait for the server response to do the automatic scroll down, so maybe this is the expected behavior, except for the error which was reported here. Please let me know if I should verify deeper or if you have any other suggestion. |
@puneetlath @hoangzinh this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@samilabud I don't think it's correct. Can you check again? I think the auto scroll behavior in chat should work for both online and offline mode. |
Hi everyone, I have created the PR, but still waiting for the offer. |
Issue not reproducible during KI retests. (First week) |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @samilabud 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
FYI @samilabud the C+ (in this case @hoangzinh) provides the recommendation on who to hire, but you aren't actually hired until an Expensify internal engineer (in this case me) agrees. |
oh ok, good to know, thanks! |
This issue has not been updated in over 15 days. @puneetlath, @samilabud, @hoangzinh eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
What's the status of the PR @samilabud @hoangzinh? |
Ready to review since: #40594 (comment) |
Oh no my bad, was reviewed and waiting for: #42030 (comment) |
The PR is ready, and the review was done but my reviewer was asking about if we can merge this in #42030 (comment). I don't pretty sure about the next steps, sorry. |
@allroundexperts where do you think we go from here? |
I think we can put this issue on hold for #40724 |
@puneetlath the holding PR has been merged. It appears that our issue has been resolved. Can we ask QA to test this issue again? Screen.Recording.2024-06-25.at.17.44.48.mov |
Bug is fixed. Screenrecorder-2024-06-25-18-31-58-959.mp4 |
Ok @hoangzinh so is any payment needed here? Or was this ultimately solved by a different PR? |
@puneetlath IMO, to be fair, I think we should make payment for @samilabud and me here. We made efforts to find the root cause/solution and the PR is almost ready. But it was put back to on hold because there was another similar issue that provided a better solution (comment here and here) |
Ok seems fair. I've paid @samilabud and sent you an offer @hoangzinh: https://www.upwork.com/nx/wm/offer/102916271 Ping me here when you accept. |
Accepted. Thanks @puneetlath |
Ok all paid. Thanks y'all. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.63-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: N/A
Issue reported by: Applause - Internal Team
Issue found when executing PR #39685
Action Performed:
Expected Result:
Expense chat scroll to bottom when send a message and create second money request
Actual Result:
Expense chat doesn't scroll to bottom when send a message and create second money request
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6454206_1713469798697.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: