Skip to content

Commit f71de82

Browse files
authored
Merge branch 'main' into 899-report_missing_data
2 parents b6827bc + 29f33ff commit f71de82

14 files changed

+26
-173
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default_language_version:
66
python: python3
77
repos:
88
- repo: https://github.com/lorenzwalthert/precommit
9-
rev: v0.4.3.9012
9+
rev: v0.4.3.9013
1010
hooks:
1111
- id: style-files
1212
name: Style code with `styler`

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: teal.modules.general
33
Title: General Modules for 'teal' Applications
4-
Version: 0.4.1.9012
5-
Date: 2025-07-24
4+
Version: 0.4.1.9014
5+
Date: 2025-08-04
66
Authors@R: c(
77
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre")),
88
person("Pawel", "Rucki", , "[email protected]", role = "aut"),
@@ -26,7 +26,7 @@ Depends:
2626
ggmosaic (>= 0.3.0),
2727
ggplot2 (>= 3.4.0),
2828
R (>= 4.1),
29-
shiny (>= 1.6.0),
29+
shiny (>= 1.8.1),
3030
teal (>= 0.16.0.9008),
3131
teal.transform (>= 0.6.0.9002)
3232
Imports:

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# teal.modules.general 0.4.1.9012
1+
# teal.modules.general 0.4.1.9014
22

33
### Bug fixes
44

R/tm_a_pca.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ ui_a_pca <- function(id, ...) {
229229
}
230230

231231
tagList(
232-
include_css_files("custom"),
233232
teal.widgets::standard_layout(
234233
output = teal.widgets::white_small_well(
235234
uiOutput(ns("all_plots"))

R/tm_data_table.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ ui_page_data_table <- function(id, pre_output = NULL, post_output = NULL) {
158158
ns <- NS(id)
159159

160160
tagList(
161-
include_css_files("custom"),
162161
teal.widgets::standard_layout(
163162
output = teal.widgets::white_small_well(
164163
bslib::page_fluid(

R/tm_file_viewer.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,12 @@ ui_viewer <- function(id, ...) {
103103
ns <- NS(id)
104104

105105
tagList(
106-
include_css_files("custom"),
107106
teal.widgets::standard_layout(
108107
output = tags$div(
109108
uiOutput(ns("output"))
110109
),
111110
encoding = tags$div(
112-
class = "file_viewer_encoding",
111+
style = "overflow-y: hidden; overflow-x: auto;",
113112
tags$label("Encodings", class = "text-primary"),
114113
shinyTree::shinyTree(
115114
ns("tree"),
@@ -173,7 +172,7 @@ srv_viewer <- function(id, input_path) {
173172
tags$img(src = con_type$selected_path, alt = "file does not exist")
174173
} else if (file_extension == "pdf") {
175174
tags$embed(
176-
class = "embed_pdf",
175+
style = "height: 600px; width: 100%;",
177176
src = con_type$selected_path
178177
)
179178
} else if (!isFALSE(con_type$output_text[1])) {

R/tm_front_page.R

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,33 +119,32 @@ ui_front_page <- function(id, ...) {
119119
ns <- NS(id)
120120

121121
tagList(
122-
include_css_files("custom"),
123122
tags$div(
124123
id = "front_page_content",
125-
class = "ml-8",
124+
style = "margin-left: 2rem;",
126125
tags$div(
127126
id = "front_page_headers",
128127
get_header_tags(args$header_text)
129128
),
130129
tags$div(
131130
id = "front_page_tables",
132-
class = "ml-4",
131+
style = "margin-left: 2rem;",
133132
get_table_tags(args$tables, ns)
134133
),
135134
tags$div(
136135
id = "front_page_custom_html",
137-
class = "my-4",
136+
style = "margin-left: 2rem;",
138137
args$additional_tags
139138
),
140139
if (length(args$datanames) > 0L) {
141140
tags$div(
142141
id = "front_page_metabutton",
143-
class = "m-4",
142+
style = "margin: 1rem;",
144143
actionButton(ns("metadata_button"), "Show metadata")
145144
)
146145
},
147146
tags$footer(
148-
class = ".small",
147+
class = "small",
149148
get_footer_tags(args$footnotes)
150149
)
151150
)
@@ -228,7 +227,7 @@ get_table_tags <- function(tables, ns) {
228227
tableOutput(ns(paste0("table_", idx)))
229228
)
230229
}))
231-
return(table_tags)
230+
table_tags
232231
}
233232

234233
get_footer_tags <- function(footnotes) {
@@ -255,11 +254,11 @@ convert_metadata_to_dataframe <- function(raw_metadata, datanames) {
255254
if (is.null(metadata)) {
256255
return(data.frame(Dataset = character(0), Name = character(0), Value = character(0)))
257256
}
258-
return(data.frame(
257+
data.frame(
259258
Dataset = dataname,
260259
Name = names(metadata),
261260
Value = unname(unlist(lapply(metadata, as.character)))
262-
))
261+
)
263262
}, raw_metadata, datanames, SIMPLIFY = FALSE)
264263
do.call(rbind, output)
265264
}

R/tm_g_scatterplot.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,11 @@ ui_g_scatterplot <- function(id, ...) {
362362
)
363363

364364
tagList(
365-
include_css_files("custom"),
366365
teal.widgets::standard_layout(
367366
output = teal.widgets::white_small_well(
368367
teal.widgets::plot_with_settings_ui(id = ns("scatter_plot")),
369-
tags$h1(tags$strong("Selected points:"), class = "text-center font-150p"),
368+
tags$br(),
369+
tags$h1(tags$strong("Selected points:"), style = "font-size: 150%;"),
370370
teal.widgets::get_dt_rows(ns("data_table"), ns("data_table_rows")),
371371
DT::dataTableOutput(ns("data_table"), width = "100%")
372372
),
@@ -470,16 +470,16 @@ ui_g_scatterplot <- function(id, ...) {
470470
tags$div(
471471
id = ns("label_pos"),
472472
tags$div(tags$strong("Stats position")),
473-
tags$div(class = "inline-block w-10", helpText("Left")),
473+
tags$div(style = "display: inline-block; width: 70%;", helpText("Left")),
474474
tags$div(
475-
class = "inline-block w-70",
475+
style = "display: inline-block; width: 70%;",
476476
teal.widgets::optionalSliderInput(
477477
ns("pos"),
478478
label = NULL,
479479
min = 0, max = 1, value = .99, ticks = FALSE, step = .01
480480
)
481481
),
482-
tags$div(class = "inline-block w-10", helpText("Right"))
482+
tags$div(style = "display: inline-block; width: 10%;", helpText("Right"))
483483
),
484484
teal.widgets::optionalSliderInput(
485485
ns("label_size"), "Stats font size",

R/tm_missing_data.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ tm_missing_data <- function(label = "Missing data",
184184
ui_page_missing_data <- function(id, pre_output = NULL, post_output = NULL) {
185185
ns <- NS(id)
186186
tagList(
187-
include_css_files("custom"),
188187
teal.widgets::standard_layout(
189188
output = teal.widgets::white_small_well(
190189
uiOutput(ns("dataset_tabs"))
@@ -373,9 +372,9 @@ encoding_missing_data <- function(id, summary_per_patient = FALSE, ggtheme, data
373372
uiOutput(ns("variables")),
374373
actionButton(
375374
ns("filter_na"),
376-
tags$span("Select only vars with missings", class = "whitespace-normal"),
375+
tags$span("Select only vars with missings", style = "white-space: normal;"),
377376
width = "100%",
378-
class = "mb-4"
377+
style = "margin-bottom: 1rem;"
379378
),
380379
conditionalPanel(
381380
is_tab_active_js(ns("summary_type"), "Summary"),

R/tm_variable_browser.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ ui_variable_browser <- function(id,
142142
ns <- NS(id)
143143

144144
tags$div(
145-
include_css_files("custom"),
146145
shinyjs::useShinyjs(),
147146
teal.widgets::standard_layout(
148147
output = tags$div(
@@ -156,8 +155,10 @@ ui_variable_browser <- function(id,
156155
})
157156
),
158157
teal.widgets::white_small_well(
158+
### Reporter
159159
teal.reporter::add_card_button_ui(ns("add_reporter"), label = "Add Report Card"),
160160
tags$br(), tags$br(),
161+
###
161162
uiOutput(ns("ui_histogram_display")),
162163
uiOutput(ns("ui_numeric_display")),
163164
teal.widgets::plot_with_settings_ui(ns("variable_plot")),
@@ -236,11 +237,11 @@ srv_variable_browser <- function(id,
236237
tabPanel(
237238
dataname,
238239
tags$div(
239-
class = "mt-4",
240+
style = "margin-top: 1rem;",
240241
textOutput(ns(paste0("dataset_summary_", dataname)))
241242
),
242243
tags$div(
243-
class = "mt-4",
244+
style = "margin-top: 1rem;",
244245
teal.widgets::get_dt_rows(
245246
ns(paste0("variable_browser_", dataname)),
246247
ns(paste0("variable_browser_", dataname, "_rows"))

0 commit comments

Comments
 (0)