fix: preserve migration context and reject unsupported SVG exports

This commit is contained in:
2026-09-12 19:41:48 -07:00
parent a4d1efc5f7
commit 9245f8d23e
4 changed files with 219 additions and 18 deletions
@@ -68,6 +68,11 @@ pub(super) fn upgrade(
&actual.fields,
Some(&actual.fields),
&next.fields,
if project.diagrams.contains_key(&id) {
EditContext::Diagram
} else {
EditContext::Other
},
edits.entry(path.clone()).or_default(),
);
}