Skip to content

feat: add batch operations (select all, bulk toggle, bulk delete)#1

Open
hanwucui wants to merge 1 commit into
santoslgl01-web:mainfrom
hanwucui:feat/batch-operations
Open

feat: add batch operations (select all, bulk toggle, bulk delete)#1
hanwucui wants to merge 1 commit into
santoslgl01-web:mainfrom
hanwucui:feat/batch-operations

Conversation

@hanwucui
Copy link
Copy Markdown

Summary

Adds batch operations to the Todo app:

  • Select All checkbox to quickly select/deselect all todos
  • Mark Done / Mark Undone buttons to toggle status of selected items
  • Delete button to remove selected items
  • Action bar only appears when items are selected
  • Selection state properly cleans up when items are deleted

Changes

  • \components/TodoItem.tsx: Added \selected\ and \onSelect\ props with selection checkbox
  • \�pp/page.tsx: Added selection state management and batch action UI
  • _tests_/batch-operations.test.tsx: 5 new tests covering all batch operations

Tests

All 7 tests pass (2 existing + 5 new).

Closes #17

- Add selection checkboxes to each TodoItem
- Add Select All checkbox with toggle
- Add batch action bar with Mark Done, Mark Undone, and Delete buttons
- Action buttons only appear when items are selected
- Selection state properly clears when items are deleted
- Add 5 tests for batch operations

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant