feat: add nonblocking optional narrative guidance for V14 in QA
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { BusinessPlanWarnings } from './business-plan-warnings';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { DossierReportPreview } from './dossier-report-preview';
|
||||
import {
|
||||
@@ -114,6 +115,22 @@ function InvestorDossierReportsContent({
|
||||
return (
|
||||
<section id="relatorios" className="space-y-4 rounded-xl border p-4">
|
||||
<h2 className="text-lg font-semibold">Relatórios deste dossier</h2>
|
||||
{!requiresChoice && (
|
||||
<BusinessPlanWarnings
|
||||
metrics={{
|
||||
optionalTexts: [
|
||||
{
|
||||
label: 'SWOT',
|
||||
value: dossier.preparation_report?.swot.rows.some(
|
||||
(row) => row.text.trim(),
|
||||
)
|
||||
? 'preenchido'
|
||||
: '',
|
||||
},
|
||||
],
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<p>
|
||||
Dossier {dossier.case.title} · versão {dossier.case.version} ·
|
||||
oportunidade {dossier.context_opportunity ?? 'contexto comum'}.
|
||||
|
||||
Reference in New Issue
Block a user