Skip to content

Add basic Kromacut project save and load - #220

Closed
JohnSt99 wants to merge 2 commits into
vycdev:developfrom
JohnSt99:codex/basic-project-save-load
Closed

JohnSt99 wants to merge 2 commits into
vycdev:developfrom
JohnSt99:codex/basic-project-save-load

Conversation

@JohnSt99

Copy link
Copy Markdown
Contributor

Tracks #25 and splits basic project save/load from #156. Opened as a draft for review and coordination.

  • Save the current image and editor settings in a versioned .kromacut archive. Include print settings, working filaments, and the selected palette. Opening starts a fresh undo history, and the 3D model can be rebuilt.
  • Validate the file and decode the image before replacing the workspace. Restored print settings apply to the project without overwriting saved defaults. A missing custom palette gets a copy, while built-in palettes are referenced by ID.
  • Read optional settings independently, bound expanded ZIP reads using JSZip's public stream API, and accept the current image and supported settings in earlier prototype files.

Validation passed: production build and lint, three project-file unit tests, and three Chromium smoke tests covering the browser save/open round trip, cancellation, corrupt images, and preservation of print defaults and palette entries.

vycdev pushed a commit that referenced this pull request Nov 30, 2026
Squashed from #220 (50dedcd, 00aef66) onto develop. Adapted to develop:
drop the removed Algorithm Weight from the project state (older files
that carry it still open), build replaceWorkspaceImage on history's
retained-URL release instead of revoking URLs by hand, and block project
open/save while a crashed session is still being recovered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vycdev

vycdev commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Thanks @JohnSt99, the basic save/load is a great base for project files! Since develop has moved a lot (crash recovery, multi-palette select and the tiled worker all landed), I brought your work onto it as one commit with you as its author, and opened #265 to land it. The maintainer chose .kproj as the extension, and review added a few hardening fixes. I'll leave this PR open for you.

@vycdev

vycdev commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Closing now that #265 is merged into develop. Thanks again!

@vycdev vycdev closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants