Skip to content

Conversation

robertky
Copy link
Member

Closes #11
Closes #15

Summary

  • Adds a lazy-loaded /album/:id detail route with an album(id:) resolver, artists, genres, ordered tracklist and the first paginated page of reviews.
  • Uses request-scoped DataLoaders for album relations, including tracks, so nested fields are fetched in a constant number of queries rather than an N+1 pattern.
  • Adds browser-local simulated identity sent as X-User-Id on GraphQL requests, then creates the corresponding user server-side when a review is saved.
  • Adds review create/update/delete mutations and an accessible review form: labelled 1–5 radio group, optional comment, inline role="alert" errors and delete action for the current user’s review.
  • Adds tests for the detail operation/view, review form and identity helpers, plus the AI-usage entries for both issues.

Verification

  • pnpm format:check
  • pnpm lint
  • client and server typecheck
  • 57 client tests and 33 server tests
  • pnpm -r build

Review notes

The branch was rebased on the current main after #54. The detail route deliberately fetches the first 10 reviews; loading further review pages can be added on top of the existing cursor connection.

@robertky robertky requested a review from a team as a code owner October 21, 2026 08:18
@robertky robertky closed this Oct 21, 2026
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reviews: upsert and delete Album detail view with nested relations
1 participant