Skip to content
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 two example apps to showcase DDL and Custom transformation #177

Open
wants to merge 15 commits into
base: dev
Choose a base branch
from

Conversation

vedhav
Copy link
Contributor

@vedhav vedhav commented Aug 9, 2024

Adds delayed-data and custom-transform app.

Note that it will take a while for this branch to be merged to the main depending on the release of the teal_transform_module feature.

Additionally, after the UI-refactor the apps have to be re-recorded.

@vedhav vedhav added the core label Aug 9, 2024
custom-transform/app.R Outdated Show resolved Hide resolved
custom-transform/app.R Outdated Show resolved Hide resolved
custom-transform/app.R Outdated Show resolved Hide resolved
Comment on lines +100 to +119
nest_logo <- "https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/PNG/nest.png"
app_source <- "https://github.com/insightsengineering/teal.gallery/tree/main/basic-teal"
gh_issues_page <- "https://github.com/insightsengineering/teal.gallery/issues"

header <- tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$span("Teal app with custom transform", style = "font-size: 30px;"),
tags$span(
style = "display: flex; align-items: center;",
tags$img(src = nest_logo, alt = "NEST logo", height = "45px", style = "margin-right:10px;"),
tags$span(style = "font-size: 24px;", "NEST @ Roche")
)
)

footer <- tags$p(
"This teal app is brought to you by the NEST Team at Roche/Genentech.
For more information, please visit:",
tags$a(href = app_source, target = "_blank", "Source Code"), ", ",
tags$a(href = gh_issues_page, target = "_blank", "Report Issues")
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not a comment for this PR, but all apps code is extended by 20 lines just to add a NEST logo
general issue here: #178

),
modules = modules(
example_module("Module with transformations", transformers = my_transformers),
example_module("Module with only iris transformation", transformers = my_transformers[1]),
Copy link
Contributor

Choose a reason for hiding this comment

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

is it really needed?

Suggested change
example_module("Module with only iris transformation", transformers = my_transformers[1]),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's okay to have this. Without this, we would have one module with transformers and one without it. Adding a transformation using the same object clears some misconceptions some people might have. For example, the my_transformers object can be used only once. It's an example to show that transformers are stacked and more importantly it shows that you have to pass transformers as a list and not a teal_transform_module object even when you have a single transform.

@@ -78,7 +93,7 @@ jobs:
- name: Checkout repo 🛎
uses: actions/checkout@v4
with:
ref: "${{ env.BRANCH_NAME }}"
ref: "669_insertUI@dev"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
ref: "669_insertUI@dev"
ref: "${{ env.BRANCH_NAME }}"

Should revert the branch checkout before merging. This was changed just to test the deployment.

@vedhav
Copy link
Contributor Author

vedhav commented Aug 13, 2024

Both the custom-transform and delayed-data apps are deployed on dev channel for testing.

@kumamiao
Copy link

@vedhav Is it possible to make the output of the custom-transform a bit more customized so that the output panel is more insightful when merging ADSL with ADTTE? i.e., only selecting several meaningful variables (i.e., ADSL: USUBJID, ARM, SEX, BMRKR1; ADTTE: USUBJID, PARAM, AVAL, AVALU, CNSR, EVNTDESC) from both data before merging?

@vedhav
Copy link
Contributor Author

vedhav commented Sep 27, 2024

Sure @kumamiao, thanks for the idea!
I have a couple of quick questions before I push the changes.

  1. Would you prefer to select the columns from a single dropdown (containing all the columns) or separate dropdowns (with columns from the respective datasets)
Screenshot 2024-09-27 at 10 36 09 AM Screenshot 2024-09-27 at 10 47 21 AM 2. Do you want to sort the column names for select options or leave them in the same order as the datasets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants