fix: preserve scoped V12 diagnostics pending interrupted QA proof

This commit is contained in:
2026-11-20 22:36:41 +02:00
parent a5f3714cac
commit 74ba0bd0d2
10 changed files with 349 additions and 14 deletions
@@ -26,7 +26,10 @@ import { FinancialRatiosPlan } from '@/components/financial-ratios-plan';
import { PlanEconomicClassification } from '@/components/plan-economic-classification';
import { FinancialPlanDetails } from '@/components/financial-plan-details';
import { StartupAssetRequirements } from '@/components/startup-asset-requirements';
import { forecastErrorShownInReport } from '@/lib/financial-issue-presentation';
import {
forecastErrorShownInReport,
startupErrorMessage,
} from '@/lib/financial-issue-presentation';
const emptyPlan: BusinessFinancialPlanInput = {
currency: '',
@@ -947,7 +950,13 @@ export function SimulationBusinessPlan({
)}
<PlanEconomicClassification plan={plan} onChange={savePlan} />
<FinancialPlanDetails plan={plan} onChange={savePlan} />
<StartupAssetRequirements plan={plan} onChange={savePlan} />
<StartupAssetRequirements
plan={plan}
onChange={savePlan}
showError={
!forecastErrorShownInReport(plan, startupErrorMessage(plan))
}
/>
<IntegralFinancialPlan plan={plan} onChange={savePlan} />
<MarketAnalysisPlan plan={plan} onChange={savePlan} />
<FinancialRatiosPlan plan={plan} onChange={savePlan} />
@@ -2532,11 +2541,13 @@ export function SimulationBusinessPlan({
)}
</details>
{error && !forecastErrorShownInReport(plan, error) && (
<p role="alert" className="my-3 text-sm text-red-800">
{error}
</p>
)}
{error &&
error !== startupErrorMessage(plan) &&
!forecastErrorShownInReport(plan, error) && (
<p role="alert" className="my-3 text-sm text-red-800">
{error}
</p>
)}
{result && isSimulationCurrency(currency) && (
<div className="mt-4 space-y-3">
<h4 className="font-semibold">Resumo ({currency})</h4>