Add badges to favicon #835

Open
WillianRod wants to merge 1 commits from WillianRod/feat/add-favicon-badges into master
WillianRod commented 4 years ago (Migrated from github.com)
Owner

Description

Resolves #728

  • Added favicon badges counter

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I ran ESLint and other linters for modified files
  • I have performed a self-review of my own code and test it
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

image
image

# Description Resolves #728 - Added favicon badges counter ## Type of change - New feature (non-breaking change which adds functionality) ## Checklist - [x] My code follows the style guidelines of this project - [x] I ran ESLint and other linters for modified files - [x] I have performed a self-review of my own code and test it - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] My changes generate no new warnings - [ ] My code needed automated testing. I have added them (this is optional task) ## Screenshots (if any) ![image](https://user-images.githubusercontent.com/6539258/139515802-b669d92f-4910-4570-a306-5a3c8d042ace.png) ![image](https://user-images.githubusercontent.com/6539258/139515808-9534bee1-89c0-450b-8bd0-786d104b48df.png)
deefdragon commented 4 years ago (Migrated from github.com)
Owner

It looks good so far, but I am gonna ask that you add an option to enable/disable this.

Also, looking at the code real quick, it looks like it always displays a number, even if there are 0 down. I think it should probably remove the badge if there are no down monitors.

It looks good so far, but I am gonna ask that you add an option to enable/disable this. Also, looking at the code real quick, it looks like it always displays a number, even if there are 0 down. I think it should probably remove the badge if there are no down monitors.
WillianRod commented 4 years ago (Migrated from github.com)
Poster
Owner

It looks good so far, but I am gonna ask that you add an option to enable/disable this.

Also, looking at the code real quick, it looks like it always displays a number, even if there are 0 down. I think it should probably remove the badge if there are no down monitors.

The Favicon library automatically hide the badge when 0 is passed.

An option to hide it could be interesting, but this badge is a more visual way to call attention when a monitor goes down.

> It looks good so far, but I am gonna ask that you add an option to enable/disable this. > > > > Also, looking at the code real quick, it looks like it always displays a number, even if there are 0 down. I think it should probably remove the badge if there are no down monitors. The Favicon library automatically hide the badge when 0 is passed. An option to hide it could be interesting, but this badge is a more visual way to call attention when a monitor goes down.
Saibamen (Migrated from github.com) reviewed 4 years ago
Saibamen (Migrated from github.com) commented 4 years ago
Owner
    animation: "none",
```suggestion animation: "none", ```
Saibamen (Migrated from github.com) approved these changes 4 years ago
deefdragon commented 4 years ago (Migrated from github.com)
Owner

It looks good so far, but I am gonna ask that you add an option to enable/disable this.
Also, looking at the code real quick, it looks like it always displays a number, even if there are 0 down. I think it should probably remove the badge if there are no down monitors.

The Favicon library automatically hide the badge when 0 is passed.

Understood.

An option to hide it could be interesting, but this badge is a more visual way to call attention when a monitor goes down.

So, my brain is annoyingly reliant on something's general color and shape for recognition (especially in icons like favicons/profile pics), and adding this badge may make it more difficult for me figure out which of my billion tabs has UK on it when I get a ping if I want more details. Its possible that this won't actually impact things, but I would rather have the option than not.

Its minor, and I can definitely see the trade-off of settings clutter vs configuration, but I just want to explain why I want the option in a bit more detail.

> > It looks good so far, but I am gonna ask that you add an option to enable/disable this. > > Also, looking at the code real quick, it looks like it always displays a number, even if there are 0 down. I think it should probably remove the badge if there are no down monitors. > > The Favicon library automatically hide the badge when 0 is passed. Understood. > An option to hide it could be interesting, but this badge is a more visual way to call attention when a monitor goes down. So, my brain is annoyingly reliant on something's general color and shape for recognition (especially in icons like favicons/profile pics), and adding this badge _may_ make it more difficult for me figure out which of my billion tabs has UK on it when I get a ping if I want more details. Its possible that this won't actually impact things, but I would rather have the option than not. Its minor, and I can definitely see the trade-off of settings clutter vs configuration, but I just want to explain why I want the option in a bit more detail.
louislam commented 4 years ago (Migrated from github.com)
Owner

Just tested, it is working.

However, I think using vue's watch should be better and easier. I will come back later.

Just tested, it is working. However, I think using vue's `watch` should be better and easier. I will come back later.

Reviewers

This pull request has changes conflicting with the target branch.
package-lock.json
src/mixins/socket.js
Sign in to join this conversation.
Loading…
There is no content yet.