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

Change colors of health checker results #1584

Closed

Conversation

AayushSaini101
Copy link

Related: #1555
SuggestedColors and Range:
image

@AayushSaini101 AayushSaini101 requested a review from a team as a code owner January 5, 2024 09:30
@@ -1,11 +1,13 @@
import React, {useState} from 'react';
import PropTypes from 'prop-types';
import {Progress, Tooltip} from 'reactstrap';
import '../styles/progressbar.css';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change this to a css module, so we don't introduce global styles with generic names?


function PluginHealthScoreProgressBar({healthScore, name}) {
const score = healthScore.value || 0;
const color =
score > 80 ? 'success' : score > 60 ? 'warning' : 'danger';
score >= 80 ? "first" : score >=60 && score <80 ? 'second' : score >=40 && score <60 ? 'third'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this needs to be css classes for a single style attribute change.

@halkeye halkeye changed the title Improve plugin color Change colors of health checker results Jan 12, 2024
@halkeye
Copy link
Member

halkeye commented Jan 12, 2024

@alecharp

@zbynek
Copy link
Contributor

zbynek commented Jan 12, 2024

The referenced issue is about the health-score tab, which is not affected by this PR. Instead this changes the color of helth bars, which are already using reasonable colors. The current scheme seems logical (resembles traffic lights), the proposed one seems random.

@AayushSaini101 I appreciate the effort, but I currently don't see this as an improvement. Contributions that would make the health-score tab (e.g. https://plugins.jenkins.io/slack/healthscore/ ) more colorful would be appreciated though!

@halkeye @alecharp I suggest to close this.

@alecharp
Copy link
Contributor

I agree we should close this.
I have some issues with hard coded values for the thresholds like that.

There is a statistic object in the response the project is getting from Plugin Health Scoring could be used to have the threshold depending on the statistical scores across all the plugins (q1,q3, medium).

@zbynek zbynek closed this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants