Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Filter panel collapse icons can be incorrect #239

Closed
Tracked by #6 ...
asbates opened this issue Mar 29, 2023 · 7 comments
Closed
Tracked by #6 ...

Filter panel collapse icons can be incorrect #239

asbates opened this issue Mar 29, 2023 · 7 comments
Labels

Comments

@asbates
Copy link
Contributor

asbates commented Mar 29, 2023

Originally noticed in #228 (review) . The collapse icons can get out of whack when disabling/enabling the filter panel.

Steps to reproduce:

  1. Launch an app. For example, the CDISC example used in the filter panel refactor (Refactor of the filter-panel #165)
  2. Collapse a data set filter section. (all filters for one data set)
  3. Disable the filter panel
  4. Enable the filter panel
  5. Icon for step 2. is now incorrect.

image

@chlebowa
Copy link
Contributor

I notice that

  1. reenabled filters always come back unfolded, whether or not they were collapsed on disable
  2. when one
    a. collapses active filter variables for one dataset
    b. clicks the global disable button
    the collapsed section unfolds for a brief moment before disappearing as the filters are disabled.

Might this be a clue?

@asbates
Copy link
Contributor Author

asbates commented Mar 30, 2023

Yes, good eye. I think there's potentially a few issues with all this interactivity.

I do know that on global enable, new FilterState(s) are made and re-inserted. This is why the 'state' of each dataset section and each card is not restored on global enable. Now that we have single filter disabling though, this should be an easy fix. And remove some code to boot :)

@donyunardi
Copy link
Contributor

Acceptance Criteria:

@chlebowa
Copy link
Contributor

Initially I thought this can be easily fixed by adding a toggle_icon call to one observer but unfortunately it is not that simple.

Perhaps #206 will make this easier.

@chlebowa chlebowa removed their assignment Apr 17, 2023
@chlebowa
Copy link
Contributor

chlebowa commented May 5, 2023

Update: #206 will not fix this. I don't know what triggers the accordions to unfold.

@gogonzo
Copy link
Contributor

gogonzo commented Jun 19, 2023

Might be outdated after removing disabled. Please check if the issues still exist, if not close the issue

@chlebowa
Copy link
Contributor

Confirmed, no disable, no problem.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants