Skip to content

Commit

Permalink
1176 remove Show Warnings from modules (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr authored May 10, 2024
1 parent df33240 commit bc597d4
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 88 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# teal.modules.general 0.3.0.9029

* Removed `Show Warnings` modals from modules.

# teal.modules.general 0.3.0

### Enhancements
Expand Down
8 changes: 0 additions & 8 deletions R/tm_a_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ ui_a_pca <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -1033,13 +1032,6 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
)
})

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_a_regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ ui_a_regression <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -1000,13 +999,6 @@ srv_a_regression <- function(id,
)
})

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_association.R
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ ui_tm_g_association <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -506,13 +505,6 @@ srv_tm_g_association <- function(id,
teal.code::dev_suppress(output_q()[["title"]])
})

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_bivariate.R
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ ui_g_bivariate <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), button_label = "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -689,13 +688,6 @@ srv_g_bivariate <- function(id,
width = plot_width
)

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ ui_distribution <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -1267,13 +1266,6 @@ srv_distribution <- function(id,
rownames = FALSE
)

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_response.R
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ ui_g_response <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), button_label = "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -547,13 +546,6 @@ srv_g_response <- function(id,
width = plot_width
)

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ ui_g_scatterplot <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), button_label = "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -1022,13 +1021,6 @@ srv_g_scatterplot <- function(id,
}
})

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_scatterplotmatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ ui_g_scatterplotmatrix <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -441,13 +440,6 @@ srv_g_scatterplotmatrix <- function(id, data, reporter, filter_panel_api, variab
}
})

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_missing_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ srv_page_missing_data <- function(id, data, reporter, filter_panel_api, parent_d
conditionalPanel(
is_tab_active_js(ns("dataname_tab"), x),
tagList(
teal.widgets::verbatim_popup_ui(dataname_ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(dataname_ns("rcode"), "Show R code")
)
)
Expand Down Expand Up @@ -1269,13 +1268,6 @@ srv_missing_data <- function(id, data, reporter, filter_panel_api, dataname, par
}
})

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(final_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(final_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(final_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ ui_outliers <- function(id, ...) {
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
Expand Down Expand Up @@ -1219,13 +1218,6 @@ srv_outliers <- function(id, data, reporter, filter_panel_api, outlier_var,
)
})

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(final_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(final_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(final_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_t_crosstable.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ ui_t_crosstable <- function(id, x, y, show_percentage, show_total, pre_output, p
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("warning"), "Show Warnings"),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = pre_output,
Expand Down Expand Up @@ -409,13 +408,6 @@ srv_t_crosstable <- function(id, data, reporter, filter_panel_api, label, x, y,
table_r = table_r
)

teal.widgets::verbatim_popup_srv(
id = "warning",
verbatim_content = reactive(teal.code::get_warnings(output_q())),
title = "Warning",
disabled = reactive(is.null(teal.code::get_warnings(output_q())))
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(output_q())),
Expand Down

0 comments on commit bc597d4

Please sign in to comment.