-
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 2024-11-21] [$250] After hold and unhold expense page is not scrolling down to comments section #49959
Comments
Triggered auto assignment to @sakluger ( |
Edited by proposal-police: This proposal was edited at 2024-10-11 04:44:02 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.After hold and unhold expense is not scrolling down What is the root cause of that problem?After hold and unhold expense, we don't have any logic to scroll Line 7924 in 96d8973
Line 8025 in 96d8973
What changes do you think we should make in order to solve the problem?We should use
What alternative solutions did you explore? (Optional) |
@sakluger I report this bug so I can help take it as C+ |
ProposalPlease re-state the problem that we are trying to solve in this issue.After hold and unhold expense page is not scrolling down to comments section What is the root cause of that problem?We haven't handled scrolling to the bottom when What changes do you think we should make in order to solve the problem?We should check if //.src/pages/home/report/ReportActionsList.tsx#L203
+const previousReport = useRef<OnyxTypes.ReportAction[]>([]);
+ useEffect(() => {
+ if (!previousReport.current && Array.isArray(sortedVisibleReportActions) && sortedVisibleReportActions.length) {
+ previousReport.current = sortedVisibleReportActions;
+ return;
+ }
+ if (Array.isArray(sortedVisibleReportActions) && sortedVisibleReportActions.length) {
+ const previousActions = previousReport.current || [];
+ const newActions = sortedVisibleReportActions.filter((newAction) => !previousActions.some((prevAction) => +prevAction.reportActionID === newAction.reportActionID));
+ const containsHoldOrUnhold = newActions.some((action) => action?.actionName === 'HOLD' || action?.actionName + === 'UNHOLD');
+ if (containsHoldOrUnhold) {
+ InteractionManager.runAfterInteractions(() => {
+ requestAnimationFrame(() => {
+ reportScrollManager.scrollToBottom();
+ });
+ });
+ }
+ previousReport.current = sortedVisibleReportActions;
+ }
+ }, [reportScrollManager, sortedVisibleReportActions]); POC
Screen.Recording.2024-10-01.at.11.59.24.mov |
Job added to Upwork: https://www.upwork.com/jobs/~021841168390578719829 |
Current assignee @dukenv0307 is eligible for the External assigner, not assigning anyone new. |
Thanks @dukenv0307! |
I'm reviewing... |
@dukenv0307 any updates? |
@sakluger I'll update in a few hours. The first proposal looks promising, but sometime it doesn't work |
@nkdengineer I tested your proposal, but sometime it doesn't work, especially when there's only one money request. Can you check again? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@dukenv0307 i'll update today |
@dukenv0307 Could you please review my proposal and POC? It is working as expected. |
I don't think it's a good idea, when users add a new comment, the list automatically scrolls to the bottom without checking |
@dukenv0307 Did you check my proposal? |
@raza-ak We don't need to do that for every new message. For example the whisper message, new message from others, ... |
@dukenv0307 i looks like with one transaction thread, the Line 7906 in 4c90d62
and the reportID in here is the reportID of transaction thread
so when we call notifyNewAction it can't run callback function scrollToBottomForCurrentUserAction
|
We're still reviewing proposals. |
Triggered auto assignment to @mjasikowski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
let's go with @nkdengineer's proposal! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.61-3 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 2024-11-21. 🎊 For reference, here are some details about the assignees on this issue:
|
@dukenv0307 @sakluger @dukenv0307 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment date is tomorrow. @dukenv0307 - please complete the BZ checklist by tomorrow, thanks. |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
@dukenv0307 looks good, I'd suggest to make point 6 a bit more precise: Verify that the expense view automatically scrolls to bottom of the page |
Summarizing payment on this issue: Contributor: @nkdengineer $250, paid via Upwork FYI, I received errors when completing both contracts in Upwork. I double-checked that they were paid, but please raise in Slack and tag me if there were any issues with payment. |
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.41-6
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
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1727724158339229
Action Performed:
Expected Result:
After hold and unhold expense, it is scroll to bottom
Actual Result:
After hold and unhold expense, it isn't scrolling to the comment section
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
bug.1.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @saklugerThe text was updated successfully, but these errors were encountered: