Skip to content

016-3: Session UI - SessionStatus + PhaseProgress Components #200

Description

@frankbria

Part of #197 - Planning Phase Automation

Scope

This issue covers the frontend components that display session context and phase progress.

Tasks

1. Fix SessionStatus Component (~1h)

  • Update web-ui/src/components/SessionStatus.tsx
  • Connect to GET /api/projects/:id/session endpoint
  • Remove placeholder "Starting new session..." text
  • Display:
    • Last session summary
    • Time ago (e.g., "2 hours ago")
    • Next actions list
    • Progress percentage
    • Active blocker count
  • Handle loading and error states
  • Auto-refresh every 30 seconds

2. Create PhaseProgress Component (~1.5h)

  • Create web-ui/src/components/PhaseProgress.tsx
  • Display current phase with icon
  • Show step X of Y within phase
  • Progress bar visualization
  • Next action hint
  • Phase-specific styling (colors per phase)
  • Replace old "RUNNING Phase: planning (Step 1/15)" display

Phase icons:

  • discovery: 🔍
  • planning: 📋
  • development: 🔨
  • review: ✅
  • complete: 🎉
  • shipped: 🚀

Acceptance Criteria

  • SessionStatus shows real data from API
  • No placeholder text visible
  • PhaseProgress shows correct phase and steps
  • Step counter resets appropriately per phase
  • Components handle loading/error states gracefully

Dependencies

  • Requires: 016-1 (session endpoint)

Blocks

Files

  • web-ui/src/components/SessionStatus.tsx (modify)
  • web-ui/src/components/PhaseProgress.tsx (new)
  • web-ui/__tests__/SessionStatus.test.tsx (modify)
  • web-ui/__tests__/PhaseProgress.test.tsx (new)

Effort

~2.5 hours

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