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

Improve form module reactivity #168

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

Conversation

LDSamson
Copy link
Collaborator

@LDSamson LDSamson commented Feb 20, 2025

As discussed, this PR will move all the logic for creating a (review) table from mod_common_forms and mod_study_forms to the already existing mod_review_forms_tbl module. In addition, only data from one form will be passed to the the modules.

This removes code duplication in the modules, it reduces reactivity (e.g. it will not reload all the table/figure data of form B when a review in form A is saved).

In addition, I refactored some code in mod_review_forms_tbl, and fixed some smaller bugs in the create_table functions, such as data showing up as NA in the tables when data is new (because html bold tags are added in the app):
image
but showing as intended when data is reviewed:
image

Multiple tests are added to test the business logic for merging a table created with create_table.
Furthermore, a start was made to create a module test for the mod_review_form_tbl module.

LDSamson and others added 30 commits February 14, 2025 11:32
…original data is missing, and there is an explanation for missingness. Note: only implemented for continuous data now!
@LDSamson LDSamson marked this pull request as ready for review February 24, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants