Plan: Filter terminal tasks from Pipeline Kanban#
Summary#
Filter tasks with terminal statuses (complete, error, cancelled) from the Kanban board before column grouping, so only genuinely in-progress work appears. The filter is based solely on overall status, not individual phase fields.
Files#
| File | Action | Description |
|---|---|---|
app/pipeline/page.tsx | modify | Add terminal-status filter before Kanban phase grouping loop (line ~176) |
Steps#
- Define a
TERMINAL_STATUSESset containing'complete','error', and'cancelled'inapp/pipeline/page.tsx. - In the
if (data)block (line 175–182), filterdata.datato exclude tasks whosestatusmatches any terminal value before iterating intotasksByPhase. - Verify that the list view (the
<details>fallback) still shows all tasks unfiltered, since it usesdata.datadirectly.
Verification#
npm run lintpasses with zero warnings.npm run buildcompiles successfully.- Manual check: a task with
status: completedoes not appear in any Kanban column; a task withphaseDeliver: completebut non-terminalstatusremains visible.
Risks#
- The status strings (
complete,error,cancelled) must match exactly what the API returns. If the API uses different casing or values, the filter will silently miss tasks. Mitigation: verify against theStatusBadgecomponent and the status filter dropdown values already in the file.