v0.1.27
Fix: Throughput API v1 available - Details posted to Irving. POWERBI_KEY was missing from the .ENV file, so was not live. Add: Editor now supports editing a mix's resolved formula directly, with % and kg dual entry on ingredient rows Fix: Mix Editor should bring through correct ingredients. New resolved formula (same logic we use in Mix Calculator). Fix: Security headers on all API responses (hardening) Add: New mix button available on the Mix Editor. Add: New ingredient button available on the Ingredient Editor
This commit is contained in:
@@ -219,3 +219,26 @@ class EditorIngredientUpdate(BaseModel):
|
||||
status: str | None = Field(default=None, max_length=32)
|
||||
rounding_decimals: int | None = Field(default=None, ge=0, le=6)
|
||||
notes: str | None = Field(default=None, max_length=2000)
|
||||
|
||||
|
||||
# --- Change history ----------------------------------------------------------
|
||||
|
||||
|
||||
class EditorChangeFieldDelta(BaseModel):
|
||||
field: str
|
||||
label: str
|
||||
before: str | None = None
|
||||
after: str | None = None
|
||||
|
||||
|
||||
class EditorChangeEventRead(BaseModel):
|
||||
id: int
|
||||
entity_type: str
|
||||
entity_id: int
|
||||
action: str
|
||||
actor_name: str
|
||||
actor_email: str
|
||||
actor_role: str | None
|
||||
summary: str
|
||||
changes: list[EditorChangeFieldDelta]
|
||||
created_at: datetime
|
||||
|
||||
Reference in New Issue
Block a user