feat: enhance RecentTasks component with task link and date formatting

- Wrapped the task updated date in a flex container for better layout.
- Added a link to the Kanban page for each task, allowing users to quickly access task details directly from the RecentTasks component.
This commit is contained in:
Julien Froidefond
2025-09-26 08:09:08 +02:00
parent 4e9d06896d
commit 026a175681
2 changed files with 34 additions and 6 deletions

View File

@@ -116,8 +116,19 @@ export function RecentTasks({ tasks }: RecentTasksProps) {
</div>
</div>
<div className="text-xs text-[var(--muted-foreground)] whitespace-nowrap">
{formatDateShort(task.updatedAt)}
<div className="flex items-center gap-2">
<div className="text-xs text-[var(--muted-foreground)] whitespace-nowrap">
{formatDateShort(task.updatedAt)}
</div>
<Link
href={`/kanban?taskId=${task.id}`}
className="p-1 rounded hover:bg-[var(--muted)]/50 transition-colors"
title="Ouvrir dans le Kanban"
>
<svg className="w-3 h-3 text-[var(--primary)] hover:text-[var(--primary)]/80" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" />
</svg>
</Link>
</div>
</div>
</div>