fix: widen undo dialog and polish its summary line

The undo/redo confirmation dialog capped at 60 columns and wrapped
even a short insert on wide terminals, showed a lowercase "snapshot
taken", a raw ISO-8601 timestamp, and lowercase yes/no labels.

Grow the dialog to fit its longest line (bounded 34–100), capitalise
Snapshot/Yes/No, and render the snapshot timestamp in local time,
human-formatted (24 May 2026, 11:00) via a new chrono dependency
(clock feature only; English month names). Yes/No capitalisation also
applies to the rebuild-confirm dialog.
This commit is contained in:
claude@clouddev1
2026-05-29 22:07:32 +00:00
parent d20f765325
commit 5ea69dbc08
6 changed files with 235 additions and 19 deletions
@@ -1,5 +1,6 @@
---
source: src/ui.rs
assertion_line: 1469
expression: snapshot
---
╭ Tables ──────────────────╮╭ Output ──────────────────────────────────────────╮
@@ -16,7 +17,7 @@ expression: snapshot
│ │ │ │
│ │Continue? │ │
│ │ │ │
│ │[Y] yes [N] no Esc cancel │ │
│ │[Y] Yes [N] No Esc cancel │ │
│ ╰──────────────────────────────────────────────────────────╯─────────╯
│ │╭ SIMPLE ──────────────────────────────────────────╮
│ ││ │