Task Board {tasks.length} tasks
{#if showCreateForm}
{ if (e.key === 'Enter') createTask(); }} />
{#if error} {error} {/if}
{/if}
{#each COLUMNS as col}
onDragOver(e, col)} ondragleave={onDragLeave} ondrop={(e) => onDrop(e, col)} role="list" aria-label="{COL_LABELS[col]} column" >
{COL_LABELS[col]} {tasksByCol[col]?.length ?? 0}
{#each tasksByCol[col] ?? [] as task (task.id)}
onDragStart(e, task.id)} ondragend={onDragEnd} role="listitem" >
{task.title}
{#if task.description}
{task.description}
{/if} {#if task.assignedTo}
@ {task.assignedTo}
{/if}
{/each}
{/each}