{#if $activityLog.length === 0}
Waiting for activity…
{:else}
{#each $activityLog as entry, i (entry.id)} {@const isLast = i === $activityLog.length - 1} {@const hasDetail = !!entry.detail} {@const icon = typeIcon(entry.type)}
{#if !isLast}
{/if}
hasDetail && toggle(entry.id)} >
{#if entry.status === 'running'}
{:else if entry.status === 'failed'}
{:else if icon}
{:else}
{/if}
{entry.description}
{#if hasDetail}
{#if expanded.has(entry.id)}
{:else}
{/if}
{/if}
{#if hasDetail && expanded.has(entry.id)}
{entry.detail}
{/if}
{/each}
{/if}