Skip to content

Conversation

@marcodejongh
Copy link
Owner

When fetching climbs from a playlist, the stats (difficulty, stars, ascents) were being retrieved for the playlist's stored angle or the climb's original angle. This fix updates the query to use the current route angle instead, ensuring users see the correct metadata for their current board configuration.

Changes:

  • Add angle parameter to GetPlaylistClimbsInput GraphQL type
  • Update playlistClimbs resolver to use input angle for stats lookup
  • Update client to pass the route angle in the query

When fetching climbs from a playlist, the stats (difficulty, stars,
ascents) were being retrieved for the playlist's stored angle or the
climb's original angle. This fix updates the query to use the current
route angle instead, ensuring users see the correct metadata for
their current board configuration.

Changes:
- Add angle parameter to GetPlaylistClimbsInput GraphQL type
- Update playlistClimbs resolver to use input angle for stats lookup
- Update client to pass the route angle in the query
@vercel
Copy link

vercel bot commented Jan 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
boardsesh Building Building Jan 2, 2026 1:15pm

@claude
Copy link

claude bot commented Jan 2, 2026

Claude Review

Ready to merge - Minor issue noted below, but nothing blocking.

Minor Issues

  • Inconsistent angle validation (packages/backend/src/validation/schemas.ts:369): The new angle field uses z.number().int() without min/max bounds, while other angle validations in the same file use .min(0).max(90). Consider adding bounds for consistency: z.number().int().min(0).max(90).

@marcodejongh marcodejongh merged commit fcd4e15 into main Jan 2, 2026
5 of 8 checks passed
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.

3 participants