-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add teal app modifiers and deprecate init args #1440
Conversation
Unit Tests Summary 1 files 28 suites 10m 39s ⏱️ Results for commit 62e836f. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 24910e0 ♻️ This comment has been updated with latest results. |
1fb5028
to
aa60c14
Compare
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.
Some room for improvement
ef65f87
to
0af8a67
Compare
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
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.
ui_teal
shouldn't have header
, footer
, title
arguments. Deprecation in init only is a half-measure. Please use add_header
and add_title
in teal::init
body instead of passing arguments to ui_teal
.
Edit: Same applies to module_teal_with_splash
Co-authored-by: Dawid Kałędkowski <[email protected]>
9334e2c
to
489a28c
Compare
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.
Thanks 👍
tags$title("teal app"), | ||
tags$link( | ||
rel = "icon", | ||
href = "https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/PNG/nest.png", |
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.
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.
Sure
tags$title("teal app"), | ||
tags$link( | ||
rel = "icon", | ||
href = "https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/PNG/nest.png", |
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.
Closes #1310 and #1143
Changes
title
,header
, andfooter
are soft deprecated in favor of usingadd_title
,add_header
,add_footer
, andadd_landing_popup
add_custom_server
modifier to add custom server logic to the main shiny app.landing_popup_module
to the previous way by passing it inside themodules
|>
Example app with the new app modifiers.