Skip to content

Conversation

oscarba
Copy link
Member

@oscarba oscarba commented Nov 6, 2026

TODO:

  • Detail screen
  • Sorting, filtering
  • Reviews (anmeldelser)

Oscar Bakkeng and others added 9 commits November 6, 2026 18:32
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>
Connect landing page to the GraphQL API with Apollo Client
The search page needs the same parts as the landing page, so they move
from the landing feature to components/ui.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The field text is debounced into the URL, and the query reads only the
URL, so reload, shared links and the back button give the same result.
Pages are merged in the Apollo cache, and wines already in the list are
skipped. The placeholder now says region instead of country, because the
API does not search in country.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oscarba oscarba added the enhancement New feature or request label Nov 6, 2026
@oscarba oscarba requested a review from a team as a code owner November 6, 2026 18:24
Oscar Bakkeng and others added 9 commits November 7, 2026 17:38
The brand colour gave too little contrast against the dark background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tab could run before React had rendered the link, which made the test
fail now and then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shows facts, food pairing and the community rating in Norwegian, with
grapes and food linking to the search. The wine card passes along where
the user came from, so the back link returns to the same search. Ids that
cannot match a wine give "Fant ikke vinen" without a request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
filterOptions now takes the search and the filters, and returns grapes
and food pairings as well. Each group leaves out its own filter, so the
other values show what they would add. Only requested groups are counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Several values can be selected, and all choices live in the URL. On small
screens the filters open in a native dialog. Active filters can be removed
one by one, and the back button undoes the last choice. Wine cards now show
countries in Norwegian.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy link
Member

@siverne siverne left a comment

Choose a reason for hiding this comment

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

Tested locally. All frontend and backend tests pass. I checked search, filters, detail page and back button in the browser. Also reviewed the backend changes with help from AI.

@siverne siverne merged commit d7c0924 into main Nov 10, 2026
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants