correção gant

main
GuiSantos1367890 1 month ago
parent ea5cb95c0d
commit 5bdf66b80b

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

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

Loading…
Cancel
Save