Do you want to work on this issue?
You can request for a bounty in order to promote it!
Stop reporting a notification immediately after it's viewed #106
not-an-aardvark posted onGitHub
The following happens to me somewhat often:
- The notifier icon updates with a "1", letting me know that I have a notification
- I click on the icon, view the notification, and go back to what I was doing before
- 45 seconds later, I notice a "1" on the notifier icon, and I click it again thinking I have another notification, only to realize that the icon is out-of-date. It's still letting me know about the notification that I just viewed, and I don't actually have any new notifications.
This is only a mild issue because the extension re-fetches from GitHub every minute and realizes that I don't have any new notifications. However, it would be nice if the extension could prevent it by doing something like this:
- For each notification, store the corresponding URL and a timestamp of when the notification was fetched.
- When the user opens a tab that matches the URL of one of the notifications, immediately update the counter in the notifier icon to reflect the fact that the notification is no longer "new".
- Clear the stored URLs and repeat the process whenever a new batch of notifications is fetched from GitHub.
Note: This issue has a bounty, so it's expected that you are an experienced programmer and that you give it your best effort if you intend to tackle this. Don't forget, if applicable, to add tests, docs (double-check for typos), and update TypeScript definitions. And don't be sloppy. Review your own diff multiple times and try to find ways to improve and simplify your code. Instead of asking too many questions, present solutions. The point of an issue bounty is to reduce my workload, not give me more. Include a 🦄 in your PR description to indicate that you've read this. Thanks for helping out 🙌 - @sindresorhus