Merge main into front-7a

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

# Conflicts:
#	.gitea/workflows/deploy.yml
#	app/app.py
#	app/schema.sql
#	web/kanban.html
#	web/kanban.js
This commit is contained in:
Cauê Faleiros
2026-11-09 14:14:25 -03:00
22 changed files with 571 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
import re
from datetime import date
from datetime import date, datetime
from decimal import Decimal
from typing import Literal
from uuid import UUID
@@ -352,6 +352,17 @@ class MachineSheet(StrictModel):
minimums: dict[str, Decimal | None] = Field(default_factory=dict)
class SiteProductToggle(StrictModel):
"""Ligar ou desligar um produto na aba Site (Fase 2, front 8)."""
enabled: bool
class SitePriceNew(StrictModel):
"""Um novo preço e a data em que começa; sem data, começa agora."""
unit_cents: int = Field(ge=0, le=10000000, strict=True)
starts_at: datetime | None = None
class Contraction(StrictModel):
item_index: int = Field(ge=0, le=100)
# None returns the item to the class the browser measured.