Repository navigation
refactor(studio): finish metadata/content and export extraction (OSS-341) - #605
Merged
Merged
Conversation
…341) Extract the remaining cohesive Studio workflows into features/modpacks/studio: pack-metadata owns the project GET, whole-pack metadata/content PUT, MC-version change rule, content aggregation and export breakdown; export owns launcher formats/options, the exact export URL/query, CurseForge 422 interpretation and the blob handoff with an injected transport. Routes stay composition shells. Make malformed persisted JSON explicit rather than silent: form-codecs adds Detailed decoders reporting a malformed flag while historical wrappers keep the empty-row fallback; both module dialogs and the modpack library surface a non-blocking warning. Valid values and all outgoing requests are unchanged. This is tolerant decoding, not validation. Update the governing knowledge concept and regenerate its index in the same change.
…gs (OSS-341) Follow-up to exact-head review: treat whitespace-only persisted JSON as an absent field in both codec seams (rows unchanged), and word the dialog warnings as a statement about the stored value so they stay accurate after user edits. Re-verified: bun check/test/lint, knowledge-lint 40/40.
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.
Closes the reopened OSS-341 closure items. Exact head:
d1235445c27a59331231fc2f80a88ccc595fe5c3(branch merged with current main; no conflicts). OSS-341 commits:4c841288(extraction) and2a934667(review fixes), plus the clean merge oforigin/main.What changed
features/modpacks/studio/pack-metadata.tsnow owns the project GET, the whole-pack metadata/content PUT,HTTP <status>failures, the empty-baseline MC-version-change rule, content aggregation and the export-tab breakdown./modpacks/studio/[id]is a composition shell for form state, tabs, dialogs and toasts.features/modpacks/studio/export.tsreplacesroutes/modpacks/studio/pack-export.ts. Formats/options, exact URL and query encoding, CurseForge 422 dropped-item handling, filenames and the blob handoff are unchanged; the transport is injected, removing the$appdynamic import and making both Studio entry points request-level testable. Old helper tests were moved, not dropped, and strengthened to exact-equality assertions.form-codecs.tsaddsparseEnvVarsDetailed/parseVolumesDetailedreturning the same rows plus amalformedflag; historical wrappers keep their exact row behavior.features/modpacks/persisted-json.tsgives the modpack library an explicit report. Both module dialogs and malformed modpack cards show a non-blocking warning. Blank/whitespace fields mean absent. This is tolerant decoding with an honest report — not validation, repair or rejection.knowledge/decisions/module-form-codecs.md); index regenerated by knowledge-lint.Request equivalence
Request-level tests assert the exact GET (
init: undefined), whole-pack PUT (method/headers/JSON.stringify(pack)body), export URL/query order, 422 dropped-item result and generic error text. Valid legacy values are returned verbatim; only malformedness is newly reported.Verification (at exact head)
bun install --frozen-lockfileclean;bun run check0 errors/0 warnings;bun test --conditions=browser465 pass / 0 fail;bun run lintclean.go vet ./...exit 0;go test ./...reached 45 packages with zero failures before the harness timeout (no Go source changed in this PR).go run ./cmd/knowledge-lint -root . -fixthen plain: 40/40 queries, indexes current (85 concepts after merge).vite build, adapter-static) succeeded.browser-qa-2026-11-19/oss-341-followup/(evidence.json,run.mjs, screenshots, logs). The single console error is the intentionally seeded CurseForge 422 response.Independent review
Separate read-only OpenCode review on the configured free model at exact heads
4c841288and2a934667, plus the merged head, both VERDICT: APPROVE. Both low findings from the first review were fixed and re-verified. One remaining low, pre-existing note: the malformed modpack tooltip says loader/version metadata "cannot be displayed" even when only one of the two fields is malformed and the sibling still renders; the visible "Metadata unreadable" label remains accurate.Honest limits
Browser evidence used the production static build served locally with HTTP-level seeded fixtures, not a live backend or a packaged desktop binary. No live feature, release, deploy or private data was touched. No claim of stricter validation or whole-panel/whole-app coverage is made.
Ownership
OSS-341 owns the Studio route files; no OSS-337 generated/adapter seam was edited. No overlap was detected on the merged head; please coordinate before any future edit to
web/carbon-panel/src/routes/modpacks/studio/*.