Skip to content

Conversation

oscarba
Copy link
Member

@oscarba oscarba commented Nov 6, 2026

Closes #26

What

  • Search page on /sok with debounce, number of hits and "Last inn flere"
  • Search state in the URL, with the Apollo cache merging pages
  • Landing page shortcuts now filter the results
  • Shared ErrorNotice, Skeleton and WineList components
  • The header search is hidden on /sok, which has its own field
  • Placeholder says region instead of country, because the API does not search in country

Testing

  • 134 unit tests and 26 e2e tests pass, and the coverage limits now pass
  • Tested manually against the backend on the VM: case, accents, special characters, long searches, shortcuts and load more through all 100 wines

Known issues

  • Search matches one phrase, so "noir pinot" finds nothing
  • JavaScript on the landing page is 154.01 kB, over the 150 kB budget

Markdown formatted with Claude

Oscar Bakkeng and others added 4 commits November 6, 2026 19:10
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:15
@oscarba oscarba linked an issue Nov 6, 2026 that may be closed by this pull request
@oscarba oscarba merged commit c549479 into dev-frontend Nov 6, 2026
@oscarba oscarba deleted the 26-search-page branch November 6, 2026 18:17
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.

Integrate search function
1 participant