fix(pitch-deck): version-aware financial model + layout fix + COMPLAI spelling
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m2s
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 26s
CI / test-python-voice (push) Successful in 25s
CI / test-bqas (push) Successful in 26s

Critical fix: All financial slides now use the version's preferred scenario
instead of always defaulting to Base Case (1M). This ensures the
Wandeldarlehen version shows its own lean financial plan.

- useFinancialModel: add preferredScenarioId parameter
- PitchDeck: extract default scenario from previewData.fm_scenarios
- Pass preferredScenarioId to all 5 financial slides
- FinancialsSlide layout: remove empty right column, full-width charts
- Remove ScenarioSwitcher + unused slider from FinancialsSlide
- Fix COMPLEI → COMPLAI in presenter script (only TTS pronunciation differs)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-17 01:02:57 +02:00
parent 98081ae5eb
commit 9005a05bd7
8 changed files with 43 additions and 61 deletions

View File

@@ -11,6 +11,7 @@ import { useFinancialModel } from '@/lib/hooks/useFinancialModel'
interface AssumptionsSlideProps {
lang: Language
investorId?: string | null
preferredScenarioId?: string | null
}
function fmtArr(v: number, de: boolean): string {
@@ -35,12 +36,12 @@ function breakEvenYear(month: number | null): string {
return String(year)
}
export default function AssumptionsSlide({ lang, investorId }: AssumptionsSlideProps) {
export default function AssumptionsSlide({ lang, investorId, preferredScenarioId }: AssumptionsSlideProps) {
const i = t(lang)
const de = lang === 'de'
// Load computed financial data for Base Case
const fm = useFinancialModel(investorId || null)
const fm = useFinancialModel(investorId || null, preferredScenarioId)
const summary = fm.activeResults?.summary
const results = fm.activeResults?.results || []
const lastResult = results.length > 0 ? results[results.length - 1] : null