Skip to content

Conversation

Copy link

Copilot AI commented Jan 7, 2026

Adds bulk operations for tasks on /tasks page per TF-4 requirements.

Changes

Server Actions (app/(dashboard)/tasks/actions.ts)

  • bulkUpdateTaskStatus(taskIds[], status) - Type-safe bulk status updates
  • bulkDeleteTasks(taskIds[]) - Bulk deletion with auth checks

UI Components (components/task-list.tsx)

  • Selection state: individual checkboxes + "Select All"
  • Bulk actions bar appears when tasks selected, shows count
  • Dropdown menu: "Mark as Done" | "Delete"
  • Confirmation dialog for destructive operations
  • Optimistic updates for immediate UI feedback

Tests

  • Unit: auth validation, error handling, success scenarios (9 tests)
  • E2E: select all, bulk mark done, bulk delete with confirmation (4 tests)

Screenshots

Bulk selection and actions menu
Bulk Actions Bar
Bulk Actions Menu

Delete confirmation
Delete Confirmation

Implementation Notes

Uses useOptimistic for responsive UI during server operations. Status parameter constrained to valid enum values. Label properly associated with checkbox via htmlFor for accessibility.

Original prompt

This section details on the original issue you should resolve

<issue_title>TF-4 Display Task Search Results</issue_title>
<issue_description> Implement the work described in Jira ticket TF-4, including looking at any Figma files mentioned. When finished, transition the ticket to "In Reivew".

To do the work use the following prompt chain which describes steps for best implementing the feature:

  1. Open the repository on GitHub: https://github.com/bitovi/ai-enablement-prompts.
  2. Execute the prompt writing-code/generate-feature/generate-feature.md</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Implement task search results display feature Implement bulk task actions (select, mark done, delete) Jan 7, 2026
Copilot AI requested a review from BitoviAI January 7, 2026 16:27
@mikedane-bitovi mikedane-bitovi deleted the copilot/display-task-search-results-another-one branch January 12, 2026 19:50
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.

TF-4 Display Task Search Results

3 participants