refactor: remove performance insights (Web Vitals) feature entirely
Remove Performance tab, PerformanceStats component, settings toggle, Web Vitals observers from tracking script, and all related API types and SWR hooks. Duration tracking is preserved.
This commit is contained in:
@@ -234,9 +234,9 @@ export default function SiteDashboardPage() {
|
||||
return { start: prevStart.toISOString().split('T')[0], end: prevEnd.toISOString().split('T')[0] }
|
||||
}, [dateRange])
|
||||
|
||||
// Single dashboard request replaces 7 focused hooks (overview, pages, locations,
|
||||
// devices, referrers, performance, goals). The backend runs all queries in parallel
|
||||
// and caches the result in Redis, reducing requests from 12 to 6 per refresh cycle.
|
||||
// Single dashboard request replaces focused hooks (overview, pages, locations,
|
||||
// devices, referrers, goals). The backend runs all queries in parallel
|
||||
// and caches the result in Redis for efficient data loading.
|
||||
const { data: dashboard, isLoading: dashboardLoading, error: dashboardError } = useDashboard(siteId, dateRange.start, dateRange.end, interval, filtersParam || undefined)
|
||||
const { data: realtimeData } = useRealtime(siteId)
|
||||
const { data: prevStats } = useStats(siteId, prevRange.start, prevRange.end)
|
||||
|
||||
Reference in New Issue
Block a user