From 9e26f0c05c7f788a9f82dc2656bc728fdde5ad1f Mon Sep 17 00:00:00 2001 From: borja Date: Thu, 16 Oct 2025 11:44:16 +0200 Subject: [PATCH] feat: densificar TaskItem con emoji y contador; mantener 0 responsables Co-authored-by: aider (openrouter/openai/gpt-5) --- apps/web/src/lib/ui/data/TaskItem.svelte | 40 +++++++++++---------- apps/web/src/lib/ui/feedback/Popover.svelte | 2 +- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/apps/web/src/lib/ui/data/TaskItem.svelte b/apps/web/src/lib/ui/data/TaskItem.svelte index 163e365..76c3c68 100644 --- a/apps/web/src/lib/ui/data/TaskItem.svelte +++ b/apps/web/src/lib/ui/data/TaskItem.svelte @@ -38,10 +38,10 @@ let showAssignees = false; let assigneesButtonEl: HTMLButtonElement | null = null; $: assigneesCount = Array.isArray(assignees) ? assignees.length : 0; - $: assigneesLabel = + $: assigneesAria = assigneesCount === 0 - ? "Sin responsable" - : `Responsables: ${assigneesCount}${isAssigned ? " (tú)" : ""}`; + ? "Sin responsables" + : `${assigneesCount} responsable${assigneesCount === 1 ? "" : "s"}${isAssigned ? "; tú incluido" : ""}`; onDestroy(() => { // Cerrar popover si se desmonta el item (por navegación o filtrado) @@ -286,7 +286,7 @@ {/if} -
+
{#if assigneesCount === 0} {/if} -
-
{#if !completed} {#if !isAssigned}