correção gant

main
GuiSantos1367890 1 month ago
parent ea5cb95c0d
commit 5bdf66b80b

@ -12,7 +12,7 @@ const MONTH_ABBR = [
function buildYearSegments() { function buildYearSegments() {
const segments: { year: number; span: number; startMonthIndex: number }[] = [] const segments: { year: number; span: number; startMonthIndex: number }[] = []
let monthOfYear = timeline.startMonthOfYear // 8 = agosto let monthOfYear = timeline.startMonthOfYear // 8 = agosto
let year = timeline.startYear let year = Number(timeline.startYear)
let current = { year, span: 0, startMonthIndex: 1 } let current = { year, span: 0, startMonthIndex: 1 }
for (let m = 1; m <= timeline.totalMonths; m++) { for (let m = 1; m <= timeline.totalMonths; m++) {
if (current.span === 0) current.startMonthIndex = m if (current.span === 0) current.startMonthIndex = m

@ -77,6 +77,7 @@ export type Task = {
title: string title: string
startMonth: number startMonth: number
endMonth: number endMonth: number
description?: string
} }
export const tasks: Task[] = [ export const tasks: Task[] = [
@ -149,7 +150,7 @@ export const reports: Report[] = [
export const timeline = { export const timeline = {
totalMonths: 36, totalMonths: 36,
startYear: 2025, startYear: 2025,
startMonthOfYear: 8, // agosto startMonthOfYear: 8 as number, // agosto
} as const } as const
// ── Indicators ──────────────────────────────────────────────────────────── // ── Indicators ────────────────────────────────────────────────────────────

Loading…
Cancel
Save