Skip to content

[feature]: Build org unit toggle from excel sheet rules#105

Merged
MiquelAdell merged 26 commits intodevelopmentfrom
feature/build-ou-toggle-script
Jan 15, 2026
Merged

[feature]: Build org unit toggle from excel sheet rules#105
MiquelAdell merged 26 commits intodevelopmentfrom
feature/build-ou-toggle-script

Conversation

@deeonwuli
Copy link
Copy Markdown
Contributor

@deeonwuli deeonwuli commented Dec 19, 2025

📌 References

📝 Implementation

  • Fix toggle org unit functionality to match the logic outlined here:
Condition Org Unit in List disabled: false disabled: true
hide Yes Hide section Disable all data elements
hide No Show section normally Show section normally
show Yes Show section normally Show section normally
show No Hide section Disable all data elements
  • Extend toggleMultiple config with org unit toggle functionality
  • Create script to build org unit toggle from rules outlined in xlsx sheet

🎨 Screenshots

🔥 Notes to the tester

To build ou script:

yarn build-tub-ou-toggle -r=<rules-excel-path> -c=<config-json-path> [-o=<output-path>]
Argument Required Description
-r, --rules-sheet Yes Path to the Excel file with country flag rules
-c, --config Yes Path to the autogen config JSON file
-o, --output No Output file path (defaults to output.json)

#869bd4e3k

@deeonwuli deeonwuli changed the base branch from master to development December 19, 2025 14:57
deeonwuli and others added 22 commits January 8, 2026 11:57
Implement a warning modal configurable via dataStore to be displayed depending on period selected.
Created CustomRule abstraction so it could be expanded if needed.
the dataStore prop now is "rules" instead of "customRules"
fix styles so the content is centered when there is not title and no actions
…ment

# Conflicts:
#	src/data/common/Dhis2DataFormRepository.ts
#	src/domain/common/entities/DataForm.ts
update build ou toggle script with toggleMultiple functionality, update section codes
@deeonwuli deeonwuli changed the title [feature]: Build org unit toggle from excel sheet rules script [feature]: Build org unit toggle from excel sheet rules Jan 13, 2026
@deeonwuli deeonwuli marked this pull request as ready for review January 13, 2026 22:48
# Conflicts:
#	src/data/common/Dhis2DataStoreDataForm.ts
#	src/webapp/reports/autogenerated-forms/AutogeneratedForm.tsx
@MiquelAdell MiquelAdell merged commit 6f6f006 into development Jan 15, 2026
3 checks passed
@MiquelAdell
Copy link
Copy Markdown
Contributor

sorry, I merged that by mistake @MatiasArriola if you have comments we'll create a new PR with this one

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.

3 participants