fix(pitch-deck): sync Executive Summary + BusinessModel with compute engine
Some checks failed
Build pitch-deck / build-push-deploy (push) Failing after 35s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 35s
CI / test-python-voice (push) Successful in 33s
CI / test-bqas (push) Successful in 33s

ExecutiveSummarySlide:
- Unternehmensentwicklung: hardcoded table → useFinancialModel + computeAnnualKPIs
  (MA, Kunden, ARR now computed from finanzplan DB for all versions)
- Pricing: aligned with BusinessModelSlide tiers (Starter/Professional/Enterprise)
  Enterprise: 40k → 50k (matching Folie 11)

BusinessModelSlide:
- ACV: hardcoded "15–50k" → computed from summary.final_arr / final_customers
- Gross Margin: hardcoded "> 80%" → computed from lastResult.gross_margin_pct

All financial numbers on all slides now flow from the same compute engine.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-16 09:02:07 +02:00
parent e05d3e1554
commit 084183f3a4
3 changed files with 36 additions and 23 deletions

View File

@@ -1,8 +1,10 @@
'use client'
import { useCallback } from 'react'
import { useCallback, useMemo } from 'react'
import { Language, PitchData } from '@/lib/types'
import { t, formatEur } from '@/lib/i18n'
import { useFinancialModel } from '@/lib/hooks/useFinancialModel'
import { computeAnnualKPIs } from '@/lib/finanzplan/annual-kpis'
import GradientText from '../ui/GradientText'
import FadeInView from '../ui/FadeInView'
import GlassCard from '../ui/GlassCard'
@@ -11,13 +13,21 @@ import { Download, Shield, Server, Brain, TrendingUp, FileText, Target, ScanLine
interface ExecutiveSummarySlideProps {
lang: Language
data: PitchData
investorId?: string | null
}
export default function ExecutiveSummarySlide({ lang, data }: ExecutiveSummarySlideProps) {
export default function ExecutiveSummarySlide({ lang, data, investorId }: ExecutiveSummarySlideProps) {
const i = t(lang)
const es = i.executiveSummary
const de = lang === 'de'
// Financial model for Unternehmensentwicklung
const fm = useFinancialModel(investorId || null)
const annualKPIs = useMemo(
() => computeAnnualKPIs(fm.activeResults?.results || []),
[fm.activeResults],
)
const funding = data.funding
const amount = funding?.amount_eur || 0
const amountLabel = amount >= 1_000_000
@@ -527,20 +537,19 @@ export default function ExecutiveSummarySlide({ lang, data }: ExecutiveSummarySl
<span>{de ? 'Jahr' : 'Year'}</span><span className="text-right">MA</span><span className="text-right">{de ? 'Kunden' : 'Customers'}</span><span className="text-right">ARR</span>
</div>
<div className="space-y-1">
{[
{ year: '2026', emp: '5', cust: '~17', arr: de ? '~84k EUR' : '~EUR 84k' },
{ year: '2027', emp: '10', cust: '~132', arr: de ? '~1,1 Mio. EUR' : '~EUR 1.1M' },
{ year: '2028', emp: '17', cust: '~400', arr: de ? '~3,6 Mio. EUR' : '~EUR 3.6M' },
{ year: '2029', emp: '25', cust: '~780', arr: de ? '~6,9 Mio. EUR' : '~EUR 6.9M' },
{ year: '2030', emp: '35', cust: '~1.320', arr: de ? '~11,1 Mio. EUR' : '~EUR 11.1M' },
].map((r, idx) => (
<div key={idx} className="grid grid-cols-4 gap-x-3 text-xs">
<span className="text-white/40">{r.year}</span>
<span className="text-right text-white/50">{r.emp}</span>
<span className="text-right text-white/50">{r.cust}</span>
<span className={`text-right font-mono ${idx >= 3 ? 'text-emerald-300 font-bold' : 'text-white/70'}`}>{r.arr}</span>
</div>
))}
{annualKPIs.map((k, idx) => {
const arrLabel = k.arr >= 1_000_000
? (de ? `~${(k.arr / 1_000_000).toFixed(1).replace('.', ',')} Mio. EUR` : `~EUR ${(k.arr / 1_000_000).toFixed(1)}M`)
: (de ? `~${Math.round(k.arr / 1000)}k EUR` : `~EUR ${Math.round(k.arr / 1000)}k`)
return (
<div key={idx} className="grid grid-cols-4 gap-x-3 text-xs">
<span className="text-white/40">{k.year}</span>
<span className="text-right text-white/50">{k.employees}</span>
<span className="text-right text-white/50">~{k.customers.toLocaleString('de-DE')}</span>
<span className={`text-right font-mono ${idx >= 3 ? 'text-emerald-300 font-bold' : 'text-white/70'}`}>{arrLabel}</span>
</div>
)
})}
</div>
</GlassCard>
@@ -578,10 +587,9 @@ export default function ExecutiveSummarySlide({ lang, data }: ExecutiveSummarySl
<h3 className="text-xs font-bold text-amber-400 uppercase tracking-wider mb-2">{de ? 'Pricing' : 'Pricing'}</h3>
<div className="space-y-1.5">
{[
{ tier: 'Startup', price: de ? 'ab 3.600€/J.' : 'from €3,600/yr' },
{ tier: '1050 MA', price: de ? 'ab 15.000€/J.' : 'from €15k/yr' },
{ tier: '50250 MA', price: de ? 'ab 30.000€/J.' : 'from €30k/yr' },
{ tier: '250+ MA', price: de ? 'ab 40.000€/J.' : 'from €40k/yr', highlight: true },
{ tier: de ? 'Starter (<10 MA)' : 'Starter (<10 emp.)', price: de ? '3.600€/J.' : '€3,600/yr' },
{ tier: de ? 'Professional (10250)' : 'Professional (10250)', price: de ? '15.00040.000€/J.' : '€15k40k/yr', highlight: true },
{ tier: de ? 'Enterprise (250+)' : 'Enterprise (250+)', price: de ? 'ab 50.000€/J.' : 'from €50k/yr' },
].map((t, idx) => (
<div key={idx} className={`flex justify-between text-xs ${t.highlight ? 'text-amber-300 font-bold' : 'text-white/60'}`}>
<span>{t.tier}</span>