insightsengineering / teal

Exploratory Web Apps for Analyzing Clinical Trial Data
https://insightsengineering.github.io/teal/
Other
168 stars 33 forks source link

Register bookmark exclusions #1187

Open chlebowa opened 3 months ago

chlebowa commented 3 months ago

Companion to https://github.com/insightsengineering/teal/pull/1011

As a rule, all buttons should be excluded from bookmarking. At the beginning of the module server function add shiny::setBookmarkExclude(c("<button1_id>", "<button2_id>")) to register exclusions. Note that consecutive calls to setBookmarkExclude overwrite the exclusion list so only the last one counts.

In theory some buttons should not be excluded. Analyze the code and if the button server value (number of clicks) is used, do not exclude it.

Do this for all module repos:

teal and teal reporter are already modified on branch 898_save_app_state3@main.