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

Colorize the minimized DDT icon #1395

Open
d9pouces opened this issue Nov 2, 2020 · 0 comments
Open

Colorize the minimized DDT icon #1395

d9pouces opened this issue Nov 2, 2020 · 0 comments
Labels

Comments

@d9pouces
Copy link
Contributor

d9pouces commented Nov 2, 2020

I made an extension to check the HTML validity.
However, my DDT is minimized and I don't see the result.

Why not add a method get_warning_level (0/10/20/30/40/50/… like the logging module) to the Panel class?
The minimized icon could be colored following the maximum level (across all panels), being red if any panel is above 40, orange if any panel is above 30, and so on.

For example, the SQL panel could raise a warning if there are too many requests or if there are too slow or the Django panel could be red if the current Django version is not supported anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants