Skip to main content

Houses Houses Management Admin Creates Edits Deletes A House

EPIC: houses
Admin · Houses
STORY: houses_management
As an admin, I can create, edit and delete the household's houses (each with a name + optional address) from the Admin hub.
AC: admin_creates_edits_deletes_a_house
An admin adds a house (name + address — it appears), edits its name, then deletes it (it goes) — each write reloads the list.

open the Admin hub — the Houses & rooms row is present

User Actions:
  • Tapped: widget with text "Profile"
  • Tapped: widget with key [<'MorePage.adminEntry'>]
Expect:
  • AdminGuard admits the admin to /admin
  • the hub exposes the active Houses & rooms row
Events:
  • [ANALYTIC] [page]: ProfileRoute
  • MoreStarted
  • MoreCurrentMemberChanged
  • [ANALYTIC] [page]: AdminRoute

open Houses — empty to start

User Actions:
  • Tapped: widget with key [<'AdminHubPage.housesEntry'>]
Expect:
  • AdminGuard admits the admin to /houses
  • no houses yet → the empty state
Events:
  • [ANALYTIC] [page]: HousesRoute
  • HousesStarted

add a house — Home appears

User Actions:
  • Tapped: widget with key [<'HousesPage.addButton'>]
  • Entered text: Home
  • Entered text: 742 Evergreen Terrace
  • Tapped: widget with key [<'HouseEditor.saveButton'>]
Expect:
  • the new house appears after the reload
Events:
  • HousesCreated
  • [ANALYTIC] [page_popped]: HousesRoute

edit the house name → Main House

User Actions:
  • Tapped: widget with key [<'HousesPage.editButton_house-home'>]
  • Entered text: Main House
  • Tapped: widget with key [<'HouseEditor.saveButton'>]
Expect:
  • the row shows the new name after the reload
Events:
  • HousesUpdated
  • [ANALYTIC] [page_popped]: HousesRoute

delete the house — it goes

User Actions:
  • Tapped: widget with key [<'HousesPage.editButton_house-home'>]
  • Tapped: widget with key [<'HouseEditor.deleteButton'>]
Expect:
  • the deleted house is gone
  • back to the empty state
Events:
  • HousesDeleted
  • [ANALYTIC] [page_popped]: HousesRoute