Persist circuit structure edits

This commit is contained in:
2026-07-25 20:49:34 +02:00
parent 76d8d59391
commit 2eba4ea75e
19 changed files with 809 additions and 964 deletions
+9 -8
View File
@@ -220,14 +220,15 @@ After saving, the row becomes linked to the new project device.
## Undo / Redo
The editor's visible undo/redo stack remains session-local while structural and
destructive operations are being migrated. Existing Circuit and
CircuitDeviceRow cell edits already execute persistent project commands and
their toolbar undo/redo actions use the project-wide history endpoints. The
tree response supplies the optimistic `currentRevision`; the obsolete direct
PATCH routes for these fields are removed. Reloading the page does not yet
reconstruct the visible editor stack. Public command, undo and redo endpoints
also exist for Circuit/CircuitDeviceRow insertion and deletion.
The editor's visible undo/redo stack remains session-local while move, reorder
and renumber operations are being migrated. Existing Circuit and
CircuitDeviceRow cell edits plus standalone insertion/deletion already execute
persistent project commands; their toolbar undo/redo actions use the
project-wide history endpoints. Insertions use client-generated stable UUIDs,
and deletion undo restores the same ids from complete server snapshots. The
tree response supplies the optimistic `currentRevision`; obsolete direct field
PATCH, structure POST and CircuitDeviceRow DELETE routes are removed.
Reloading the page does not yet reconstruct the visible editor stack.
CircuitDeviceRow moves between existing circuits and moves that create one new
placeholder target circuit are persisted. The latter stores the complete empty
target snapshot so undo can restore the rows and remove only the unchanged