{#if last && (last.state === "reverted" || last.state === "failed") && !app.dismissed.includes(dismissKey)} {@const parts = firstSentence(last.reason?.message ?? "")} (app.dismissed = [...app.dismissed, dismissKey])}> {#snippet title()}{last.state === "failed" ? "not applied" : "reverted"} {parts[0]}{/snippet} {#if parts[1]}Reason: {parts[1]}{/if} {#if last.reason?.detail && last.reason.code.startsWith("apply.failed.")}
{/if} {#snippet actions()} {#if offer}{/if} {/snippet} {/if} {#if last || active}
{#if active}
{active.state === "queued" ? "waiting" : active.state === "watching" ? "watching" : "applying"} {runningHeading(active.summary, active.kind ? active : null)}
{active.state === "queued" ? "Waiting for another change to finish" : active.state === "watching" ? `${watchLeft ?? 0} s left` : "Checking and loading the change"}
{#if active.state === "watching" && watchLeft != null} {@const total = o?.site?.watch_seconds ?? 60} {/if}
{#if active.state === "queued"}{:else}{/if} {:else if last}
{#if last.state === "kept"}
kept {last.summary}
{pushFailed ? pushLine : keptLine}
{:else if undo?.target}
Undo: {undo.target.summary}
{/if} {#if undo?.effect && (last.state !== "kept" || undo?.target?.change_id !== last.change_id)}
{undo.effect}
{/if} {#if moved}
{moved}
{/if} {#if undoReason}
{undoReason}
{/if} {#if !undo?.target}
Nothing to undo yet.
{/if}
{#if canPushNow}{/if} {#if undo?.target} {/if} {/if}
{/if}