-
Notifications
You must be signed in to change notification settings - Fork 8
tests: Add 317-bslib-dashboard #244
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
Open
gadenbuie
wants to merge
14
commits into
main
Choose a base branch
from
317-bslib-dashboard
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
988692b
tests(317): Test shiny-preset dashboard variants
gadenbuie 0cf1b91
test(317): Add initial snapshots
gadenbuie 0832c64
remove devel screenshots
gadenbuie d07c936
rename test and only screenshot on mac release
gadenbuie 6fedacf
chore: Remove unused code
gadenbuie 4abba4e
refactor: Use `page_fixed()` and `page_fluid()` directly
gadenbuie f5ea2ea
trying to make the snapshots more stable
gadenbuie c848579
new snaps
gadenbuie 2e2e719
Add another variant (not screenshot)
gadenbuie 43943b5
clean snaps and try again
gadenbuie fbf5a0c
chore: Add count to screenshots so they're ordered as in tests
gadenbuie 75b89ac
chore: improve loading of shinytest2 js
gadenbuie e271d08
refactor: use new AppDriver for each variant
gadenbuie fe5d780
improve height constraint in value box row
gadenbuie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,371 @@ | ||
library(shiny) | ||
library(bslib) | ||
library(htmltools) | ||
|
||
options( | ||
sass.cache = FALSE, | ||
shiny.autoreload = TRUE, | ||
shiny.testmode = TRUE, | ||
bslib.precompiled = FALSE | ||
) | ||
|
||
toggle_class_buttons <- HTML(' | ||
<fieldset> | ||
<legend class="fs-5 border-bottom">Body Classes</legend> | ||
<div class="form-check form-switch"> | ||
<input | ||
class="form-check-input body-class-toggle" | ||
type="checkbox" | ||
id="dashboard_toggle" | ||
data-class="bslib-page-dashboard" | ||
onchange="document.body.classList.toggle(this.dataset.class, this.checked)" | ||
> | ||
<label class="form-check-label" for="dashboard_toggle">Dashboard Class</label> | ||
</div> | ||
<div class="form-check form-switch"> | ||
<input | ||
class="form-check-input body-class-toggle" | ||
type="checkbox" | ||
id="shadow_toggle" | ||
data-class="bslib-card-box-shadow-none" | ||
onchange="document.body.classList.toggle(this.dataset.class, this.checked)" | ||
> | ||
<label class="form-check-label" for="shadow_toggle">No Shadow Class</label> | ||
</div> | ||
<div class="form-check form-switch"> | ||
<input | ||
class="form-check-input body-class-toggle" | ||
type="checkbox" | ||
id="shadow_sm_toggle" | ||
data-class="bslib-card-box-shadow-sm" | ||
onchange="document.body.classList.toggle(this.dataset.class, this.checked)" | ||
> | ||
<label class="form-check-label" for="shadow_sm_toggle">Small Shadow Class</label> | ||
</div> | ||
<div class="form-check form-switch"> | ||
<input | ||
class="form-check-input body-class-toggle" | ||
type="checkbox" | ||
id="shadow_lg_toggle" | ||
data-class="bslib-card-box-shadow-lg" | ||
onchange="document.body.classList.toggle(this.dataset.class, this.checked)" | ||
> | ||
<label class="form-check-label" for="shadow_lg_toggle">Large Shadow Class</label> | ||
</div> | ||
</fieldset> | ||
') | ||
|
||
|
||
global_sidebar <- function(..., fg = NULL, bg = NULL) { | ||
sidebar( | ||
title = "Sidebar", | ||
fg = fg, | ||
bg = bg, | ||
"Shared sidebar", | ||
input_dark_mode(id = "dark_mode"), | ||
..., | ||
toggle_class_buttons | ||
) | ||
} | ||
|
||
card_a_nav <- | ||
navset_card_underline( | ||
title = "A Nav Card", | ||
sidebar = sidebar( | ||
title = "Sidebar A", | ||
width = "200px", | ||
position = "left", | ||
"Left sidebar" | ||
), | ||
nav_panel("One", plotly::plotlyOutput("bars")), | ||
nav_panel("Two", "Second panel in the nav card") | ||
) | ||
|
||
card_a <- | ||
card( | ||
card_header("A Card"), | ||
layout_sidebar( | ||
fillable = TRUE, | ||
sidebar = sidebar( | ||
title = "Sidebar A", | ||
width = "200px", | ||
position = "left", | ||
"Left sidebar" | ||
), | ||
plotly::plotlyOutput("bars") | ||
), | ||
card_footer("Footer A") | ||
) | ||
|
||
card_b <- | ||
card( | ||
card_header("B Card"), | ||
layout_sidebar( | ||
sidebar = sidebar( | ||
title = "Sidebar B", | ||
width = "200px", | ||
position = "right", | ||
"Right sidebar" | ||
), | ||
plotly::plotlyOutput("line") | ||
), | ||
card_footer("Footer B") | ||
) | ||
|
||
row_cards <- layout_columns(card_a_nav, card_b) | ||
|
||
row_value_boxes <- | ||
layout_columns( | ||
row_heights = "minmax(100px, 1fr)", | ||
value_box( | ||
"First", | ||
"Thing One", | ||
showcase = bsicons::bs_icon("pin-angle-fill") | ||
), | ||
value_box( | ||
"Second", | ||
"Thing Two", | ||
showcase = bsicons::bs_icon("boombox-fill") | ||
) | ||
) | ||
|
||
ui_navbar <- function(enable_dashboard = TRUE) { | ||
page_navbar( | ||
title = "Dashboard", | ||
theme = bs_global_get(), | ||
fillable = TRUE, | ||
sidebar = global_sidebar(), | ||
nav_spacer(), | ||
nav_panel( | ||
"Page", | ||
row_value_boxes, | ||
row_cards | ||
) | ||
) | ||
} | ||
|
||
ui_navbar_fillable <- function(...) { | ||
page_navbar( | ||
title = "Dashboard", | ||
theme = bs_global_get(), | ||
fillable = TRUE, | ||
nav_spacer(), | ||
nav_item(input_dark_mode(id = "dark_mode")), | ||
nav_item( | ||
popover( | ||
bsicons::bs_icon("gear-fill"), | ||
toggle_class_buttons | ||
) | ||
), | ||
nav_panel( | ||
"Dash", | ||
row_value_boxes, | ||
row_cards | ||
), | ||
nav_panel( | ||
"About", | ||
layout_columns( | ||
card( | ||
card_title("About this"), | ||
lorem::ipsum(3, 2) | ||
), | ||
card( | ||
card_title("About that"), | ||
lorem::ipsum(4, c(2, 1, 3, 2)) | ||
) | ||
) | ||
) | ||
) | ||
} | ||
|
||
ui_sidebar <- function(enable_dashboard = TRUE) { | ||
page_sidebar( | ||
title = "Dashboard", | ||
theme = bs_global_get(), | ||
sidebar = global_sidebar(), | ||
# bg = "green", | ||
row_value_boxes, | ||
row_cards | ||
) | ||
} | ||
|
||
ui_fillable_navbar <- function(enable_dashboard = TRUE) { | ||
page_fillable( | ||
theme = bs_global_get(), | ||
gap = 0, | ||
padding = 0, | ||
class = if (enable_dashboard) "bslib-page-dashboard", | ||
navset_bar( | ||
title = "Dashboard", | ||
sidebar = global_sidebar(), | ||
nav_spacer(), | ||
nav_panel( | ||
"Page", | ||
class = "p-0 m-0", | ||
row_value_boxes, | ||
row_cards | ||
) |> htmltools::tagAppendAttributes(class = "m-0") | ||
) | ||
) | ||
} | ||
|
||
ui_fillable_sidebar <- function(enable_dashboard = TRUE) { | ||
page_fillable( | ||
theme = bs_global_get(), | ||
gap = 0, | ||
padding = 0, | ||
class = if (enable_dashboard) "bslib-page-dashboard", | ||
layout_sidebar( | ||
sidebar = global_sidebar(), | ||
h2("Dashboard"), | ||
row_value_boxes, | ||
row_cards | ||
) |> htmltools::tagAppendAttributes(class = "m-0") | ||
) | ||
} | ||
|
||
abs_dark_mode <- input_dark_mode( | ||
id = "dark_mode", | ||
style = htmltools::css( | ||
position = "absolute", | ||
top = "1em", | ||
right = "1em" | ||
) | ||
) | ||
|
||
ui_flow_dash <- function(enable_dashboard = TRUE) { | ||
set.seed(2023*11*15) | ||
|
||
p <- page_fluid( | ||
theme = bs_global_get(), | ||
h2("Fluid Dashboard Page", class = "my-4"), | ||
row_value_boxes, | ||
lorem::ipsum(2, 2), | ||
row_cards, | ||
abs_dark_mode, | ||
toggle_class_buttons | ||
) | ||
|
||
if (!enable_dashboard) return(p) | ||
|
||
# In the tests, the dashboard class is added w/ client-side JS, but it could | ||
# be done manually by directly calling body. This path is not directly tested, | ||
# but is included for symmetry with the other UIs and for manual testing. | ||
tags$body(class = "bslib-page-dashboard", p) | ||
} | ||
|
||
ui_flow_sidebar <- function(enable_dashboard = TRUE) { | ||
set.seed(2023*11*15) | ||
|
||
p <- page_fixed( | ||
theme = bs_global_get(), | ||
h2("Fixed Dashboard Page"), | ||
layout_sidebar( | ||
sidebar = global_sidebar(), | ||
row_value_boxes, | ||
lorem::ipsum(2, 2), | ||
row_cards | ||
) | ||
) | ||
|
||
if (!enable_dashboard) return(p) | ||
|
||
tags$body(class = "bslib-page-dashboard", p) | ||
} | ||
|
||
ui_fillable_nested <- function(enable_dashboard = TRUE) { | ||
page_fillable( | ||
class = if (enable_dashboard) "bslib-page-dashboard main", | ||
theme = bs_global_get(), | ||
row_value_boxes, | ||
card( | ||
card_header("Outer Plots Card"), | ||
class = "p-0", | ||
layout_sidebar( | ||
sidebar = global_sidebar(), | ||
row_cards | ||
) | ||
) | ||
) | ||
} | ||
|
||
server <- function(input, output, session) { | ||
plotly_defaults <- function(p) { | ||
p <- plotly::layout( | ||
p, | ||
margin = list(l = 0, r = 0, t = 0, b = 0), | ||
font = list( | ||
family = "Open Sans", | ||
color = if (input$dark_mode == "dark") "white" else "#1D1F21" | ||
), | ||
yaxis = list(gridcolor = if (input$dark_mode == "dark") "#303030"), | ||
xaxis = list(gridcolor = if (input$dark_mode == "dark") "#303030"), | ||
plot_bgcolor = "transparent", | ||
paper_bgcolor = "transparent" | ||
) | ||
|
||
plotly::config(p, displayModeBar = FALSE) | ||
} | ||
|
||
output$bars <- plotly::renderPlotly({ | ||
plotly::plot_ly( | ||
data.frame( | ||
x = factor(1:5, labels = c("Fair", "Good", "Better", "Best", "Ideal")), | ||
y = c(1610, 5002, 13234, 16905, 21551) | ||
), | ||
x = ~x, | ||
y = ~y | ||
) |> | ||
plotly_defaults() | ||
}) | ||
|
||
output$line <- plotly::renderPlotly({ | ||
set.seed(4323) | ||
|
||
plotly::plot_ly( | ||
data.frame( | ||
x = seq.Date(as.Date("2020-01-01"), as.Date("2021-01-01"), by = "day"), | ||
y = cumsum(rnorm(367, sd = 4)) | ||
), | ||
x = ~x, | ||
y = ~y, | ||
type = "scatter", | ||
mode = "lines" | ||
) |> | ||
plotly_defaults() | ||
}) | ||
} | ||
|
||
ui <- function(req) { | ||
q <- parseQueryString(req$QUERY_STRING) | ||
if (is.null(q$ui)) q$ui <- "navbar" | ||
q$ui <- gsub("-", "_", q$ui) | ||
if (is.null(q$preset)) q$preset <- "shiny" | ||
if (is.null(q$dashboard_class)) q$dashboard_class <- FALSE | ||
|
||
args <- list( | ||
version = 5, | ||
preset = q$preset, | ||
bslib_dashboard_design = q[["dashboard"]], | ||
bslib_enable_shadows = q[["shadows"]] | ||
) | ||
|
||
cli::cli_h1("New app scenario") | ||
cli::cli_dl(c(args, dashboard_class = q$dashboard_class)) | ||
|
||
do.call(bs_global_theme, purrr::compact(args)) | ||
|
||
switch( | ||
q$ui, | ||
navbar = ui_navbar(q$dashboard_class), | ||
sidebar = ui_sidebar(q$dashboard_class), | ||
fillable_navbar = ui_fillable_navbar(enable_dashboard = q$dashboard_class), | ||
fillable_sidebar = ui_fillable_sidebar(enable_dashboard = q$dashboard_class), | ||
flow_dash = ui_flow_dash(enable_dashboard = q$dashboard_class), | ||
flow_sidebar = ui_flow_sidebar(enable_dashboard = q$dashboard_class), | ||
fillable_nested = ui_fillable_nested(enable_dashboard = q$dashboard_class), | ||
navbar_fillable = ui_navbar_fillable() | ||
) | ||
} | ||
|
||
shinyApp(ui, server) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shinytest2::test_app() |
Binary file added
BIN
+96.9 KB
...ny-dashboard/317-bslib-preset-shiny-dashboard-fillable-navbar_01_mode_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.1 KB
...shboard/317-bslib-preset-shiny-dashboard-fillable-navbar_02_class_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.6 KB
...shboard/317-bslib-preset-shiny-dashboard-fillable-navbar_03_class_no-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93 KB
...oard/317-bslib-preset-shiny-dashboard-fillable-navbar_04_class_small-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93.3 KB
...iny-dashboard/317-bslib-preset-shiny-dashboard-fillable-navbar_05_mode_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91 KB
...shiny-dashboard/317-bslib-preset-shiny-dashboard-fillable-navbar_06_classic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.1 KB
...shboard/317-bslib-preset-shiny-dashboard-fillable-navbar_07_classic_shadows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.2 KB
...ny-dashboard/317-bslib-preset-shiny-dashboard-fillable-nested_01_mode_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.4 KB
...shboard/317-bslib-preset-shiny-dashboard-fillable-nested_02_class_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+89.8 KB
...shboard/317-bslib-preset-shiny-dashboard-fillable-nested_03_class_no-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.7 KB
...oard/317-bslib-preset-shiny-dashboard-fillable-nested_04_class_small-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.5 KB
...iny-dashboard/317-bslib-preset-shiny-dashboard-fillable-nested_05_mode_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.3 KB
...shiny-dashboard/317-bslib-preset-shiny-dashboard-fillable-nested_06_classic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.7 KB
...shboard/317-bslib-preset-shiny-dashboard-fillable-nested_07_classic_shadows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.5 KB
...y-dashboard/317-bslib-preset-shiny-dashboard-fillable-sidebar_01_mode_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.5 KB
...hboard/317-bslib-preset-shiny-dashboard-fillable-sidebar_02_class_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.3 KB
...hboard/317-bslib-preset-shiny-dashboard-fillable-sidebar_03_class_no-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93.4 KB
...ard/317-bslib-preset-shiny-dashboard-fillable-sidebar_04_class_small-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93.5 KB
...ny-dashboard/317-bslib-preset-shiny-dashboard-fillable-sidebar_05_mode_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.4 KB
...hiny-dashboard/317-bslib-preset-shiny-dashboard-fillable-sidebar_06_classic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.4 KB
...hboard/317-bslib-preset-shiny-dashboard-fillable-sidebar_07_classic_shadows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+125 KB
...et-shiny-dashboard/317-bslib-preset-shiny-dashboard-flow-dash_01_mode_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+125 KB
...iny-dashboard/317-bslib-preset-shiny-dashboard-flow-dash_02_class_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+118 KB
...iny-dashboard/317-bslib-preset-shiny-dashboard-flow-dash_03_class_no-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+120 KB
...-dashboard/317-bslib-preset-shiny-dashboard-flow-dash_04_class_small-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+120 KB
...set-shiny-dashboard/317-bslib-preset-shiny-dashboard-flow-dash_05_mode_dark.png
Oops, something went wrong.
Binary file added
BIN
+118 KB
...reset-shiny-dashboard/317-bslib-preset-shiny-dashboard-flow-dash_06_classic.png
Oops, something went wrong.
Binary file added
BIN
+124 KB
...iny-dashboard/317-bslib-preset-shiny-dashboard-flow-dash_07_classic_shadows.png
Oops, something went wrong.
Binary file added
BIN
+116 KB
...shiny-dashboard/317-bslib-preset-shiny-dashboard-flow-sidebar_01_mode_light.png
Oops, something went wrong.
Binary file added
BIN
+117 KB
...-dashboard/317-bslib-preset-shiny-dashboard-flow-sidebar_02_class_dashboard.png
Oops, something went wrong.
Binary file added
BIN
+109 KB
...-dashboard/317-bslib-preset-shiny-dashboard-flow-sidebar_03_class_no-shadow.png
Oops, something went wrong.
Binary file added
BIN
+111 KB
...shboard/317-bslib-preset-shiny-dashboard-flow-sidebar_04_class_small-shadow.png
Oops, something went wrong.
Binary file added
BIN
+112 KB
...-shiny-dashboard/317-bslib-preset-shiny-dashboard-flow-sidebar_05_mode_dark.png
Oops, something went wrong.
Binary file added
BIN
+109 KB
...et-shiny-dashboard/317-bslib-preset-shiny-dashboard-flow-sidebar_06_classic.png
Oops, something went wrong.
Binary file added
BIN
+116 KB
...-dashboard/317-bslib-preset-shiny-dashboard-flow-sidebar_07_classic_shadows.png
Oops, something went wrong.
Binary file added
BIN
+97.1 KB
...reset-shiny-dashboard/317-bslib-preset-shiny-dashboard-navbar_01_mode_light.png
Oops, something went wrong.
Binary file added
BIN
+90.6 KB
...-shiny-dashboard/317-bslib-preset-shiny-dashboard-navbar_03_class_no-shadow.png
Oops, something went wrong.
Binary file added
BIN
+92.9 KB
...iny-dashboard/317-bslib-preset-shiny-dashboard-navbar_04_class_small-shadow.png
Oops, something went wrong.
Binary file added
BIN
+93.3 KB
...preset-shiny-dashboard/317-bslib-preset-shiny-dashboard-navbar_05_mode_dark.png
Oops, something went wrong.
Binary file added
BIN
+91 KB
...b-preset-shiny-dashboard/317-bslib-preset-shiny-dashboard-navbar_06_classic.png
Oops, something went wrong.
Binary file added
BIN
+97.1 KB
...-shiny-dashboard/317-bslib-preset-shiny-dashboard-navbar_07_classic_shadows.png
Oops, something went wrong.
Binary file added
BIN
+96.8 KB
...eset-shiny-dashboard/317-bslib-preset-shiny-dashboard-sidebar_01_mode_light.png
Oops, something went wrong.
Binary file added
BIN
+90.2 KB
...shiny-dashboard/317-bslib-preset-shiny-dashboard-sidebar_03_class_no-shadow.png
Oops, something went wrong.
Binary file added
BIN
+92.6 KB
...ny-dashboard/317-bslib-preset-shiny-dashboard-sidebar_04_class_small-shadow.png
Oops, something went wrong.
Binary file added
BIN
+92.8 KB
...reset-shiny-dashboard/317-bslib-preset-shiny-dashboard-sidebar_05_mode_dark.png
Oops, something went wrong.
Binary file added
BIN
+90.2 KB
...-preset-shiny-dashboard/317-bslib-preset-shiny-dashboard-sidebar_06_classic.png
Oops, something went wrong.
Binary file added
BIN
+96.5 KB
...shiny-dashboard/317-bslib-preset-shiny-dashboard-sidebar_07_classic_shadows.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
inst/apps/317-bslib-preset-shiny-dashboard/tests/testthat/setup-shinytest2.R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Load application support files into testing environment | ||
shinytest2::load_app_env() | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.