Skip to content

Conversation

oscarba
Copy link
Member

@oscarba oscarba commented Nov 26, 2026 •

Closes #30

What

  • Up to 5 wine suggestions while typing in the search field on the landing page, with type, country and winery in Norwegian
  • The last choice opens all results on /sok
  • Arrow keys, Enter and Escape, built on Downshift (useCombobox) and the WAI-ARIA combobox pattern
  • Enter without a chosen suggestion is a normal search, and failing suggestions never block the search
  • The number of suggestions is announced to screen readers

Differences from the issue

Also

  • frontend/README.md was missing a newline at the end, which made npm run check fail on main too.
  • The hero section used overflow: hidden, which cut off the suggestions. It now uses overflow-x: clip.

Testing

  • npm run check -- --e2e passes, with new unit tests and e2e tests for suggestions, keyboard use, Escape, clipping, axe and 320 px
  • The suggestion query is validated against the backend schema
  • Tested with real SQL on a temporary database with all 8 migrations, and manually against the database on the VM

MD file formatted with AI

Copy link
Member

@manerlan manerlan left a comment

Choose a reason for hiding this comment

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

Tested with npm run check and npm run e2e. Everything passes. Tested manually that the new functionality works as intended. Approving

@manerlan manerlan merged commit 6e391de into main Nov 26, 2026
@manerlan manerlan deleted the 30-search-suggestions branch November 26, 2026 19:26
Sign in to join this conversation on GitHub.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add search suggestions (autoomplete)
2 participants