Skip to main content

Catalog Chore Editor Assign Members Persists

EPIC: catalog
Chore Catalog
STORY: chore_editor
As a parent, I can create and edit chores so that my household has work to do.
AC: assign_members_persists
Tapping a member chip adds them to assignedMemberIds, which is passed to createChore on save.

open chore editor and stub member/place data

Expect:
  • ChoreEditorPage opens in create mode
Events:
  • [ANALYTIC] [page]: ChoreEditorRoute
  • ChoreEditorStarted
  • ChoreEditorDataLoaded

tap Alice chip to select her

User Actions:
  • Tapped: widget with key [<'ChoreEditorBody.memberChip_alice'>]
Expect:
  • effective assignees text appears after selecting Alice
Events:
  • ChoreEditorMemberToggled

fill name, switch to bounty, set token, save

User Actions:
  • Tapped: widget with text "Bounty"
  • Entered text: Feed the cat
  • Entered text: 3
  • Tapped: widget with key [<'ChoreEditorPage.saveButton'>]
Expect:
  • ChoreEditorPage pops on saveSuccess
  • createChore called with alice in assignedMemberIds
  • stepsPerMember is forwarded to createChore
  • maxPerDay forwarded as null (not entered in this flow)
  • estimateMin forwarded as null (not entered in this flow)
  • tempBonusTokens forwarded as null (not entered in this flow)
  • tempBonusUntil forwarded as null (not entered in this flow)
Events:
  • ChoreEditorKindChanged
  • ChoreEditorNameChanged
  • ChoreEditorTokenValueChanged
  • ChoreEditorSaved