mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
The search bar was rendered only when totalCount > 0, but totalCount is the sum of the post-filter preset lists. A query that matched nothing dropped it to 0 and unmounted the search bar along with the columns, so the user couldn't clear the query without a page refresh. Gate the search bar on hasAnyPresets (pre-filter count) instead, so it stays visible as long as any preset is imported. Split the empty state: "No local presets yet" when nothing is imported, vs a new "No presets match your search" message when a query filtered everything out.