Browse and Navigate Full Organization Hierarchy
The Organization Tree Screen renders the complete multi-tier hierarchy using a recursive Flutter expandable list. Administrators can expand and collapse nodes at any level, seeing national associations at the root, regions as branches, and local associations as leaves. Each node shows the unit name, type badge, and child count. For NHF this means navigating up to 12 national associations, 9 regions, and 1,400 local associations in a performant, lazy-loaded tree. The tree state (which nodes are expanded) is preserved during a session.
User Story
Acceptance Criteria
- Given I am an authenticated administrator, when I open the Organization Tree Screen, then the top-level national associations are displayed with expand controls
- Given the organization tree is displayed, when I tap a national association node, then it expands to show its regions as child nodes
- Given a region node is expanded, when I tap it, then it collapses back to hide its children
- Given the tree has 1,400 local associations, when I scroll through the tree, then performance remains smooth with no visible lag or dropped frames
- Given I have expanded several nodes, when I navigate away and return to the screen, then the previously expanded nodes remain expanded
- Given I am viewing the tree, when I tap any node, then I see a type badge indicating whether it is national, region, or local association
Business Value
The organization hierarchy view is the foundational navigation tool for all administrative work. Without it, administrators managing NHF's 1,400 lokallag cannot perform any structural operations and must fall back to spreadsheets. Providing a fast, navigable tree replaces hours of manual cross-referencing and is prerequisite to accurate Bufdir reporting aggregation.
Components
- Organization Tree Screen ui
- Org Level Widget ui
- Org Structure Service service
- Org Structure Repository data
- Org Structure RLS Policy infrastructure