open-design/apps
Bryan b426f614f5
fix(web): scope design-systems surface chip counts to active style filter (#2141)
On the Design systems page the built-in library surface chips (All / Web /
Image / …) counted the whole catalog, so applying a style category left
them showing stale totals while the grid shrank. Clicking a chip also
called setCategory('All'), discarding the user's style filter instead of
refining within it.

Surface chip counts and the grid now derive from a query-scoped set
(style category + search) over librarySystems; the chip click only
switches surface. An unscoped surfaceTotals count still backs the
"surface is empty" effect guard so it reacts to the catalog, not a
transient filter. The chip row always keeps "all" and the active surface
chip rendered, so a transient search can never hide the active filter.

Re-applied onto the DesignSystemsTab restructure from #2187. Adds 4 tests
covering scoped counts, category preservation on chip click, empty-chip
hiding, and active-chip persistence under a zero-result search.

Fixes #2062

Co-authored-by: DevForgeAI CI/CD Engineer <devforge-ai@development.ai>
2026-05-19 23:42:45 +08:00
..
daemon feat(senseaudio): BYOK chat with image + video generation tools (#2065) 2026-05-19 23:14:56 +08:00
desktop Add desktop updater UI flow (#2270) 2026-05-19 21:36:51 +08:00
landing-page perf(landing): edge-cache HTML and precise-load thumbnails (#2235) 2026-05-19 19:14:25 +08:00
packaged refactor desktop host bridge (#2246) 2026-05-19 18:27:05 +08:00
telemetry-worker chore: pin dependency versions and harden CI caches (#2189) 2026-05-19 13:58:27 +08:00
web fix(web): scope design-systems surface chip counts to active style filter (#2141) 2026-05-19 23:42:45 +08:00
AGENTS.md refactor(daemon): split agent runtime definitions (#1063) 2026-05-11 15:01:55 +08:00