Skip to main content

Governance Roles Owners Admin On Non Parental Surfaces Guard

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: admin_on_non_parental_surfaces_guard
Toggling Admin on for a non-parental member surfaces the SDK admin ⇒ parental guard (DomainRuleException) in the AlertDialog.

open the governance page with a non-parental member

User Actions:
  • Tapped: widget with text "Household"
  • Tapped: widget with key [<'HouseholdPage.peopleButton'>]
Expect:
  • admin actor reaches the governance page
Events:
  • [ANALYTIC] [page]: HouseholdRoute
  • MembersStarted
  • [ANALYTIC] [page]: GovernanceRoute
  • MembersStarted
  • RoleOwnerStarted

toggle Admin - the kind guard surfaces in the dialog

User Actions:
  • Tapped: widget with key [<'GovernancePage.memberTile_gran'>]
  • Tapped: widget with key [<'RoleOwnerEditor.adminToggle'>]
Expect:
  • the AlertDialog surfaces the admin-kind guard
  • the dialog carries the DomainRuleException message
Events:
  • RoleOwnerRoleSet