OrgHierarchyPage
Component Detail
User Interface
medium complexity
frontend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Interactive tree view page for visualizing and managing nested organizational units. Administrators can create, edit, and reorder nodes in the hierarchy including national federations, regional bodies, and local branches. The page surfaces attribution rules and roll-up configuration inline so changes are immediately contextual.
org-hierarchy-page
Sources & reasoning
NHF's unique need (lines 107-109) makes hierarchy management a launch requirement because NHF is one of the initial four organizations and their data integrity depends on it. Blueprint assigns MVP target_release to multi-organization-hierarchy, consistent with admin MVP scope including org management. Without it NHF cannot correctly attribute or report activities.
-
docs/source/likeperson.md · line 109Bredest organisasjonsstruktur: 12 landsforeninger, 9 regioner, 1 400 lokallag - aktivitetsfordeling mellom ledd må støttes.
-
docs/source/likeperson.md · line 107Håndtering av medlemmer i flere lokallag (opptil 5): Avklare tilhørighet og hindre dobbeltrapportering.
Responsibilities
- Render collapsible tree of organizational units with parent-child relationships
- Provide forms for creating and editing org units and assigning parent nodes
- Display and edit activity attribution rules per org level
- Show roll-up reporting preview so admins can verify aggregation before saving
- Highlight double-reporting conflicts detected by the service layer
Interfaces
loadHierarchy(tenantId: string): OrgTreeNode
createOrgUnit(payload: CreateOrgUnitInput): OrgUnit
updateOrgUnit(unitId: string, payload: UpdateOrgUnitInput): OrgUnit
moveOrgUnit(unitId: string, newParentId: string): OrgTreeNode
previewRollup(unitId: string): RollupPreview