diff --git a/crates/engine/src/history_cmds.rs b/crates/engine/src/history_cmds.rs index 1d299e14c5..2242ce98d0 100644 --- a/crates/engine/src/history_cmds.rs +++ b/crates/engine/src/history_cmds.rs @@ -491,7 +491,7 @@ mod tests { let base = with.active().unwrap().memory_bytes(); with.execute("history.newSnapshot", json!({"from": "mergedLayers"})).unwrap(); let st = with.active().unwrap(); - let flat = tile_bytes(&st.snapshots[0].doc); + let flat = tile_bytes(&st.snapshots.last().unwrap().doc); assert!(flat > 0); assert_eq!(st.memory_bytes(), base + flat); // Room for the document's tiles and four fill tiles. @@ -523,11 +523,11 @@ mod tests { s.execute("edit.fill", json!({"color": "#0000ff"})).unwrap(); let st = s.active().unwrap(); // The snapshot's green layer tile, now only in it and the last state. - let shared = tile_bytes(&Document { layers: st.snapshots[0].doc.layers[1..].to_vec(), ..(*st.doc).clone() }); + let shared = tile_bytes(&Document { layers: st.snapshots.last().unwrap().doc.layers[1..].to_vec(), ..(*st.doc).clone() }); let all = st.history.unique_bytes(&st.doc); let r = s.execute("edit.purge.histories", json!({})).unwrap(); assert_eq!(r["bytes"], json!(all - shared), "the green tile stays with the snapshot"); - assert_eq!(s.active().unwrap().snapshots.len(), 1); + assert_eq!(s.active().unwrap().snapshots.len(), 2, "the first snapshot and the new one"); } #[test] diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index cfeee54421..0825e7c7c9 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -3881,6 +3881,9 @@ cameraRaw Yellow Sárga New document… ⌘N Új dokumentum… ⌘N New Layer from Brush Új réteg ecsetből New Path Új útvonal + From: Forrás: + Full Document Teljes dokumentum + Merged Layers Egyesített rétegek New Snapshot Új pillanatkép New Video Group Új videócsoport Newspaper Újságpapír diff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsv index fd5a36843a..513dcd47bb 100644 --- a/crates/ui-egui/src/i18n/sr.tsv +++ b/crates/ui-egui/src/i18n/sr.tsv @@ -2275,6 +2275,9 @@ Create Snapshot Napravi snimak stanja Delete Snapshot Obriši snimak stanja New Snapshot Novi snimak stanja + From: Od: + Full Document Ceo dokument + Merged Layers Spojeni slojevi Snapshot 1 Snimak stanja 1 Step Forward Korak napred Step Backward Korak nazad diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index ce8b3582fa..84cd0aeec5 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -2688,6 +2688,9 @@ cameraRaw Color Renk Color indicates Renk şunu gösterir: Create Snapshot Anlık Görüntü Oluştur Delete Snapshot Anlık Görüntüyü Sil + From: Kaynak: + Full Document Tam Belge + Merged Layers Birleştirilmiş Katmanlar New Snapshot Yeni Anlık Görüntü Snapshot 1 Anlık Görüntü 1 Nonlinear History Doğrusal Olmayan Geçmiş diff --git a/docs/ui-parity.md b/docs/ui-parity.md index c7c3948b5e..ac90f8fa04 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -253,6 +253,7 @@ Paragraph; the rest open as in-app floating windows. | 2026-10-12 | minor | Layers panel: Clip Thumbnails to Layer Bounds frames each layer's pixels instead of the canvas (#4281) | | 2026-10-12 | minor | Guides: ⌥-click turns a guide through the click; double-click opens Preferences › Guides, Grid & Slices | | 2026-10-13 | minor | Smart filter rows can be dragged up or down their stack to reorder the filters | +| 2026-10-12 | minor | History snapshots: the New Snapshot dialog (⌥-click the camera), and the first snapshot of the document as opened as the panel's top row (#2966) | | 2026-10-13 | minor | On-canvas corner radius widgets on live rectangles (TOOL-214-12) | | 2026-10-13 | minor | Curvature Pen edits the active path: drag anchors, click a segment to add, double-click smooth/corner, cursor badges | | 2026-10-11 | minor | Pen ⇧ 45° done: ⇧-click puts the next anchor on the nearest 45° ray, ⇧-drag turns its handles in 45° steps (TOOL-214-10 done, #3751) |