{#if groups.length === 0}
No perteneces a ningún grupo permitido.
{:else}
Grupos
{ const checked = (e.currentTarget as HTMLInputElement).checked; const q = buildQuery({ unassignedFirst: checked }); location.href = q ? `/app/groups?${q}` : `/app/groups`; }} /> Sin responsable primero
{#each groups as g (g.id)}
handleToggle(g.id, e)} >
{g.name ?? g.id}
tareas: {g.counts.open}
🙅♂️: {g.counts.unassigned}
{#if isOpen(g.id)}
{#each itemsByGroup[g.id] || [] as t (t.id)}
updateGroupTask(g.id, e.detail)} /> {/each}
{/if}
{/each} {/if}