Skip to main content

Rooms Rooms Management Admin Sets Room Owners

EPIC: rooms
Admin · Rooms (inside a house)
STORY: rooms_management
As an admin, I can create, rename and delete a house's rooms (places) after opening that house from the Houses hub.
AC: admin_sets_room_owners
An admin opens the Rooms page, taps the owner affordance on a room, selects a member, confirms — RoomsOwnersChanged dispatches and updatePlace(ownerIds:) is called with the chosen member ids.

open the Admin hub and the Houses list

User Actions:
  • Tapped: widget with text "Profile"
  • Tapped: widget with key [<'MorePage.adminEntry'>]
  • Tapped: widget with key [<'AdminHubPage.housesEntry'>]
Expect:
  • AdminGuard admits the admin to /houses
  • the seeded house is listed
Events:
  • [ANALYTIC] [page]: ProfileRoute
  • MoreStarted
  • MoreCurrentMemberChanged
  • [ANALYTIC] [page]: AdminRoute
  • [ANALYTIC] [page]: HousesRoute
  • HousesStarted

open the Home house — Kitchen room shown with owner row

User Actions:
  • Tapped: widget with key [<'HousesPage.houseTile_house-home'>]
Expect:
  • admin is on the Rooms page
  • Kitchen room tile is visible
  • owner-editor affordance rendered for the Kitchen room
Events:
  • [ANALYTIC] [page]: RoomsRoute
  • RoomsStarted

tap the owner affordance → member picker opens → select Mom → Done → RoomsOwnersChanged dispatched, updatePlace called

User Actions:
  • Tapped: widget with key [<'RoomsOwnerEditor.room-kitchen'>]
  • Tapped: widget with key [<'RoomsOwnerEditor.memberChip_mom'>]
  • Tapped: widget with key [<'RoomsOwnerEditor.doneButton'>]
Expect:
  • updatePlace was called with Kitchen id
  • updatePlace received Mom as the new owner
Events:
  • [ANALYTIC] [page_popped]: RoomsRoute
  • RoomsOwnersChanged