Skip to content

Commit

Permalink
1176 remove Show Warnings from modules (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed May 10, 2024
1 parent eee056f commit b583826
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 48 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# teal.goshawk 0.1.15.9018

* Removed `Show Warnings` modals from modules.

### Breaking Changes
* Adapted all modules to use `teal_data` objects.

Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_gh_boxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ ui_g_boxplot <- 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 = a$pre_output,
Expand Down Expand Up @@ -587,13 +586,6 @@ srv_g_boxplot <- function(id,
teal.code::join(create_plot(), create_table())
})

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

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(joined_qenvs())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_gh_correlationplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ ui_g_correlationplot <- 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 = a$pre_output,
Expand Down Expand Up @@ -890,13 +889,6 @@ srv_g_correlationplot <- function(id,
DT::formatRound(numeric_cols, 4)
})

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

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(plot_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_gh_density_distribution_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ ui_g_density_distribution_plot <- 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 = a$pre_output,
Expand Down Expand Up @@ -419,13 +418,6 @@ srv_g_density_distribution_plot <- function(id, # nolint
teal.code::join(create_plot(), create_table())
})

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

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_gh_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ ui_lineplot <- 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 = a$pre_output,
Expand Down Expand Up @@ -784,13 +783,6 @@ srv_lineplot <- function(id,
}
###

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

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(plot_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_gh_scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ ui_g_scatterplot <- 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 = a$pre_output,
Expand Down Expand Up @@ -434,13 +433,6 @@ srv_g_scatterplot <- function(id,
DT::formatRound(numeric_cols, 4)
})

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

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = reactive(teal.code::get_code(plot_q())),
Expand Down
8 changes: 0 additions & 8 deletions R/tm_g_gh_spaghettiplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ g_ui_spaghettiplot <- 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 = a$pre_output,
Expand Down Expand Up @@ -549,13 +548,6 @@ srv_g_spaghettiplot <- function(id,
DT::formatRound(numeric_cols, 4)
})

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

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

0 comments on commit b583826

Please sign in to comment.