feat: preserve grounded sector ideas through private investment dossiers in QA

This commit is contained in:
2026-11-15 20:31:57 +02:00
parent 25d18f51bb
commit 6e7dfdabd0
17 changed files with 882 additions and 36 deletions
@@ -1,3 +1,6 @@
import SectorContentAnalysis, {
type SectorAnalysis,
} from '@/components/sector-content-analysis';
import { router } from '@inertiajs/react';
import { useState } from 'react';
import CatalogueChoiceSelect from '@/components/catalogue-choice-select';
@@ -20,6 +23,7 @@ function DemographySelection({
filters,
territories,
sectors,
sectorReadings = [],
}: {
evidence: DemographicAnalysis;
filters: {
@@ -35,6 +39,11 @@ function DemographySelection({
parent_id: string | null;
}[];
sectors: Record<string, string>;
sectorReadings?: {
title: string;
href: string;
analysis: SectorAnalysis;
}[];
}) {
const [selected, setSelected] = useState(filters.territories ?? []);
const [province, setProvince] = useState('');
@@ -226,6 +235,15 @@ function DemographySelection({
))}
</section>
)}
{sectorReadings.map((reading) => (
<section key={reading.href} className="space-y-3">
<h2 className="text-xl font-semibold">{reading.title}</h2>
<a href={reading.href} className="underline">
Consultar contexto provincial completo
</a>
<SectorContentAnalysis data={reading.analysis} />
</section>
))}
</Frame>
);
}