feat: overhaul TODO.md and enhance Kanban components
- Updated TODO.md to reflect the new project structure and phases, marking several tasks as completed. - Enhanced Kanban components with a tech-inspired design, including new styles for columns and task cards. - Removed the obsolete reminders service and task processor, streamlining the codebase for better maintainability. - Introduced a modern API for task management, including CRUD operations and improved error handling. - Updated global styles for a cohesive dark theme and added custom scrollbar styles.
This commit is contained in:
@@ -1,26 +1,23 @@
|
||||
import { taskProcessorService } from '@/services/task-processor';
|
||||
import { getTargetRemindersList } from '@/lib/config';
|
||||
import { tasksService } from '@/services/tasks';
|
||||
import { KanbanBoard } from '../../components/kanban/Board';
|
||||
import { Header } from '../../components/ui/Header';
|
||||
|
||||
export default async function HomePage() {
|
||||
// SSR - Récupération des données côté serveur
|
||||
// SSR - Récupération des données côté serveur (focus sur les tâches récentes)
|
||||
const [tasks, stats] = await Promise.all([
|
||||
taskProcessorService.getTasks({ limit: 100 }),
|
||||
taskProcessorService.getTaskStats()
|
||||
tasksService.getTasks({ limit: 20 }), // Réduire pour voir les nouvelles tâches
|
||||
tasksService.getTaskStats()
|
||||
]);
|
||||
|
||||
const targetList = getTargetRemindersList();
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900">
|
||||
<div className="min-h-screen bg-slate-950">
|
||||
<Header
|
||||
title="TowerControl"
|
||||
subtitle={`Tâches synchronisées depuis "${targetList}"`}
|
||||
subtitle="Gestionnaire de tâches moderne"
|
||||
stats={stats}
|
||||
/>
|
||||
|
||||
<main className="container mx-auto px-4 py-6">
|
||||
<main className="h-[calc(100vh-120px)]">
|
||||
<KanbanBoard tasks={tasks} />
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user