feat: v4.0 - multi-day horizontal canvas, duration input, overnight blocks, PDF horizontal layout
Some checks failed
Build & Push Docker / build (push) Has been cancelled

This commit is contained in:
2026-02-20 17:31:41 +01:00
parent e3a5330cc2
commit 47add509ca
11 changed files with 1188 additions and 773 deletions

View File

@@ -33,8 +33,9 @@ async def validate_scenario(doc: ScenarioDocument):
for i, block in enumerate(doc.blocks):
if block.type_id not in type_ids:
errors.append(f"Block {i+1}: unknown type '{block.type_id}'")
if block.start >= block.end:
errors.append(f"Block {i+1}: start time must be before end time")
if block.start == block.end:
errors.append(f"Block {i+1}: start time must differ from end time")
# Note: end < start is allowed for overnight blocks (block crosses midnight)
return ValidationResponse(valid=len(errors) == 0, errors=errors)