PageSpeed monitoring, Polar billing, sidebar polish, frontend consistency audit #68

Merged
uz1mani merged 45 commits from staging into main 2026-03-23 19:07:54 +00:00
5 changed files with 935 additions and 0 deletions
Showing only changes of commit dfcf6bebde - Show all commits

View File

@@ -509,8 +509,7 @@ export default function PageSpeedPage() {
{categoryGroups.map(group => {
const groupAudits = auditsByGroup[group.key] ?? []
const groupPassed = passed.filter(a => a.group === group.key)
// * Hide categories with no failing audits — showing only passed count adds no value
if (groupAudits.length === 0) return null
if (groupAudits.length === 0 && groupPassed.length === 0) return null
return (
<div key={group.key} className="bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-800 rounded-2xl p-6 sm:p-8">
{/* Category header with gauge */}
@@ -521,7 +520,7 @@ export default function PageSpeedPage() {
{group.label}
</h3>
<p className="text-xs text-neutral-500 dark:text-neutral-400">
{groupAudits.length} issue{groupAudits.length !== 1 ? 's' : ''} found
{groupAudits.length === 0 ? 'No issues found' : `${groupAudits.length} issue${groupAudits.length !== 1 ? 's' : ''} found`}
</p>
</div>
</div>