-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement Style functions for FilterState and Encoding Panel #8
Comments
I can't help feeling the creation of the filter panel human readable state belongs in
|
* minor improvements to docs Related to insightsengineering/teal.reporter#8
I am hesitant about adding anything regarding the encoding panel. Automatically getting all the shiny inputs will yield a lot of stuff that shouldn't make its way into a report. At the same time, the only other option is to make the module developer specify what goes in there, at which point we might as well not style it all and just let them use deparse1. Mhm... Another idea. Prepare a function that takes ns("namespace") and the list of shiny inputs and their values. Then:
I don't feel good recommending such an option and market it as a human-readable shiny inputs... |
So I believe that the encoding panel, its contents and what is transferred to the report is the responsibility of the module developer. But I think we should make things as easy as possible for them. So for example we should create a human readable output for the data_extracts (or their replacement as it'll be really hacky to get them out at the moment as they are usually too embedded in with the merge - another reason to decouple them further @gogonzo) - and for any other complex custom UI we have created like arm_ref-comp_observer (or its replacement) - we could also make things easier by having something like Then I'm imagining
or some such thing and sub-shiny modules could pass stuff up if necessary (i.e. if there's a shiny module for some of the UI in the encoding panel whose values we need to capture) |
linked to insightsengineering/NEST-roadmap#11
Create two styling functions for FilterState and Encoding Panel.
Both functions will process a
list
to get a vector of human readable strings.This is a part of our reporter UI: https://balsamiq.cloud/st5j94y/pkhl0a6/rB473
FilterState
content like that have to be human readable after applying a new function (
style_filter_state
?).e.g.
Active Filter: (ADSL.AGE between 20 and 69) and (ADSL.ARM in ("A: Drug X", "B: Placebo")) and ...
SQL syntax might be a good idea. Be careful about different data types.
Encoding Panel
We want to process shiny
input
, e.g. name = value and name in (value1, value2). Some of inputs might be more complex.Example of usage:
The text was updated successfully, but these errors were encountered: