- Marked tasks in `TODO.md` as completed for moving task-related files to the `task-management` directory and correcting imports across the codebase. - Updated imports in `seed-data.ts`, `seed-tags.ts`, API routes, and various components to reflect the new structure. - Removed obsolete `daily.ts`, `tags.ts`, and `tasks.ts` files to streamline the codebase. - Added new tasks in `TODO.md` for future cleaning and organization of service imports.
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { Header } from '@/components/ui/Header';
|
|
import { ManagerSummaryService } from '@/services/analytics/manager-summary';
|
|
import { tasksService } from '@/services/task-management/tasks';
|
|
import { tagsService } from '@/services/task-management/tags';
|
|
import { WeeklyManagerPageClient } from './WeeklyManagerPageClient';
|
|
|
|
// Force dynamic rendering (no static generation)
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export default async function WeeklyManagerPage() {
|
|
// SSR - Récupération des données côté serveur
|
|
const [summary, initialTasks, initialTags] = await Promise.all([
|
|
ManagerSummaryService.getManagerSummary(),
|
|
tasksService.getTasks(),
|
|
tagsService.getTags()
|
|
]);
|
|
|
|
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">
|
|
<WeeklyManagerPageClient
|
|
initialSummary={summary}
|
|
initialTasks={initialTasks}
|
|
initialTags={initialTags}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|