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

[$250] Room - Page does not scroll to bottom when send message in #expensify-roadmap public room #52208

Open
1 of 8 tasks
lanitochka17 opened this issue Nov 7, 2024 · 25 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

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
@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.

Copy link

melvin-bot bot commented Nov 21, 2024

@akinwale @sonialiap @aldo-expensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 21, 2024
Copy link

melvin-bot bot commented Nov 21, 2024

📣 @Anaslancer You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@Anaslancer
Copy link
Contributor

Applied on Upwork. Thank you!!!

@Anaslancer
Copy link
Contributor

May I create a PR now?

@akinwale
Copy link
Contributor

May I create a PR now?

Yes, you have been assigned to the issue, so you can go ahead.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 22, 2024
@aldo-expensify
Copy link
Contributor

Waiting on: #52955 (review)

@Anaslancer Anaslancer removed their assignment Nov 30, 2024
@sonialiap sonialiap added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Dec 13, 2024
Copy link

melvin-bot bot commented Dec 13, 2024

Current assignee @sonialiap is eligible for the Bug assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 13, 2024
@sonialiap sonialiap removed their assignment Dec 13, 2024
@sonialiap sonialiap added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Dec 13, 2024
@sonialiap
Copy link
Contributor

I'm OOO Dec 16-20, adding a leave buddy

next steps:

  • might need payment while I'm out

Copy link

melvin-bot bot commented Dec 13, 2024

Triggered auto assignment to @twisterdotcom (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.

@sonialiap sonialiap self-assigned this Dec 13, 2024
@garrettmknight
Copy link
Contributor

👋 it looks like this issue might be a regression from the PR for this fix. @aldo-expensify / @akinwale can you have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

8 participants