Merge branch 'main' into rc-v1.9.0

This commit is contained in:
Carson Sievert
2024-07-29 11:22:02 -05:00
committed by GitHub
2 changed files with 8 additions and 5 deletions

10
NEWS.md
View File

@@ -2,11 +2,13 @@
## New busy indication feature ## New busy indication feature
Shiny now includes busy indication by default, which more specifically means: Add the new `useBusyIndicators()` function to any UI definition to:
1. Calculating/recalculating outputs now have a spinner overlay. 1. Add a spinner overlay on calculating/recalculating outputs.
2. When no outputs are calculating, but Shiny is busy calculating something (e.g., a download, side-effect, etc), a page-level pulsing banner is shown. 2. Show a page-level pulsing banner when Shiny is busy calculating something (e.g., a download, side-effect, etc), but no calculating/recalculating outputs are visible.
If either 1 or 2 leads to undesirable behavior in your app, you can disable them entirely with `useBusyIndicators(spinners = FALSE, pulse = FALSE)`. In addition, various properties of the spinners and pulse can be customized with `busyIndicatorOptions()`. For more details, see `?busyIndicatorOptions`. (#4040, #4104) In a future version of Shiny, busy indication will be enabled by default, so we encourage you to try it out now, provide feedback, and report any issues.
In addition, various properties of the spinners and pulse can be customized with `busyIndicatorOptions()`. For more details, see `?busyIndicatorOptions`. (#4040, #4104)
## New features and improvements ## New features and improvements

View File

@@ -288,6 +288,7 @@ busyIndicatorDependency <- function() {
src = "www/shared/busy-indicators", src = "www/shared/busy-indicators",
package = "shiny", package = "shiny",
stylesheet = "busy-indicators.css", stylesheet = "busy-indicators.css",
head = as.character(useBusyIndicators()) # TODO-future: In next release make spinners and pulse opt-out
# head = as.character(useBusyIndicators())
) )
} }