badgen / badgen.net

Fast badge service
https://badgen.net
ISC License
1.46k stars 128 forks source link

[Enhancement] distinguish between error message and correct value #656

Open razonyang opened 9 months ago

razonyang commented 9 months ago

I found that it's unable to tell if the current value is correct, since their color are the same, for example,

Desc URL Preview
Nonexistance https://flat.badgen.net/github/dependents-repo/hbstack/foobar-invalid?icon=hugo&label=used+by&color=green
Valid https://flat.badgen.net/github/dependents-repo/hbstack/hb?icon=hugo&label=used+by&color=green

It would be great that if API can.

  1. Always use danger color for errors.
  2. Show more detailed error message other than just number, e.g. 404 not found, it would be helpful for those badges specify color as same as the danger color.
amio commented 9 months ago

Good idea, this is indeed a very confusing case.