feat(todo): native per-child to-do list platform (FEAT-8)#602
Merged
Conversation
Each child gets a todo.taskmate_<name> entity listing the chores they still need to do today; checking an item off completes the chore. Lets the native HA to-do card and voice assistants drive TaskMate without the custom cards. Adds a shared coordinator helper get_due_chores_for_child() — the single backend definition of a child's outstanding chores (assigned_to + specific_days due_days + completed-today cap on top of is_chore_available_for_child), reusable by cards/automations and tested in isolation. Registers Platform.TODO (dynamic per-child add), conftest stubs. Tests: 6 helper cases (assigned/everyone, due_days, daily-limit, other-child, bonus-subtask, availability) + 4 entity cases. Verified live on ha-dev: todo.taskmate_vaiha lists her 4 real chores; native todo.update_item check-off completed 'Make bed' (4->3); restored.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FEAT-8 — native
todoplatformEach child gets a
todo.taskmate_<name>entity listing the chores they still need to do today; checking an item off completes the chore. This lets the native HA to-do card and voice assistants drive TaskMate without the custom cards.Key addition: a shared definition of "due chores"
Adds
coordinator.get_due_chores_for_child()— the single backend definition of a child's outstanding chores:assigned_tomembership +specific_daysdue_days+ a completed-today cap, layered on top ofis_chore_available_for_child. Previously this logic only lived (duplicated) in the cards' JS. Reusable by cards/automations and unit-tested in isolation.Registers
Platform.TODO(per-child, dynamic add as children appear) + conftest stubs.Testing
todo.taskmate_vaihalists her 4 real chores viatodo.get_items; HA-nativetodo.update_itemcheck-off completed "Make bed" (list 4→3); restored cleanly.From AUDIT_REPORT.md §5 (FEAT-8).