Skip to content

Implement full CRUD from ViewModel; UI only dispatches intents #7

Description

@TBA5854

Centralize Create/Read/Update/Delete logic inside ToDoViewModel. Expose a single observable list (LiveData/Flow). UI must call ViewModel intents only (e.g., onAdd(title, desc), onToggle(id), onEdit(id, fields), onDelete(id)), with no data mutations in Activity/Composables. Add or fix VM methods (addNewToDo, updateToDo, toggleCompletionStatus, deleteToDo) and ensure all UI paths are wired to these. Remove any duplicated Activity state and verify state survives configuration changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions