-
Notifications
You must be signed in to change notification settings - Fork 0
Apollo -> backend & Search page #32
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>
26 search page
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>
Wine detail page
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>
Add filter panel and sort
siverne
approved these changes
Nov 10, 2026
There was a problem hiding this 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.
Sign in
to join this conversation on GitHub.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TODO: