gram/conformance/cases/020-section-retro-planning-valid/compiled.json
abiwab c653893ab0
All checks were successful
CI / Build, Test & Publish (push) Successful in 4m11s
feat: replace the Gantt chart with the work plan (#88)
Introduce @gram-lang/scheduler, work plan views, mise en place modes, comments option, and CLI/editor integrations.
2026-11-05 09:49:00 +01:00

327 lines
5.8 KiB
JSON

{
"title": "Section Retro-Planning Valid",
"slug": "section-retro-planning-valid",
"meta": {
"title": "Section Retro-Planning Valid"
},
"registry": {
"ingredients": {
"flour": {
"id": "flour",
"name": "flour",
"default_unit": "g"
},
"butter": {
"id": "butter",
"name": "butter",
"default_unit": "g"
},
"filling": {
"id": "filling",
"name": "filling",
"default_unit": "g"
}
},
"cookware": {}
},
"shopping_list": [
{
"id": "flour",
"name": "flour",
"_usageIds": [
"1"
],
"qty": 200,
"unit": "g"
},
{
"id": "butter",
"name": "butter",
"_usageIds": [
"2"
],
"qty": 100,
"unit": "g"
},
{
"id": "filling",
"name": "filling",
"_usageIds": [
"3"
],
"qty": 300,
"unit": "g"
}
],
"cookware": [],
"sections": [
{
"title": "Puff Pastry",
"ingredients": [
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g"
},
{
"id": "butter",
"_usageId": "2",
"qty": 100,
"unit": "g"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Mix ",
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g"
},
"and ",
{
"id": "butter",
"_usageId": "2",
"qty": 100,
"unit": "g"
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
],
"retro_planning": {
"raw": "-2d",
"sign": -1,
"value": 2,
"unit": "d",
"minutes": -2880
}
},
{
"title": "Assembly",
"ingredients": [
{
"id": "filling",
"_usageId": "3",
"qty": 300,
"unit": "g"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Combine the puff pastry with ",
{
"id": "filling",
"_usageId": "3",
"qty": 300,
"unit": "g"
},
"."
],
"timings": {
"start": 2880,
"end": 2882,
"activeDuration": 2
}
}
]
}
],
"warnings": [],
"metrics": {
"totalTime": 2885,
"totalBreakdown": [
{
"label": "section_active:Puff Pastry",
"duration": 2
},
{
"label": "section_active:Assembly",
"duration": 2
}
],
"idleTime": 2878,
"activeTime": 4,
"activeBreakdown": [
{
"label": "section_active:Puff Pastry",
"duration": 2
},
{
"label": "section_active:Assembly",
"duration": 2
}
],
"preparationTime": 3,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 3
}
]
},
"miseEnPlace": [
{
"section": 0,
"duration": 2,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 2,
"duration": 2
}
]
},
{
"section": 1,
"duration": 1,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
]
}
],
"tasks": {
"tasks": [
{
"id": "s0.prep",
"kind": "prep",
"section": 0,
"duration": {
"nominal": 2
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 2,
"duration": 2
}
],
"after": []
},
{
"id": "s0.0",
"kind": "step",
"section": 0,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
},
{
"id": "s1.prep",
"kind": "prep",
"section": 1,
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
],
"after": []
},
{
"id": "s1.0",
"kind": "step",
"section": 1,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
}
],
"sections": [
{
"day": 2,
"deadline": 2880
},
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 2884,
"activeTime": 4,
"preparationTime": 3,
"idleTime": 2877,
"blocks": [
{
"kind": "prep",
"task": "s0.prep",
"section": 0,
"start": 0,
"end": 2
},
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 2,
"end": 4
},
{
"kind": "prep",
"task": "s1.prep",
"section": 1,
"start": 2881,
"end": 2882
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 2882,
"end": 2884
}
],
"days": [
{
"day": 2,
"start": 0,
"end": 4,
"sections": [
0
]
},
{
"day": 0,
"start": 2881,
"end": 2884,
"sections": [
1
]
}
]
}
}