fix(pagespeed): show empty circle for unscored/informative audits

Null scores now show ○ (informative) instead of ▲ (poor), matching
pagespeed.web.dev's "Unscored" indicator for informative audits.
This commit is contained in:
Usman Baig
2026-03-22 21:08:50 +01:00
parent dfcf6bebde
commit a0173636d4

View File

@@ -552,8 +552,12 @@ export default function PageSpeedPage() {
// * Severity indicator based on audit score (pagespeed.web.dev style)
function AuditSeverityIcon({ score }: { score: number | null }) {
if (score === null || score < 0.5) {
// Red triangle for poor / unknown
if (score === null) {
// Empty circle for informative/unscored audits
return <span className="text-neutral-400 text-sm leading-none flex-shrink-0" aria-label="Informative">&#9675;</span>
}
if (score < 0.5) {
// Red triangle for poor
return <span className="text-red-500 text-sm leading-none flex-shrink-0" aria-label="Poor">&#9650;</span>
}
if (score < 0.9) {