fix: correct V13 and public presentation patterns in isolated QA

This commit is contained in:
2026-11-21 12:36:28 +02:00
parent 1950bb69ec
commit e239a31a76
66 changed files with 3977 additions and 278 deletions
+19 -5
View File
@@ -1,3 +1,5 @@
import PublicReference from '@/components/public-reference';
import { publicReference } from '@/lib/public-presentation';
import { ProactiveSummary } from '@/components/proactive-investment';
import DemographicContext from '@/components/demographic-context';
import EducationalGuides from '@/components/educational-guides';
@@ -186,9 +188,13 @@ export default function Detail({
/>
<DemographicContext
key={c.primary_territory_path?.at(-1)?.id}
territoryId={c.primary_territory_path
?.filter((t) => ['province', 'district'].includes(t.location_type))
.at(-1)?.id}
territoryId={
c.primary_territory_path
?.filter((t) =>
['province', 'district'].includes(t.location_type),
)
.at(-1)?.id
}
/>
{c.primary_territory_path &&
c.primary_territory_path.length > 0 && (
@@ -282,7 +288,15 @@ export default function Detail({
{z.association_type === 'official'
? 'Associação documental validada'
: 'Relação ' + z.association_type}{' '}
· Fonte: {z.source_reference}
{publicReference(z.source_reference) && (
<>
{' '}
· Fonte:{' '}
<PublicReference
value={z.source_reference}
/>
</>
)}
</p>
))}
<p>
@@ -335,7 +349,7 @@ export default function Detail({
['Modelo de negócio', c.profile.business_model],
['Requisitos', c.profile.requirements],
['Riscos', c.profile.risks],
['Fonte', c.profile.source_reference],
['Fonte', publicReference(c.profile.source_reference)],
].map(([label, text]) => (
<div key={label}>
<h3 className="font-bold">{label}</h3>