feat: per-position camera settings, material alias dialog, product delete, media browser links

- Per-render-position focal_length_mm/sensor_width_mm (DB → pipeline → Blender)
- FOV-based camera distance with min clamp fix for wide-angle lenses
- Unmapped materials blocking dialog on "Dispatch Renders" with batch alias creation
- Material check endpoint (GET /orders/{id}/check-materials)
- Batch alias endpoint (POST /materials/batch-aliases)
- Quick-map "No alias" badges on Materials page
- Full product hard-delete with storage cleanup (MinIO + disk files + orphaned CadFile)
- Delete button on ProductDetail page with confirmation
- Clickable product names in Media Browser (links to product page)
- Single-line render dispatch/retry (POST /orders/{id}/lines/{id}/dispatch-render)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-14 12:16:37 +01:00
parent 0020376702
commit b583b0d7a2
48 changed files with 1827 additions and 376 deletions
+34
View File
@@ -87,3 +87,37 @@ export async function seedAliases(): Promise<{ inserted: number; total: number }
const res = await api.post<{ inserted: number; total: number }>('/materials/seed-aliases')
return res.data
}
// --- Material check / batch alias ---
export interface MaterialSuggestion {
id: string
name: string
schaeffler_code: string
}
export interface UnmappedMaterial {
raw_name: string
suggestions: MaterialSuggestion[]
}
export interface UnmappedMaterialCheck {
unmapped: UnmappedMaterial[]
total_materials: number
mapped_count: number
}
export async function checkOrderMaterials(orderId: string): Promise<UnmappedMaterialCheck> {
const res = await api.get<UnmappedMaterialCheck>(`/orders/${orderId}/check-materials`)
return res.data
}
export async function batchCreateAliases(
mappings: Array<{ alias: string; material_id: string }>
): Promise<{ created: number; skipped: number }> {
const res = await api.post<{ created: number; skipped: number }>(
'/materials/batch-aliases',
{ mappings }
)
return res.data
}