mirror of
https://github.com/penpot/penpot.git
synced 2026-06-09 17:02:05 +00:00
The version preview banner in `enter-preview` derives its title from `(:label snapshot)` directly. For system-created autosaves that field is the internal snapshot label (e.g. `internal/snapshot/20`), so the banner shows the raw internal string while the History sidebar already renders the same autosave through `workspace.versions.autosaved.version` plus a localized date. The mismatch makes it hard to be sure which sidebar entry you're previewing, especially when several autosaves sit close together (#9503). Switch the label resolution to mirror the sidebar's `snapshot-entry*`: - `:created-by "system"` snapshots format the label as `(tr "workspace.versions.autosaved.version" (ct/format-inst ... :localized-date))` — the exact same translation key + date format the sidebar's autosave group already uses - `:created-by "user"` (pinned) versions keep their custom `:label` with the existing `unnamed` fallback No behavior change for pinned/user-named versions or for the restore/exit dialog buttons. Closes #9503. Co-authored-by: Andrey Antukh <niwi@niwi.nz>