View and Navigate Full Organizational Hierarchy Tree
The organization administrator needs a clear, navigable tree view of the entire organizational hierarchy. For NHF this spans 12 national associations, 9 regions, and up to 1,400 local chapters. The tree view must support collapsing and expanding nodes, searching by unit name, and displaying key metadata (member count, active peer mentors, coordinator assignments) at each node level. The hierarchy must correctly reflect real-world organizational relationships and be kept in sync with the Supabase backend.
User Story
Acceptance Criteria
- Given I am logged in as an org admin, when I navigate to the hierarchy admin portal, then I see the full organizational tree rendered with all levels (national → region → local chapter)
- Given the hierarchy tree is displayed, when I tap on a parent node, then it expands to show all direct child units
- Given the hierarchy tree is displayed, when I use the search input, then the tree filters to show only units whose name matches my search term with ancestors shown for context
- Given I am viewing a node in the tree, when I tap on it, then I see metadata including active peer mentor count, coordinator assignment, and chapter status
- Given the hierarchy data has been updated in the backend, when I refresh the hierarchy view, then the tree reflects the latest structure within 5 seconds
Business Value
NHF operates one of Norway's most complex voluntary organizational structures. Without a clear hierarchy view, administrators cannot efficiently manage resources, assign coordinators, or validate that reporting is attributed to the correct organizational unit. This directly reduces administrative overhead and prevents misreported Bufdir data — which can have funding implications.
Components
- Hierarchy Tree View ui
- Hierarchy Admin Portal Screen ui
- Hierarchy Service service
- Hierarchy Aggregation Service service
- Organization Unit Repository data
- Hierarchy Cache data
- Active Chapter State (BLoC) service