Skip to content

fix(genre-tree): adopt grow-api next.13 contract - #615

Merged
Andreas-Garcia merged 4 commits into
mainfrom
feature/grow-api-next13
Dec 2, 2026
Merged

Andreas-Garcia merged 4 commits into
mainfrom
feature/grow-api-next13

Conversation

@Andreas-Garcia

@Andreas-Garcia Andreas-Garcia commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

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 to 0.1.0-next.13; peerDependency raised to >=0.1.0-next.13 <0.2.0 (lockfile updated).
  • reference-genre.ts: ReferenceGenreDetailedSchema and the playlist tree row use the generated roots directly; the nullable criteriaPlaylist, the relaxed criteria/parent and the re-injected genre counts are removed. Count invariants and the branded re-parse stay.
  • reference.ts: isSongSearchResultPlayable treats a null youtubeVideo as not playable (now nullable in the contract).
  • Tests: fixtures follow the next.13 shapes (summary, criteria.treeName); playlistTracks joins the generated-roots fixture list; the null criteriaPlaylist acceptance test is dropped; null-video case added.

Test plan

  • pnpm lint, pnpm test (app-kit 744, app-kit-ui 516) and tsc --noEmit: pass.
  • Staging responses of genres/<uuid>/ and genre-playlists/tree/?treeName=global|regional parse with the refined schemas.

Screenshots

N/A

Risk

Intent change, depth standard: schema contract change at a public boundary. A reference genre with a null criteriaPlaylist now 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

Andreas-Garcia and others added 2 commits December 2, 2026 16:22
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
Andreas-Garcia enabled auto-merge (squash) December 2, 2026 15:23
Andreas-Garcia and others added 2 commits December 2, 2026 16:29
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ntract

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Andreas-Garcia
Andreas-Garcia merged commit 136b9ea into main Dec 2, 2026
17 of 18 checks passed
@Andreas-Garcia
Andreas-Garcia deleted the feature/grow-api-next13 branch December 2, 2026 17:48
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.

Adopt grow-api 0.1.0-next.13 and drop the reference-genre contract extensions

1 participant