LLM query builder: sidebar filter controls do not update after populateFromLLM #39
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When the LLM query builder panel runs
populateFromLLM(), it writes tostore.filters(the store-level ref added in #29). However, the filter sidebar inSearchView.vuebinds to its own localreactive<SearchFilters>— so mustInclude, price, condition, and other filter controls stay visually unchanged after a Build with AI run.Auto-run still works correctly (the store fires
search()with the LLM-populated params). But users who have auto-run disabled will see "Filters updated" in the panel while the sidebar shows stale values — confusing.Root cause
search.tsnow has two parallel filter states:store.filters— added for the LLM path, mutated bypopulateFromLLMreactive<SearchFilters>inSearchView.vue— what the sidebar controls bind toFix
Consolidate to one canonical filter state. Move the sidebar’s local
reactive<SearchFilters>into the store (or replace it withstore.filters) and update allv-modelbindings inSearchView.vueto usestore.filters. Remove the now-redundant store-levelfiltersref and just keep one.Acceptance criteria
vue-tsc --noEmitreports zero errors