diff --git a/packages/viewer/src/lib/PlaceConfirm.svelte b/packages/viewer/src/lib/PlaceConfirm.svelte index c13f45c..7cf1ab1 100644 --- a/packages/viewer/src/lib/PlaceConfirm.svelte +++ b/packages/viewer/src/lib/PlaceConfirm.svelte @@ -17,6 +17,11 @@ store.state?.phase === "place" && store.moves.length > 0 && !store.sending ? store.selected : undefined ); + // Placing can cross a commit boundary mid-turn (e.g. paying merger bonuses), ending undo. + const final = $derived( + tile !== undefined && store.drafting && !!store.outcome({ type: "place", tile: tileLabel(tile) })?.commits + ); + let row = $state(); // Bring the confirmation into view when it opens below a rack at the bottom of the screen. $effect(() => { @@ -37,6 +42,7 @@ >{t("place.button", { tile: tileLabel(tile) })} + {#if final}

{t("turn.finalStep")}

{/if} {/if} @@ -49,6 +55,11 @@ p { margin: 0 0 8px; } + .final-note { + margin: 4px 0 0; + font-size: 13px; + color: var(--ink-muted); + } button { margin-block: 4px; margin-inline: 0 8px;