Repository navigation
fix(genre-tree): adopt grow-api next.13 contract - #615
Merged
Merged
Conversation
Pin grow-api 0.1.0-next.13 (peer >=0.1.0-next.13 <0.2.0) and use the generated reference genre roots directly, dropping the nullable and count workarounds. A song without a YouTube video is not playable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Andreas-Garcia
enabled auto-merge (squash)
December 2, 2026 15:23
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ntract Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Summary
Adopt
@behindthemusictree/grow-api@0.1.0-next.13(carries grow-api#680 and #687), whose contract now covers what app-kit used to work around locally.Issues
Closes #614
Changes
packages/app-kit/package.json: devDependency pinned to0.1.0-next.13; peerDependency raised to>=0.1.0-next.13 <0.2.0(lockfile updated).reference-genre.ts:ReferenceGenreDetailedSchemaand the playlist tree row use the generated roots directly; the nullablecriteriaPlaylist, the relaxedcriteria/parentand the re-injected genre counts are removed. Count invariants and the branded re-parse stay.reference.ts:isSongSearchResultPlayabletreats a nullyoutubeVideoas not playable (now nullable in the contract).summary,criteria.treeName);playlistTracksjoins the generated-roots fixture list; the nullcriteriaPlaylistacceptance test is dropped; null-video case added.Test plan
pnpm lint,pnpm test(app-kit 744, app-kit-ui 516) andtsc --noEmit: pass.genres/<uuid>/andgenre-playlists/tree/?treeName=global|regionalparse with the refined schemas.Screenshots
N/A
Risk
Intent
change, depth standard: schema contract change at a public boundary. A reference genre with a nullcriteriaPlaylistnow fails the detail parse instead of rendering; staging never sends it and the contract declares it non-null. Consumers must install grow-api >= next.13 (peer floor raised).How to revert
Revert the squash commit.
Deployment notes
Merging starts a Release Please release. The frontend then adopts next.13 and the new app-kit (front #647, #648).
Post-deploy verification
N/A
🤖 Generated with Claude Code