Гант: свёртывание групп, сводные полосы с вехами, масштаб времени
All checks were successful
ci / test (push) Successful in 18s
ci / deploy (push) Successful in 1m17s

Каждый этап - группа со сводной штрихованной полосой; вехи (колонка
is_milestone, по умолчанию чек-пойнты CP-*) отмечены ромбами с подписями
над полосой и пунктирными направляющими вниз. Группы сворачиваются кликом,
кнопками «Свернуть все / Развернуть все». Масштаб времени (кнопки и
Shift+колесо) меняет только ось, шрифты и интервалы не меняются.
Состояние в адресе: px, collapsed. Параметры px и collapsed у /gantt.svg.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 14:51:37 +03:00
parent ea57029bc0
commit 95ddaa4d99
10 changed files with 412 additions and 107 deletions

View File

@@ -19,6 +19,8 @@ export interface ProcessRow {
duration: string | null;
dateConstraint: string | null;
questions: string | null;
/** признак вехи: колонка is_milestone; если колонки нет или она пустая - вехами считаются чек-поинты CP-* */
isMilestone: boolean;
}
export interface RoleRow { id: string; person: string | null; comment: string | null }
export interface SystemRow { id: string; name: string | null; comment: string | null }
@@ -52,6 +54,7 @@ export function mapRow(r: Raw): ProcessRow {
duration: str(r.duration),
dateConstraint: str(r.date_constraint),
questions: str(r.questions),
isMilestone: typeof r.is_milestone === "boolean" ? r.is_milestone : /^CP-/.test(String(r.id)),
};
}