Liga acervo documental e guias a jornada do investidor

This commit is contained in:
2026-10-08 18:54:24 +02:00
parent 51c7fb92b1
commit 30acdc9934
18 changed files with 14024 additions and 1 deletions
+36 -1
View File
@@ -21,6 +21,7 @@ type DocumentResource = {
source_reference: string;
issuer: string | null;
file_name: string;
version_no: number;
size_bytes: number | null;
view_url: string | null;
links: {
@@ -36,7 +37,7 @@ type DocumentResource = {
};
const modulePaths: Record<string, { href: string; label: string }> = {
simulator: { href: '/Simulador', label: 'Simulador fiscal' },
simulator: { href: '/simulador-fiscal', label: 'Simulador fiscal' },
investment: {
href: '/oportunidades',
label: 'Oportunidades de investimento',
@@ -85,6 +86,40 @@ export default function DocumentPage({
← Voltar à pesquisa
</Link>
<article className="space-y-5 rounded-xl border bg-white p-5 sm:p-8">
<section
aria-label="Estados independentes do documento"
className="space-y-2 rounded border bg-slate-50 p-3"
>
<p>
<strong>Consulta:</strong> documento disponível
nesta ficha pelas condições de acesso existentes.
Referências pendentes não impedem a consulta
autorizada.
</p>
<p>
<strong>Situação jurídica:</strong>{' '}
{legalStatusLabels[resource.legal_status] ??
'Por confirmar'}
. A autorização de consulta não valida vigência ou
aplicabilidade.
</p>
<p>
<strong>Utilização em cálculos:</strong> esta ficha
e as suas associações não ativam regras fiscais. A
utilização efetiva exige verificação independente no
calculador.
</p>
<p>
<strong>Versão do registo:</strong>{' '}
{resource.version_no} ·{' '}
{resource.version_label ?? 'Edição por confirmar'}
</p>
<p>
<strong>Proveniência registada:</strong>{' '}
{resource.source_url ??
'Não indicada; confirmação pendente'}
</p>
</section>
<header className="space-y-2">
<p className="text-sm text-slate-600">
{resource.category} · {resource.topic}
+4
View File
@@ -5,6 +5,7 @@ import { newSubmissionKey } from '@/lib/portal-api';
import { ProvinceSelect } from '@/components/investment-territory';
import { SimulationForm } from '@/components/simulation-form';
import { InvestmentRoadmap } from '@/components/investment-roadmap';
import { JourneyDocumentResources } from '@/components/journey-document-resources';
const input =
'box-border w-full min-w-0 max-w-full rounded-lg border border-slate-300 bg-white p-3 text-slate-900';
@@ -590,6 +591,9 @@ export default function Services(p: Props) {
</p>
</>
)}
{['procedures', 'documents', 'legislation'].includes(
p.section,
) && <JourneyDocumentResources stages={p.stages} />}
{p.section === 'procedures' && <InvestmentRoadmap />}
{(p.section === 'documents' || p.section === 'legislation') && (
<>