---
id: T-1197
name: "Fix G-041: Replace hardcoded status selectors in kanban CSS/HTML with dynamic
  Jinja enum"
description: >
  Fix G-041: Replace hardcoded status selectors in kanban CSS/HTML with dynamic Jinja
  enum

status: work-completed
workflow_type: build
owner: agent
horizon:
tags: []
components: [web/blueprints/tasks.py, web/templates/tasks.html]
related_tasks: []
created: 2026-04-13T06:55:54Z
last_update: '2026-06-11T22:23:42Z'
date_finished: 2026-04-13T07:04:50Z
bvp_scores_proposed:
  - ts: '2026-06-11T22:23:42Z'
    estimator: bvp-estimator-v1-heuristic
    scores:
      D1: 3
      D2: 0
      D3: 0
      D4: 0
      F-RECALL: 0
      F-ORCH: 0
      F3: 0
      F1: 0
      F2: 0
    rationale: D1=3 (body:test-or-audit-check); D2=0 (no-signal); D3=0 
      (no-signal); D4=0 (no-signal); F-RECALL=0 (no-signal); F-ORCH=0 
      (no-signal); F3=0 (no-signal); F1=0 (no-signal); F2=0 (no-signal)
    rubric_sha: e4a00f38e801
---

# T-1197: Fix G-041: Replace hardcoded status selectors in kanban CSS/HTML with dynamic Jinja enum

## Context

G-041: tasks.html has 25 hardcoded status references (4 arrays, 9 CSS selectors, 7 column divs). T-1188 fixed Python side. This fixes templates.

## Acceptance Criteria

### Agent
- [x] tasks.html status arrays replaced with Jinja variable from backend
- [x] Kanban columns generated dynamically from status list
- [x] All status arrays use `enum_statuses|default(...)` pattern — no bare hardcoded arrays
- [x] Tasks page renders correctly (17 Playwright tests pass)

## Verification

# enum_statuses passed from backend
grep -q 'enum_statuses' web/blueprints/tasks.py
# Kanban columns use dynamic loop (not 4 hardcoded divs)
grep -q 'for s in _statuses' web/templates/tasks.html

## Decisions

<!-- Record decisions ONLY when choosing between alternatives.
     Skip for tasks with no meaningful choices.
     Format:
     ### [date] — [topic]
     - **Chose:** [what was decided]
     - **Why:** [rationale]
     - **Rejected:** [alternatives and why not]
-->

## Updates

### 2026-04-13T06:55:54Z — task-created [task-create-agent]
- **Action:** Created task via task-create agent
- **Output:** /opt/999-Agentic-Engineering-Framework/.tasks/active/T-1197-fix-g-041-replace-hardcoded-status-selec.md
- **Context:** Initial task creation

### 2026-04-13T07:04:50Z — status-update [task-update-agent]
- **Change:** status: started-work → work-completed

## Reviewer Verdict (v1.5)

- **Scan ID:** R-f600b2aa
- **Timestamp:** 2026-06-02T14:55:50Z
- **Catalogue:** v1.3-seed
- **Overall:** PASS
- **Needs Human:** no
- **Findings:** none
