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

Unread message indicator does not disappear after some time has passed #4718

Closed
isagoico opened this issue Aug 18, 2021 · 21 comments
Closed
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@isagoico
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. As user A send some messages to user B
  2. As user B navigate to the conversation with user A
  3. Wait a minute

Expected Result:

Unread message indicator should disappear after:

  • Some time has passed
  • The user sends a message

Actual Result:

Unread message indicator doesn't go away after the user sends a message or some time has passed.

Workaround:

To remove the unread message indicator the user has to navigate away from the conversation.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.0.86-2

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

image

Expensify/Expensify Issue URL:

View all open jobs on GitHub


From @mallenexpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1629245998499400

On web, staging, the new message indicator is stuck and is not disappearing.

@MelvinBot
Copy link

Triggered auto assignment to @MariaHCD (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@isagoico
Copy link
Author

According to this PR #1570, the unread indicator should disappear if:

  1. The indicator fades out after a few seconds
  2. If another message is sent while the report is active, verify the indicator doesn't show up again.

@MariaHCD MariaHCD added the External Added to denote the issue can be worked on by a contributor label Aug 18, 2021
@MelvinBot
Copy link

Triggered auto assignment to @JmillsExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 18, 2021

I reported this issue already while discussing #4472 Improvement. In this slack thread https://expensify.slack.com/archives/C01GTK53T8Q/p1628783620254300?thread_ts=1628782470.250300&cid=C01GTK53T8Q

I'll pick this up!

@JmillsExpensify
Copy link

Sounds great! Upwork job is here: https://www.upwork.com/jobs/~01e0bdbb422755f671. Make sure to repeat your proposal here and it can be reviewed by the team.

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2021
@MelvinBot
Copy link

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

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 20, 2021

@JmillsExpensify I'm working on it.

I think as per our discussion, we decided to hide new indicator when user replies.

Should we also disappear it after some time?

cc: @MariaHCD

@MTN718
Copy link
Contributor

MTN718 commented Aug 20, 2021

Proposal (Shane Watson from Upwork)

  1. when hide marker, isMarkerActive is false, in other word, scroll at the end, reset new marker position.
  2. Add event when start typing user in the input, reset new marker position

@parasharrajat
Copy link
Member

@MTN718 As per the contribution guidelines new contributors can only work on one job at a time. I just thought of telling you this as it will save you time.

@MTN718
Copy link
Contributor

MTN718 commented Aug 20, 2021

Thanks for your notice

@Santhosh-Sellavel
Copy link
Collaborator

Proposal

Just to hide the unread message indicator when the user posts a reply. We could just reset the marker position in the below lines.

if (lastAction && (lastAction.actorEmail === this.props.session.email)) {
this.scrollToListBottom();
}

Awaiting confirmation from @MariaHCD
Do we need to disappear the unread indicator after some time?

@MariaHCD
Copy link
Contributor

@Santhosh-Sellavel In an existing conversation where two people are chatting, I think it would make sense to hide the unread indicator after a certain time has passed. What would be the optimal time to wait until the indicator is hidden? cc: @mallenexpensify @JmillsExpensify @AndrewGable

@MelvinBot
Copy link

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

@mallenexpensify
Copy link
Contributor

Taking this over as the Contributor Manager for Mills.

Do we need to disappear the unread indicator after some time?

Yes, I looked around to see how long that might have been but can't find, my hunch is that it should disappear after 2-3 seconds.

Also, as mentioned in #expensify-open-source, we have some competing priorities that'll likely continue through the week so @AndrewGable might not be available to review for a few days.

@AndrewGable
Copy link
Contributor

How long does Slack's notification indicator appear for?

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 23, 2021

I don't know I waited a minute scrolled up & down it doesn't disappear. After switching between a different chat it disappeared.

@parasharrajat
Copy link
Member

parasharrajat commented Aug 23, 2021

I don't think we have to do this ATM or it is such a priority thing to do. just throwing my 2️⃣ cents.

@Santhosh-Sellavel
Copy link
Collaborator

Screenshot 2021-08-24 at 4 52 20 AM

It does not get removed after posting a reply too!

@AndrewGable
Copy link
Contributor

@mallenexpensify any thoughts on this after some research on how slack does this?

@mallenexpensify
Copy link
Contributor

I checked on a couple Slack convos, it looks like 4 seconds. but... it doesn't 'go away'. For the first 4 seconds is bolder/thicker
image
then it's thinner but still red
image
(I tried to grab a vid with no luck).

The line persists until you go to another chat which seems to mirror what we do in NewDot.

I'm leaning towards @parasharrajat thought

I don't think we have to do this ATM or it is such a priority thing to do. just throwing my 2️⃣ cents.

@AndrewGable you agree? If so, we can close

@AndrewGable
Copy link
Contributor

I agree we can close!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

9 participants