{#if showWorkspacePicker}
{#each workspaceNames as name} {@const ws = app.config?.workspaces[name]}
{#if wsMenuName === name}
{/if}
{/each}
{/if}
{#each app.lists as list (list.id)}
{#if listMenuId === list.id}
{/if}
{/each}
{#if showNewList}
{ if (e.key === "Enter") handleNewList(); if (e.key === "Escape") { showNewList = false; newListName = ""; } }} />
{:else} {/if}
{ if (e.key === "Escape") closeDrawer(); }} >

{app.activeList?.title ?? "Tasks"}

{#if isDesktop}
{#if isWindows} {/if}
{/if}
{#if app.lists.length === 0}

No lists yet

Tap the list name above to create one

{:else if !app.activeListId}
Select a list
{:else} {#each app.pendingTasks as task (task.id)}
handleDragStart(e, task.id)} ondragover={(e) => handleDragOver(e, task.id)} ondragend={handleDragEnd} ondrop={(e) => handleDrop(e, task.id)} class="{dragId === task.id ? 'opacity-30' : ''} {dragOverId === task.id && dragId !== task.id ? 'border-t-2 border-t-primary' : ''}" >
{/each} {#if app.pendingTasks.length === 0}
No tasks. Add one below.
{/if} {#if app.completedTasks.length > 0}
{#if completedVisible}
{#each app.completedTasks as task (task.id)} {/each}
{/if} {/if} {/if}
{#if selectedTask} {/if}
{#if app.syncing}
{/if}
{ if (e.key === "Escape") closeSettings(); }} >