feat: enhance DailyCheckboxItem and EditCheckboxModal for task management
- Updated DailyCheckboxItem to display task title instead of ID, improving user clarity. - Refactored EditCheckboxModal to load tasks dynamically, allowing for task selection with search functionality. - Removed TaskSelector component to streamline task selection process within the modal. - Added loading and filtering logic for tasks, enhancing user experience during task selection.
This commit is contained in:
@@ -129,10 +129,10 @@ export function DailyCheckboxItem({
|
||||
{checkbox.task && (
|
||||
<Link
|
||||
href={`/?highlight=${checkbox.task.id}`}
|
||||
className="text-xs text-[var(--primary)] hover:text-[var(--primary)]/80 font-mono"
|
||||
className="text-xs text-[var(--primary)] hover:text-[var(--primary)]/80 font-mono truncate max-w-[120px]"
|
||||
title={`Tâche: ${checkbox.task.title}`}
|
||||
>
|
||||
#{checkbox.task.id.slice(-6)}
|
||||
{checkbox.task.title}
|
||||
</Link>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user