-
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
[$500] Request Money - Conversation is not scrolled to the bottom when request money #22367
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPosting proposal early as per new guidelines Please re-state the problem that we are trying to solve in this issue.Conversation is not scrolled to the bottom when request money What is the root cause of that problem?We are not scrolling chat to bottom during request money as shown below.
App/src/pages/iou/steps/MoneyRequestConfirmPage.js Lines 111 to 154 in 35e8d46
What changes do you think we should make in order to solve the problem?We have to scroll to bottom (line 198) during confirm as shown below: onConfirm={selectedParticipants => {
createTransaction(selectedParticipants);
ReportActionComposeFocusManager.focus()
}} What alternative solutions did you explore? (Optional)We can also scroll to bottom within createTransaction as shown below: const createTransaction = useCallback(
(selectedParticipants) => {
...
if (iouType.current === CONST.IOU.MONEY_REQUEST_TYPE.SPLIT && CONST.REGEX.NUMBER.test(reportID.current)) {
IOU.splitBill(
...
);
ReportActionComposeFocusManager.focus() // *** ADD THIS ***
return;
}
if (iouType.current === CONST.IOU.MONEY_REQUEST_TYPE.SPLIT) {
IOU.splitBillAndOpenReport(
...
);
ReportActionComposeFocusManager.focus() // *** ADD THIS ***
return;
}
IOU.requestMoney(
...
);
ReportActionComposeFocusManager.focus() // *** ADD THIS ***
},
[...],
); ResultsWeb.mov |
Job added to Upwork: https://www.upwork.com/jobs/~016ec292c1dce29715 |
Triggered auto assignment to @lschurr ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Request Money - Conversation is not scrolled to the bottom when request money on small screen devices What is the root cause of that problem?In the end of money request action, we already trigger Report.notifyNewAction, which will trigger App/src/pages/home/report/ReportActionsView.js Lines 132 to 133 in ed21fda
In the large screen devices, it works as expected. But in small screen devices, we have transition animation to close Request money page, and also open the Keyboard when focus on chat composer. So the What changes do you think we should make in order to solve the problem?I think in small screen devices, we need to wait the animation transition before the scroll to bottom. In order to do that, we can:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The conversation is not scrolled to the bottom when Request Money What is the root cause of that problem?When we scroll to the bottom here
scrollToOffset API that is used doesn't work.
What changes do you think we should make in order to solve the problem?We can just wrap this line inside What alternative solutions did you explore? (Optional)NA |
This issue is for Android/Native only right? Asking because the issue description says Android/Chrome? Assuming it's on Android/Native only, I think we can put this one on hold for #15964. The root cause seems that calling the scroll function while another animation is ongoing will do nothing. We have this commit facebook/react-native@681b35d that aborts the ongoing animation before making a new one. It may fix this issue, it would be glad if anyone can test that. |
@s77rt It's on mWeb both in Android and iOS, not Android/Native I believe. |
yeah, in small screen devices |
@allroundexperts any thoughts here? |
@NicMendonca We're still discussing this internally here. |
Okay. I went into this further and it seems like our root cause here is not correct. I tried to disable the |
Actually the scroll was called BEFORE |
@tienifr If we keep this page |
@s77rt @allroundexperts After digging deep into the behavior of react navigation I found out that in small screen, when users open RHN, it will set That why we should use InteractionManager.runAfterInteractions to wait for the the animations end and |
@allroundexperts any feedback here? |
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Issue not reproducible during KI retests. (Third week) |
@madmax330 should I close this? |
I think we close after 4 weeks of not being reproducible |
@NicMendonca @madmax330 Currently, after request/split money, users are not redirected to chat page. We already have the ticket to handle this #27724 I think we should hold this GH until the issue is fixed |
@tienifr #27724 is fixed though! @mvtglobally can you reproduce this? |
bump bump @mvtglobally |
Will provide feedback in a little bit |
Issue not reproducible during KI retests. (Fourth week) @NicMendonca |
Issue reproducible on latest build 1.3.88-3 0-02-01-a925dfd72fb88a9cf3d4fe39d14845634e7cd89db2dbf7b0aea55c055c86ff9a_af5b384da4a76697.mp4 |
Hmm I wonder if this will create a regression somewhere? |
@madmax330 or maybe a regression re-caused this? 🤔 (since it was fixed for quite a while) Let me know how you think we should proceed! |
Yes we're modifying a lot for the money 2020 and other waves right now, so I wouldn't be surprised |
@madmax330, @NicMendonca, @allroundexperts Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@madmax330 so should I close, or leave open? |
Let's close for now, we can revisit this later |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The conversation should be scrolled to the bottom and the latest message (IOU) should be visible
Actual Result:
The conversation is not scrolled to the bottom when Request Money
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.37.2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6118824_az_recorder_20230706_192749.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: