Skip to content
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-12-30] [$250] Room - Page does not scroll to bottom when send message in #expensify-roadmap public room #52208

Closed
1 of 8 tasks
lanitochka17 opened this issue Nov 7, 2024 · 40 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 7, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.59-0
Reproducible in staging?: Y
Reproducible in production?: Y
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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Log in to staging.new.expensify.com
  2. Open #expensify-roadmap public room ( https://staging.new.expensify.com/r/868417741568295
    )
  3. Scroll to the top of the page
  4. Send a message

Expected Result:

Page should scroll to the bottom when send new message

Actual Result:

Page does not scroll to bottom of the conversation

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6657900_1731001767296.Recording__4488.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021855979378378206243
  • Upwork Job ID: 1855979378378206243
  • Last Price Increase: 2024-11-18
Issue OwnerCurrent Issue Owner: @akinwale / @sonialiap
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 7, 2024
Copy link

melvin-bot bot commented Nov 7, 2024

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added the Overdue label Nov 11, 2024
@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021855979378378206243

@melvin-bot melvin-bot bot changed the title Room - Page does not scroll to bottom when send message in #expensify-roadmap public room [$250] Room - Page does not scroll to bottom when send message in #expensify-roadmap public room Nov 11, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (External)

@melvin-bot melvin-bot bot removed the Overdue label Nov 11, 2024
@jestinjoshi
Copy link

Proposal

Please re-state the problem that we are trying to solve in this issue.

Page does not scroll to bottom of the conversation in #expensify-roadmap public room

What is the root cause of that problem?

What changes do you think we should make in order to solve the problem?

The return statement can be removed here, as it was added simply to follow a similar logic in scrollToBottomAndMarkReportAsRead, as noted in #46724 (comment). Removing it won't affect functionality in this context.

What alternative solutions did you explore? (Optional)

NA

@Anaslancer
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Room - Page does not scroll to bottom when send message in #expensify-roadmap public room

What is the root cause of that problem?

We are calling the scrollToBottomForCurrentUserAction callback function before changing the hasNewestReportActionRef.current. we should wait until changing hasNewestReportActionRef.current.

What changes do you think we should make in order to solve the problem?

We need to wrap this block into the InteractionManager.runAfterInteractions.

// If a new comment is added and it's from the current user scroll to the bottom otherwise leave the user positioned where
// they are now in the list.
if (!isFromCurrentUser) {
return;
}
if (!hasNewestReportActionRef.current) {
if (isInNarrowPaneModal) {
return;
}
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID));
return;
}
InteractionManager.runAfterInteractions(() => reportScrollManager.scrollToBottom());

So this below is the working block;

            InteractionManager.runAfterInteractions(() => {
                // If a new comment is added and it's from the current user scroll to the bottom otherwise leave the user positioned where
                // they are now in the list.
                if (!isFromCurrentUser) {
                    return;
                }
                if (!hasNewestReportActionRef.current) {
                    if (isInNarrowPaneModal) {
                        return;
                    }
                    Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID));
                    return;
                }
                reportScrollManager.scrollToBottom();
            });

What alternative solutions did you explore? (Optional)

N/A

Contributor details

Your Expensify account email: anasup1995@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01aff093c9a804b145

Copy link

melvin-bot bot commented Nov 12, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@akinwale
Copy link
Contributor

@Anaslancer Could you post a video demo of your proposed solution?

@Anaslancer
Copy link
Contributor

@akinwale Here is the before video

before.mp4

@Anaslancer
Copy link
Contributor

@akinwale Here is the after video

after.mp4

Copy link

melvin-bot bot commented Nov 18, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 2024
Copy link

melvin-bot bot commented Nov 19, 2024

@akinwale, @sonialiap Eep! 4 days overdue now. Issues have feelings too...

@sonialiap
Copy link
Contributor

@akinwale what do you think of the videos showing the proposal?

@akinwale
Copy link
Contributor

I will review and test this today.

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2024
@akinwale
Copy link
Contributor

We can move forward with @Anaslancer's proposal here.

🎀👀🎀 C+ reviewed.

Copy link

melvin-bot bot commented Nov 21, 2024

Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Dec 23, 2024
@melvin-bot melvin-bot bot changed the title [$250] Room - Page does not scroll to bottom when send message in #expensify-roadmap public room [HOLD for payment 2024-12-30] [$250] Room - Page does not scroll to bottom when send message in #expensify-roadmap public room Dec 23, 2024
Copy link

melvin-bot bot commented Dec 23, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 23, 2024
Copy link

melvin-bot bot commented Dec 23, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.77-6 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-12-30. 🎊

For reference, here are some details about the assignees on this issue:

  • @akinwale requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Dec 23, 2024

@akinwale @twisterdotcom / @sonialiap @akinwale 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]

@garrettmknight garrettmknight moved this from Bugs and Follow Up Issues to Hold for Payment in [#whatsnext] #expense Dec 23, 2024
@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 30, 2024
Copy link

melvin-bot bot commented Dec 30, 2024

Payment Summary

Upwork Job

BugZero Checklist (@twisterdotcom)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1855979378378206243/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@sonialiap
Copy link
Contributor

Not regression #54307 (comment)

@sonialiap
Copy link
Contributor

sonialiap commented Dec 31, 2024

Payment summary:

@melvin-bot melvin-bot bot added the Overdue label Jan 2, 2025
@akinwale
Copy link
Contributor

akinwale commented Jan 4, 2025

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to comment: N/A

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion: N/A

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue: https://github.com/Expensify/Expensify/issues/457622

Regression Test Proposal

Test:

  1. Launch Expensify
  2. Log in with an account
  3. Navigate to a chat room that has a long chat history that can be scrolled, with the latest message being a message from a user different from the currently logged in account
  4. Scroll up through the chat history to the top
  5. Send a message to the chat room
  6. Verify that the chat area automatically scrolls to the bottom after the message has been sent to the room.

Do we agree 👍 or 👎?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 4, 2025
@sonialiap
Copy link
Contributor

Thanks @akinwale! If you haven't yet, please request payment in ND

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Jan 6, 2025
@melvin-bot melvin-bot bot removed the Overdue label Jan 6, 2025
@Anaslancer
Copy link
Contributor

@sonialiap Can I get the payment?

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Jan 6, 2025

Seems like @anaslance removed themselves from the issue and that caused some confusion:

image

@aldo-expensify aldo-expensify reopened this Jan 6, 2025
@sonialiap
Copy link
Contributor

@Anaslancer $250 for fix, offer sent!

@Anaslancer
Copy link
Contributor

Thank you!!!

@sonialiap
Copy link
Contributor

Payment completed 😊

@JmillsExpensify
Copy link

$250 approved for @akinwale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

9 participants