feat: preserve grounded sector ideas through private investment dossiers in QA
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { SectorAnalysisSnapshot } from '@/lib/investor-dossier-report';
|
||||
import type { SectorResourceSelection } from '@/components/sector-resource-reference';
|
||||
import { InvestorDossierReports } from '@/components/investor-dossier-reports';
|
||||
import type { InvestorDossierReportInput } from '@/lib/investor-dossier-report';
|
||||
@@ -120,6 +121,8 @@ type Path = {
|
||||
tools: Record<string, string | null>;
|
||||
results: PathResult[];
|
||||
content_sources: {
|
||||
analyses?: SectorAnalysisSnapshot[];
|
||||
analysis_review_required?: boolean;
|
||||
resource_id: number;
|
||||
title: string;
|
||||
return_href: string;
|
||||
@@ -375,7 +378,9 @@ function Stage({ step, path }: { step: Step; path: Path }) {
|
||||
}));
|
||||
form.post(
|
||||
`/investimentos/${path.case.id}/etapas/${step.code}`,
|
||||
{ preserveScroll: true },
|
||||
{
|
||||
preserveScroll: true,
|
||||
},
|
||||
);
|
||||
}}
|
||||
>
|
||||
@@ -851,6 +856,44 @@ export default function InvestmentPath(path: Path) {
|
||||
>
|
||||
Exemplar e origem
|
||||
</Link>
|
||||
{source.analysis_review_required && (
|
||||
<p role="status">
|
||||
A fonte foi alterada ou deixou de estar
|
||||
disponível. Reveja a hipótese; o trecho
|
||||
guardado foi preservado.
|
||||
</p>
|
||||
)}
|
||||
{(source.analyses ?? []).map((analysis) => (
|
||||
<details
|
||||
className="my-2 rounded border p-3"
|
||||
key={analysis.key}
|
||||
>
|
||||
<summary>
|
||||
Hipótese guardada: {analysis.title}
|
||||
</summary>
|
||||
<p>
|
||||
{analysis.location_label ??
|
||||
'Implantação por definir'}
|
||||
. Contexto da fonte, sem atribuição
|
||||
distrital automática.
|
||||
</p>
|
||||
<blockquote>
|
||||
{analysis.quote}
|
||||
</blockquote>
|
||||
<p>
|
||||
Edição: {analysis.source_date}.
|
||||
Preserve este fundamento e reveja-o
|
||||
se a fonte mudar.
|
||||
</p>
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/investimentos/${path.case.id}/contexto/editar`}
|
||||
>
|
||||
Continuar a preparação no mesmo
|
||||
dossier
|
||||
</Link>
|
||||
</details>
|
||||
))}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
@@ -910,7 +953,9 @@ export default function InvestmentPath(path: Path) {
|
||||
}));
|
||||
facts.post(
|
||||
`/investimentos/${path.case.id}/aplicabilidade`,
|
||||
{ preserveScroll: true },
|
||||
{
|
||||
preserveScroll: true,
|
||||
},
|
||||
);
|
||||
}}
|
||||
>
|
||||
@@ -1252,7 +1297,9 @@ export default function InvestmentPath(path: Path) {
|
||||
}));
|
||||
task.post(
|
||||
`/investimentos/${path.case.id}/tarefas`,
|
||||
{ preserveScroll: true },
|
||||
{
|
||||
preserveScroll: true,
|
||||
},
|
||||
);
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user