style: Updated the overall UI of the provisining pages
This commit is contained in:
@@ -5,14 +5,22 @@ from enum import Enum
|
||||
|
||||
class BoardType(str, Enum):
|
||||
vs = "vs" # Vesper
|
||||
vp = "vp" # Vesper+
|
||||
vx = "vx" # VesperPro
|
||||
vp = "vp" # Vesper Plus
|
||||
vx = "vx" # Vesper Pro
|
||||
cb = "cb" # Chronos
|
||||
cp = "cp" # Chronos Pro
|
||||
am = "am" # Agnus Mini
|
||||
ab = "ab" # Agnus
|
||||
|
||||
|
||||
BOARD_TYPE_LABELS = {
|
||||
"vs": "Vesper",
|
||||
"vp": "Vesper+",
|
||||
"vx": "VesperPro",
|
||||
"vp": "Vesper Plus",
|
||||
"vx": "Vesper Pro",
|
||||
"cb": "Chronos",
|
||||
"cp": "Chronos Pro",
|
||||
"am": "Agnus Mini",
|
||||
"ab": "Agnus",
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +35,11 @@ class MfgStatus(str, Enum):
|
||||
|
||||
class BatchCreate(BaseModel):
|
||||
board_type: BoardType
|
||||
board_version: str = Field(..., pattern=r"^\d{2}$", description="2-digit zero-padded version, e.g. '01'")
|
||||
board_version: str = Field(
|
||||
...,
|
||||
pattern=r"^\d+(\.\d+)*$",
|
||||
description="SemVer-style version string, e.g. '1.0' or legacy '01'",
|
||||
)
|
||||
quantity: int = Field(..., ge=1, le=100)
|
||||
|
||||
|
||||
@@ -49,6 +61,7 @@ class DeviceInventoryItem(BaseModel):
|
||||
created_at: Optional[str] = None
|
||||
owner: Optional[str] = None
|
||||
assigned_to: Optional[str] = None
|
||||
device_name: Optional[str] = None
|
||||
|
||||
|
||||
class DeviceInventoryListResponse(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user