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
mgr/dashboard: Display cluster status in favicon #36000
Conversation
jenkins test dashboard |
jenkins test dashboard backend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'm curious, why not trying out with an existing library? Just checked and saw this, which gives you ready to use notification count badges (e.g.: number of health warnings, dashboard alerts or notifications).
let color = 'transparent'; | ||
switch (status) { | ||
case 'HEALTH_OK': | ||
color = '#00bb00'; | ||
break; | ||
case 'HEALTH_WARN': | ||
color = '#ffa500'; | ||
break; | ||
case 'HEALTH_ERR': | ||
color = '#ff0000'; | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can colors be extracted to a constants file, just no to have the same colors repeated (e.g.: HealthPipe, ...)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, I can do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@epuertat I also found some package that did it, not sure if it was that one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
jenkins test dashboard |
jenkins test dashboard backend |
src/pybind/mgr/dashboard/frontend/src/app/shared/services/favicon.service.ts
Outdated
Show resolved
Hide resolved
Fixes: https://tracker.ceph.com/issues/44542 Signed-off-by: Tiago Melo <tmelo@suse.com>
jenkins test dashboard backend |
Use radius of 2px like on GitHub to increase visibility of the status circle. Follow up of PR ceph#36000. Signed-off-by: Volker Theile <vtheile@suse.com>
Use radius of 2px like on GitHub to increase visibility of the status circle. Follow up of PR ceph#36000. Signed-off-by: Volker Theile <vtheile@suse.com>
Did someone test this on Firefox? It does not work for me: https://tracker.ceph.com/issues/46918 |
Use radius of 2px like on GitHub to increase visibility of the status circle. Follow up of PR ceph/ceph#36000. Signed-off-by: Volker Theile <vtheile@suse.com>
Fixes: https://tracker.ceph.com/issues/44542
Signed-off-by: Tiago Melo tmelo@suse.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard backend
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox