Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Refactor filter panel - summary and collapsible #55

Closed
pawelru opened this issue Jun 29, 2022 · 4 comments · Fixed by #57
Closed

Refactor filter panel - summary and collapsible #55

pawelru opened this issue Jun 29, 2022 · 4 comments · Fixed by #57
Assignees
Labels
bug Something isn't working core

Comments

@pawelru
Copy link
Contributor

pawelru commented Jun 29, 2022

Refactor the FilterPanel regarding the linkage with teal.slice and the collapse functionality.
We want to make the process more elegant and clear. More than that there could be a hidden problem with reactivity when closing and opening the Filter Panel or with possible calls for filters from a module server function.

Take into account that #60 is already merged.
We solve the problem only for active filter , sb have to check the influence on the main part of the FilterPanel.
If the main Filter UI does not need shiny::outputOptions(output, "table", suspendWhenHidden = FALSE) call too.

@pawelru pawelru added the bug Something isn't working label Jun 29, 2022
@kpagacz
Copy link
Contributor

kpagacz commented Jun 29, 2022

The hiding/showing of the filter panel itself is, unfortunately, working as intended because we made the state of this particular UI feature global across all modules (disregarding whether they actually show it or not).

I will investigate the disappearance of the summary.

@kpagacz kpagacz self-assigned this Jun 29, 2022
@kpagacz
Copy link
Contributor

kpagacz commented Jun 29, 2022

I can confirm the buggy behaviour is reproducible. Clicking on any input makes the Filter Overview show up again. I will dig deeper.

@kpagacz
Copy link
Contributor

kpagacz commented Jun 29, 2022

There is something fishy about the active_datanames reactive. Basically what happens is that FilteredData$srv_filter_overview does not trigger in some scenarios. I do not know yet why.

@Polkas
Copy link
Contributor

Polkas commented Jun 30, 2022

This looks to solve the problem #57

kpagacz added a commit that referenced this issue Jun 30, 2022
* Fixed a bug when the filter panel overview would not recalculate when
  changing a new module in cases when the panel was hidden
  during a transition between the modules.

* Changed the behaviour of the burger button when there are no active
  datanames in the filter panel.

Closes #55
kpagacz added a commit to insightsengineering/teal that referenced this issue Jun 30, 2022
@Polkas Polkas self-assigned this Jul 1, 2022
@Polkas Polkas changed the title Disappearing filter summary Refactor filter summary Jul 1, 2022
@Polkas Polkas changed the title Refactor filter summary Refactor filter panel - summary and collapsible Jul 1, 2022
Polkas pushed a commit to insightsengineering/teal that referenced this issue Jul 13, 2022
* hide/show the filter panel
Related to insightsengineering/teal.slice#55
Co-authored-by: Dawid Kałędkowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants