Skip to content

016-4: Create Tasks Button in DiscoveryProgress #201

Description

@frankbria

Part of #197 - Planning Phase Automation

Scope

This issue adds the "Generate Task Breakdown" button to the DiscoveryProgress component.

Tasks

Create Tasks Button (~1h)

  • Modify web-ui/src/components/DiscoveryProgress.tsx
  • Add button when: phase = "planning" AND PRD exists AND tasks not generated
  • Button states:
    • Pre-generation: "Generate Task Breakdown" (primary action)
    • Generating: Spinner + "Generating tasks..." (disabled)
    • Complete: "Review Tasks →" (links to Tasks tab)
  • Listen for WebSocket events:
    • planning_started → show generating state
    • issues_generated → update progress text
    • tasks_decomposed → update progress text
    • tasks_ready → show "Review Tasks" button
  • Handle errors (show retry button)
  • Remove placeholder "Next: Task Creation" text

UI Mockup

┌─────────────────────────────────────────┐
│ ✅ PRD Generated                        │
│                                         │
│ Your PRD has been generated with 8      │
│ features ready for development.         │
│                                         │
│ [Generate Task Breakdown]  ← Primary    │
│                                         │
│ or                                      │
│                                         │
│ [View PRD]  ← Secondary                 │
└─────────────────────────────────────────┘

After generation:
┌─────────────────────────────────────────┐
│ ✅ Tasks Ready for Review               │
│                                         │
│ Created 5 issues and 24 tasks from PRD. │
│                                         │
│ [Review Tasks →]  ← Links to Tasks tab  │
└─────────────────────────────────────────┘

Acceptance Criteria

  • Button appears in correct state based on project phase
  • Clicking button triggers task generation (or uses auto-trigger)
  • Loading state shows during generation
  • "Review Tasks" button appears after completion
  • No placeholder text visible

Dependencies

  • Requires: 016-2 (WebSocket events for progress)

Blocks

Files

  • web-ui/src/components/DiscoveryProgress.tsx (modify)
  • web-ui/__tests__/DiscoveryProgress.test.tsx (modify)

Effort

~1 hour

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0-blocker-betaCritical blocker - must fix before beta testingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions