Skip to main content

Catalog Chore Editor Step Icon 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: step_icon_persists
Picking a curated icon for a per-member step sets Subtask.icon, which is passed to createChore on save.

open chore editor with one assignable member

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

assign Alice → per-member steps section appears

User Actions:
  • Tapped: widget with key [<'ChoreEditorBody.memberChip_alice'>]
Expect:
  • per-member steps section for Alice appears
Events:
  • ChoreEditorMemberToggled

type a step name and add it

User Actions:
  • Entered text: Brush teeth
  • Tapped: widget with widget matching predicate
Expect:
  • the new step exposes an icon affordance
Events:
  • ChoreEditorStepsPerMemberChanged

open the icon picker, search, and pick the toothbrush

User Actions:
  • Tapped: widget with a semantics label named "Choose an icon for Brush teeth"
  • Entered text: toothbrush
  • Tapped: widget with a semantics label named "Step icon: Toothbrush" (ignoring all but first)
Expect:
  • the picker sheet closed back to the editor
Events:
  • [ANALYTIC] [page_popped]: ChoreEditorRoute
  • ChoreEditorStepsPerMemberChanged

name the chore and save

User Actions:
  • Entered text: Morning routine
  • Tapped: widget with key [<'ChoreEditorPage.saveButton'>]
Expect:
  • ChoreEditorPage pops on saveSuccess
  • Alice has one per-member step
  • the picked toothbrush icon is persisted on the step
Events:
  • ChoreEditorNameChanged
  • ChoreEditorSaved