Skip to content

fix(align): make importing alignments from another series undoable - #175

Merged
dustenhubbard merged 2 commits into
mainfrom
fix/import-transforms-undo
Nov 3, 2026
Merged

dustenhubbard merged 2 commits into
mainfrom
fix/import-transforms-undo

Conversation

@dustenhubbard

Copy link
Copy Markdown
Member

importTransforms took series_states but never passed it to enumerateSections, so an alignment import rewrote every section with no undo state. A section the user had already worked on kept its snapshot from before the import, and the next undo on that section restored the old transforms. That section then lacked the imported alignment while the others had it, and Series.alignments raised "Sections have differently named alignments." The states are now passed with breakable=False, as modifyAlignments and the .txt transform import already do. The import is one series undo and cannot be split into per-section undos.

importTransforms took series_states but never passed it to enumerateSections, so an alignment import rewrote every section with no undo state. A section the user had already worked on kept its snapshot from before the import, and the next undo on that section restored the old transforms. That section then lacked the imported alignment while the others had it, and Series.alignments raised "Sections have differently named alignments."

The states are now passed with breakable=False, as modifyAlignments and the .txt transform import already do. The import is one series undo, and it cannot be split into per-section undos that would remove the alignment from some sections only.
@dustenhubbard dustenhubbard added the reviewed A human authorized this merge (vcs-guard Gate 1 evidence) label Nov 3, 2026
@dustenhubbard
dustenhubbard merged commit f1cbd05 into main Nov 3, 2026
6 checks passed
@dustenhubbard
dustenhubbard deleted the fix/import-transforms-undo branch November 3, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed A human authorized this merge (vcs-guard Gate 1 evidence)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant