diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..d2ae2e9 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2025-05-22 - [Enhancing Task Empty States] +**Learning:** Initial exploration revealed that empty states for tasks were text-only and lacked visual hierarchy. Additionally, interactive toggle elements for task descriptions and subtasks were missing `aria-expanded` attributes, which hinders accessibility for screen reader users. +**Action:** Use visually rich empty states with icons and descriptive headings to improve engagement, and ensure all toggleable UI elements explicitly manage their expanded state via ARIA attributes. diff --git a/frontend/components/tasks/task-list.tsx b/frontend/components/tasks/task-list.tsx index 5420bf5..fce1f05 100644 --- a/frontend/components/tasks/task-list.tsx +++ b/frontend/components/tasks/task-list.tsx @@ -13,6 +13,7 @@ import { Clock, AlertTriangle, ChevronRight, + ClipboardList, } from "lucide-react"; import type { Task } from "@/lib/types"; import { useState } from "react"; @@ -66,7 +67,7 @@ function getDueDateInfo(dueDate: string) { } if (isTomorrow(date)) { return { - label: "Manana", + label: "Mañana", className: "text-blue-600 dark:text-blue-400", icon: Calendar, }; @@ -92,9 +93,17 @@ export default function TaskList({ if (tasks.length === 0) { return ( -
- No se encontraron tareas. Crea una para empezar! -
++ ¡Todo despejado! Has completado tus tareas o aún no has empezado. Crea una nueva para organizarte. +
+