Skip to main content

Module chores

Module chores 

Source

Functions§

get_chores
Today’s chore list. Rolls over to an empty list if local midnight has passed since it was last entered (a chore post-it is a fresh thing each morning), persisting the reset so the overlay and the settings editor always agree on “today”.
get_chores_impl 🔒
AppHandle-free core of get_chores so unit tests can drive it.
set_chores
Replace today’s chore list with the user’s edited lines. The list is trimmed, de-blanked, and capped before it is stored, so the overlay only ever sees clean, bounded text. Returns the stored state so the editor can re-seed from the canonical (sanitized) list.
set_chores_impl 🔒
AppHandle-free core of set_chores so unit tests can drive it.