View and Manage Contact's Chapter Affiliations
A contact detail screen must display all chapters a peer mentor is affiliated with. NHF members can belong to up to 5 local chapters simultaneously. The coordinator needs a clear panel showing each affiliation, the role within that chapter, and the status (active, paused, ended). From this view the coordinator can add or remove chapter affiliations using an inline editor without leaving the contact detail screen.
User Story
Acceptance Criteria
- Given a contact has affiliations in multiple chapters, when a coordinator opens the contact detail screen, then a 'Chapter Affiliations' panel is visible listing every affiliated chapter with name, role, and status
- Given the affiliations panel is visible, when the coordinator taps 'Edit Affiliations', then the chapter assignment editor opens with the current affiliations pre-populated
- Given the chapter assignment editor is open, when the coordinator adds a new chapter affiliation and saves, then the new affiliation is persisted and the panel updates immediately
- Given the chapter assignment editor is open, when the coordinator removes an affiliation and saves, then the contact is no longer linked to that chapter in the database
- Given a contact belongs to zero chapters, when the coordinator views the affiliations panel, then an empty state with a call-to-action to assign a chapter is shown
Business Value
NHF has a complex organizational structure with 12 national associations, 9 regions, and 1,400 local chapters. Members routinely belong to multiple local chapters simultaneously (up to 5). Without explicit multi-chapter affiliation management, activity reporting becomes ambiguous, statistics are unreliable, and Bufdir reporting cannot be accurately attributed. This story is foundational to NHF's ability to use the app at all, since their entire reporting model depends on correct chapter attribution.
Components
- Chapter Affiliations Panel ui
- Chapter Assignment Editor ui
- Multi-Chapter Membership Service service
- Chapter Membership Cubit service
- Contact Chapter Repository data
- Supabase Contact Chapter Adapter infrastructure