componentKey: string;
forceMetric?: boolean;
getLabel?: (rating: RatingEnum) => string;
- getTooltip?: (rating: RatingEnum) => React.ReactNode;
+ getTooltip?: (
+ rating: RatingEnum,
+ value: string | undefined,
+ metricKey?: MetricKey,
+ ) => React.ReactNode;
ratingMetric: MetricKey;
size?: SizeType;
}
<Spinner isLoading={isLoading}>
{getTooltip ? (
<>
- <Tooltip content={getTooltip(rating)}>{badge}</Tooltip>
+ <Tooltip content={getTooltip(rating, value, measure?.metric as MetricKey)}>
+ {badge}
+ </Tooltip>
{/* The badge is not interactive, so show the tooltip content for screen-readers only */}
- <span className="sw-sr-only">{getTooltip(rating)}</span>
+ <span className="sw-sr-only">
+ {getTooltip(rating, value, measure?.metric as MetricKey)}
+ </span>
</>
) : (
badge
metric.software_quality_reliability_rating.description=Reliability rating
metric.software_quality_reliability_rating.name=Reliability Rating
metric.software_quality_reliability_rating.extra_short_name=Rating
-metric.software_quality_reliability_rating.tooltip.A=Reliability rating is A when there are no bugs.
-metric.software_quality_reliability_rating.tooltip.B=Reliability rating is B when there is at least one minor bug.
-metric.software_quality_reliability_rating.tooltip.C=Reliability rating is C when there is at least one major bug.
-metric.software_quality_reliability_rating.tooltip.D=Reliability rating is D when there is at least one critical bug.
-metric.software_quality_reliability_rating.tooltip.E=Reliability rating is E when there is at least one blocker bug.
+metric.software_quality_reliability_rating.tooltip.A=Reliability rating is A when there are no reliability issues.
+metric.software_quality_reliability_rating.tooltip.B=Reliability rating is B when there is at least one low reliability issue.
+metric.software_quality_reliability_rating.tooltip.C=Reliability rating is C when there is at least one medium reliability issue.
+metric.software_quality_reliability_rating.tooltip.D=Reliability rating is D when there is at least one high reliability issue.
+metric.software_quality_reliability_rating.tooltip.E=Reliability rating is E when there is at least one high reliability issue.
metric.reliability_remediation_effort.description=Reliability Remediation Effort
metric.reliability_remediation_effort.name=Reliability Remediation Effort
metric.reliability_remediation_effort.extra_short_name=Remediation Effort
metric.software_quality_security_rating.description=Security rating
metric.software_quality_security_rating.name=Security Rating
metric.software_quality_security_rating.extra_short_name=Rating
-metric.software_quality_security_rating.tooltip.A=Security rating is A when there are no vulnerabilities.
-metric.software_quality_security_rating.tooltip.B=Security rating is B when there is at least one minor vulnerability.
-metric.software_quality_security_rating.tooltip.C=Security rating is C when there is at least one major vulnerability.
-metric.software_quality_security_rating.tooltip.D=Security rating is D when there is at least one critical vulnerability.
-metric.software_quality_security_rating.tooltip.E=Security rating is E when there is at least one blocker vulnerability.
+metric.software_quality_security_rating.tooltip.A=Security rating is A when there are no security issues.
+metric.software_quality_security_rating.tooltip.B=Security rating is B when there is at least one low security issue.
+metric.software_quality_security_rating.tooltip.C=Security rating is C when there is at least one medium security issue.
+metric.software_quality_security_rating.tooltip.D=Security rating is D when there is at least one high security issue.
+metric.software_quality_security_rating.tooltip.E=Security rating is E when there is at least one high security issue.
metric.security_remediation_effort.description=Security remediation effort
metric.security_remediation_effort.name=Security Remediation Effort
metric.security_remediation_effort.extra_short_name=Remediation Effort
metric.security_review_rating.tooltip.C=Security Review rating is C when less than 70% of Security Hotspots are reviewed.
metric.security_review_rating.tooltip.D=Security Review rating is D when less than 50% of Security Hotspots are reviewed.
metric.security_review_rating.tooltip.E=Security Review rating is E when less than 30% of Security Hotspots are reviewed.
-metric.software_quality_security_review_rating.tooltip.A=Security Review rating is A when at least 80% of Security Hotspots are reviewed.
-metric.software_quality_security_review_rating.tooltip.B=Security Review rating is B when less than 80% of Security Hotspots are reviewed.
+metric.software_quality_security_review_rating.tooltip.A=Security Review rating is A when all Security Hotspots are reviewed.
+metric.software_quality_security_review_rating.tooltip.B=Security Review rating is B when less than 100% of Security Hotspots are reviewed.
metric.software_quality_security_review_rating.tooltip.C=Security Review rating is C when less than 70% of Security Hotspots are reviewed.
metric.software_quality_security_review_rating.tooltip.D=Security Review rating is D when less than 50% of Security Hotspots are reviewed.
metric.software_quality_security_review_rating.tooltip.E=Security Review rating is E when less than 30% of Security Hotspots are reviewed.