Skip to content

chore: refactor OrgUnitDialog to functional component [DHIS2-18209]#3682

Open
BRaimbault wants to merge 3 commits into
masterfrom
chore/DHIS2-18209-OrgUnitDialog-v2
Open

chore: refactor OrgUnitDialog to functional component [DHIS2-18209]#3682
BRaimbault wants to merge 3 commits into
masterfrom
chore/DHIS2-18209-OrgUnitDialog-v2

Conversation

@BRaimbault

@BRaimbault BRaimbault commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Implements DHIS2-18209

Description

Refactor OrgUnitDialog to functional component.

Implementation notes

  • Action creators are now dispatched via useDispatch() instead of being prop-injected through connect() — this matches the pattern already established in FacilityDialog, GeoJsonDialog, and ThematicDialog. No behavior change, just the form dispatch(setX(val)) instead of calling the prop directly. countFeaturesWithoutCoordinates similarly moved from mapStateToProps to useSelector.

Quality checklist

Add N/A to items that are not applicable.

  • Dashboard tested N/A
  • Cypress and/or Jest tests added/updated N/A
  • Docs added N/A
  • d2-ci dependencies replaced N/A
  • Tester approved (name)

@dhis2-bot

dhis2-bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-3682.maps.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify June 18, 2026 11:02 Inactive
@BRaimbault BRaimbault marked this pull request as ready for review June 18, 2026 12:13
@dhis2-bot dhis2-bot temporarily deployed to netlify June 18, 2026 15:34 Inactive
@sonarqubecloud

Copy link
Copy Markdown

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