Skip to content

feat: reopen versioned projects in web and CLI - #14

Merged
Rigare merged 2 commits into
fix/hidden-values-fallback-freshnessfrom
feature/ope-12-versioned-projects
Nov 12, 2026
Merged

Rigare merged 2 commits into
fix/hidden-values-fallback-freshnessfrom
feature/ope-12-versioned-projects

Conversation

@Rigare

@Rigare Rigare commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Projects lose their settings and figure identity when the process restarts. This change adds a shared JSON v1 recipe to the web app and CLI, and preserves every valid imported configuration and individual figure value through generation and export. A CLI project with a fixed 30 mm height and automatic width/depth now generates the same mesh in a fresh web session and reopens unchanged in another CLI process.

This PR is stacked on #12 (fix/hidden-values-fallback-freshness), the direct OPE-8 prerequisite. Integrate #12 before retargeting this PR to main. #11 and #13 remain separate work required before broader delivery; their dependency-security and small-wall fixes are not included here.

  • JSON inlayer-project, version 1 contains every Config field, persistent figure ids, full SHA-256 source identities, and individual rotations/offsets/grip positions. STL bytes remain external. Invalid recipes and missing/changed/extra sources fail before generation.
  • Web imports retain exact recipe values independently of control ranges and steps. Partial box/cylinder dimensions and automatic gaps retain null; fractional values, inactive settings, and global versus individual offsets survive language, selection, and hidden-control changes. Only deliberate edits replace corresponding values. Both UI languages explain control projections.
  • CLI --save-project exports a recipe; --project reopens recipe-relative paths or hash-matched -i replacements. Config flags cannot override a recipe. JSON destinations cannot overwrite source/output STLs.
  • Run, preview, preparation caches and freshness checks use the same effective values. Both entry points use unrotated figures for stable ordering and rotated cutters for spacing. README and architecture guidance match the behavior.

Validation at 2cc3a3da6f1e2775bdf5f53f28c66f828eb3897b: Python 3.13.5 full pytest 673 passed in 109.78 s. The eight-case CLI→fresh Web→new CLI matrix covers partial box/cylinder dimensions, fractional values, values outside ordinary controls and disabled recesses, with reversed same-named distinct sources. It checks exact pipeline inputs, ids/hashes/settings, finished mesh dimensions, independent cavity/wall measurements, symmetric solid differences and wall findings. EN/DE and existing upload/cache/selection isolation remain covered. Independent semantic review completed with no open findings; discovered state bugs have regression tests. Pyrefly 1.4.1 has the same 31 existing diagnostics as the previous head, with no additions. git diff --check is clean.

CI run 43202461078 passed at the exact head: Python 3.13 tests, Docker test stage, runtime build and import/health smoke. The former 655-test result and run 43178464205 apply only to the superseded head bd0a7a6. Local Docker/Podman is unavailable. No merge, release or production action is included.

@Rigare
Rigare merged commit 636f753 into fix/hidden-values-fallback-freshness Nov 12, 2026
2 checks passed
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.

1 participant