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-08-27] [$250] Clicking on new message doesn't navigate to the last message for 2nd comment link #45004

Closed
3 of 6 tasks
kbecciv opened this issue Jul 8, 2024 · 42 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

@kbecciv
Copy link

kbecciv commented Jul 8, 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.5-2
Reproducible in staging?: y
Reproducible in production?: y
Issue found when executing PR: #41962
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Start a chat with account B as account A
  3. Send 200 messages (Or use this expensifail account applausetester+nlinbx@applause.expensifail.com
    )
  4. Copy the link of the 70th comment and send it
  5. Copy the link of the 150th comment and send it
  6. Go to troubleshoot and clear cache and restart
  7. Click on the first link sent on step 4
  8. Click on the "New message" badge that appeared at the top of the chat
  9. Confirm the page scrolls to the bottom of the comment history
  10. Click on the second link sent on step 5.
  11. Click on the "New message" badge once again

Expected Result:

The report page scrolls down to the bottom of the comment history

Actual Result:

The report page doesn't scroll down to the bottom of the comment history after clicking on the second link, and this time clicking on the first link and then clicking on the new message badge no longer scrolls to the bottom of the comment history as well.

Workaround:

n/a

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6535893_1720445935785.bandicam_2024-07-08_16-28-48-145.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0188f7ddb71ba94170
  • Upwork Job ID: 1810560415299355486
  • Last Price Increase: 2024-07-23
  • Automatic offers:
    • tsa321 | Contributor | 103330551
Issue OwnerCurrent Issue Owner: @RachCHopkins
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 8, 2024
Copy link

melvin-bot bot commented Jul 8, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Jul 8, 2024

@RachCHopkins FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@RachCHopkins
Copy link
Contributor

Replicated - To be fair my "new message" button didn't take me to the recent message at any point.

@RachCHopkins RachCHopkins added the External Added to denote the issue can be worked on by a contributor label Jul 9, 2024
Copy link

melvin-bot bot commented Jul 9, 2024

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

@melvin-bot melvin-bot bot changed the title Clicking on new message doesn't navigate to the last message for 2nd comment link [$250] Clicking on new message doesn't navigate to the last message for 2nd comment link Jul 9, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 9, 2024
Copy link

melvin-bot bot commented Jul 9, 2024

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

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Jul 9, 2024

Proposal

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

Clicking on a new message doesn't navigate to the last message for 2nd comment link

What is the root cause of that problem?

We navigate to the report route instead of scrolling to bottom if hasNewestReportAction is false

const scrollToBottomAndMarkReportAsRead = () => {
if (!hasNewestReportAction) {
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID));
Report.openReport(report.reportID);
return;
}

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

Scroll to the bottom instead if hasNewestReportAction is false

        if (!hasNewestReportAction) {
            reportScrollManager.scrollToBottom();
        }

RESULT

New-Expensify.7.mp4

What alternative solutions did you explore? (Optional)

Remove the If clause

    const scrollToBottomAndMarkReportAsRead = () => {
        reportScrollManager.scrollToBottom();
        readActionSkipped.current = false;
        Report.readNewestAction(report.reportID);
    };

@nyomanjyotisa
Copy link
Contributor

Proposal updated

@s77rt
Copy link
Contributor

s77rt commented Jul 9, 2024

@nyomanjyotisa Your RCA is not correct. Why is hasNewestReportAction false if we have the new message button?

Copy link

melvin-bot bot commented Jul 15, 2024

@s77rt, @RachCHopkins Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Jul 15, 2024
@s77rt
Copy link
Contributor

s77rt commented Jul 15, 2024

Still looking for proposals

@melvin-bot melvin-bot bot removed the Overdue label Jul 15, 2024
Copy link

melvin-bot bot commented Jul 16, 2024

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

Copy link

melvin-bot bot commented Jul 19, 2024

@s77rt, @RachCHopkins Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Jul 19, 2024
@s77rt
Copy link
Contributor

s77rt commented Jul 19, 2024

Still looking for proposals

@melvin-bot melvin-bot bot removed the Overdue label Jul 19, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

@s77rt @RachCHopkins 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 added the Overdue label Jul 22, 2024
@s77rt
Copy link
Contributor

s77rt commented Jul 22, 2024

Still looking for proposals

Copy link

melvin-bot bot commented Jul 30, 2024

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

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

melvin-bot bot commented Jul 30, 2024

📣 @tsa321 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 1, 2024
@tsa321
Copy link
Contributor

tsa321 commented Aug 1, 2024

@s77rt PR is ready

@tsa321
Copy link
Contributor

tsa321 commented Aug 21, 2024

The PR has been deployed to production since last week.
cc @s77rt @RachCHopkins

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Aug 26, 2024
Copy link

melvin-bot bot commented Aug 26, 2024

This issue has not been updated in over 15 days. @francoisl, @s77rt, @RachCHopkins, @tsa321 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@s77rt
Copy link
Contributor

s77rt commented Aug 26, 2024

This is due payment

@RachCHopkins
Copy link
Contributor

@s77rt I think you need to remove the reviewing label to deem it ready for payment.

@RachCHopkins RachCHopkins added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Aug 26, 2024
@RachCHopkins
Copy link
Contributor

Or maybe Melvin was supposed to. All the automation seems to have failed here.

@RachCHopkins
Copy link
Contributor

RachCHopkins commented Aug 26, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@s77rt] The PR that introduced the bug has been identified. Link to the PR:
  • [@s77rt] 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:
  • [@s77rt] A discussion in #expensify-bugs 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:
  • [@s77rt] Determine if we should create a regression test for this bug.
  • [@s77rt] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@RachCHopkins] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@RachCHopkins
Copy link
Contributor

@RachCHopkins RachCHopkins changed the title [$250] Clicking on new message doesn't navigate to the last message for 2nd comment link [HOLD for payment 2024-08-27] [$250] Clicking on new message doesn't navigate to the last message for 2nd comment link Aug 26, 2024
@s77rt s77rt mentioned this issue Aug 27, 2024
50 tasks
@s77rt
Copy link
Contributor

s77rt commented Aug 27, 2024

@melvin-bot melvin-bot bot added Daily KSv2 and removed Monthly KSv2 labels Sep 2, 2024
@RachCHopkins
Copy link
Contributor

Payment Summary:

Contributor: @tsa321 paid $250 via Upwork
Contributor+: @s77rt ready to be paid $250 via newdot manual request

Upwork job here

@RachCHopkins
Copy link
Contributor

Contributor has been paid, the contract has been completed, and the Upwork post has been closed.

@JmillsExpensify
Copy link

$250 approved for @s77rt

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
No open projects
Status: No status
Development

No branches or pull requests

7 participants