feat: improve TaskCard and TagList components, enhance task loading logic
- Updated TaskCard to conditionally render footer elements based on available data (due date, source, completion status). - Enhanced TagList to visually indicate deleting tags and improved button styles for better UX. - Modified useTasks hook to refresh tasks only if no initial data is present, optimizing loading behavior. - Updated TagsPageClient to manage local tags and handle optimistic UI updates during tag deletion.
This commit is contained in:
@@ -4,7 +4,7 @@ import { HomePageClient } from '@/components/HomePageClient';
|
||||
export default async function HomePage() {
|
||||
// SSR - Récupération des données côté serveur
|
||||
const [initialTasks, initialStats] = await Promise.all([
|
||||
tasksService.getTasks({ limit: 20 }),
|
||||
tasksService.getTasks(),
|
||||
tasksService.getTaskStats()
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user