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

[Feature Request]: Option to Hide "Snapshot Manager" and "Global Filters" Buttons #1339

Open
3 tasks done
dennison-hall opened this issue Sep 3, 2024 · 1 comment
Open
3 tasks done
Labels
core enhancement New feature or request

Comments

@dennison-hall
Copy link

Feature description

Description: I am a developer on the Data Quality Oversight Tool (DQOT) and we are requesting an option to hide the "Snapshot Manager" and "Global Filters" buttons in the application.

Reason: The term "Snapshot" is causing some confusion among our end-users, who associate it with a specific data snapshot. However, our application undergoes continuous data refreshes. To avoid this confusion for the time-being, we would like to hide these buttons temporarily. Could you be so kind as to provide us with the guidance on how to do it?

We could also propose, that another names are considered in the future for that, for instance: "Filter snapshot", "Saved filter state", "Bookmarked filters" or "Personalized filters" or something like that.

Additionally, we would like to thank the team for this new functionality as we feel it will bring a lot of value for our use case. It is only the name which is causing confusion among our users; the functionality itself is great!

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
@dennison-hall dennison-hall added the enhancement New feature or request label Sep 3, 2024
@donyunardi
Copy link
Contributor

For short-term solution, you can inject JS in init(header)argument to hide the buttons.

library(teal)

app <- init(
  data = teal_data(
    iris = iris
  ),
  modules = modules(
    example_module(label = "my module")
  ),
  title = "my teal app",
  header = tagList(
    h1("My Teal App"),
    tags$script(HTML("
    $(document).ready(function(){
      $('#teal-snapshot_manager_panel-show_snapshot_manager').hide();
      $('#teal-filter_manager_panel-show_filter_manager').hide();     
    });
  "))
  )
)

shinyApp(app$ui, app$server)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants