diff --git a/app/sites/[id]/pagespeed/page.tsx b/app/sites/[id]/pagespeed/page.tsx index 6d7c894..8e86056 100644 --- a/app/sites/[id]/pagespeed/page.tsx +++ b/app/sites/[id]/pagespeed/page.tsx @@ -306,19 +306,34 @@ export default function PageSpeedPage() { {/* Section 1 — Score Overview */} -
{audit.description}
+ )} + {/* Items table */} + {audit.details && Array.isArray(audit.details) && audit.details.length > 0 && ( +
+ {item.url ? (
+ {item.url}
+ ) : item.node?.snippet ? (
+ {item.node.snippet}
+ ) : item.label || item.groupLabel || item.statistic || ''}
+ |
+ {/* Wasted bytes */}
+ {item.wastedBytes != null && (
+ + {item.wastedBytes < 1024 ? `${item.wastedBytes} B` : `${(item.wastedBytes / 1024).toFixed(1)} KiB`} + | + )} + {/* Total bytes */} + {item.totalBytes != null && !item.wastedBytes && ( ++ {item.totalBytes < 1024 ? `${item.totalBytes} B` : `${(item.totalBytes / 1024).toFixed(1)} KiB`} + | + )} + {/* Wasted ms */} + {item.wastedMs != null && ( ++ {item.wastedMs < 1000 ? `${Math.round(item.wastedMs)}ms` : `${(item.wastedMs / 1000).toFixed(1)}s`} + | + )} +
+ {audit.details.length - 10} more items
+ )} +