Skip to content

[Phase 3] Task Board: bulk stop, reset, and state management actions #340

Description

@frankbria

Problem

The Task Board currently only supports executing a single READY task. Users need broader task management actions — especially for recovering from failures and managing running tasks during iterative development. Additionally, there's no way to navigate to the Execution Monitor for a task that's already running.

Requested Features

1. Navigate to Execution Monitor from In-Progress Tasks

  • Clicking an IN_PROGRESS task card should offer a "View Execution" action
  • Takes the user directly to /execution/{taskId} to watch live progress
  • Could be the primary click action or a prominent button on the card

2. Stop In-Progress Tasks

  • Single: Stop button on IN_PROGRESS task cards (calls POST /tasks/{id}/stop)
  • Bulk: Select multiple IN_PROGRESS tasks and stop them all
  • Confirmation dialog before bulk stop

3. Reset Failed Tasks

  • Single: Reset button on FAILED task cards (transitions FAILED → READY)
  • Bulk: Select multiple FAILED tasks and reset them all
  • Optionally show last error summary before reset

4. Bulk Action Infrastructure

  • Checkbox selection on task cards (shift-click for range select)
  • Floating action bar appears when tasks are selected
  • Available actions depend on selected task statuses:
    • All READY → "Execute All"
    • All IN_PROGRESS → "Stop All"
    • All FAILED → "Reset All"
    • Mixed → show applicable actions with counts
  • Select-all within a status column

Backend Support

The API endpoints already exist:

  • POST /api/v2/tasks/{id}/stop — stops a running task
  • PATCH /api/v2/tasks/{id} with {"status": "READY"} — resets a failed task
  • POST /api/v2/tasks/execute — batch execution

A new bulk-stop endpoint may be needed, or the frontend can fan out individual calls.

Acceptance Criteria

  • Clicking an IN_PROGRESS task navigates to the Execution Monitor
  • IN_PROGRESS tasks show a Stop action in the task card
  • FAILED tasks show a Reset to Ready action in the task card
  • Users can select multiple tasks via checkboxes
  • Bulk action bar appears with context-appropriate actions
  • Confirmation dialogs for destructive bulk actions (stop, reset)
  • Optimistic UI updates with rollback on failure
  • All actions work through the existing v2 API

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-3Phase 3: Web UI Rebuild

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions