Update Lighthouse report for /settings/profile and fix runtime errors

- Updated `lighthouse-report.json` to reflect audit for `http://localhost:3000/settings/profile`.
- Resolved `CHROME_INTERSTITIAL_ERROR` runtime issues.
- Added HTTPS and performance audit metrics, improving accuracy and insights.
This commit is contained in:
2025-11-02 16:59:36 +01:00
parent 54c32bf97f
commit aedc770afb
3 changed files with 9552 additions and 1089 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,34 @@
/**
* Admin Route Group Layout
* Wraps all admin routes with AuthGuard requiring superuser privileges
*/
import type { Metadata } from 'next';
import { AuthGuard } from '@/components/auth';
import { Header } from '@/components/layout/Header';
import { Footer } from '@/components/layout/Footer';
export const metadata: Metadata = {
title: {
template: '%s | Admin | FastNext Template',
default: 'Admin Dashboard',
},
};
export default function AdminLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<AuthGuard requireAdmin>
<div className="flex min-h-screen flex-col">
<Header />
<main className="flex-1">
{children}
</main>
<Footer />
</div>
</AuthGuard>
);
}

View File

@@ -0,0 +1,60 @@
/**
* Admin Dashboard Page
* Placeholder for future admin functionality
* Protected by AuthGuard in layout with requireAdmin=true
*/
import type { Metadata } from 'next';
export const metadata: Metadata = {
title: 'Admin Dashboard',
};
export default function AdminPage() {
return (
<div className="container mx-auto px-4 py-8">
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold tracking-tight">
Admin Dashboard
</h1>
<p className="mt-2 text-muted-foreground">
Manage users, organizations, and system settings
</p>
</div>
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
<div className="rounded-lg border bg-card p-6">
<h3 className="font-semibold text-lg mb-2">Users</h3>
<p className="text-sm text-muted-foreground">
Manage user accounts and permissions
</p>
<p className="text-xs text-muted-foreground mt-4">
Coming soon...
</p>
</div>
<div className="rounded-lg border bg-card p-6">
<h3 className="font-semibold text-lg mb-2">Organizations</h3>
<p className="text-sm text-muted-foreground">
View and manage organizations
</p>
<p className="text-xs text-muted-foreground mt-4">
Coming soon...
</p>
</div>
<div className="rounded-lg border bg-card p-6">
<h3 className="font-semibold text-lg mb-2">System</h3>
<p className="text-sm text-muted-foreground">
System settings and configuration
</p>
<p className="text-xs text-muted-foreground mt-4">
Coming soon...
</p>
</div>
</div>
</div>
</div>
);
}