import type { Project } from "../../../api/types.ts"; import { PageHeader } from "../../../ui/index.ts"; import { RefreshButton } from "../RefreshButton.tsx"; import { AgileGate } from "./AgileGate.tsx"; import { BoardColumns } from "./BoardColumns.tsx"; import { columnsOf } from "./columns.ts"; import { AgileIssueRow } from "./IssueRow.tsx"; import "./agile.css"; // «Kanban» (spec web-app): колонки доски; при включённом бэклоге Jira первая колонка не рисуется, её задачи — в «Бэклог (N)» (R-18) export function KanbanPage({ project }: { project: Project }) { return (
} /> {(d) => { const withBacklog = d.board?.kanban_backlog === true; const cols = d.board?.columns ?? null; // задачи первой колонки уходят в «Бэклог», а не в «Без колонки» const first = new Set(withBacklog && cols ? cols[0]?.statuses ?? [] : []); const issues = (d.board_issues ?? []).filter((i) => i.status === null || !first.has(i.status)); const backlog = d.backlog ?? []; return ( <> {withBacklog && (
{`Бэклог (${backlog.length})`}
    {backlog.map((i) => )}
)} ); }}
); }