feat/schema-driven-new-item-form #18
Reference in New Issue
Block a user
Delete Branch "feat/schema-driven-new-item-form"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace the 3-dialog chain (category → description → projects) with a single SchemaFormDialog that fetches schema data from the Silo REST API and builds the UI dynamically at runtime. New dialog features: - Two-stage category picker (domain combo → subcategory combo) - Dynamic property fields grouped by domain and common defaults - Collapsible form sections (Identity, Sourcing, Details, Properties) - Live part number preview via POST /api/generate-part-number - Item type selection (part, assembly, consumable, tool) - Sourcing fields (type, cost, URL) - Project tagging via multi-select list - Widget factory: string→QLineEdit, number→QDoubleSpinBox+unit, boolean→QCheckBox The form mirrors the React CreateItemPane.tsx layout and uses the same API endpoints: - GET /api/schemas/kindred-rd (category enum values) - GET /api/schemas/kindred-rd/properties?category={code} - GET /api/projects - POST /api/items (via _client.create_item)