-
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
[$250] Split - Chat does not scroll down when splitting expense #56510
Comments
Triggered auto assignment to @techievivek ( |
Triggered auto assignment to @laurenreidexpensify ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Seems like it was not fixed via this PR? #54863, I have pinged the author/reviewer. |
Given this doesn't happen normally and a variant of this already exist as a separate GH, I will remove the blocker label. |
Discussion here btw https://expensify.slack.com/archives/C01GTK53T8Q/p1738900540449389 |
@techievivek, @laurenreidexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Added Shubham as C+ based on https://expensify.slack.com/archives/C01GTK53T8Q/p1739345280035359?thread_ts=1738900540.449389&cid=C01GTK53T8Q |
Job added to Upwork: https://www.upwork.com/jobs/~021889577320949386202 |
Current assignee @shubham1206agra is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The chat doesn't scroll to the bottom when doing split bill in a DM. This only happens if there are unsettled expense on the DM. What is the root cause of that problem?It will scroll to the bottom if the report App/src/pages/home/report/ReportActionsList.tsx Lines 387 to 388 in 4c1919e
App/src/pages/home/report/ReportActionsList.tsx Lines 467 to 471 in 4c1919e
However, when we create a split bill in a DM, the For example, if we split bill in a group chat of 3 users (including the current user), the split chat report is the group chat, Line 5028 in 6000b2a
Lines 5076 to 5096 in 4c1919e
and there are 2 DM chats. Lines 5347 to 5353 in 4c1919e
Lines 1053 to 1067 in 4c1919e
Each report is updated by merging the report object with the new data. But if we split in a DM, the split chat report and the DM chat are the same. So, both updates will update the same report. We already correctly update the split chat report (which is the DM) Line 5080 in 6000b2a
But when updating the DM, we destructure the DM report which contains the old Lines 1053 to 1066 in 6000b2a
For example, let's say the DM When we split bill, the split chat report
Then, the DM report onyx update will look like this
So, the What changes do you think we should make in order to solve the problem?Both split chat report and DM report are a different object even though it's the same report. There is already a solution here so that both reports are the same objects, Lines 5237 to 5245 in 6000b2a
but it currently only covers 2 case,
In our case, we do the split bill directly from the DM. So, what we can do is add a check if the split chat report is a DM chat.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can do a unit test by split bill twice in a DM and making sure the |
@shubham1206agra bump for review pls |
@shubham1206agra 👋 ^^ |
@bernhardoj's proposal looks good. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @justinpersaud, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR us ready cc: @shubham1206agra |
Waiting for @techievivek's review |
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: 9.0.95-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Money Requests
Action Performed:
Expected Result:
The chat will scroll down each time a split expense is created.
Actual Result:
The chat does not scroll down and remains at the top each time a split expense is created.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6735800_1738893829326.20250207_100050.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: