UUI icon indicating copy to clipboard operation
UUI copied to clipboard

Picker Input async data source fold/collapse with search

Open arsen2494 opened this issue 3 years ago • 0 comments

Description Could you please add ability to collapse searched results in picker input(async data source)

image

Steps to reproduce:

  1. type something in Picker's search field
  2. try to collapse any node

Describe the solution you'd like

There's UX/state management issue. At one hand we want to expand all nodes when searching (to show user what's found). At the other hand, we don't want to keep all nodes unfolded, after user clear the search. Ideally, we want to keep all folding user made before search, intact.

One of the solutions is:

  • when entering search mode (search was "" and now is not "") - remember the state of 'folded' hash, clear current 'folded' hash
  • when search is cleared - restore saved 'folded' hash

Next step: discuss with UX designers

arsen2494 avatar Aug 11 '22 10:08 arsen2494