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] LHN - Unread marker from second message when viewing conversation #46501

Closed
1 of 6 tasks
lanitochka17 opened this issue Jul 30, 2024 · 29 comments
Closed
1 of 6 tasks
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 30, 2024

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.14-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4784111
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Navigate to the conversation with the secondary user. Be sure to clear any unread messages if needed
  3. Keep the conversation in view of the most recent message
  4. As the secondary user - Send some messages to the main user

Expected Result:

Verify the unread marker is not displayed in the conversation history over the new messages
Verify the conversation is not bold in LHN

Actual Result:

Conversation is displayed bold in LHN starting from second sent message
Unread marker is displayed in the conversation history over messages once away and back to conversation

Workaround:

Unknown

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

Bug6556882_1722303167988.video_14.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b903d59d2cb795a3
  • Upwork Job ID: 1818325193138330554
  • Last Price Increase: 2024-07-30
  • Automatic offers:
    • rayane-djouah | Reviewer | 103403505
    • ishpaul777 | Contributor | 103403507
Issue OwnerCurrent Issue Owner: @rayane-djouah
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 30, 2024
Copy link

melvin-bot bot commented Jul 30, 2024

Triggered auto assignment to @puneetlath (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@hannojg
Copy link
Contributor

hannojg commented Jul 30, 2024

Just out of curiosity - why is the title in Russian ?

@lanitochka17 lanitochka17 changed the title LHN - Непрочитанный маркер из второго сообщения при просмотре беседы LHN - Unread marker from second message when viewing conversation Jul 30, 2024
@lanitochka17
Copy link
Author

@hannojg sorry, corrected

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Jul 30, 2024
@melvin-bot melvin-bot bot changed the title LHN - Unread marker from second message when viewing conversation [$250] LHN - Unread marker from second message when viewing conversation Jul 30, 2024
Copy link

melvin-bot bot commented Jul 30, 2024

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

@melvin-bot melvin-bot bot added 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

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

@ishpaul777
Copy link
Contributor

ishpaul777 commented Jul 30, 2024

Maybe from #45240, verifying by reverting here #46526

Edit: its fixed with revert 👍

@nkdengineer
Copy link
Contributor

Proposal

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

Conversation is displayed bold in LHN starting from second sent message
Unread marker is displayed in the conversation history over messages once away and back to conversation

What is the root cause of that problem?

The condition here

const isWithinVisibleThreshold = scrollingVerticalOffset.current < MSG_VISIBLE_THRESHOLD ? reportAction.created < (userActiveSince.current ?? '') : true;
is wrong in the case of scrollingVerticalOffset.current < MSG_VISIBLE_THRESHOLD. If that is true, we need to check reportAction.created > (userActiveSince.current ?? '') (or >=) instead of reportAction.created < (userActiveSince.current ?? ''), because the former means that the report action is created after the user was active on the report, thus should be shown, and isWithinVisibleThreshold and subsequently shouldDisplay should be true

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

Update

const isWithinVisibleThreshold = scrollingVerticalOffset.current < MSG_VISIBLE_THRESHOLD ? reportAction.created < (userActiveSince.current ?? '') : true;
to

const isWithinVisibleThreshold = scrollingVerticalOffset.current < MSG_VISIBLE_THRESHOLD ? reportAction.created > (userActiveSince.current ?? '') : true;

What alternative solutions did you explore? (Optional)

@rayane-djouah
Copy link
Contributor

Confirmed that it's fixed by the revert 👍

@rayane-djouah
Copy link
Contributor

@nkdengineer - The isWithinVisibleThreshold condition that your proposal is pointing to is not a recent change, see the commit that introduced it

@rayane-djouah
Copy link
Contributor

@hurali97 @mkhutornyi @grgia I've confirmed that this regression is caused by #45240 as suggested here

@puneetlath
Copy link
Contributor

Thanks @ishpaul777. Can you put your PR up for review? And I'll merge it and get it CPd.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Jul 30, 2024
@ishpaul777
Copy link
Contributor

#46526 done!

@goldman727
Copy link

Hello, i read your job post for github issue.
that was fixed?

Copy link

melvin-bot bot commented Jul 30, 2024

📣 @tJonPope727! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@goldman727
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01a5523c1adec76313

Copy link

melvin-bot bot commented Jul 30, 2024

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

@goldman727
Copy link

you have issues yet, please let me know.

@puneetlath
Copy link
Contributor

Confirmed that the revert/CP fixed it. Removing blocker labels.

@puneetlath puneetlath removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 30, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 31, 2024
@ishpaul777
Copy link
Contributor

Am i eligible for payment for PR for this #46526

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

melvin-bot bot commented Aug 5, 2024

📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Aug 5, 2024

📣 @ishpaul777 🎉 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 📖

@rayane-djouah rayane-djouah removed their assignment Aug 10, 2024
@ishpaul777
Copy link
Contributor

This is ready for payment @puneetlath : )

@puneetlath
Copy link
Contributor

It looks like this is the PR: #45240

It was raised by @ishpaul777 and reviewed by @mkhutornyi, so both are due payment.

Does that sound right?

@ishpaul777
Copy link
Contributor

ishpaul777 commented Aug 20, 2024

No, PR was #46526 and it was reviewed by you

@puneetlath
Copy link
Contributor

Oh I see. Well glad I asked then 😅

@puneetlath
Copy link
Contributor

Paid. Thanks @ishpaul777!

@puneetlath
Copy link
Contributor

Paid. Thanks @ishpaul777!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants