feat(company-profile): Branchen-Erweiterung, Multi-Select & Zertifizierungen

Multi-Branche-Auswahl im CompanyProfile, erweiterte allowed-facts fuer
Drafting Engine, Demo-Daten und TOM-Generator Anpassungen.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-03-10 11:03:21 +01:00
parent 5da93c5d10
commit 3c0c1e49da
9 changed files with 292 additions and 120 deletions

View File

@@ -34,7 +34,7 @@ export function buildAllowedFactsFromDraftContext(
return {
companyName: profile.name || 'Unbekannt',
legalForm: '', // Nicht im DraftContext enthalten
industry: profile.industry || '',
industry: Array.isArray(profile.industry) ? profile.industry.join(', ') : (profile.industry || ''),
location: '', // Nicht im DraftContext enthalten
employeeCount: profile.employeeCount || 0,

View File

@@ -97,7 +97,7 @@ export function buildAllowedFacts(
return {
companyName: profile?.companyName ?? 'Unbekannt',
legalForm: profile?.legalForm ?? '',
industry: profile?.industry ?? '',
industry: Array.isArray(profile?.industry) ? profile.industry.join(', ') : (profile?.industry ?? ''),
location: profile?.headquartersCity ?? '',
employeeCount: parseEmployeeCount(profile?.employeeCount),