Repository navigation
refactor(studio): extract version migration workflow - #502
Merged
Merged
Conversation
Move the Studio version-migration request/report logic into a cohesive
studio/migration.ts module with an injected apiFetch seam. The route stays a
composition shell owning form state, toasts and the post-apply reload.
Outgoing POST to /api/v1/packwiz/packs/{id}/migrate and its
target_mc/target_loader/apply body are byte-identical, as is the HTTP <status>
failure message and fallback. Adds 7 regression tests and records the mechanical
move in the module-form-codecs decision concept.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
W22/OSS-341 second cohesive Studio workflow extraction, continuing merged PR500.\n\n- \eatures/modpacks/studio/migration.ts\ owns simulate/apply Packwiz version migration with an injected apiFetch seam; the route keeps form state, toasts and post-apply loadPack.\n- Outgoing request is byte-identical: POST /api/v1/packwiz/packs/{id}/migrate with target_mc/target_loader/apply; non-2xx still maps to the same error toast.\n- 7 new regression tests; knowledge concept updated with the mechanical-move note.\n\nVerification: bun install --frozen-lockfile, bun check 0/0, bun test 270 pass/0 fail, bun lint clean, knowledge-lint 38/38 queries and 59 concepts.