Merge #3567's current head (feat/2966-snapshot-dialog) into feat/history-snapshot-options

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-10-21 11:28:04 +02:00
commit 093945cb82
5 files changed
+13 -3

No files matched your search

+3 -3
View File
@@ -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]
+3
View File
@@ -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
Can't render this file because it contains an unexpected character in line 6 and column 47.
+3
View File
@@ -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
Can't render this file because it contains an unexpected character in line 6 and column 47.
+3
View File
@@ -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ş
Can't render this file because it contains an unexpected character in line 8 and column 34.
+1
View File
@@ -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) |