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
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:
@@ -14,6 +14,7 @@ import { RefreshCw, Download, ChevronLeft, ChevronRight, BarChart3, Target } fro
|
||||
interface FinanzplanSlideProps {
|
||||
lang: Language
|
||||
investorId?: string | null
|
||||
preferredScenarioId?: string | null
|
||||
}
|
||||
|
||||
interface SheetMeta {
|
||||
@@ -60,7 +61,7 @@ function formatCell(v: number | undefined): string {
|
||||
return Math.round(v).toLocaleString('de-DE', { maximumFractionDigits: 0 })
|
||||
}
|
||||
|
||||
export default function FinanzplanSlide({ lang, investorId }: FinanzplanSlideProps) {
|
||||
export default function FinanzplanSlide({ lang, investorId, preferredScenarioId }: FinanzplanSlideProps) {
|
||||
const [sheets, setSheets] = useState<SheetMeta[]>([])
|
||||
const [activeSheet, setActiveSheet] = useState<string>('personalkosten')
|
||||
const [rows, setRows] = useState<SheetRow[]>([])
|
||||
@@ -70,7 +71,7 @@ export default function FinanzplanSlide({ lang, investorId }: FinanzplanSlidePro
|
||||
const de = lang === 'de'
|
||||
|
||||
// Financial model — same source as FinancialsSlide (Slide 15)
|
||||
const fm = useFinancialModel(investorId || null)
|
||||
const fm = useFinancialModel(investorId || null, preferredScenarioId)
|
||||
const annualKPIs = useMemo(
|
||||
() => computeAnnualKPIs(fm.activeResults?.results || []),
|
||||
[fm.activeResults],
|
||||
|
||||
Reference in New Issue
Block a user