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

@@ -3,7 +3,7 @@
import { useState, useEffect, useCallback, useRef } from 'react'
import { FMScenario, FMResult, FMComputeResponse, InvestorSnapshot } from '../types'
export function useFinancialModel(investorId?: string | null) {
export function useFinancialModel(investorId?: string | null, preferredScenarioId?: string | null) {
const [scenarios, setScenarios] = useState<FMScenario[]>([])
const [activeScenarioId, setActiveScenarioId] = useState<string | null>(null)
const [compareMode, setCompareMode] = useState(false)
@@ -51,7 +51,9 @@ export function useFinancialModel(investorId?: string | null) {
}
setScenarios(data)
const defaultScenario = data.find(s => s.is_default) || data[0]
// Use preferred scenario if available, otherwise default
const preferred = preferredScenarioId ? data.find(s => s.id === preferredScenarioId) : null
const defaultScenario = preferred || data.find(s => s.is_default) || data[0]
if (defaultScenario) {
setActiveScenarioId(defaultScenario.id)
}

View File

@@ -7,8 +7,8 @@ export const PRESENTER_SCRIPT: SlideScript[] = [
duration: 45,
paragraphs: [
{
text_de: 'Willkommen bei BreakPilot COMPLEI — der Compliance-Plattform, die produzierende Unternehmen endlich von der Regulierungslast befreit. Von der DSGVO ueber den AI Act bis zur CE-Kennzeichnung — alles aus einer Hand.',
text_en: 'Welcome to BreakPilot COMPLEI — the compliance platform that finally frees manufacturing companies from the regulatory burden. From GDPR to the AI Act to CE certification — all from a single source.',
text_de: 'Willkommen bei BreakPilot COMPLAI — der Compliance-Plattform, die produzierende Unternehmen endlich von der Regulierungslast befreit. Von der DSGVO ueber den AI Act bis zur CE-Kennzeichnung — alles aus einer Hand.',
text_en: 'Welcome to BreakPilot COMPLAI — the compliance platform that finally frees manufacturing companies from the regulatory burden. From GDPR to the AI Act to CE certification — all from a single source.',
pause_after: 1500,
},
{
@@ -32,8 +32,8 @@ export const PRESENTER_SCRIPT: SlideScript[] = [
duration: 30,
paragraphs: [
{
text_de: 'Bevor wir ins Detail gehen, hier das Wichtigste auf einen Blick: BreakPilot COMPLEI ist die einzige Plattform, die organisatorische Compliance, Produkt-Compliance und Code-Security vereint — speziell fuer den produzierenden Mittelstand.',
text_en: 'Before we dive into details, here is the key summary: BreakPilot COMPLEI is the only platform that combines organizational compliance, product compliance and code security — specifically for the manufacturing mid-market.',
text_de: 'Bevor wir ins Detail gehen, hier das Wichtigste auf einen Blick: BreakPilot COMPLAI ist die einzige Plattform, die organisatorische Compliance, Produkt-Compliance und Code-Security vereint — speziell fuer den produzierenden Mittelstand.',
text_en: 'Before we dive into details, here is the key summary: BreakPilot COMPLAI is the only platform that combines organizational compliance, product compliance and code security — specifically for the manufacturing mid-market.',
pause_after: 1500,
},
{
@@ -52,8 +52,8 @@ export const PRESENTER_SCRIPT: SlideScript[] = [
duration: 20,
paragraphs: [
{
text_de: 'BreakPilot COMPLEI — ueber 380 Regularien, 10 Branchen, eine Plattform. Kontinuierliche Compliance und Code-Security. Gruendung August 2026. Wir bauen die Zukunft der industriellen Compliance.',
text_en: 'BreakPilot COMPLEI — over 380 regulations, 10 industries, one platform. Continuous compliance and code security. Founding August 2026. We are building the future of industrial compliance.',
text_de: 'BreakPilot COMPLAI — ueber 380 Regularien, 10 Branchen, eine Plattform. Kontinuierliche Compliance und Code-Security. Gruendung August 2026. Wir bauen die Zukunft der industriellen Compliance.',
text_en: 'BreakPilot COMPLAI — over 380 regulations, 10 industries, one platform. Continuous compliance and code security. Founding August 2026. We are building the future of industrial compliance.',
pause_after: 1500,
},
],
@@ -636,8 +636,8 @@ export const PRESENTER_SCRIPT: SlideScript[] = [
duration: 20,
paragraphs: [
{
text_de: 'Zum Abschluss der wichtige rechtliche Hinweis: Dieses Pitch Deck ist vertraulich und ausschliesslich fuer den eingeladenen Empfaenger bestimmt. Alle Finanzangaben sind Planzahlen. Vielen Dank fuer Ihre Zeit und Ihr Interesse an BreakPilot COMPLEI.',
text_en: 'To conclude, the important legal notice: This pitch deck is confidential and intended exclusively for the invited recipient. All financial figures are projections. Thank you for your time and interest in BreakPilot COMPLEI.',
text_de: 'Zum Abschluss der wichtige rechtliche Hinweis: Dieses Pitch Deck ist vertraulich und ausschliesslich fuer den eingeladenen Empfaenger bestimmt. Alle Finanzangaben sind Planzahlen. Vielen Dank fuer Ihre Zeit und Ihr Interesse an BreakPilot COMPLAI.',
text_en: 'To conclude, the important legal notice: This pitch deck is confidential and intended exclusively for the invited recipient. All financial figures are projections. Thank you for your time and interest in BreakPilot COMPLAI.',
pause_after: 1500,
},
],