Skip to main content

Governance Roles Owners Revoke Last Owner Shows Dialog

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: revoke_last_owner_shows_dialog
Revoking the last owner surfaces the LastOwnerCannotDeleteWithMembers rule in a themed AlertDialog — it is never swallowed.

open governance - Mom shows the Owner badge

User Actions:
  • Tapped: widget with text "Household"
  • Tapped: widget with key [<'HouseholdPage.peopleButton'>]
Expect:
  • Mom's row shows the Owner status badge
Events:
  • [ANALYTIC] [page]: HouseholdRoute
  • MembersStarted
  • [ANALYTIC] [page]: GovernanceRoute
  • MembersStarted
  • RoleOwnerStarted

toggle owner off - the last-owner rule dialog appears

User Actions:
  • Tapped: widget with key [<'GovernancePage.memberTile_mom'>]
  • Tapped: widget with key [<'RoleOwnerEditor.ownerSwitch'>]
Expect:
  • the action-failure AlertDialog is shown (not silent)
  • the dialog carries the typed exception message
  • the dialog wears the governance failure title
Events:
  • RoleOwnerOwnerToggled