Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
4.02k stars 3.01k forks source link

Fix chat doesn't scroll when splitting expense #54863

Closed bernhardoj closed 3 days ago

bernhardoj commented 1 month ago

Explanation of Change

Fixed Issues

$ https://github.com/Expensify/App/issues/54001 PROPOSAL: https://github.com/Expensify/App/issues/54001#issuecomment-2538853967

Tests

Same as QA Steps

Offline tests

Same as QA Steps

QA Steps

  1. Open a workspace chat with no unsettled expenses
  2. Split bill on the workspace
  3. Verify the chat is scrolled to the bottom

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/e84800c8-6f18-45dd-9300-14371f9fb3d0
Android: mWeb Chrome https://github.com/user-attachments/assets/cd7c63ef-632c-485d-8d59-204de2911344
iOS: Native https://github.com/user-attachments/assets/a76a0b4b-8cd5-42b6-8ef8-b41ec0a929b9
iOS: mWeb Safari https://github.com/user-attachments/assets/011193a7-63b2-47bd-ba1a-27eba053cc2f
MacOS: Chrome / Safari https://github.com/user-attachments/assets/96f37c52-7cd0-4004-9eb9-814243234b97
MacOS: Desktop https://github.com/user-attachments/assets/6f52a9a4-57e9-458d-b492-141b04d057d7
melvin-bot[bot] commented 1 month ago

@shubham1206agra 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]

bernhardoj commented 2 weeks ago

@shubham1206agra please review this when you are available

shubham1206agra commented 2 weeks ago

@bernhardoj Please merge main here.

bernhardoj commented 2 weeks ago

@shubham1206agra done

shubham1206agra commented 2 weeks ago

https://github.com/user-attachments/assets/a924ee97-b77c-4498-901b-ffc84f334f0b

@bernhardoj Your solution does not seem to be working. Can you recheck this?

bernhardoj commented 2 weeks ago

The lastVisibleActionCreated is updated correctly, but the scrollToBottomForCurrentUserAction somehow isn't called anymore.

EDIT: I mean scrollToBottomForCurrentUserAction is called, but the scroll doesn't happen.

bernhardoj commented 2 weeks ago

It doesn't scroll down anymore after https://github.com/Expensify/App/pull/54071

shubham1206agra commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/18f6d585-c923-4abe-98af-8625e0e1b9c4
Android: mWeb Chrome https://github.com/user-attachments/assets/09561fc8-2df6-452e-9bb1-b02077cf2f2b
iOS: Native https://github.com/user-attachments/assets/c74e200a-aa39-4862-a2c7-5fcb6731bae5
iOS: mWeb Safari https://github.com/user-attachments/assets/cb8f1e26-76d1-431c-ab9d-4312475a6707
MacOS: Chrome / Safari https://github.com/user-attachments/assets/84e8c735-3851-4dbc-8e80-7becc435b494
MacOS: Desktop https://github.com/user-attachments/assets/e4af962e-e157-45b2-94d3-bd55ff91a3ab
srikarparsi commented 1 week ago

Looks like there's a conflict @bernhardoj

bernhardoj commented 1 week ago

@srikarparsi fixed

srikarparsi commented 4 days ago

Hey @bernhardoj, Jest Test 3 is failing, do you think you could try merging main again. Linking this just in case you need it

bernhardoj commented 4 days ago

@srikarparsi merged with main

OSBotify commented 3 days ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

github-actions[bot] commented 1 day ago

πŸš€ Deployed to staging by https://github.com/srikarparsi in version: 9.0.95-0 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…
πŸ€–πŸ”„ android HybridApp πŸ€–πŸ”„ success βœ…
πŸŽπŸ”„ iOS HybridApp πŸŽπŸ”„ success βœ