Skip to content

Conversation

alekskjo
Copy link
Member

What changed?

  • added paginated venues(offset, limit) queries to the GraphQL API
  • connected the frontend venue catalogue to /project2/api/graphql
  • removed mock venue data as the source for lists, details, map and challenges
  • mapped backend venue types, opening hours and nullable fields to the existing frontend model
  • handled venues without ratings, descriptions or websites
  • configured the local Vite proxy for the backend on port 3001
  • added tests for GraphQL mapping, errors and pagination
  • updated the backend and venue-model documentation

Verification

  • backend typecheck passed
  • all 57 backend tests passed
  • backend build passed
  • Prettier passed
  • ESLint passed
  • all 27 frontend tests passed
  • frontend production build passed

Remaining deployment work

This PR implements the application integration, but does not install the persistent backend service on the VM.

After merge, we still need to:

  • run the backend persistently on the T07 VM
  • proxy /project2/api/graphql through Apache to 127.0.0.1:3001
  • verify the complete deployed flow from frontend to GraphQL and PostgreSQL without a local tunnel
  • update the second-delivery documentation with the verified live status

Closes #9
Part of #8

@alekskjo alekskjo requested a review from a team as a code owner October 15, 2026 12:12
Copy link
Member

@ktnielse ktnielse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Tests and type checks pass. One suggestion: toVenueType throws on unknown venue types, which would break the whole page. A fallback would be safer.

@ktnielse ktnielse merged commit e28961e into main Oct 15, 2026
2 checks passed
@ktnielse ktnielse deleted the feat/connect-graphql-venues branch October 15, 2026 12:46
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Koble frontend til backend med GraphQL-klient
2 participants