feat: add weekly summary link to Header component

- Introduced a new navigation link for the weekly summary in the Header component, enhancing user access to summary insights.
This commit is contained in:
Julien Froidefond
2025-09-19 10:28:33 +02:00
parent 3dd6e0fd1c
commit 978bb4d380
4 changed files with 483 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { Header } from '@/components/ui/Header';
import WeeklySummaryClient from '@/components/dashboard/WeeklySummaryClient';
import { WeeklySummaryService } from '@/services/weekly-summary';
export default async function WeeklySummaryPage() {
// Récupération côté serveur
const summary = await WeeklySummaryService.getWeeklySummary();
return (
<div className="min-h-screen bg-[var(--background)]">
<Header />
<div className="container mx-auto px-4 py-8">
<div className="max-w-6xl mx-auto">
<WeeklySummaryClient initialSummary={summary} />
</div>
</div>
</div>
);
}