-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactor of the filter-panel #165
Commits on Jan 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0434383 - Browse repository at this point
Copy the full SHA 0434383View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8050f7e - Browse repository at this point
Copy the full SHA 8050f7eView commit details
Commits on Jan 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 531ee47 - Browse repository at this point
Copy the full SHA 531ee47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c9d7b0 - Browse repository at this point
Copy the full SHA 7c9d7b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c76cf4 - Browse repository at this point
Copy the full SHA 3c76cf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80740e5 - Browse repository at this point
Copy the full SHA 80740e5View commit details
Commits on Jan 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for dd391f7 - Browse repository at this point
Copy the full SHA dd391f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b27e122 - Browse repository at this point
Copy the full SHA b27e122View commit details
Commits on Feb 1, 2023
-
Nikolas Burkoff committed
Feb 1, 2023 Configuration menu - View commit details
-
Copy full SHA for 4d7d029 - Browse repository at this point
Copy the full SHA 4d7d029View commit details -
Aleksander Chlebowski committed
Feb 1, 2023 Configuration menu - View commit details
-
Copy full SHA for f8fc24a - Browse repository at this point
Copy the full SHA f8fc24aView commit details
Commits on Feb 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 73c5ce9 - Browse repository at this point
Copy the full SHA 73c5ce9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45f9164 - Browse repository at this point
Copy the full SHA 45f9164View commit details
Commits on Feb 3, 2023
-
change default argument reactive(NULL) (#180)
Nikolas Burkoff committedFeb 3, 2023 Configuration menu - View commit details
-
Copy full SHA for 1e6a91c - Browse repository at this point
Copy the full SHA 1e6a91cView commit details
Commits on Feb 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 62f58a0 - Browse repository at this point
Copy the full SHA 62f58a0View commit details
Commits on Feb 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5acf188 - Browse repository at this point
Copy the full SHA 5acf188View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3434c97 - Browse repository at this point
Copy the full SHA 3434c97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 775dff9 - Browse repository at this point
Copy the full SHA 775dff9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64f492c - Browse repository at this point
Copy the full SHA 64f492cView commit details
Commits on Feb 14, 2023
-
Merging `main` branch into `filter_panel_refactor` following #189. --------- Co-authored-by: chlebowa <chlebowa@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 89fa5be - Browse repository at this point
Copy the full SHA 89fa5beView commit details -
show & hide filter state inputs (#195)
Allows filter state inputs to collapse and expand, defaulting to collapsed. Only 1 filter state per data set can be open at a time. - For a given data set, filter information is in an accordion of collapsible cards - Only 1 filter state (per data set) can be open at a time. - Card headers show a summary of the filter state. Logical and choices filter state UIs don't display correctly, at least on Bootstrap 4. Closes #129. --------- Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 22a9dc4 - Browse repository at this point
Copy the full SHA 22a9dc4View commit details
Commits on Feb 15, 2023
-
183 choicefs improve init (#194)
# Pull Request Fixes #[183](#183) --------- Signed-off-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com> Co-authored-by: Mahmoud Hallal <86970066+mhallal1@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e9a9758 - Browse repository at this point
Copy the full SHA e9a9758View commit details
Commits on Feb 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 42d2460 - Browse repository at this point
Copy the full SHA 42d2460View commit details
Commits on Feb 21, 2023
-
start and end date validation in filter (#202)
# Pull Request Fixes #[158](#158) 1. At initialization, when values are not valid, corrections will be performed with warnings. 2. Later, when changed by the user, shinyvalidate is used. Example to test: ``` adsl <- synthetic_cdisc_dataset("latest", "adsl") app <- init( data = teal_data(dataset("ADSL", adsl)), modules = example_module(), filter = list( "ADSL" = list( RANDDT = list(selected = c("2021-02-16", "2021-02-17")), TRT01SDTM = list(selected = c("2021-02-11 17:09:18", "2021-02-10 20:42:27")) ) ) ) runApp(app) ``` --------- Signed-off-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ac6ca0b - Browse repository at this point
Copy the full SHA ac6ca0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e8875d - Browse repository at this point
Copy the full SHA 7e8875dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c163aa - Browse repository at this point
Copy the full SHA 6c163aaView commit details
Commits on Feb 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c473bba - Browse repository at this point
Copy the full SHA c473bbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for f88a195 - Browse repository at this point
Copy the full SHA f88a195View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5af7c49 - Browse repository at this point
Copy the full SHA 5af7c49View commit details
Commits on Feb 24, 2023
-
Aleksander Chlebowski committed
Feb 24, 2023 Configuration menu - View commit details
-
Copy full SHA for 468774b - Browse repository at this point
Copy the full SHA 468774bView commit details -
update example apps for refactor branch
Aleksander Chlebowski committedFeb 24, 2023 Configuration menu - View commit details
-
Copy full SHA for 3fb4f45 - Browse repository at this point
Copy the full SHA 3fb4f45View commit details -
Aleksander Chlebowski committed
Feb 24, 2023 Configuration menu - View commit details
-
Copy full SHA for 35919d9 - Browse repository at this point
Copy the full SHA 35919d9View commit details -
Aleksander Chlebowski committed
Feb 24, 2023 Configuration menu - View commit details
-
Copy full SHA for 9beb264 - Browse repository at this point
Copy the full SHA 9beb264View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2440a0d - Browse repository at this point
Copy the full SHA 2440a0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for fff70f5 - Browse repository at this point
Copy the full SHA fff70f5View commit details
Commits on Mar 1, 2023
-
Interactive FilterState (#216)
# Pull Request Fixes #[140](#140) --------- Signed-off-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com> Co-authored-by: Blazewicz <blazewim@emea.roche.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 261bac1 - Browse repository at this point
Copy the full SHA 261bac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33fce08 - Browse repository at this point
Copy the full SHA 33fce08View commit details
Commits on Mar 2, 2023
-
Aleksander Chlebowski committed
Mar 2, 2023 Configuration menu - View commit details
-
Copy full SHA for 58d35b2 - Browse repository at this point
Copy the full SHA 58d35b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07a209b - Browse repository at this point
Copy the full SHA 07a209bView commit details -
Aleksander Chlebowski committed
Mar 2, 2023 Configuration menu - View commit details
-
Copy full SHA for f907256 - Browse repository at this point
Copy the full SHA f907256View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7297d41 - Browse repository at this point
Copy the full SHA 7297d41View commit details -
Aleksander Chlebowski committed
Mar 2, 2023 Configuration menu - View commit details
-
Copy full SHA for cef4e26 - Browse repository at this point
Copy the full SHA cef4e26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f86c13 - Browse repository at this point
Copy the full SHA 6f86c13View commit details -
Merge branch 'main' into filter_panel_refactor@main
Aleksander Chlebowski committedMar 2, 2023 Configuration menu - View commit details
-
Copy full SHA for d77248b - Browse repository at this point
Copy the full SHA d77248bView commit details
Commits on Mar 3, 2023
-
filtered counts excluding $this filter (#205)
Closes #166 implements filtered counts and prepares for the hierarchical filtering
Configuration menu - View commit details
-
Copy full SHA for 03e8b25 - Browse repository at this point
Copy the full SHA 03e8b25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d70ad6 - Browse repository at this point
Copy the full SHA 0d70ad6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38d277d - Browse repository at this point
Copy the full SHA 38d277dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7486b07 - Browse repository at this point
Copy the full SHA 7486b07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2facafc - Browse repository at this point
Copy the full SHA 2facafcView commit details -
Configuration menu - View commit details
-
Copy full SHA for a163e99 - Browse repository at this point
Copy the full SHA a163e99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e9b1fc - Browse repository at this point
Copy the full SHA 8e9b1fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33622d0 - Browse repository at this point
Copy the full SHA 33622d0View commit details
Commits on Mar 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ce3d1ae - Browse repository at this point
Copy the full SHA ce3d1aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3f9766 - Browse repository at this point
Copy the full SHA b3f9766View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b5c05e - Browse repository at this point
Copy the full SHA 5b5c05eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34af770 - Browse repository at this point
Copy the full SHA 34af770View commit details
Commits on Mar 7, 2023
-
Disabling of a single filter state (#207)
Co-authored-by: Andrew Bates <andrew.bates@atorusresearch.com>
Configuration menu - View commit details
-
Copy full SHA for 6e324ea - Browse repository at this point
Copy the full SHA 6e324eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc0cb33 - Browse repository at this point
Copy the full SHA cc0cb33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 821da84 - Browse repository at this point
Copy the full SHA 821da84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b074f4 - Browse repository at this point
Copy the full SHA 8b074f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3ff3d6 - Browse repository at this point
Copy the full SHA e3ff3d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ec979b - Browse repository at this point
Copy the full SHA 4ec979bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d218074 - Browse repository at this point
Copy the full SHA d218074View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfc669a - Browse repository at this point
Copy the full SHA bfc669aView commit details
Commits on Mar 9, 2023
-
remove CDISCFilteredData and methods. Tests for FilteredData
Configuration menu - View commit details
-
Copy full SHA for dfcae46 - Browse repository at this point
Copy the full SHA dfcae46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c5e5c4 - Browse repository at this point
Copy the full SHA 3c5e5c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab6df81 - Browse repository at this point
Copy the full SHA ab6df81View commit details
Commits on Mar 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0645e72 - Browse repository at this point
Copy the full SHA 0645e72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42360a3 - Browse repository at this point
Copy the full SHA 42360a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7bb979 - Browse repository at this point
Copy the full SHA e7bb979View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17a8fc6 - Browse repository at this point
Copy the full SHA 17a8fc6View commit details
Commits on Mar 22, 2023
-
Expands the clickable area of filter cards so they expand/collapse when clicking anywhere in the card header. (except remove icon) Closes #203
Configuration menu - View commit details
-
Copy full SHA for 41894f0 - Browse repository at this point
Copy the full SHA 41894f0View commit details
Commits on Mar 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bd5f0d7 - Browse repository at this point
Copy the full SHA bd5f0d7View commit details -
Revert "disable ability to add filter when panel disabled"
This reverts commit bd5f0d7.
Configuration menu - View commit details
-
Copy full SHA for 8c9fea3 - Browse repository at this point
Copy the full SHA 8c9fea3View commit details
Commits on Mar 29, 2023
-
Nikolas Burkoff committed
Mar 29, 2023 Configuration menu - View commit details
-
Copy full SHA for 9b025a7 - Browse repository at this point
Copy the full SHA 9b025a7View commit details
Commits on Mar 30, 2023
-
Move filter panel switch to active vars (#228)
Moves the filter panel disable/enable switch into the active variables section. Closes #219 --------- Co-authored-by: Nikolas Burkoff <nikolas.burkoff@roche.com>
Configuration menu - View commit details
-
Copy full SHA for c3f86dd - Browse repository at this point
Copy the full SHA c3f86ddView commit details
Commits on Apr 14, 2023
-
187 new filter panel api (#222)
This PR contains work towards a new filter panel API as outlined in #187. **TESTING class methods**: 1. preparations ``` # get FilteredData object on demand utils::data(miniACC, package = "MultiAssayExperiment") get_fd <- function() { init_filtered_data( x = list( iris = list(dataset = iris), mtcars = list(dataset = mtcars), mae = list(dataset = miniACC) ) ) } # specify filter states (old way) fss <- list( iris = list( "Species" = list(selected = "setosa"), "Sepal.Length" = list(selected = c(5, 6)) ), mtcars = list( "disp" = list(selected = c(0, 280)), "cyl" = list(selected = 6) ), mae = list( subjects = list( years_to_birth = list(selected = c(30, 50), keep_na = TRUE, keep_inf = FALSE), vital_status = list(selected = "1", keep_na = FALSE), gender = list(selected = "female", keep_na = TRUE) ), RPPAArray = list( subset = list( ARRAY_TYPE = list(selected = "", keep_na = TRUE) ) ) ) ) # specify filter states (new way) tss <- filter_settings( filter_var("iris", "Species", selected = "setosa"), filter_var("iris", "Sepal.Length", selected = c(5, 6)), filter_var("mtcars", "disp", selected = c(0, 280)), filter_var("mtcars", "cyl", selected = 6), filter_var("mae", "years_to_birth", selected = c(30, 50), keep_na = TRUE, keep_inf = FALSE, datalabel = "subjects", target = "y"), filter_var("mae", "vital_status", selected = "1", keep_na = FALSE, datalabel = "subjects", target = "y"), filter_var("mae", "gender", selected = "female", keep_na = TRUE, datalabel = "subjects", target = "y"), filter_var("mae", "ARRAY_TYPE", selected = "", keep_na = TRUE, datalabel = "RPPAArray", target = "subset") ) ``` 2. convert old states specification to new one ``` fss_new <- as.teal_slices(fss) identical(fss, tss) identical(fss_new, tss) ``` :point_up: this happens in `FilteredData$set_filter_state` with a warning Note `as.teal_slices` does not perform any validation, so a list-like filter state that specifies filters on columns of `MAE@colData` that is not wrapped as `list(MAE = list(...))` but is only `list(var = list(...))` will be interpreted as a `data.frame` filter. 3. set states as list ``` # create FilteredData fd <- get_fd() # apply filter states fd$set_filter_state(fss) # see calls fd$get_call("iris") %>% isolate fd$get_call("mtcars") %>% isolate fd$get_call("mae") %>% isolate #recover filter states fd$get_filter_state() %>% isolate ``` 4. set states as `teal_slices` ``` # create FilteredData fd <- get_fd() # apply filter states fd$set_filter_state(tss) # see calls fd$get_call("iris") %>% isolate fd$get_call("mtcars") %>% isolate fd$get_call("mae") %>% isolate #recover filter states fd$get_filter_state() %>% isolate ``` Note that calls are not generated. This is these filters are instantiated and constructors don't know how to handle choices yet, so by default they are created with everything selected, hence no calls. 5. modify states as `teal_slices` ``` fd$set_filter_state(tss) # see calls fd$get_call("iris") %>% isolate fd$get_call("mtcars") %>% isolate fd$get_call("mae") %>% isolate #recover filter states fd$get_filter_state() %>% isolate ``` **TESTING wrapper functions**: ``` datasets <- init_filtered_data( x = list( iris = list(dataset = iris), mae = list(dataset = miniACC) ) ) fs <- filter_settings( filter_var("iris", "Species", selected = c("setosa", "versicolor")), filter_var("iris", "Sepal.Length", selected = c(5.1, 6.4)), filter_var("mae", "years_to_birth", selected = c(30, 50), keep_na = TRUE, keep_inf = FALSE, datalabel = "subjects", target = "y"), filter_var("mae", "vital_status", selected = "1", keep_na = FALSE, datalabel = "subjects", target = "y"), filter_var("mae", "gender", selected = "female", keep_na = TRUE, datalabel = "subjects", target = "y"), filter_var("mae", "ARRAY_TYPE", selected = "", keep_na = TRUE, datalabel = "RPPAArray", target = "subset") ) # set initial filter state set_filter_state(datasets, filter = fs) fd$.__enclos_env__$private$get_filter_count() %>% isolate # get filter state get_filter_state(datasets) fd$.__enclos_env__$private$get_filter_count() %>% isolate # modify filter state set_filter_state( datasets, filter_settings( filter_var("iris", "Species", selected = "setosa", keep_na = TRUE) ) ) fd$.__enclos_env__$private$get_filter_count() %>% isolate # remove specific filters remove_filter_state( datasets, filter_settings( filter_var("iris", "Species"), filter_var("mae", "years_to_birth"), filter_var("mae", "vital_status") ) ) fd$.__enclos_env__$private$get_filter_count() %>% isolate # remove all states clear_filter_states(datasets) fd$.__enclos_env__$private$get_filter_count() %>% isolate ``` --------- Signed-off-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com> Co-authored-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com> Co-authored-by: Blazewicz <blazewim@emea.roche.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 29937b7 - Browse repository at this point
Copy the full SHA 29937b7View commit details -
Merge branch 'main' into filter_panel_refactor@main
Signed-off-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 25dfa37 - Browse repository at this point
Copy the full SHA 25dfa37View commit details -
Configuration menu - View commit details
-
Copy full SHA for a340d78 - Browse repository at this point
Copy the full SHA a340d78View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8d8d2a - Browse repository at this point
Copy the full SHA b8d8d2aView commit details
Commits on Apr 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e5c914f - Browse repository at this point
Copy the full SHA e5c914fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b42b079 - Browse repository at this point
Copy the full SHA b42b079View commit details
Commits on Apr 26, 2023
-
Initialize FilterState based on count type (#247)
Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3f412e1 - Browse repository at this point
Copy the full SHA 3f412e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c52af31 - Browse repository at this point
Copy the full SHA c52af31View commit details
Commits on May 2, 2023
-
Fix bug in ChoicesFilterState count labels (#261)
Fixes a bug in the count labels for `ChoicesFilterState`. Uses the x with any unused levels removed to set choices counts. Fixes #260
Configuration menu - View commit details
-
Copy full SHA for 97c65ed - Browse repository at this point
Copy the full SHA 97c65edView commit details
Commits on May 3, 2023
-
filterable through appi - removed set_filteravle_varnames. Setting filterable possible only through teal_slices - moved get_fillter_state to abstract class
Configuration menu - View commit details
-
Copy full SHA for 0003dab - Browse repository at this point
Copy the full SHA 0003dabView commit details -
Configuration menu - View commit details
-
Copy full SHA for b64a134 - Browse repository at this point
Copy the full SHA b64a134View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef1cce5 - Browse repository at this point
Copy the full SHA ef1cce5View commit details
Commits on May 4, 2023
-
Update card summary design (#255)
Updates the summary row of the card header. - Removes "Include" for NA/Inf - Move NA/Inf contents further to the right of the card summary. - NA/Inf displays "NA/Inf" with a check or X. Check if yes, X if no. If no NA or Inf are present in the column, nothing is displayed - For value/selected portion of summary, the text is automatically truncated depending on screen width. - For categorical variables, the selected/value display is as follows - if the total length of "level 1, level 2, level 3" is more than 40 characters, the text "N levels selected" is used. - otherwise, the selected levels are displayed - 40 characters is a magic number and is an approximation. I found it to be ~300px which is the total text limit. But different font sizes, capitalization vs. not, browser zoom, etc. will all affect the actual number of characters that = Xpx. So there's never going to be a "right" value for this - For numeric and dates, an endash is used instead of "-" to separate the selected values - For numeric variables, if there are > 4 significant digits the number is formatted in scientific notation with 4 significant digits. This is related to #251. If the current implementation is not exactly what we want, it should affect this PR. We can refine the method with #251. - The font size of some peripherals of input elements were adjusted to match the font size in the card header. Fixes #220
Configuration menu - View commit details
-
Copy full SHA for c9cca2d - Browse repository at this point
Copy the full SHA c9cca2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31bc42b - Browse repository at this point
Copy the full SHA 31bc42bView commit details
Commits on May 5, 2023
-
alternative UI for fixed filter state (#257)
related to #244 closes #141 This version provides a richer UI for a fixed filter state card compared to #244 FilterState has a private$fixed field that holds a logical flag. In this PR: * a fixed FilterState has a lock icon added to the header part of the UI * a fixed FilterState displays visualizations of the selection state as usual, but without input widgets * FilterState$disable/enable are rewritten to accommodate for the need to disable/enable a fixed filter state --------- Signed-off-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com> Co-authored-by: Andrew Bates <andrew.bates@atorusresearch.com>
Configuration menu - View commit details
-
Copy full SHA for fb77f41 - Browse repository at this point
Copy the full SHA fb77f41View commit details -
Configuration menu - View commit details
-
Copy full SHA for da1ede1 - Browse repository at this point
Copy the full SHA da1ede1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c5c817 - Browse repository at this point
Copy the full SHA 7c5c817View commit details
Commits on May 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0219b06 - Browse repository at this point
Copy the full SHA 0219b06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 722f75b - Browse repository at this point
Copy the full SHA 722f75bView commit details -
Closes #206. Changes the bahavior of `FilteredData$filter_panel_disable/enable`. Filter states are no longer removed and re-instantiated. Rather, their state is changed to disabled/enabled by sending a filter panel API command down the class structure. * the global disable/enable method is modified appropriately * caching individual filter states is removed; caching states at the global level is necessary as some states should be restored disabled * an observer is added to `FilterState$server` to update the disable switch accordingly
Configuration menu - View commit details
-
Copy full SHA for 55d4cf4 - Browse repository at this point
Copy the full SHA 55d4cf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f8bb3f - Browse repository at this point
Copy the full SHA 5f8bb3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d5d649 - Browse repository at this point
Copy the full SHA 5d5d649View commit details
Commits on May 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7465005 - Browse repository at this point
Copy the full SHA 7465005View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb82947 - Browse repository at this point
Copy the full SHA cb82947View commit details
Commits on May 10, 2023
-
Prevent disable/remove buttons from overflowing card (#275)
Keeps the disable switch and remove icon inside the card if the browser width narrows. Fixes #236
Configuration menu - View commit details
-
Copy full SHA for 9d2de59 - Browse repository at this point
Copy the full SHA 9d2de59View commit details
Commits on May 11, 2023
-
Closes #273. Modifies `FilteredData$filter_panel_disable/enable` to also affect the `filter_active_vars_contents` div.
Configuration menu - View commit details
-
Copy full SHA for 7111054 - Browse repository at this point
Copy the full SHA 7111054View commit details -
introduced `filter_expr` which creates FilterStateExpr
Configuration menu - View commit details
-
Copy full SHA for 76676d5 - Browse repository at this point
Copy the full SHA 76676d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f612435 - Browse repository at this point
Copy the full SHA f612435View commit details -
Configuration menu - View commit details
-
Copy full SHA for 141ce66 - Browse repository at this point
Copy the full SHA 141ce66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 495e24d - Browse repository at this point
Copy the full SHA 495e24dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a217bf - Browse repository at this point
Copy the full SHA 3a217bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for b65fc81 - Browse repository at this point
Copy the full SHA b65fc81View commit details
Commits on May 22, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for 7555882 - Browse repository at this point
Copy the full SHA 7555882View commit details
Commits on May 24, 2023
-
Remove get_formatted_filter_state and change format method to generic…
Configuration menu - View commit details
-
Copy full SHA for 0c0ddb0 - Browse repository at this point
Copy the full SHA 0c0ddb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5cb849 - Browse repository at this point
Copy the full SHA d5cb849View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ca9e5e - Browse repository at this point
Copy the full SHA 0ca9e5eView commit details
Commits on May 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7b9498a - Browse repository at this point
Copy the full SHA 7b9498aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0ee5fa - Browse repository at this point
Copy the full SHA e0ee5faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 307bc05 - Browse repository at this point
Copy the full SHA 307bc05View commit details -
309 - shorten line widths for FilterState* tests (#310)
fix #309 Make test lines shorten than 120 characters. This is required with lintr check
Configuration menu - View commit details
-
Copy full SHA for f91bfad - Browse repository at this point
Copy the full SHA f91bfadView commit details -
Configuration menu - View commit details
-
Copy full SHA for e268f96 - Browse repository at this point
Copy the full SHA e268f96View commit details
Commits on May 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3df2b6a - Browse repository at this point
Copy the full SHA 3df2b6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e61bca4 - Browse repository at this point
Copy the full SHA e61bca4View commit details
Commits on Jun 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for deaba92 - Browse repository at this point
Copy the full SHA deaba92View commit details
Commits on Jun 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ca45b5d - Browse repository at this point
Copy the full SHA ca45b5dView commit details
Commits on Jun 6, 2023
-
Reverting changes of docs github actions builds (#326) (#327)
This build is not needed for feature branches. Let's only stay with the check github actions build for filter_panel_refactor@main branch. Sorry for the confusion
Configuration menu - View commit details
-
Copy full SHA for 05a3a27 - Browse repository at this point
Copy the full SHA 05a3a27View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfd95a5 - Browse repository at this point
Copy the full SHA dfd95a5View commit details
Commits on Jun 7, 2023
-
279 add multiple argument to filter_var ChoicesFilterState and Logica…
…lFilterState (#296) In ChoicesFilterState's initialize and LogicalFilterState's initialize methods, _**multiple**_ arguments have been added. These arguments should be included in the return statement of the get_state method. Furthermore, if the user selects "multiple = F", the checkboxgroupinput should be replaced with a radiobutton. closes #250 #279 --------- Signed-off-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Co-authored-by: Andrew Bates <andrew.bates@atorusresearch.com> Co-authored-by: kartikeya <kartikeya.kirar@unicle.life> Co-authored-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2874429 - Browse repository at this point
Copy the full SHA 2874429View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dec459 - Browse repository at this point
Copy the full SHA 9dec459View commit details -
Closes #280 Adds a `locked` property to `FilterState` class. A locked filter state cannot be disabled or removed but can still be modified. `locked` and `fixed` properties can be set independently of one another. Changes to `FilterState` class: * `locked` argument is added to constructors and wrappers; the argument receives a logical flag and defaults to `FALSE` * a private field `locked` is added to `FilterState` to store the property * `$get_state` is modified to return the `locked` value in addition to all other filter state properties * `$set state` is modified to interrupt an attempt at disabling a filter state that is locked * `$ui` is modified to only display the disable and remove buttons if `private$locked` is `FALSE` * `$ui` is modified to display an additional icon if `private$locked` is `TRUE` * Analogous changes are made to `FilterStateExpr` class. * The `locked` argument is also added to `filter_var`. * Modified `FilterStates$remove_filter_state` and `FilterStates$clear_filter_states` so that locked filter states are omitted. * The `lock` icon has been transferred from the `fixed` property to the `locked` property. A fixed state thus needs a new icon. `burst` is used as a placeholder but a suitable replacement must be found. * Unit tests were amended.
Configuration menu - View commit details
-
Copy full SHA for 25a2608 - Browse repository at this point
Copy the full SHA 25a2608View commit details -
fixing build fail and adding additional test to fix. (#328)
# fixing build fails (https://github.com/insightsengineering/teal.slice/actions/runs/5197026426) Here I fixed the build fail issue by adding internal calls to examples and fixing filter_var example. Co-authored-by: kartikeya <kartikeya.kirar@unicle.life>
Configuration menu - View commit details
-
Copy full SHA for 1e2c0b1 - Browse repository at this point
Copy the full SHA 1e2c0b1View commit details
Commits on Jun 8, 2023
-
emphasize named-entities with quotes to reduce the scope of WORDLIST (#…
…331) Final spell-check WORD FOUND IN cloneable ChoicesFilterState.Rd:242 DateFilterState.Rd:235 DatetimeFilterState.Rd:245 DefaultFilteredDataset.Rd:252 DFFilterStates.Rd:206 EmptyFilterState.Rd:146 FilteredData.Rd:940 FilteredDataset.Rd:395 FilterPanelAPI.Rd:175 FilterState.Rd:289 FilterStateExpr.Rd:334 FilterStates.Rd:347 LogicalFilterState.Rd:222 MAEFilteredDataset.Rd:221 MAEFilterStates.Rd:107 MatrixFilterStates.Rd:79 RangeFilterState.Rd:262 SEFilterStates.Rd:149 Forkers README.md:42,52,54 funder teal.slice-package.Rd:26 Hoffmann teal.slice-package.Rd:26 programmatically NEWS.md:21 teal-slice.Rmd:95 repo README.md:9,15,50,54 reproducibility FilteredData.Rd:174,322,518,526 init_filtered_data.Rd:24 NEWS.md:93 UI DefaultFilteredDataset.Rd:214,216,230 FilteredData.Rd:738,782,809,830,854,875,884,922 FilteredDataset.Rd:298,300,315,333,345,347,361,383 FilterState.Rd:255,265 FilterStateExpr.Rd:313,323 FilterStates.Rd:179,256,258,301,335 MAEFilteredDataset.Rd:185,187,201 MAEFilterStates.Rd:86 SEFilterStates.Rd:100,137 filter-panel.Rmd:151 teal-slice.Rmd:48
Configuration menu - View commit details
-
Copy full SHA for b718f8c - Browse repository at this point
Copy the full SHA b718f8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64a1ea0 - Browse repository at this point
Copy the full SHA 64a1ea0View commit details
Commits on Jun 14, 2023
-
234 range selection with
plotly
(#289)Closes #234 Closes #233 Replaces the range slider in `RangeFilterState` with an interactive `plotly` graph. Two shapes (lines) are drawn on the plot that can be dragged and their position is tracked. An observer listens to events emitted by the plot when shapes are altered (this event is called a "plotly_relayout") and updates selection. Another observer listens to the manual input and updates selection. Finally, a third observer listens to the selection and updates the manual input as well as the shapes on the plot. Since the graph is slower to render, a spinner is added to it to alleviate the negative effect on UX. Numeric (manual) input is now displayed simultaneously with the graphic input, not alternatively. Numeric input receives a debounce. --------- Signed-off-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Signed-off-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Co-authored-by: kartikeya <kartikeya.kirar@unicle.life>
Configuration menu - View commit details
-
Copy full SHA for 4ec0499 - Browse repository at this point
Copy the full SHA 4ec0499View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9de04e - Browse repository at this point
Copy the full SHA d9de04eView commit details -
Aleksander Chlebowski committed
Jun 14, 2023 Configuration menu - View commit details
-
Copy full SHA for 1b8c356 - Browse repository at this point
Copy the full SHA 1b8c356View commit details
Commits on Jun 16, 2023
-
Module specific filter panels. (#300)
Closes #135 and #137 1. `FilterStates$srv_active` uses `renderUI` instead of `insertUI`. 2. `teal_slice` has now obligatory `id` field. 3. `teal_slice` object is now a `reactiveValues` which is passed and stored directly to `FilterState`. This `teal_slice` object can be returned using `FilterState$get_state`. This gives possibility that one `teal_slice` object can be present in the same time in multiple `FilterState` object. This simplifies little constructor of `FilterState` as we don't have to have check again assertions on dataname, varname etc. 4. removed `disabled` functionality as it conflicts with module specific feature. Discussed with @lcd2yyz and we decided to develop some alternatives to quickly activate/deactivate filters. See (5) 5. added `set_available_teal_slice` (public) and `ui/srv_available_filters` to link `srv/ui_active` with some reactive list of "available" slices. This gives a possibility to activate/deactivate particular state. This reactive list of states is set in teal which gathers all modules filters and creates a one unique list of available filters. Co-authored-by: Aleksander Chlebowski <aleksander.chlebowski@contractors.roche.com>
Configuration menu - View commit details
-
Copy full SHA for a397599 - Browse repository at this point
Copy the full SHA a397599View commit details -
Configuration menu - View commit details
-
Copy full SHA for 724dd0d - Browse repository at this point
Copy the full SHA 724dd0dView commit details
Commits on Jun 19, 2023
-
improve testing for multiple choices
Aleksander Chlebowski committedJun 19, 2023 Configuration menu - View commit details
-
Copy full SHA for d0ed661 - Browse repository at this point
Copy the full SHA d0ed661View commit details -
Aleksander Chlebowski committed
Jun 19, 2023 Configuration menu - View commit details
-
Copy full SHA for cb639ee - Browse repository at this point
Copy the full SHA cb639eeView commit details -
Aleksander Chlebowski committed
Jun 19, 2023 Configuration menu - View commit details
-
Copy full SHA for bf7876c - Browse repository at this point
Copy the full SHA bf7876cView commit details -
Aleksander Chlebowski committed
Jun 19, 2023 Configuration menu - View commit details
-
Copy full SHA for a247b51 - Browse repository at this point
Copy the full SHA a247b51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1aff647 - Browse repository at this point
Copy the full SHA 1aff647View commit details -
Aleksander Chlebowski committed
Jun 19, 2023 Configuration menu - View commit details
-
Copy full SHA for 97b3ea1 - Browse repository at this point
Copy the full SHA 97b3ea1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cfe1ab - Browse repository at this point
Copy the full SHA 2cfe1abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b34a4d - Browse repository at this point
Copy the full SHA 5b34a4dView commit details
Commits on Jun 20, 2023
-
341 available locked@filter panel refactor@main (#345)
@lcd2yyz expressed satisfaction with current solution 👍
Configuration menu - View commit details
-
Copy full SHA for 446db86 - Browse repository at this point
Copy the full SHA 446db86View commit details -
263 update filter card css to make consistent spacing. (#325)
### closes #263 Removed the margin and spaces between labels. - Reduced the size of the checkbox label to make it same size as the group checkbox - Removed margin for prettyswitch. ![image](https://github.com/insightsengineering/teal.slice/assets/6700955/3f76d4a4-662c-4aaa-9298-aba70654ea92) --------- Signed-off-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Co-authored-by: kartikeya <kartikeya.kirar@unicle.life> Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Co-authored-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com> Co-authored-by: Aleksander Chlebowski <aleksander.chlebowski@contractors.roche.com>
Configuration menu - View commit details
-
Copy full SHA for 3d885d2 - Browse repository at this point
Copy the full SHA 3d885d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26c154d - Browse repository at this point
Copy the full SHA 26c154dView commit details
Commits on Jun 21, 2023
-
Closes #344 Also fixes some documentation errors in other places. Also moves `$is_multiple` from `ChoicesFilterState` and `LogicalFilterState` to `FilterState`. --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 128ab44 - Browse repository at this point
Copy the full SHA 128ab44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61996ad - Browse repository at this point
Copy the full SHA 61996adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4650532 - Browse repository at this point
Copy the full SHA 4650532View commit details -
330 [Feature Request]: Option to not show module_add (#353)
this fixes #330 In this pull request (PR), the module_add parameter is introduced in teal.slice::filter_settings(). This addition conceals the module that handles the display of dropdowns containing variables used to add a filter from filteredData.R. ### testing module ``` funny_module <- function (label = "Filter states", datanames = "all") { checkmate::assert_string(label) module( label = label, filters = datanames, ui = function(id, ...) { ns <- NS(id) div( h2("The following filter calls are generated:"), verbatimTextOutput(ns("filter_states")), verbatimTextOutput(ns("filter_calls")), actionButton(ns("reset"), "reset_to_default") ) }, server = function(input, output, session, data, filter_panel_api) { checkmate::assert_class(data, "tdata") observeEvent(input$reset, set_filter_state(filter_panel_api, default_filters)) output$filter_states <- renderPrint({ logger::log_trace("rendering text1") filter_panel_api %>% get_filter_state() }) output$filter_calls <- renderText({ logger::log_trace("rendering text2") attr(data, "code")() }) } ) } ``` ### CDISC example ``` options(teal.log_level = "TRACE", teal.show_js_log = TRUE) #options("teal.bs_theme" = bslib::bs_theme(version = 4)) #options(shiny.trace = TRUE) devtools::load_all("teal.slice") library(teal) library(scda) ADSL <- synthetic_cdisc_data("latest")$adsl ADSL$empty <- NA ADSL$logical1 <- FALSE ADSL$logical <- sample(c(TRUE, FALSE), size = nrow(ADSL), replace = TRUE) ADSL$numeric <- rnorm(nrow(ADSL)) ADSL$categorical2 <- sample(letters[1:10], size = nrow(ADSL), replace = TRUE) ADSL$categorical <- sample(letters[1:3], size = nrow(ADSL), replace = TRUE, prob = c(.1, .3, .6)) ADSL$date <- Sys.Date() + seq_len(nrow(ADSL)) ADSL$date2 <- rep(Sys.Date() + 1:3, length.out = nrow(ADSL)) ADSL$datetime <- Sys.time() + seq_len(nrow(ADSL)) * 3600 * 12 ADSL$datetime2 <- rep(Sys.time() + 1:3 * 43200, length.out = nrow(ADSL)) ADSL$numeric[sample(1:nrow(ADSL), size = 10)] <- NA ADSL$numeric[sample(1:nrow(ADSL), size = 10)] <- Inf ADSL$logical[sample(1:nrow(ADSL), size = 10)] <- NA ADSL$date[sample(1:nrow(ADSL), size = 10)] <- NA ADSL$datetime[sample(1:nrow(ADSL), size = 10)] <- NA ADSL$categorical2[sample(1:nrow(ADSL), size = 10)] <- NA ADSL$categorical[sample(1:nrow(ADSL), size = 10)] <- NA ADTTE <- synthetic_cdisc_data("latest")$adtte ADRS <- synthetic_cdisc_data("latest")$adrs ADTTE$numeric <- rnorm(nrow(ADTTE)) ADTTE$numeric[sample(1:nrow(ADTTE), size = 10,)] <- NA default_filters <- filter_settings( filter_var(dataname = "ADSL", varname = "categorical", selected = c("a", "b"), disabled = TRUE), filter_var(dataname = "ADSL", varname = "categorical2", selected = c("a", "b"), disabled = TRUE), filter_var(dataname = "ADSL", varname = "numeric", selected = c(0, 140), keep_na = TRUE, keep_inf = TRUE, disabled = TRUE), filter_var(dataname = "ADSL", varname = "logical", selected = c(T), keep_na = TRUE, keep_inf = TRUE, disabled = TRUE), filter_var(dataname = "ADSL", varname = "datetime", disabled = TRUE), filter_var(dataname = "ADSL", varname = "date2", disabled = TRUE), filter_expr(id = "AF", title = "ADULT FEMALE", dataname = "ADSL", expr = "SEX %in% 'F' & AGE >= 18L", disabled = TRUE), filter_expr(id = "SE", title = "Safety-Evaluable", dataname = "ADSL", expr = "SAFFL == 'Y'", disabled = TRUE), filter_var(dataname = "ADSL", varname = "COUNTRY", selected = c("USA", "CAN", "JPN"), fixed = T, disabled = TRUE), count_type = "all", #include_varnames = list(ADSL = c("SEX", "categorical2", "numeric", "logical", "date", "datetime", "date2", "datetime2", "COUNTRY")), exclude_varnames = list( ADTTE = intersect(colnames(ADSL), colnames(ADTTE)), ADRS = colnames(ADSL) ), module_add = FALSE ) data <- cdisc_data( cdisc_dataset("ADSL", ADSL), cdisc_dataset("ADTTE", ADTTE), cdisc_dataset("ADRS", ADRS) ) app <- init( data = data, modules = list( tm_data_table( variables_selected = list(ADSL = c("STUDYID", "USUBJID", "SUBJID", "SITEID", "AGE", "SEX")), dt_args = list(caption = "ADSL Table Caption") ), funny_module() ), filter = default_filters ) runApp(app) ``` --------- Signed-off-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Co-authored-by: kartikeya <kartikeya.kirar@unicle.life> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com> Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 28ff2b2 - Browse repository at this point
Copy the full SHA 28ff2b2View commit details
Commits on Jun 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0e79b9b - Browse repository at this point
Copy the full SHA 0e79b9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7249bf5 - Browse repository at this point
Copy the full SHA 7249bf5View commit details
Commits on Jun 23, 2023
-
299 decouple scda from teal.slice (#357)
A resolution for #299 where we removed package from DESCRIPTION file and staged_dependencies.yaml as the package is not used anywhere in particular.
Configuration menu - View commit details
-
Copy full SHA for e4e821c - Browse repository at this point
Copy the full SHA e4e821cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d11d26c - Browse repository at this point
Copy the full SHA d11d26cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3016c88 - Browse repository at this point
Copy the full SHA 3016c88View commit details
Commits on Jun 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 13f3be8 - Browse repository at this point
Copy the full SHA 13f3be8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1650c9e - Browse repository at this point
Copy the full SHA 1650c9eView commit details -
329 storage for teal_slices (#339)
A follow-up after #329 This PR provides new `store` and `restore` functions that saves `teal_slices` objects in JSON format and also restores them. It also changes the implementation of `format.teal_slice*` that is consistent with the format we decided on for storing. Below are a few examples of the output and a small logic of how things work now - `print` is cat over `format` (both in `teal_slice` and `teal_slices`) - `store` is applicable only for `teal_slices` - `format` for `teal_slices` uses the format for `teal_slice` + appends attributes - `format` for `teal_slice` calls `to_json` which calls `to_list` - `format` for `teal_slice` has an option to `show_all` (values set to NULL) - `format` for `teal_slice` has an option to trim JSON - `format` for `teal_slice` centers JSON --------- Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Co-authored-by: Aleksander Chlebowski <aleksander.chlebowski@contractors.roche.com> Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com> Co-authored-by: pawelru <pawelru@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 96ce823 - Browse repository at this point
Copy the full SHA 96ce823View commit details
Commits on Jun 29, 2023
-
bug fix: srv_available_filters dropdownMenu initializes partially off…
… the screen (#365) This PR fixes: #343 To address the issue caused by the dynamic transformation of the tippy_popper CSS class, particularly the transform property where the first element is dynamically changing based on screen size but on initialization its not behaving correctly, ![image](https://github.com/insightsengineering/teal.slice/assets/6700955/f9be71c4-5895-4ab0-b667-208ac7cbfe31) The transform property was not calculating the correct position in the DOM during the initial setup in these scenarios. I attempted to make it more static by fixing the transformX property, but this solution only worked properly in the regular version or with Bootstrap 4/5. I delved deeper into other options available with tippy.JS, which can be found at [atomiks.github.io/tippyjs/v5/all-props/](https://atomiks.github.io/tippyjs/v5/all-props/), specifically exploring the dropMenuOptions ([dropMenuOptions](https://dreamrs.github.io/shinyWidgets/reference/dropMenuOptions.html)). However, none of these options provided the desired result. Upon further investigation, I discovered that increasing the width of the displayed section correctly calculated the position of the element in comparison. Therefore, I made modifications to the inner element property to maximize its width, which successfully resolved the current issue. Personally, I'm not entirely satisfied with this solution, but it is the only workaround that fixes the issue in all versions of Bootstrap and the regular version. If you have any suggestions for alternative ways to address this issue, I would greatly appreciate it. for bs version `options("teal.bs_theme" = bslib::bs_theme(version = 4))` testing app ``` library(teal.slice) library(teal) library(scda) funny_module <- function (label = "Filter states", datanames = "all") { checkmate::assert_string(label) module( label = label, filters = datanames, ui = function(id, ...) { ns <- NS(id) div( h2("The following filter calls are generated:"), verbatimTextOutput(ns("filter_states")), verbatimTextOutput(ns("filter_calls")), actionButton(ns("reset"), "reset_to_default") ) }, server = function(input, output, session, data, filter_panel_api) { checkmate::assert_class(data, "tdata") observeEvent(input$reset, set_filter_state(filter_panel_api, default_filters)) output$filter_states <- renderPrint({ logger::log_trace("rendering text1") filter_panel_api %>% get_filter_state() }) output$filter_calls <- renderText({ logger::log_trace("rendering text2") attr(data, "code")() }) } ) } ADSL <- synthetic_cdisc_data("latest")$adsl ADSL$numeric <- runif(nrow(ADSL)) ADSL$numeric[sample(1:nrow(ADSL), size = 10)] <- NA ADSL$numeric[sample(1:nrow(ADSL), size = 10)] <- Inf default_filters <- teal::teal_filters( filter_var(dataname = "ADSL", varname = "numeric"), mapping = list(`filter module` = "ADSL numeric") ) app <- init( data = cdisc_data( cdisc_dataset("ADSL", ADSL) ), modules = modules( funny_module("filter module") ), filter = default_filters ) runApp(app) ``` --------- Co-authored-by: kartikeya <kartikeya.kirar@unicle.life> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for a5c9e48 - Browse repository at this point
Copy the full SHA a5c9e48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c2d68b - Browse repository at this point
Copy the full SHA 3c2d68bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33129de - Browse repository at this point
Copy the full SHA 33129deView commit details
Commits on Jun 30, 2023
-
371 fix format for dates/times (#372)
fix #371 --------- Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 08235e7 - Browse repository at this point
Copy the full SHA 08235e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd02fb5 - Browse repository at this point
Copy the full SHA cd02fb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35ce207 - Browse repository at this point
Copy the full SHA 35ce207View commit details
Commits on Jul 5, 2023
-
filter_var
andfilter_expr
toteal_slice
(#370)rename and docs fixing
Configuration menu - View commit details
-
Copy full SHA for 8bb6093 - Browse repository at this point
Copy the full SHA 8bb6093View commit details -
Configuration menu - View commit details
-
Copy full SHA for db26a21 - Browse repository at this point
Copy the full SHA db26a21View commit details
Commits on Jul 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1ed19fe - Browse repository at this point
Copy the full SHA 1ed19feView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3d738e - Browse repository at this point
Copy the full SHA e3d738eView commit details
Commits on Jul 10, 2023
-
378 trim_lines parameter in format (#379)
Closes #378 This PR provides an ability to pass `trim_lines` parameter for `$format()` method of FilterState, FilerStates, FilteredDataset and FilteredData R6 objects. --------- Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com> Co-authored-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com> Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7c5dc53 - Browse repository at this point
Copy the full SHA 7c5dc53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a5901f - Browse repository at this point
Copy the full SHA 6a5901fView commit details
Commits on Jul 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0ee90f3 - Browse repository at this point
Copy the full SHA 0ee90f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8594655 - Browse repository at this point
Copy the full SHA 8594655View commit details
Commits on Jul 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d4c01c7 - Browse repository at this point
Copy the full SHA d4c01c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58a1d68 - Browse repository at this point
Copy the full SHA 58a1d68View commit details
Commits on Jul 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7c8e757 - Browse repository at this point
Copy the full SHA 7c8e757View commit details -
Configuration menu - View commit details
-
Copy full SHA for 031f933 - Browse repository at this point
Copy the full SHA 031f933View commit details
Commits on Jul 14, 2023
-
closes #52 --------- Co-authored-by: Aleksander Chlebowski <aleksander.chlebowski@contractors.roche.com> Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: m7pr <marcin.kosinski.mk1@roche.com>
Configuration menu - View commit details
-
Copy full SHA for a3fb7e8 - Browse repository at this point
Copy the full SHA a3fb7e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f34cc55 - Browse repository at this point
Copy the full SHA f34cc55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a94e61 - Browse repository at this point
Copy the full SHA 2a94e61View commit details