Problem: Users often repeat searches or want to refine a previous query. Retyping previous searches is tedious.
Solution: A local search history (up to 20 entries) navigable with arrow keys in the search input.
Not included: Persistent history across sessions, search suggestions, or trending searches. History resets on page reload.
User flow:
Edge cases:
$state — NOT persisted to localStorage or serverNo visible history list — navigation is entirely via ArrowUp/ArrowDown in the search input. The history is invisible until the user presses an arrow key.
Implementation: searchHistory: string[] array in component $state, capped at 20. ArrowUp/ArrowDown handlers cycle through the array.
Files:
apps/web/src/routes/(app)/search/+page.svelte — history state + key handlersCurrent: DONE Milestone: v1 Priority: Low — convenience feature
History:
Dependencies: