-
-
Notifications
You must be signed in to change notification settings - Fork 42
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]: Add option to supress application PID in Teal UI #737
Comments
Hi @rpodcast |
The background behind this feature was that RSConnect displays the log files per PID and (as an application owner in case a bug report to my app) this it is very hard to open the right file. With PID visible, app-user can contact app-owner and provide all the necessary information. Therefore it's sort of a fix of a third-party tool imperfections. As
|
I'd like to provide some short-term solutions to hide the PID using css. Solution 1:Provide library(teal)
app <- init(
data = teal_data(
dataset("IRIS", iris),
dataset("MTCARS", mtcars)
),
modules = modules(example_module()),
header = shiny::tagList(tags$style("#teal-identifier {visibility: hidden}"), tags$h1("My first teal application")),
)
shinyApp(app$ui, app$server) Solution 2:Pointed out in https://insightsengineering.github.io/teal/main/articles/teal-bs-themes.html#custom-teal-css, we can add the css when defining teal's theme: library(teal)
options("teal.bs_theme" = bslib::bs_theme(version = "3")
%>% bslib::bs_add_rules("#teal-identifier {visibility: hidden}"))
app <- init(
data = teal_data(
dataset("IRIS", iris),
dataset("MTCARS", mtcars)
),
modules = modules(example_module()),
header = "My first teal application"
)
shinyApp(app$ui, app$server) Both ways will hide the PID. |
Feature description
I can certainly understand the value of displaying a small footer with the application process ID and session token within the main Teal module, especially for debugging. However, when an application is released to a production environment, I would prefer to hide that information as it could cause slight confusion to the users.
It would be a great enhancement to have a new argument added to either the teal module UI or server function to show/hide this specific footer, as seen in this snippet.
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: