Preserve the live step state while reordering text, code, and table blocks so the move up/down buttons keep the block contents intact and the block cards still move immediately in the editor.
Changes
Kept saved step updates merged into the existing in-memory step object instead of replacing block array references.
Reflowed the block cards in place after reorder so the editor updates without a full rerender.
Preserved undo and crop/save paths so they keep using the same live block objects.
Testing
bash tests/run_test.sh
Manual verification completed
Tests not run
Testing Notes
node --check app/renderer/editor.js
npm test
bash tests/run_test.sh
Screenshots or Recordings
N/A
Deployment / Rollout Notes
No special rollout steps
Documentation only
Other
Notes
None
Checklist
Scope is limited to the selected area above.
Related docs or comments were updated if needed.
I ran bash tests/run_test.sh.
The PR references a issue number.
Any follow-up work is tracked in TODO.md or an issue.
## Improvement Area
- [ ] Documentation
- [ ] Tests
- [ ] Git / workflow
- [x] Other
## Issue
- Closes #9
## Summary
Preserve the live step state while reordering text, code, and table blocks so the move up/down buttons keep the block contents intact and the block cards still move immediately in the editor.
## Changes
- Kept saved step updates merged into the existing in-memory step object instead of replacing block array references.
- Reflowed the block cards in place after reorder so the editor updates without a full rerender.
- Preserved undo and crop/save paths so they keep using the same live block objects.
## Testing
- [x] `bash tests/run_test.sh`
- [x] Manual verification completed
- [ ] Tests not run
### Testing Notes
- `node --check app/renderer/editor.js`
- `npm test`
- `bash tests/run_test.sh`
## Screenshots or Recordings
N/A
## Deployment / Rollout Notes
- [x] No special rollout steps
- [ ] Documentation only
- [ ] Other
### Notes
None
## Checklist
- [x] Scope is limited to the selected area above.
- [x] Related docs or comments were updated if needed.
- [x] I ran `bash tests/run_test.sh`.
- [x] The PR references a issue number.
- [ ] Any follow-up work is tracked in TODO.md or an issue.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Improvement Area
Issue
Summary
Preserve the live step state while reordering text, code, and table blocks so the move up/down buttons keep the block contents intact and the block cards still move immediately in the editor.
Changes
Testing
bash tests/run_test.shTesting Notes
node --check app/renderer/editor.jsnpm testbash tests/run_test.shScreenshots or Recordings
N/A
Deployment / Rollout Notes
Notes
None
Checklist
bash tests/run_test.sh.Pull request closed