feat(O): UI-Vollständigkeit + v3-Workflows + OCC-Kantenanalyse

Backend:
- Phase I: notification_configs router (GET/PUT/{event}/{channel}/POST reset)
  war bereits in notifications.py — add-alias endpoint in uploads.py ergänzt
- OutputType schema: workflow_definition_id + workflow_name fields;
  PATCH unterstützt Workflow-Zuweisung; _enrich_workflow_names() batch query
- Dispatch-Integration: orders.py dispatch_renders() → dispatch_render_with_workflow()
  mit Legacy-Fallback; neues Logging
- uploads.py: POST /validations/{id}/add-alias für Material-Lücken

Pipeline:
- step_processor.py: extract_mesh_edge_data() via OCC — berechnet Dihedralwinkel
  aller Kanten, liefert suggested_smooth_angle + sharp_edge_midpoints
  Integriert in extract_cad_metadata() und process_cad_file()
- domains/rendering/tasks.py: apply_asset_library_materials_task (K3),
  export_gltf_for_order_line_task → Blender export_gltf.py (K4),
  export_blend_for_order_line_task → export_blend.py fix (K5)
- render-worker/scripts/still_render.py: _mark_sharp_and_seams() mit
  OCC midpoint KD-tree matching + UV-Seam-Markierung
- render-worker/scripts/blender_render.py: identische Funktion + mesh_attributes parsing

Frontend:
- Layout.tsx: Upload-Link in Sidebar (alle User); Asset Libraries Link (admin/PM)
- App.tsx: /asset-libraries Route
- AssetLibrary.tsx: neue Seite (Upload, Catalog-Anzeige, Refresh, Toggle, Delete)
- OutputTypeTable.tsx: Workflow-Dropdown + Legacy/Workflow Badge
- ProductDetail.tsx: Geometry-Karte (Volumen, Surface, BBox, Sharp-Winkel)
- api/outputTypes.ts + api/products.ts: neue Felder
- api/imports.ts: ImportValidation API

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 23:20:55 +01:00
parent f15b035b88
commit 382a18fd02
18 changed files with 1222 additions and 355 deletions
+23
View File
@@ -0,0 +1,23 @@
import api from './client'
export interface ImportValidation {
id: string
status: 'pending' | 'running' | 'completed' | 'failed'
summary: {
total_rows: number
rows_with_cad: number
rows_without_cad: number
unresolvable_materials: Array<{ row_name: string; material: string }>
} | null
created_at: string
completed_at: string | null
}
export async function getImportValidation(id: string): Promise<ImportValidation> {
const res = await api.get(`/imports/validation/${id}`)
return res.data
}
export async function addMaterialAliasFromValidation(validationId: string, partName: string, materialName: string): Promise<void> {
await api.post(`/imports/validation/${validationId}/add-alias`, { part_name: partName, material_name: materialName })
}
+1
View File
@@ -16,6 +16,7 @@ export interface OutputType {
pricing_tier_id: number | null
pricing_tier_name: string | null
price_per_item: number | null
workflow_definition_id: string | null
is_active: boolean
created_at: string
updated_at: string
+12
View File
@@ -24,6 +24,14 @@ export interface CadPartMaterial {
material: string
}
export interface CadFileMeshAttributes {
volume_mm3?: number
surface_area_mm2?: number
bbox?: { x?: number; y?: number; z?: number }
suggested_smooth_angle?: number
[key: string]: unknown
}
export interface Product {
id: string
pim_id: string
@@ -40,6 +48,10 @@ export interface Product {
components: ComponentData[]
cad_part_materials: CadPartMaterial[]
cad_file_id: string | null
cad_file?: {
id: string
mesh_attributes?: CadFileMeshAttributes
} | null
thumbnail_url: string | null
render_image_url: string | null
processing_status: string | null