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:
@@ -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">○</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">▲</span>
|
||||
}
|
||||
if (score < 0.9) {
|
||||
|
||||
Reference in New Issue
Block a user