Skip to content

Conversation

oscarba
Copy link
Member

@oscarba oscarba commented Nov 6, 2026

Closes #27

What

  • Add Apollo Client and fix the Vite dev proxy for /project2/graphql
  • Load the landing page in one query built on wines and filterOptions
  • Map API data to the frontend types
  • Hide recent reviews and student ratings until the API supports them
  • Rename "Medstudentenes favoritter" to "Best vurdert", because the ratings come from X-Wines

Testing

  • 70 unit tests and 12 e2e tests pass (e2e uses a stubbed GraphQL response)
  • Tested manually against the backend on the VM

Known issues

  • JavaScript on the landing page is 152.82 kB, over the 150 kB budget
  • Frontend coverage is still below the limits

🤖 Generated PR text with [Claude Code]

siverne and others added 6 commits October 30, 2026 18:46
Merge homepage into main from dev-frontend
Rewrite README for submission 3 (issue #18)
The frontend calls /project2/graphql because BASE_URL is part of the
path, so the dev proxy now matches that path instead of /graphql.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the mock data with one query built on wines and filterOptions.
A mapper converts API data to the frontend types. Content the API cannot
provide yet (recent reviews, student ratings) is hidden, and the favorites
section is renamed because its ratings come from X-Wines. The mock data
is kept as a test fixture, and e2e tests stub the GraphQL response.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oscarba oscarba requested a review from a team as a code owner November 6, 2026 17:41
@oscarba oscarba merged commit 50daaf1 into dev-frontend Nov 6, 2026
@oscarba oscarba deleted the 27-apollo-client branch November 6, 2026 17:42
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants