Skip to content

switch to watcher package#693

Merged
tomjemmett merged 2 commits into
mainfrom
switch_to_watcher
Jul 2, 2026
Merged

switch to watcher package#693
tomjemmett merged 2 commits into
mainfrom
switch_to_watcher

Conversation

@tomjemmett

Copy link
Copy Markdown
Member

uses shiny 1.14 and the watcher package, using shiny::devmode in the dev/watch.R script.

devmode turns on some extra checks, which throws warnings due to gt creating and input and output with the same id for every table. switching from gt_output to htmlOutput resolves this (though, it will break interactive gt tables)

uses shiny 1.14 and the watcher package, using shiny::devmode in the dev/watch.R script.

devmode turns on some extra checks, which throws warnings due to gt creating and input and output with the same id for every table. switching from gt_output to htmlOutput resolves this (though, it will break interactive gt tables)
@tomjemmett
tomjemmett marked this pull request as ready for review July 2, 2026 09:28
@tomjemmett
tomjemmett requested a review from a team as a code owner July 2, 2026 09:28
Copilot AI review requested due to automatic review settings July 2, 2026 09:28
@tomjemmett tomjemmett self-assigned this Jul 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Shiny dev workflow and gt table outputs to work with shiny::devmode() checks by replacing gt::gt_output() UI bindings with shiny::htmlOutput(), and adjusts package dependencies accordingly.

Changes:

  • Replace multiple gt::gt_output() UI elements with shiny::htmlOutput() to avoid devmode() warnings (at the cost of breaking interactive gt features).
  • Update dev/watch.R to enable shiny::devmode() and simplify app launching.
  • Update dependency metadata (shiny minimum version; swap watchrwatcher) and remove golem.app.prod option from app.R.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
R/mod_waiting_list_imbalances_ui.R Switch gt table UI from gt_output() to htmlOutput().
R/mod_run_model_ui.R Switch validation errors UI from gt_output() to htmlOutput().
R/mod_non_demographic_adjustment_ui.R Switch adjustment table UI from gt_output() to htmlOutput().
R/mod_mitigators_ui.R Switch diagnoses/procedures gt table UIs from gt_output() to htmlOutput().
R/mod_mitigators_summary_ui.R Switch summary gt table UI from gt_output() to htmlOutput().
R/mod_home_ui.R Switch model options gt table UI from gt_output() to htmlOutput().
dev/watch.R Enable shiny::devmode() and change dev launcher behavior.
DESCRIPTION Bump Shiny minimum version and replace watchr with watcher in Suggests.
app.R Remove explicit golem.app.prod option setting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/mod_home_ui.R
Comment thread R/mod_run_model_ui.R
Comment thread R/mod_waiting_list_imbalances_ui.R
Comment thread R/mod_non_demographic_adjustment_ui.R
Comment thread R/mod_mitigators_ui.R
Comment thread R/mod_mitigators_ui.R
Comment thread R/mod_mitigators_summary_ui.R
Comment thread DESCRIPTION
Comment thread dev/watch.R

@matt-dray matt-dray left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, tested locally and it works as I would expect. Pairs with The-Strategy-Unit/nhp_outputs#452.

@matt-dray matt-dray added this to the v5.3.0 milestone Jul 2, 2026
@matt-dray matt-dray added enhancement New feature or request should MoSCoW priority labels Jul 2, 2026
@tomjemmett
tomjemmett merged commit 7126ee5 into main Jul 2, 2026
3 checks passed
@tomjemmett
tomjemmett deleted the switch_to_watcher branch July 2, 2026 11:31
@matt-dray matt-dray modified the milestones: v5.3.0, v5.2.1 Jul 6, 2026
@matt-dray matt-dray modified the milestones: v5.3.0, v5.2.1 Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request should MoSCoW priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants