34 connect search and the list view to the backend #58
+704
−250
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.
Connect search and list to the backend
The search page now gets its results from the database through GraphQL instead of filtering mock data in the browser.
useSightingSearchuses thesightingsquery. Search and sort still live in the URL, and the 300 ms debounce is kept.nulllike the schema, with fallbacks such as "Unknown" and "No map location"filter-sightingsand its tests; updated AGENTS.mdTests check which requests are sent: one per search after typing stops, none for a repeated search, and paging/retry.
Known limitations
SHAPE_ASCsorts sightings without a shape first. That's for the resolver.How to test
backend/.envfilled in from.env.examplenpm run dev:backendandnpm run devAI usage
Claude Code helped plan and implement the hook, cache rules, UI states and tests, and debug the local DB setup.
Closes #34