The flat array of tasks to convert into a tree.
Optionalcolor?: stringOptional CSS color value for the task bar. Overrides the default color assignment.
Optionaldata?: Record<string, unknown>Optional arbitrary metadata for consumer use. Preserved in the parsed output.
ISO date: YYYY-MM-DD
Unique positive integer identifier for the task.
Optionalparent?: numberOptional id of the parent task. When set, this task is a child in the hierarchy.
0–100 completion percentage (integer).
Optionalreadonly?: booleanWhen true, the task bar cannot be dragged or resized.
ISO date: YYYY-MM-DD
Display name / label of the task.
Optionalcolor?: stringOptional CSS color value for the task bar. Overrides the default color assignment.
Optionaldata?: Record<string, unknown>Optional arbitrary metadata for consumer use. Preserved in the parsed output.
ISO date: YYYY-MM-DD
Unique positive integer identifier for the task.
Initial expanded state for tree hierarchy.
When false, children of this task are hidden on initial render.
Optionalparent?: numberOptional id of the parent task. When set, this task is a child in the hierarchy.
0–100 completion percentage (integer).
Optionalreadonly?: booleanWhen true, the task bar cannot be dragged or resized.
ISO date: YYYY-MM-DD
Display name / label of the task.
Optionalcolor?: stringOptional CSS color value for the task bar. Overrides the default color assignment.
Optionaldata?: Record<string, unknown>Optional arbitrary metadata for consumer use. Preserved in the parsed output.
Unique positive integer identifier for the task.
Optionalparent?: numberOptional id of the parent task. When set, this task is a child in the hierarchy.
Optionalreadonly?: booleanWhen true, the task bar cannot be dragged or resized.
ISO date: YYYY-MM-DD
Display name / label of the task.
Root-level TaskNode instances with populated children.
Builds a typed tree from a flat task array. Order of tasks[] is irrelevant — parents need not precede children.