feat: add performance insights feature with toggle in settings and conditional rendering in dashboard pages

This commit is contained in:
Usman Baig
2026-01-19 14:40:42 +01:00
parent 61bdf41b9c
commit 088e22512a
5 changed files with 50 additions and 8 deletions

View File

@@ -228,10 +228,12 @@ export default function SiteDashboardPage() {
/>
</div>
{/* Performance Stats */}
<div className="mb-8">
<PerformanceStats stats={performance} />
</div>
{/* Performance Stats - Only show if enabled */}
{site.enable_performance_insights && (
<div className="mb-8">
<PerformanceStats stats={performance} />
</div>
)}
<div className="grid gap-6 lg:grid-cols-2 mb-8">
<ContentStats