feat(pagespeed): add API client, SWR hooks, and sidebar navigation

- PageSpeed API client with types for config, checks, and audits
- SWR hooks: usePageSpeedConfig, usePageSpeedLatest, usePageSpeedHistory
- GaugeIcon added to sidebar under Infrastructure group
This commit is contained in:
Usman Baig
2026-03-22 18:05:17 +01:00
parent b026476311
commit 780dd464a1
3 changed files with 116 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import {
SearchIcon,
CloudUploadIcon,
HeartbeatIcon,
GaugeIcon,
SettingsIcon,
CollapseLeftIcon,
CollapseRightIcon,
@@ -88,6 +89,7 @@ const NAV_GROUPS: NavGroup[] = [
items: [
{ label: 'CDN', href: (id) => `/sites/${id}/cdn`, icon: CloudUploadIcon, matchPrefix: true },
{ label: 'Uptime', href: (id) => `/sites/${id}/uptime`, icon: HeartbeatIcon, matchPrefix: true },
{ label: 'PageSpeed', href: (id) => `/sites/${id}/pagespeed`, icon: GaugeIcon, matchPrefix: true },
],
},
]