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

Feature branch PR #1253

Merged
merged 231 commits into from
Aug 13, 2024
Merged

Feature branch PR #1253

merged 231 commits into from
Aug 13, 2024

Commits on Jun 26, 2024

  1. WIP

    - reactive data
    - initialize modules ui
    gogonzo committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    e0405b9 View commit details
    Browse the repository at this point in the history
  2. remove bslib::card

    gogonzo committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    5ba1325 View commit details
    Browse the repository at this point in the history
  3. minor changes

    gogonzo committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    74d4cd9 View commit details
    Browse the repository at this point in the history
  4. call modules and filter-panel

    gogonzo committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    8c18a37 View commit details
    Browse the repository at this point in the history
  5. comments

    gogonzo committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    81ba5aa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e434c6d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    719a28e View commit details
    Browse the repository at this point in the history
  8. missing stuff from srv_teal

    gogonzo committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    e84caed View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7621ae1 View commit details
    Browse the repository at this point in the history
  10. todos

    gogonzo committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    916e1f7 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    0c42abe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91e8c9a View commit details
    Browse the repository at this point in the history
  3. comment

    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    7758a4f View commit details
    Browse the repository at this point in the history
  4. another todo

    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    bd53634 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fc6e27a View commit details
    Browse the repository at this point in the history
  6. feat: add the filter_hamburger

    vedhav committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    080e863 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a599d8d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5f98a9a View commit details
    Browse the repository at this point in the history
  9. chore: remove local log

    vedhav committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    8e78255 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8a2222e View commit details
    Browse the repository at this point in the history
  11. fix available_slices

    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    cb33d64 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    31786bc View commit details
    Browse the repository at this point in the history
  13. filter manager WIP

    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    a231038 View commit details
    Browse the repository at this point in the history
  14. filter manager

    - mapping_matrix works
    - initializing filters works
    - restoring filters after data reload works
    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    02390f6 View commit details
    Browse the repository at this point in the history
  15. another comment

    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    d90597e View commit details
    Browse the repository at this point in the history
  16. comments

    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    476c124 View commit details
    Browse the repository at this point in the history
  17. more comments

    gogonzo committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    c25d94a View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    8e31df0 View commit details
    Browse the repository at this point in the history
  2. active_datanames WIP

    gogonzo committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    c69c009 View commit details
    Browse the repository at this point in the history
  3. resolving some comments

    gogonzo committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    1f59b92 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f709f7 View commit details
    Browse the repository at this point in the history
  5. filter-manager done!

    gogonzo committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    5aa39a4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    21fb11e View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Configuration menu
    Copy the full SHA
    6eb139e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8116adf View commit details
    Browse the repository at this point in the history
  3. Revert "chore: replace !isTRUE to isFALSE"

    This reverts commit 6eb139e.
    vedhav committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    964a110 View commit details
    Browse the repository at this point in the history
  4. comments

    gogonzo committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    a0d7f18 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    87aa0ea View commit details
    Browse the repository at this point in the history
  6. todo comment

    gogonzo committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    61a3f1e View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. fix todo: keep verified status from original teal_data

    datasets 'verification_status' attribute is derived from teal_data
    averissimo committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    7e9affb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f06f58 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee85cb7 View commit details
    Browse the repository at this point in the history
  4. build man pages

    m7pr committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    8ac40d8 View commit details
    Browse the repository at this point in the history
  5. update NAMESPACE

    m7pr committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    a9f3c4e View commit details
    Browse the repository at this point in the history
  6. missing man PAGE

    m7pr committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    8bbff54 View commit details
    Browse the repository at this point in the history
  7. snapshot manager

    WIP file upload
    gogonzo committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    6277e21 View commit details
    Browse the repository at this point in the history
  8. snapshot from file

    gogonzo committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    6169045 View commit details
    Browse the repository at this point in the history
  9. remove todos

    gogonzo committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    89b947d View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. teal as a module

    gogonzo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    c383202 View commit details
    Browse the repository at this point in the history
  2. module_filter_manager_panel

    gogonzo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    09ffd96 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0105c1b View commit details
    Browse the repository at this point in the history
  4. snapshot_manager_panel

    filter_manager_panel
    gogonzo committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    1bc10b2 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Add bookmark@669 insert UI@main (#1258)

    Adds bookmark module to the teal refactor
    
    ---------
    
    Signed-off-by: Vedha Viyash <[email protected]>
    Co-authored-by: go_gonzo <[email protected]>
    Co-authored-by: Dawid Kałędkowski <[email protected]>
    3 people authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    6c03384 View commit details
    Browse the repository at this point in the history
  2. simplify if

    gogonzo committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    98ed8a5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    690bac1 View commit details
    Browse the repository at this point in the history
  4. filter_manager + tests

    gogonzo committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    3a975b5 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. add test and improve filter-manager docs

    see ?filter_manager
    gogonzo committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    975609a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d99ef9c View commit details
    Browse the repository at this point in the history
  3. module_nested_tabs + tests

    gogonzo committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    fb2e759 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e92ce25 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7b5e22e View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. fix test-module_nested_tabs

    gogonzo committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4309311 View commit details
    Browse the repository at this point in the history
  2. module_teal docs and test

    gogonzo committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    984a631 View commit details
    Browse the repository at this point in the history
  3. tests module_data

    gogonzo committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4d0d7db View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. resize fix @chlebowa

    gogonzo committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    b092f1e View commit details
    Browse the repository at this point in the history
  2. + todo

    gogonzo committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    db2b2f0 View commit details
    Browse the repository at this point in the history
  3. ✔ checks

    ✖ (WIP) shinytest2
    gogonzo committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    05ab26e View commit details
    Browse the repository at this point in the history
  4. 1226 make new *_data_summary (#1257)

    
    
    Signed-off-by: Marcin <[email protected]>
    Co-authored-by: go_gonzo <[email protected]>
    Co-authored-by: Dawid Kałędkowski <[email protected]>
    3 people authored Jul 10, 2024
    Configuration menu
    Copy the full SHA
    818b6b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    d6425c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b99eec0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f9b9362 View commit details
    Browse the repository at this point in the history
  4. fix: use the proper ns

    vedhav committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    285892c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0f508af View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    a8a386f View commit details
    Browse the repository at this point in the history
  2. Update R/1.0_module_data_summary.R

    Signed-off-by: Marcin <[email protected]>
    m7pr authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    6b15464 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32d8280 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    aa5f939 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1b022f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9440341 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Update R/1.0_module_data_summary.R

    Co-authored-by: André Veríssimo <[email protected]>
    Signed-off-by: Marcin <[email protected]>
    m7pr and averissimo authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    3c42dba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58555a3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa3dc9c View commit details
    Browse the repository at this point in the history
  4. Fix R CMD Notes for Undefined global functions or variables: (#1267)

    ```r
    ❯ checking R code for possible problems ... NOTE
      get_object_filter_overview_MultiAssayExperiment : get_experiment_keys:
        no visible binding for global variable 'colname'
      srv_data_summary : <anonymous>: no visible binding for global variable
        'obs'
      srv_data_summary : <anonymous>: no visible binding for global variable
        'obs_filtered'
      srv_data_summary : <anonymous>: no visible binding for global variable
        'subjects'
      srv_data_summary : <anonymous>: no visible binding for global variable
        'subjects_filtered'
      Undefined global functions or variables:
        colname obs obs_filtered subjects subjects_filtered
        
    ```
    
    is a part of a NOTE
    https://github.com/insightsengineering/teal/actions/runs/9954607649/job/27500608846#step:24:103
     
    that is on CHECK GitHub Action blocklist
    
    https://github.com/insightsengineering/teal/blob/main/.github/workflows/check.yaml#L33-L42
    
    This PR provides a fix that replaces `transform()` and `subset()` with
    `$<-` and `[, ` operators. The documentation suggests that it should
    only be used in interactive mode
    #1267 (comment)
    
    ---------
    
    Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
    m7pr and github-actions[bot] authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    c166a35 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a5dd9f0 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Configuration menu
    Copy the full SHA
    e09ad9c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6647eb View commit details
    Browse the repository at this point in the history
  3. Implement teal_transform_module (#1260)

    transform WIP
    averissimo authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    c101987 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e511cc0 View commit details
    Browse the repository at this point in the history
  5. todo: static app fails with teal_data and datanames that are created …

    …in real-time in transformers
    averissimo committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    048e6f4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    497b85f View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Configuration menu
    Copy the full SHA
    10c362c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f99484 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4307cd5 View commit details
    Browse the repository at this point in the history
  4. tests

    gogonzo committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    c2d9cb7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    83b80a9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b36b25 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    191d378 View commit details
    Browse the repository at this point in the history
  8. more tests

    gogonzo committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    562063d View commit details
    Browse the repository at this point in the history
  9. fix: modules with eager data delay the dataname check to later stage

    keep warning on console
    averissimo committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    07c562b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b43d569 View commit details
    Browse the repository at this point in the history
  11. - more boilerplate tests

    - test transforms
    gogonzo committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    102f5b8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a428c1c View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Configuration menu
    Copy the full SHA
    5e9aada View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    655cf11 View commit details
    Browse the repository at this point in the history
  3. changes for tests

    gogonzo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    c224e7b View commit details
    Browse the repository at this point in the history
  4. 4 tests for teal_modules (#1274)

    Signed-off-by: Marcin <[email protected]>
    Co-authored-by: vedhav <[email protected]>
    Co-authored-by: Dawid Kałędkowski <[email protected]>
    3 people authored Jul 24, 2024
    Configuration menu
    Copy the full SHA
    c593990 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f34e0df View commit details
    Browse the repository at this point in the history
  6. remove browser()

    m7pr committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7628770 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab07ff2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7762d80 View commit details
    Browse the repository at this point in the history
  9. substitute |> with %>%

    m7pr committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7c6ec0b View commit details
    Browse the repository at this point in the history
  10. remove dplyr::filter from tests

    m7pr committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    2595cd0 View commit details
    Browse the repository at this point in the history
  11. fix 2 tests for data_summary

    m7pr committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    ed8f441 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    50d675a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7354eec View commit details
    Browse the repository at this point in the history
  14. chore: cleanup

    averissimo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    eb12c5e View commit details
    Browse the repository at this point in the history
  15. feature: hash is calculated once at data_rv

    Code is added manually to slot as it was safely calculated
    averissimo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    d36e52d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c2b9335 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d673b62 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a2798b0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    a192638 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    77c00d3 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    d02766a View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    7faea1f View commit details
    Browse the repository at this point in the history
  23. fix .add_signature_to_data

    gogonzo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    f122cc7 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    247aaf7 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    d1dbb4a View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    0656f31 View commit details
    Browse the repository at this point in the history
  27. log_trace -> log_debug

    gogonzo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    ae90595 View commit details
    Browse the repository at this point in the history
  28. trigger bookmarking to work

    gogonzo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    6ab53b0 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    3400b74 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    fda7d9a View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. fix snapshot

    gogonzo committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    dd7e6c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdde38c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e7479c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d2a77e1 View commit details
    Browse the repository at this point in the history
  5. fix: typo

    averissimo committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    c08009d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0074ce8 View commit details
    Browse the repository at this point in the history
  7. - fix when initialized with empty teal_slice()

    - add method $slices_set to simplify hard-setting
    gogonzo committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    75ebd38 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. update tests

    gogonzo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    1358113 View commit details
    Browse the repository at this point in the history
  2. skip init test

    gogonzo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    0ca1f07 View commit details
    Browse the repository at this point in the history
  3. some check fixes

    gogonzo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    b2d057e View commit details
    Browse the repository at this point in the history
  4. more tests

    gogonzo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    6f7ca32 View commit details
    Browse the repository at this point in the history
  5. reorganize tests

    gogonzo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    a9e9cef View commit details
    Browse the repository at this point in the history
  6. mapping table

    gogonzo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    82a5c7a View commit details
    Browse the repository at this point in the history
  7. fix a test

    gogonzo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    25cb34b View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Configuration menu
    Copy the full SHA
    38cc74e View commit details
    Browse the repository at this point in the history
  2. add @name to module_filter_manager

    m7pr committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    93c0d84 View commit details
    Browse the repository at this point in the history
  3. fix NOTE:

       .slicesGlobal: no visible global function definition for ‘new’
    gogonzo committed Jul 29, 2024
    1 Configuration menu
    Copy the full SHA
    08329b2 View commit details
    Browse the repository at this point in the history
  4. remove session from ui side

    gogonzo committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    8387c14 View commit details
    Browse the repository at this point in the history
  5. lintr

    gogonzo committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    194cfaf View commit details
    Browse the repository at this point in the history
  6. fix module_teal

    gogonzo committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    9b7f193 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    18874d6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e0d1f68 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    508c634 View commit details
    Browse the repository at this point in the history
  10. deleted test-snapshot-manager.R

    m7pr committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    e970b57 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    45188ac View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    db310ee View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    259f3c7 View commit details
    Browse the repository at this point in the history
  14. merge

    Merge branch '669_insertUI@main' of https://github.com/insightsengineering/teal into 669_insertUI@main
    
    # Conflicts:
    #	R/1.0_filter_panel.R
    #	man/dot-observe_active_filter_changed.Rd
    #	man/module_filter_panel.Rd
    m7pr committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    3832b12 View commit details
    Browse the repository at this point in the history
  15. man for module_filter_panel

    m7pr committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    39bb9ca View commit details
    Browse the repository at this point in the history
  16. fix setdiff_teal_slices

    gogonzo committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    58bd876 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. try @encoding tag

    gogonzo committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    4e18c6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    77a5b01 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    66b3e72 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c237048 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cd2bc8d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6a1b8af View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab4b144 View commit details
    Browse the repository at this point in the history
  8. Data module as tab@669 insert UI@main (#1273)

    Can't approve PR created by myself - merging directly
    gogonzo authored Jul 30, 2024
    Configuration menu
    Copy the full SHA
    3efe983 View commit details
    Browse the repository at this point in the history
  9. update gitignore

    m7pr committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    9fdc64e View commit details
    Browse the repository at this point in the history
  10. fix reporter shinytest2 tests

    m7pr committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    a1365ce View commit details
    Browse the repository at this point in the history
  11. fix shinytest2 tests for utils

    m7pr committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    6e69666 View commit details
    Browse the repository at this point in the history
  12. fix tests for show_r_code

    m7pr committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    414f92b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6223c79 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Fix datanames - three basic conditions

    1. modules receive datanames from `modules$datanames`
    
    2. modules receive all datanames @env (except _raw) when `modules$dataname == "all"` and `@datanames == <empty>`
    
    3. modules receive `@datanames` if `modules$dataname == "all"`
    gogonzo committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    d79894c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fcf590b View commit details
    Browse the repository at this point in the history
  3. Adjust TealAppDriver methods for filter_panel shinytest2 tests (#…

    …1281)
    
    Part of #1253
    
    ---------
    
    Co-authored-by: Vedha Viyash <[email protected]>
    Co-authored-by: vedhav <[email protected]>
    3 people authored Jul 31, 2024
    Configuration menu
    Copy the full SHA
    6eea881 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b0d7c66 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. chore: use the proper label

    vedhav committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3a8cdbf View commit details
    Browse the repository at this point in the history
  2. use topological_sort on datanames() (#1280)

    Part of #1253
    
    ---------
    
    Signed-off-by: Marcin <[email protected]>
    Co-authored-by: Dawid Kałędkowski <[email protected]>
    m7pr and gogonzo authored Aug 1, 2024
    Configuration menu
    Copy the full SHA
    70c1dbc View commit details
    Browse the repository at this point in the history
  3. fix last test in data-summary

    m7pr committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    626a206 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Have different constructor for "Data" module and "Transform" module (#…

    …1283)
    
    Adds `teal_transform_module()` to be used to create data modules for
    transformation.
    vedhav authored Aug 2, 2024
    Configuration menu
    Copy the full SHA
    f251aa6 View commit details
    Browse the repository at this point in the history
  2. fix test

    gogonzo committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    a9ef747 View commit details
    Browse the repository at this point in the history
  3. fix pkgdown

    gogonzo committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    da091b6 View commit details
    Browse the repository at this point in the history
  4. Add landing popup argument in init and soft deprecate calling it as…

    … a normal module (#1284)
    
    Changes:
    
    1. Soft deprecates calling the `landing_popup_module` inside `modules`
    argument of `init`
    2. Add a new `landing_popup` argument to `init` to accept this module.
    3. Update the `TealAppDriver` to accept this new argument.
    
    ---------
    
    Signed-off-by: Vedha Viyash <[email protected]>
    Co-authored-by: Dawid Kałędkowski <[email protected]>
    Co-authored-by: go_gonzo <[email protected]>
    3 people authored Aug 2, 2024
    Configuration menu
    Copy the full SHA
    ab8ac73 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    57966d8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9a77b51 View commit details
    Browse the repository at this point in the history
  7. Fixes lingering/ghost slices in the filter panel after DDL reload (#1275

    )
    
    # Pull Request
    
    #### Fixes
    - teal.slices - after removal of the slice make sure that observers of
    FilterState are destroyed. To test - take an app with DDL. Add filter
    and reload data several times. After this try to remove filter with
    remove button. What is interesting that single FIlterState card remove
    button needs to be pushed several times (it removes old FIlterStates
    which are not rendered anymore) while remove-all seems to not add
    observers one over another (it is enough to click once).
    
    
    #### Needs
    
    Branch `teal_slice@669_insertUI@main` on `{teal.slices}`
    
    #### Changes description
    
    - Keeps previous FilteredDataset to safely clean the filter panel
    
    ##### How to test?
    
    1. Run app below
    2. Reload the dataset using the "`data` tab"
    3. Remove individual filter from filter panel
    4. Check if filter has been removed with a single click
    
    Repeat test without `module_specific = TRUE`
    
    ```r
    # teal.slices -
    # after removal of the slice make sure that observers of FilterState are destroyed.
    #
    # To test - take an app with DDL.
    # - Add filter
    # - reload data several times.
    #
    # After this try to remove filter with remove button.
    # What is interesting that single FIlterState card remove button needs to be
    # pushed several times (it removes old FIlterStates which are not rendered anymore)
    # while remove-all seems to not add observers one over another (it is enough to
    # click once). @averissimo
    
    # Possible bug: reloading data will clear default values of the initial filter state
    
    options(
      teal.log_level = "DEBUG",
      teal.show_js_log = TRUE,
      # teal.bs_theme = bslib::bs_theme(version = 5),
      shiny.bookmarkStore = "server"
    )
    
    pkgload::load_all("../teal.slice")
    pkgload::load_all("../teal")
    
    data <- teal::teal_data_module(
      ui = function(id) {
        ns <- shiny::NS(id)
        shiny::tagList(
          shiny::textInput(ns("username"), label = "Username"),
          shiny::passwordInput(ns("password"), label = "Password"),
          shiny::actionButton(ns("submit"), label = "Submit")
        )
      },
      server = function(id, ...) {
        shiny::moduleServer(id, function(input, output, session) {
          shiny::eventReactive(input$submit, {
            data <- teal.data::teal_data() |>
              within(
                {
                  logger::log_debug("Loading data...")
                  ADSL <- teal.data::rADSL
                  ADTTE <- teal.data::rADTTE
                  iris <- iris
    
                  CO2 <- CO2
                  factors <- names(Filter(isTRUE, vapply(CO2, is.factor, logical(1L))))
                  CO2[factors] <- lapply(CO2[factors], as.character)
                },
                username = input$username,
                password = input$password
              )
            join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADTTE")]
            teal.data::datanames(data) <- c("ADSL", "ADTTE", "iris", "CO2")
            data
          })
        })
      }
    )
    
    teal::init(
      data = data,
      modules = teal::modules(
        teal::modules(
          label = "Group",
          teal::example_module()
        )
      ),
      filter = teal::teal_slices(
        teal.slice::teal_slice("ADSL", "AGE", selected = c(18L, 65L)),
        module_specific = TRUE,
        teal.slice::teal_slice("ADSL", "SEX")
      ),
      title = "yada"
    ) |>
      shiny::runApp()
    ```
    
    ---------
    
    Signed-off-by: André Veríssimo <[email protected]>
    averissimo authored Aug 2, 2024
    Configuration menu
    Copy the full SHA
    5a388bc View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Configuration menu
    Copy the full SHA
    49639b5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    15d0334 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c86b04 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1cf892a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6635112 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. trigger reactivity when show

    gogonzo committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    4ea5b5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f7d0a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f09cf12 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6b8ea72 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b67b141 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    693cc75 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. 1287 Do not show filter panel for modules without datanames (#1292)

    Part of #1253
    Fixes #1287
    
    This PR do not show `filter-panel` nor `data-summary` if a module has
    `datanames` set to NULL.
    
    Tested with 
    
    <details><summary> `tm_front_page(show_metadata = FALSE)` </summary>
    
    ```
    library(teal.modules.general)
    data <- teal_data()
    data <- within(data, {
      require(nestcolor)
      ADSL <- rADSL
      attr(ADSL, "metadata") <- list("Author" = "NEST team", "data_source" = "synthetic data")
    })
    datanames(data) <- "ADSL"
    join_keys(data) <- default_cdisc_join_keys[datanames(data)]
    
    table_1 <- data.frame(Info = c("A", "B"), Text = c("A", "B"))
    table_2 <- data.frame(`Column 1` = c("C", "D"), `Column 2` = c(5.5, 6.6), `Column 3` = c("A", "B"))
    table_3 <- data.frame(Info = c("E", "F"), Text = c("G", "H"))
    
    table_input <- list(
      "Table 1" = table_1,
      "Table 2" = table_2,
      "Table 3" = table_3
    )
    
    app <- init(
      data = data,
      modules = modules(
        tm_front_page(
          header_text = c(
            "Important information" = "It can go here.",
            "Other information" = "Can go here."
          ),
          tables = table_input,
          additional_tags = HTML("Additional HTML or shiny tags go here <br>"),
          footnotes = c("X" = "is the first footnote", "Y is the second footnote"),
          show_metadata = FALSE
        )
      ),
      header = tags$h1("Sample Application"),
      footer = tags$p("Application footer"),
    )
    
    if (interactive()) {
      shinyApp(app$ui, app$server)
    }
    ````
    
    </details>
    
    <details><summary> `tm_front_page(show_metadata = TRUE)` </summary>
    
    ```
    library(teal.modules.general)
    data <- teal_data()
    data <- within(data, {
      require(nestcolor)
      ADSL <- rADSL
      attr(ADSL, "metadata") <- list("Author" = "NEST team", "data_source" = "synthetic data")
    })
    datanames(data) <- "ADSL"
    join_keys(data) <- default_cdisc_join_keys[datanames(data)]
    
    table_1 <- data.frame(Info = c("A", "B"), Text = c("A", "B"))
    table_2 <- data.frame(`Column 1` = c("C", "D"), `Column 2` = c(5.5, 6.6), `Column 3` = c("A", "B"))
    table_3 <- data.frame(Info = c("E", "F"), Text = c("G", "H"))
    
    table_input <- list(
      "Table 1" = table_1,
      "Table 2" = table_2,
      "Table 3" = table_3
    )
    
    app <- init(
      data = data,
      modules = modules(
        tm_front_page(
          header_text = c(
            "Important information" = "It can go here.",
            "Other information" = "Can go here."
          ),
          tables = table_input,
          additional_tags = HTML("Additional HTML or shiny tags go here <br>"),
          footnotes = c("X" = "is the first footnote", "Y is the second footnote"),
          show_metadata = TRUE
        )
      ),
      header = tags$h1("Sample Application"),
      footer = tags$p("Application footer"),
    )
    
    if (interactive()) {
      shinyApp(app$ui, app$server)
    }
    ````
    
    </details>
    
    <details><summary> `tm_a_pca` </summary>
    
    ```
    library(teal.modules.general)
    library(teal.widgets)
    
    # general data example
    data <- teal_data()
    data <- within(data, {
      require(nestcolor)
      USArrests <- USArrests
    })
    
    datanames(data) <- "USArrests"
    
    app <- init(
      data = data,
      modules = modules(
        tm_a_pca(
          "PCA",
          dat = data_extract_spec(
            dataname = "USArrests",
            select = select_spec(
              choices = variable_choices(
                data = data[["USArrests"]], c("Murder", "Assault", "UrbanPop", "Rape")
              ),
              selected = c("Murder", "Assault"),
              multiple = TRUE
            ),
            filter = NULL
          ),
          ggplot2_args = ggplot2_args(
            labs = list(subtitle = "Plot generated by PCA Module")
          )
        )
      )
    )
    if (interactive()) {
      shinyApp(app$ui, app$server)
    }
    
    ````
    
    </details>
    
    
    
    # `tm_front_page(show_metadata = FALSE)`
    
    <img width="689" alt="no_metdata"
    src="https://github.com/user-attachments/assets/e376e384-ff31-431a-854d-1d05eff46666">
    
    
    # `tm_front_page(show_metadata = TRUE)`
    
    For `show_metadata = TRUE` the `datanames` are set to `all` and the
    datasets are shown, as they are also visible in the `Show metadata`
    modal
    
    <img width="664" alt="metadata"
    src="https://github.com/user-attachments/assets/111924b4-0330-4770-b5ba-44c742a311e7">
    
    
    # `tm_a_pca`
    
    <img width="667" alt="image"
    src="https://github.com/user-attachments/assets/594e77d8-d66e-4c02-b88f-196eea59bc50">
    m7pr authored Aug 7, 2024
    Configuration menu
    Copy the full SHA
    82db0fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    358b671 View commit details
    Browse the repository at this point in the history
  3. Adds tests to check the new features of teal_data_module (#1293)

    Added tests to check the two new features of the `teal_data_module`:
    
    1. Now `teal_data_module` can have `once` argument.
    2. The module tabs are disabled when `teal_data_module` is not loaded.
    
    ---------
    
    Signed-off-by: Vedha Viyash <[email protected]>
    Co-authored-by: Marcin <[email protected]>
    vedhav and m7pr authored Aug 7, 2024
    Configuration menu
    Copy the full SHA
    2a3780f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5c58bad View commit details
    Browse the repository at this point in the history
  5. Removes string colors style from error messages in `ui/srv_validate_r…

    …eactive_teal_data` (#1294)
    
    Part of #1253
    
    Additionally, we could have a static message on the summary, instead of
    repeating it.
    
    ### Before vs. With this PR
    
    
    ![image](https://github.com/user-attachments/assets/1d4e52ec-e9a4-4dcd-8e1d-012ac9aed6df)
    
    #### With simple error (not in PR yet)
    
    Simple change with
    
    ```diff
    diff --git a/R/module_data_summary.R b/R/module_data_summary.R
    index 76947d58a..dadfff0dc 100644
    --- a/R/module_data_summary.R
    +++ b/R/module_data_summary.R
    @@ -89,7 +89,7 @@ srv_data_summary <- function(id, teal_data) {
           output$table <- renderUI({
             summary_table_out <- try(summary_table())
             if (inherits(summary_table_out, "try-error")) {
    -          stop(strip_style(conditionMessage(attr(summary_table_out, "condition"))))
    +          stop("Data and/or filters have an error. See details on main panel.")
             } else {
               body_html <- apply(
                 summary_table_out,
    ```
    
    
    ![image](https://github.com/user-attachments/assets/f91f4fa3-78af-413f-a940-8080f876766a)
    
    ---------
    
    Signed-off-by: André Veríssimo <[email protected]>
    Co-authored-by: Dawid Kałędkowski <[email protected]>
    averissimo and gogonzo authored Aug 7, 2024
    Configuration menu
    Copy the full SHA
    e4b9085 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. restart cicd

    gogonzo committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    baf3406 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    111bcb7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    049273d View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. Configuration menu
    Copy the full SHA
    6bcd212 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    466dc86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5a00fb9 View commit details
    Browse the repository at this point in the history
  4. chore: fix spellcheck

    vedhav committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    49fb94c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    56effb1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    71af526 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c12b083 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cbb3070 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. All datanames to transform@669 insert UI@main (#1302)

    Changed the way how datanames are passed between teal_data instances
    gogonzo authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    202dbbd View commit details
    Browse the repository at this point in the history
  2. Extend teal transform vignette (#1301)

    Changes:
    
    1. Adds the section on how to place the transform UI in the custom
    position inside the module.
    2. Formats the `_pkgdown.yml` file (No change made to the file, just
    styling)
    3. Extend the `example_module()` to handle the selection when datasets
    change (This can happen when using DDL to change datasets completely,
    such an example will be added to `teal.gallery`)
    
    ---------
    
    Signed-off-by: Vedha Viyash <[email protected]>
    Co-authored-by: Marcin <[email protected]>
    Co-authored-by: m7pr <[email protected]>
    Co-authored-by: Dony Unardi <[email protected]>
    4 people authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    ba83d53 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    20ff375 View commit details
    Browse the repository at this point in the history
  4. chore: fix spellcheck

    vedhav committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    174577a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    971dd59 View commit details
    Browse the repository at this point in the history
  6. Improves datanames error message (#1297)

    Part of #1253
    
    ### Changes description
    
    - `check_modules_datanames` returns a string and HTML generator for:
        - **string**: to be used with logger 
        - **HTML**: function to be used in teal UI
    - Message is generated in the same way. This adds complexity, but is
    consistent
    - `c("one", "two", "three")` renders as "one, two and three" (note the
    comma and `and`)
    - In the module context it doesn't show the current module label
    
    <details>
    
    <summary>Sample app</summary>
    
    ```r
    options(
      teal.log_level = "TRACE",
      teal.show_js_log = TRUE,
      # teal.bs_theme = bslib::bs_theme(version = 5),
      shiny.bookmarkStore = "server"
    )
    
    pkgload::load_all("teal.data")
    pkgload::load_all("teal.slice")
    pkgload::load_all("teal")
    
    my_transformers <- list(
      teal_transform_module(
        label = "reactive ADSL",
        ui = function(id) {
          ns <- NS(id)
          tagList(
            div("Some UI for transform (merge)"),
            actionButton(ns("btn"), "Reload data")
          )
        },
        server = function(id, data) {
          moduleServer(id, function(input, output, session) {
            eventReactive(input$btn, {
              data()
            })
          })
        }
      ),
      teal_transform_module(
        label = "Keep first 6 from IRIS",
        ui = function(id) {
          ns <- NS(id)
          div(
            span("Some UI for transform (1)"),
            textInput(ns("obs"), label = "Number of rows", value = 6)
          )
        },
        server = function(id, data) {
          moduleServer(id, function(input, output, session) {
            reactive({
              req(data())
              obs <- as.numeric(input$obs)
              if (!is.finite(obs)) stop("NOT NUMERIC.")
              within(data(), iris <- head(iris, n), n = as.numeric(input$obs))
            })
          })
        }
      ),
      teal_transform_module(
        label = "Keep first 6 from ADTTE",
        ui = function(id) div("Some UI for transform 2"),
        server = function(id, data) {
          moduleServer(id, function(input, output, session) {
            reactive({
              req(data())
              within(data(), ADTTE <- head(ADTTE))
            })
          })
        }
      )
    )
    
    data <- teal_data_module(
      once = FALSE,
      ui = function(id) {
        ns <- NS(id)
        tagList(
          numericInput(ns("obs"), "Number of observations to show", 1000),
          actionButton(ns("submit"), label = "Submit")
        )
      },
      server = function(id, ...) {
        moduleServer(id, function(input, output, session) {
          logger::log_trace("example_module_transform2 initializing.")
          eventReactive(input$submit, {
            data <- teal_data() |>
              within(
                {
                  logger::log_trace("Loading data")
                  ADSL <- head(teal.data::rADSL, n = n)
                  ADTTE <- teal.data::rADTTE
                  iris <- iris
                  
                  CO2 <- CO2
                  factors <- names(Filter(isTRUE, vapply(CO2, is.factor, logical(1L))))
                  CO2[factors] <- lapply(CO2[factors], as.character)
                },
                n = as.numeric(input$obs)
              )
            join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADTTE")]
            teal.data::datanames(data) <- c("ADSL", "ADTTE", "iris", "CO2")
            data
          })
        })
      }
    )
    
    teal::init(
      data = data,
      modules = list(
        example_module("mod-1", datanames = "all"),
        example_module("mod-2", transformers = my_transformers, datanames = c("ADSL", "ADTTE", "iris", "elo")),
        modules(
          label = "sub-modules",
          example_module("mod-2-sub1", transformers = my_transformers, datanames = c("ADSL", "ADTTE", "iris", "elo", "elo2")),
          example_module("mod-2-sub2", transformers = my_transformers, datanames = c("ADSL", "ADTTE", "iris", "elo"))
        ),
        example_module("mod-2", transformers = my_transformers[2:3])
      ),
      filter = teal_slices(
        teal_slice("ADSL", "SEX"),
        teal_slice("ADSL", "AGE", selected = c(18L, 65L))
      )
    ) |>
      runApp()
    ```
    
    </details>
    
    
    ![image](https://github.com/user-attachments/assets/9a6c09a6-2ce4-4c2b-b7f6-0cce7ab8670c)
    
    
    ![image](https://github.com/user-attachments/assets/2b4a8dd1-f7e7-44f8-80d3-9cb45dd3909b)
    averissimo authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    a6b21f8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1a91b3e View commit details
    Browse the repository at this point in the history
  8. restart cicd

    gogonzo committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    2b65b98 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f4743ac View commit details
    Browse the repository at this point in the history
  10. chore: fix linter error

    averissimo committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    61ea769 View commit details
    Browse the repository at this point in the history
  11. - deprecate module_teal_with_spash instead of removing

    - supersede tdata
    - set next version to 0.16 (at this moment)
    gogonzo committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    afdb670 View commit details
    Browse the repository at this point in the history
  12. remove fake S3 methods

    gogonzo committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    cac8ef7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    370b166 View commit details
    Browse the repository at this point in the history
  14. rerun roxygen2

    gogonzo committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    a81e794 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    84c6ce4 View commit details
    Browse the repository at this point in the history