Skip to main content

Governance Roles Owners Assign Roles Calls Gated Set Role

EPIC: governance
Personas & Authorization
STORY: roles_owners
As an admin, I can compose members' roles (Member base + Admin/Helper overlays) and household ownership through the capability-gated governance surface.
AC: assign_roles_calls_gated_set_role
Toggling Admin on for a parental member calls the gated setRole with the acting member id and the composed {admin, member} set.

open the Household tab, then the governance page

User Actions:
  • Tapped: widget with text "Household"
  • Tapped: widget with key [<'HouseholdPage.peopleButton'>]
Expect:
  • admin actor passes AdminGuard onto the governance page
  • Pat's row shows the Member role badge
Events:
  • [ANALYTIC] [page]: HouseholdRoute
  • MembersStarted
  • [ANALYTIC] [page]: GovernanceRoute
  • MembersStarted
  • RoleOwnerStarted

open the editor and toggle Admin on

User Actions:
  • Tapped: widget with key [<'GovernancePage.memberTile_pat'>]
  • Tapped: widget with key [<'RoleOwnerEditor.adminToggle'>]
Expect:
  • the composed set keeps Member as the base + adds Admin
Events:
  • RoleOwnerRoleSet