{#if loading}
{:else if subtasks.length === 0 && !error} {:else if error}

{error}

{:else} {#each subtasks as step (step.id)}
{#if editing[step.id]} handleEditKeydown(e, step)} onblur={() => saveEdit(step)} class="text-[12px] flex-1 min-w-0 bg-bg-input border border-accent rounded px-1.5 py-0.5 text-text focus:outline-none" autofocus data-no-transition /> {:else} {/if} {#if !step.done && !editing[step.id]} {/if}
{/each} {/if}