-
Notifications
You must be signed in to change notification settings - Fork 0
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
Behind the scenes tidy up #78
Conversation
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
# testServer(expr = { | ||
# # Give the inputs expected on initial load | ||
# session$setInputs( | ||
# navlistPanel = "dashboard", |
Check notice
Code scanning / lintr
Commented code should be removed.
# # Give the inputs expected on initial load | ||
# session$setInputs( | ||
# navlistPanel = "dashboard", | ||
# region = "England", |
Check notice
Code scanning / lintr
Commented code should be removed.
# session$setInputs( | ||
# navlistPanel = "dashboard", | ||
# region = "England", | ||
# selectPhase = "All local authority maintained schools", |
Check notice
Code scanning / lintr
Commented code should be removed.
# navlistPanel = "dashboard", | ||
# region = "England", | ||
# selectPhase = "All local authority maintained schools", | ||
# tabsetpanels = "Benchmark example", |
Check notice
Code scanning / lintr
Commented code should be removed.
# region = "England", | ||
# selectPhase = "All local authority maintained schools", | ||
# tabsetpanels = "Benchmark example", | ||
# selectBenchLAs = "" |
Check notice
Code scanning / lintr
Commented code should be removed.
# | ||
# | ||
# # Check the reactive benchmark table is a valid number | ||
# # expect_true(grepl("^\\d*$", reactive_benchmark())) |
Check notice
Code scanning / lintr
Commented code should be removed.
# # Check the reactive benchmark table is a valid number | ||
# # expect_true(grepl("^\\d*$", reactive_benchmark())) | ||
# | ||
# print(reactive_benchmark()) |
Check notice
Code scanning / lintr
Commented code should be removed.
# # expect_true(grepl("^\\d*$", reactive_benchmark())) | ||
# | ||
# print(reactive_benchmark()) | ||
# print(output$tabBenchmark) |
Check notice
Code scanning / lintr
Commented code should be removed.
# print(reactive_benchmark()) | ||
# print(output$tabBenchmark) | ||
# | ||
# reac_benc_tab <<- output$tabBenchmark |
Check notice
Code scanning / lintr
Commented code should be removed.
# reac_benc_tab <<- output$tabBenchmark | ||
# | ||
# # Check the output has expected number of rows for benchmark table | ||
# expect_equal(nrow(reactive_benchmark()), 3) |
Check notice
Code scanning / lintr
Commented code should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might review this in chunks, here's some initial thoughts from a first sweep...
…first h1 (as all h1s are always returned)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor suggestions
Pull request overview
Doing a general tidy up of the template ahead of creating a new repo, aiming to resolve some known issues.
Considered updating to bslib though deciding that should be a separate PR as this was already big enough to review. Raised a number of issues in the Accessibility UI refresh milestone to cover those.
Pull request checklist
Please check if your PR fulfils the following:
shinytest2::test_app()
)styler::style_dir()
andlintr::lint_dir()
)Details of changes
Lots, sorry! Happy to have a call with people if easier.
Automated tests
CI
Code tidy up
lintr::lintr_dir()
locally and resolved all issues so there's a clean starting pointggplot element_line()
Styling
Anything else
Simplified the code behind the value boxes to allow for exporting reactive values (though also I think makes it easier to read), and dropped some of the example value boxes as they were a bit overwhelming on the first page. This also gives the benefit of making it visually clear we've made an update
One of the reasons for showing the value exporting approach to UI tests is that I think we should be encouraging that moving forwards. shinytest2's documentation on suggested approaches certainly does: