frctl / fractal

A tool to help you build and document website component libraries and design systems.
https://fractal.build
MIT License
2.1k stars 167 forks source link

fix: only expand tree's with matches #1230

Closed Schleuse closed 1 year ago

Schleuse commented 1 year ago

We're using fractal for pretty big stylesguides with 1700+ patterns which makes the search pretty much a necessity. As suggested in #1202, this PR makes it that trees that don't have any matching children, won't get expanded anymore.

before:

https://user-images.githubusercontent.com/2717384/197841929-74360cf5-2bfa-4f58-a014-376e44bfbe1b.mp4

after:

https://user-images.githubusercontent.com/2717384/197841953-7e88abe2-999e-4b11-b13b-8c241fb9fe27.mp4

lgollut commented 1 year ago

Is there anything blocking the release of that fix ?

LeBenLeBen commented 1 year ago

Moved to #1252 so it can be released soon