fix: correct V13 and public presentation patterns in isolated QA
@@ -123,7 +123,7 @@ class InvestmentPortfolioController extends Controller
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return Inertia::render('portfolio/index', ['records' => $results, 'publishedOpportunities' => $publishedOpportunities,
|
return Inertia::render('portfolio/index', ['publicReferenceNames' => $management ? [] : $this->publicReferenceNames(), 'records' => $results, 'publishedOpportunities' => $publishedOpportunities,
|
||||||
'management' => $management, 'filters' => $filters, 'sectors' => $sectorOptions, 'territorySelection' => $territorySelection]);
|
'management' => $management, 'filters' => $filters, 'sectors' => $sectorOptions, 'territorySelection' => $territorySelection]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ class InvestmentPortfolioController extends Controller
|
|||||||
->orderByDesc('updated_at')->limit(10)->get(['id', 'version', 'updated_at'])
|
->orderByDesc('updated_at')->limit(10)->get(['id', 'version', 'updated_at'])
|
||||||
: collect();
|
: collect();
|
||||||
|
|
||||||
return Inertia::render('portfolio/show', ['editorialEnabled' => $editorial, 'complements' => $management ? [] : app(InvestmentComplements::class)->options('portfolio:'.$record->id), 'record' => $record, 'related' => $related, 'management' => $management, 'zones' => $zones,
|
return Inertia::render('portfolio/show', ['publicReferenceNames' => $management ? [] : $this->publicReferenceNames(), 'editorialEnabled' => $editorial, 'complements' => $management ? [] : app(InvestmentComplements::class)->options('portfolio:'.$record->id), 'record' => $record, 'related' => $related, 'management' => $management, 'zones' => $zones,
|
||||||
'anchorProject' => $anchorProject, 'existingSubmissions' => $existingSubmissions,
|
'anchorProject' => $anchorProject, 'existingSubmissions' => $existingSubmissions,
|
||||||
'competitiveness' => $record->cluster_id ? app(ClusterCompetitiveness::class)->publicData($record->cluster_id) : null,
|
'competitiveness' => $record->cluster_id ? app(ClusterCompetitiveness::class)->publicData($record->cluster_id) : null,
|
||||||
'geography' => app(InvestmentRelations::class)->dossier($record, $management),
|
'geography' => app(InvestmentRelations::class)->dossier($record, $management),
|
||||||
@@ -218,6 +218,13 @@ class InvestmentPortfolioController extends Controller
|
|||||||
return back()->with('success', 'Rascunho guardado. A publicacao aguarda um revisor diferente do editor.');
|
return back()->with('success', 'Rascunho guardado. A publicacao aguarda um revisor diferente do editor.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Resolve public cross-references for display without rewriting editorial content. */
|
||||||
|
private function publicReferenceNames(): array
|
||||||
|
{
|
||||||
|
return self::visible()->get(['title', 'content'])->filter(fn ($row) => ! empty($row->content['code']))
|
||||||
|
->mapWithKeys(fn ($row) => [$row->content['code'] => $row->title])->all();
|
||||||
|
}
|
||||||
|
|
||||||
public function publish(Request $request, InvestmentDossier $dossier): RedirectResponse
|
public function publish(Request $request, InvestmentDossier $dossier): RedirectResponse
|
||||||
{
|
{
|
||||||
abort_if(app(PortalEditorialWorkflow::class)->portfolioWrites($dossier->id), 409, 'Use a aprovação e publicação separadas da edição no circuito editorial.');
|
abort_if(app(PortalEditorialWorkflow::class)->portfolioWrites($dossier->id), 409, 'Use a aprovação e publicação separadas da edição no circuito editorial.');
|
||||||
|
|||||||
@@ -130,7 +130,11 @@ class InvestmentZoneController extends Controller
|
|||||||
|
|
||||||
return $management ? $zone : [...app(InvestmentZoneOperationalProfile::class)->publicDetails($zone->toArray()), 'operational_details_public' => app(InvestmentZoneOperationalDetails::class)->publicData($zone)];
|
return $management ? $zone : [...app(InvestmentZoneOperationalProfile::class)->publicDetails($zone->toArray()), 'operational_details_public' => app(InvestmentZoneOperationalDetails::class)->publicData($zone)];
|
||||||
});
|
});
|
||||||
$props = ['detailsInstallation' => $management ? app(InvestmentZoneOperationalDetailsInstallation::class)->preview($request->user()) : null, 'installation' => $management ? app(InvestmentZoneProfileInstallation::class)->preview($request->user()) : null, 'records' => $rows, 'filters' => $filters, 'management' => $management, 'territorySelection' => $path,
|
$groupAvailability = [];
|
||||||
|
foreach (['zee', 'zfi', 'industrial_park'] as $category) {
|
||||||
|
$groupAvailability[$category] = $zones->search(array_replace($filters, ['category' => $category]), $management)->count();
|
||||||
|
}
|
||||||
|
$props = ['groupAvailability' => $groupAvailability, 'detailsInstallation' => $management ? app(InvestmentZoneOperationalDetailsInstallation::class)->preview($request->user()) : null, 'installation' => $management ? app(InvestmentZoneProfileInstallation::class)->preview($request->user()) : null, 'records' => $rows, 'filters' => $filters, 'management' => $management, 'territorySelection' => $path,
|
||||||
'zoneExtensionsAvailable' => Schema::hasColumn('investment_zones', 'source_evidence')];
|
'zoneExtensionsAvailable' => Schema::hasColumn('investment_zones', 'source_evidence')];
|
||||||
|
|
||||||
return $request->is('api/*') ? response()->json($props) : Inertia::render('investment/zones', $props);
|
return $request->is('api/*') ? response()->json($props) : Inertia::render('investment/zones', $props);
|
||||||
|
|||||||
@@ -10662,3 +10662,14 @@ Em **Adiantamentos por operação**, seleccionar **Regime contabilístico do pla
|
|||||||
No PGC-NIRF, identificar na operação/parcela a data e referência do acordo formal correspondente; aplicação apenas a partir do reconhecimento e da factura ou acordo formal ocorrido. O fundamento usado fica discriminado por aplicação, com referência/data, no editor/CSV/relatórios. Factura posterior actualiza situação documental, não duplica aplicação. No PGC-PE, reconhecimento e factura continuam obrigatórios para aplicar. Pagamento do remanescente continua a exigir factura em ambos; não foi autorizado outro alcance. Mantidos limites por parcela, sem compensações cruzadas, caixa na aplicação ou receita na devolução; exclusões fiscais/cambiais/contratos especiais/F22 inalteradas.
|
No PGC-NIRF, identificar na operação/parcela a data e referência do acordo formal correspondente; aplicação apenas a partir do reconhecimento e da factura ou acordo formal ocorrido. O fundamento usado fica discriminado por aplicação, com referência/data, no editor/CSV/relatórios. Factura posterior actualiza situação documental, não duplica aplicação. No PGC-PE, reconhecimento e factura continuam obrigatórios para aplicar. Pagamento do remanescente continua a exigir factura em ambos; não foi autorizado outro alcance. Mantidos limites por parcela, sem compensações cruzadas, caixa na aplicação ou receita na devolução; exclusões fiscais/cambiais/contratos especiais/F22 inalteradas.
|
||||||
|
|
||||||
Seis testes do delta, comparação exacta com resultados/tabelas de dois snapshots PE aceites, gravação/recuperação em computador/emulação móvel, CSV e balanços reconciliados. Tipos/lint/build nos recibos E29. Sem repetir ronda integral F20-A/PE. Rascunho/conta NIRF sintéticos próprios; provas/ramos anteriores preservados. Apenas nota da linha F20 alterada entre as 88, restantes 87 iguais. **Extensão proposta para aceitação em QA**, sem instalação, publicação, push, migração ou implementação de F22/V13.
|
Seis testes do delta, comparação exacta com resultados/tabelas de dois snapshots PE aceites, gravação/recuperação em computador/emulação móvel, CSV e balanços reconciliados. Tipos/lint/build nos recibos E29. Sem repetir ronda integral F20-A/PE. Rascunho/conta NIRF sintéticos próprios; provas/ramos anteriores preservados. Apenas nota da linha F20 alterada entre as 88, restantes 87 iguais. **Extensão proposta para aceitação em QA**, sem instalação, publicação, push, migração ou implementação de F22/V13.
|
||||||
|
|
||||||
|
|
||||||
|
## 21/11/2026 — E33: correcções de apresentação em QA
|
||||||
|
|
||||||
|
V13/P04 e erros do mesmo padrão corrigidos no QA isolado; proposta de aceitação limitada às provas E33 da matriz existente. **Falta preencher ou corrigir** reúne mensagens já existentes e oferece ligações aos campos: abre as secções necessárias e coloca o foco no controlo real. Na revisão final, a indicação muda para a etapa correspondente. Corrigir um valor elimina a indicação quando a validação existente deixa de a produzir; não há novas regras nem alterações de cálculos.
|
||||||
|
|
||||||
|
Cartões e fontes: códigos internos deixam de encabeçar cartões/fichas; referências cruzadas conhecidas da carteira mostram os nomes publicados. Fontes legais continuam disponíveis como ligações separadas; caminhos de programação, referências locais e esquemas executáveis não são apresentados como fontes públicas. Fontes/notas idênticas são reunidas, sem apagar edições diferentes. Originais e campos de edição conservados. A localização mostra todos os níveis efectivamente documentados, incluindo níveis homónimos, sem completar ausências por inferência.
|
||||||
|
|
||||||
|
Nas zonas, o selector indica a contagem de registos de cada grupo para os critérios actuais. Não indica disponibilidade física. Grupo/pesquisa/actividade mantêm contexto de lista e regresso; a remoção de um critério conserva os restantes e a remoção de um território limpa os seus descendentes. Acções dos cartões agrupadas e com quebra de linha. Nos formulários fiscais foram retirados Exemplar e cobertura, nomes de ficheiro, SHA256 e notas técnicas, preservando modelos e preparação. Rótulos encontrados foram harmonizados com a grafia acordada.
|
||||||
|
|
||||||
|
13 testes de apresentação aprovados, percursos reais de computador/móvel, destinos de acções, tipos/lint/compilação e PHP verificados. Evidências em `../v2/auditoria-portal/e33-presentation-20261121/`. Dossier V13 sintético novo, separado dos aceites. 47 ficheiros protegidos e provas financeiras iguais à partida; sem repetir testes financeiros aceites. F20 e F22 preservados. A cobertura global de limites, cartões de negócios sem exemplares publicados, áreas privadas e revisão linguística integral mantém os limites explícitos da matriz. Nenhuma instalação, publicação ou migração.
|
||||||
|
|||||||
@@ -1198,7 +1198,7 @@ Nomes de ficheiros na coluna de implementação referem-se a `resources/js/lib/`
|
|||||||
| V10 | PN P0081 | Validação financeira | Campo de prazo em dias e mensagem de intervalo 0–365 | INTEGRADO E VALIDADO | financial-plan-details.tsx; business-financial-plan.ts; financial-plan-warnings.ts | 9c34af04;19f06ddf | Campo opcional de prazo contratual em dias, persistido no snapshot 18; inteiro entre 0 e 365, com mensagem pedida para -1, 366, 30.5 e abc. Mantém-se a agenda mensal independente. Dependência indispensável do aviso exacto de crédito V08, não uma alteração da fórmula de caixa. E8: limites 0/30/90/91/365, recuperação e comparação exacta dos fluxos antes/depois. |
|
| V10 | PN P0081 | Validação financeira | Campo de prazo em dias e mensagem de intervalo 0–365 | INTEGRADO E VALIDADO | financial-plan-details.tsx; business-financial-plan.ts; financial-plan-warnings.ts | 9c34af04;19f06ddf | Campo opcional de prazo contratual em dias, persistido no snapshot 18; inteiro entre 0 e 365, com mensagem pedida para -1, 366, 30.5 e abc. Mantém-se a agenda mensal independente. Dependência indispensável do aviso exacto de crédito V08, não uma alteração da fórmula de caixa. E8: limites 0/30/90/91/365, recuperação e comparação exacta dos fluxos antes/depois. |
|
||||||
| V11 | PN P0083 | Validação financeira | Aviso de caixa negativa identifica o mês e valor | APROVADO E ENCERRADO EM QA | financial-plan-warnings.ts; monthly-negative-cash-warnings.test.mjs; componentes e relatório existentes | fe615e55; E16; prova-v11-caixa-mensal-20261120.json | Aceitação expressa do proprietário com base no relatório E16 do commit fe615e55, sem inspecção independente dos ficheiros locais. Cinco avisos Janeiro–Maio 2027 (-1720.00/-1340.00/-960.00/-580.00/-200.00 MZN), apesar do fecho anual +2460.00; cenário sem défices sem avisos indevidos; gravação e recuperação demonstradas em computador e móvel 390×844; seis testes específicos aprovados. Fórmulas financeiras preservadas. Encerramento exclusivamente documental, sem repetir testes ou modificar código; instalação, publicação e migrações não autorizadas. |
|
| V11 | PN P0083 | Validação financeira | Aviso de caixa negativa identifica o mês e valor | APROVADO E ENCERRADO EM QA | financial-plan-warnings.ts; monthly-negative-cash-warnings.test.mjs; componentes e relatório existentes | fe615e55; E16; prova-v11-caixa-mensal-20261120.json | Aceitação expressa do proprietário com base no relatório E16 do commit fe615e55, sem inspecção independente dos ficheiros locais. Cinco avisos Janeiro–Maio 2027 (-1720.00/-1340.00/-960.00/-580.00/-200.00 MZN), apesar do fecho anual +2460.00; cenário sem défices sem avisos indevidos; gravação e recuperação demonstradas em computador e móvel 390×844; seis testes específicos aprovados. Fórmulas financeiras preservadas. Encerramento exclusivamente documental, sem repetir testes ou modificar código; instalação, publicação e migrações não autorizadas. |
|
||||||
| V12 | PN P0085 | Validação financeira | Detectar toda a inconsistência entre tabelas, indicando tabela e campo | APROVADO E ENCERRADO EM QA | project-planning.tsx; simulation-form.tsx; simulation-business-plan.tsx; complementary-report.ts; business-financial-plan.ts; financial-plan-import-message.ts; componentes e relatórios existentes | 4ef5f58e; 74ba0bd0; f81306f1; 64601256; 4bb2fd67; E17–E22; prova-v12-lacunas-finais-20261121.json | Aceitação expressa do proprietário em 21/11/2026, com base no commit de implementação 4bb2fd67, nas evidências E17–E21 e no confronto final E22 com o inventário E18. Mensagens identificam tabelas/campos; rejeição, remoção após correcção, gravação e recuperação demonstradas em computador e emulação móvel 390x844, incluindo moeda do pessoal, agendas e ramos de importação delimitados; rascunho final versão 137. Não permanecem lacunas identificadas no âmbito dos requisitos originais de V12. D1/D2/D3, E21, fórmulas financeiras e todas as aprovações anteriores preservados. Cinco testes específicos e verificações técnicas anteriores reutilizados; avisos de compilação mantidos nos registos. Encerramento exclusivamente documental, sem alterar código ou repetir testes. F20/F22 e restantes 87 linhas preservados; nenhum novo requisito iniciado, instalação ou publicação efectuada. |
|
| V12 | PN P0085 | Validação financeira | Detectar toda a inconsistência entre tabelas, indicando tabela e campo | APROVADO E ENCERRADO EM QA | project-planning.tsx; simulation-form.tsx; simulation-business-plan.tsx; complementary-report.ts; business-financial-plan.ts; financial-plan-import-message.ts; componentes e relatórios existentes | 4ef5f58e; 74ba0bd0; f81306f1; 64601256; 4bb2fd67; E17–E22; prova-v12-lacunas-finais-20261121.json | Aceitação expressa do proprietário em 21/11/2026, com base no commit de implementação 4bb2fd67, nas evidências E17–E21 e no confronto final E22 com o inventário E18. Mensagens identificam tabelas/campos; rejeição, remoção após correcção, gravação e recuperação demonstradas em computador e emulação móvel 390x844, incluindo moeda do pessoal, agendas e ramos de importação delimitados; rascunho final versão 137. Não permanecem lacunas identificadas no âmbito dos requisitos originais de V12. D1/D2/D3, E21, fórmulas financeiras e todas as aprovações anteriores preservados. Cinco testes específicos e verificações técnicas anteriores reutilizados; avisos de compilação mantidos nos registos. Encerramento exclusivamente documental, sem alterar código ou repetir testes. F20/F22 e restantes 87 linhas preservados; nenhum novo requisito iniciado, instalação ou publicação efectuada. |
|
||||||
| V13 | PN P0086 | Validação financeira | Lista Falta preencher com ligação directa a cada campo por corrigir | NÃO IMPLEMENTADO | integral-financial-plan.tsx; simulation-business-plan.tsx | — | Existem erros e notas; não foi encontrada implementação completa do sumário com ligações por campo pedido. |
|
| V13 | PN P0086 | Validação financeira | Lista Falta preencher com ligação directa a cada campo por corrigir | IMPLEMENTADO E DEMONSTRADO EM QA — PROPOSTO PARA ACEITAÇÃO | portal-corrections.tsx; field-corrections.ts; simulation-form.tsx | E33; e33-presentation-20261121/functional-receipt.json | Lista liga mensagens existentes aos controlos reais, abre secções e coloca o foco; revisão final muda de etapa e foca o controlo, incluindo campos envolvidos por contentores. Prova por rato/teclado em computador e 390 px; correcção elimina a indicação. Sem novas validações ou alterações de cálculos. E33. |
|
||||||
| V14 | PN P0098 | Validação financeira | Aviso específico sobre textos opcionais em falta (concorrência/SWOT) | NÃO IMPLEMENTADO | business-plan-guidance.ts; business-plan-warnings.tsx | — | Catálogo de avisos não inclui estes textos opcionais. |
|
| V14 | PN P0098 | Validação financeira | Aviso específico sobre textos opcionais em falta (concorrência/SWOT) | NÃO IMPLEMENTADO | business-plan-guidance.ts; business-plan-warnings.tsx | — | Catálogo de avisos não inclui estes textos opcionais. |
|
||||||
| C01 | PN P0015; ME P0115 | Portal — actividades existentes | Análise agregada privada sem divulgar empresas/contactos individuais | INTEGRADO E VALIDADO | app/Services/InvestorContext.php; componentes de consulta agregada | base bae996e1 (histórico de incorporação no documento) | E7: provas agregadas e protecções documentadas; não é publicação de listas individuais. |
|
| C01 | PN P0015; ME P0115 | Portal — actividades existentes | Análise agregada privada sem divulgar empresas/contactos individuais | INTEGRADO E VALIDADO | app/Services/InvestorContext.php; componentes de consulta agregada | base bae996e1 (histórico de incorporação no documento) | E7: provas agregadas e protecções documentadas; não é publicação de listas individuais. |
|
||||||
| C02 | PN P0011/P0017; ME P0117–0118/P0154 | Portal — actividades existentes | Limitar a consulta do Hotel a CAE de hotelaria com detalhe nível 5 | IMPLEMENTADO MAS NÃO VALIDADO | cae-mozambique.ts; plan-economic-classification.tsx; consulta agregada existente | 4c221e0f | E6 valida escolha explícita de subclasses; catálogo geral pesquisável não é filtro exclusivo Hotel na consulta agregada. Não declarar equivalência. |
|
| C02 | PN P0011/P0017; ME P0117–0118/P0154 | Portal — actividades existentes | Limitar a consulta do Hotel a CAE de hotelaria com detalhe nível 5 | IMPLEMENTADO MAS NÃO VALIDADO | cae-mozambique.ts; plan-economic-classification.tsx; consulta agregada existente | 4c221e0f | E6 valida escolha explícita de subclasses; catálogo geral pesquisável não é filtro exclusivo Hotel na consulta agregada. Não declarar equivalência. |
|
||||||
@@ -1226,19 +1226,19 @@ Nomes de ficheiros na coluna de implementação referem-se a `resources/js/lib/`
|
|||||||
| B07 | ME P0187–0202 | Portal — instituições financeiras | Guardar referência, versão, produto, local e necessidade e continuar no mesmo dossier | APROVADO E ENCERRADO EM QA | funding/show.tsx; funding-dossier-choice.tsx; FundingDossierPreparation.php; percurso existente | e299afda + E11 | E11: gravação normal pela interface e recuperação autenticada de referência, versão, produto, balcão, localidade, necessidade e oportunidade; regresso ao mesmo dossier, ida/volta por pesquisa, entidade, forma jurídica e simulador. Auditoria de leitura confirma relação proprietário/dossier/rascunho/resultado. Computador e telemóvel emulado, dados sintéticos; sem candidatura ou contacto externo. |
|
| B07 | ME P0187–0202 | Portal — instituições financeiras | Guardar referência, versão, produto, local e necessidade e continuar no mesmo dossier | APROVADO E ENCERRADO EM QA | funding/show.tsx; funding-dossier-choice.tsx; FundingDossierPreparation.php; percurso existente | e299afda + E11 | E11: gravação normal pela interface e recuperação autenticada de referência, versão, produto, balcão, localidade, necessidade e oportunidade; regresso ao mesmo dossier, ida/volta por pesquisa, entidade, forma jurídica e simulador. Auditoria de leitura confirma relação proprietário/dossier/rascunho/resultado. Computador e telemóvel emulado, dados sintéticos; sem candidatura ou contacto externo. |
|
||||||
| P01 | ME P0052 | Portal — carteira | Oportunidades incorporadas em corredores, clusters, âncoras e outras categorias | PARCIALMENTE DEMONSTRADO | portfolio/index.tsx; opportunity-related-results.tsx; serviços de pesquisa | E14/E14.1/E14.2; 687727f9; e1e051c5 | E14.2: seis Nacala, seis Vale do Zambeze e dez Maputo/Limpopo identificadas. Fontes ligam fichas a âncoras, mas não explicitam estes 22 vínculos anúncio–COR-01/03/04. Sem contradição factual comprovada; preservar designações separadas conforme decisão Tempo 23/10. Não obrigar as 34 a fichas específicas nem tratar vínculos indeterminados como falha funcional. Mantém-se parcial no âmbito das provas E14, sem nova correcção demonstrada. |
|
| P01 | ME P0052 | Portal — carteira | Oportunidades incorporadas em corredores, clusters, âncoras e outras categorias | PARCIALMENTE DEMONSTRADO | portfolio/index.tsx; opportunity-related-results.tsx; serviços de pesquisa | E14/E14.1/E14.2; 687727f9; e1e051c5 | E14.2: seis Nacala, seis Vale do Zambeze e dez Maputo/Limpopo identificadas. Fontes ligam fichas a âncoras, mas não explicitam estes 22 vínculos anúncio–COR-01/03/04. Sem contradição factual comprovada; preservar designações separadas conforme decisão Tempo 23/10. Não obrigar as 34 a fichas específicas nem tratar vínculos indeterminados como falha funcional. Mantém-se parcial no âmbito das provas E14, sem nova correcção demonstrada. |
|
||||||
| P02 | ME P0053 | Portal — carteira | Filtrar resultados exclusivamente pela província escolhida | INTEGRADO E VALIDADO | portfolio/index.tsx; filtros territoriais partilhados | E14; prova-oportunidades-p01-p02-p09-20261120.json | E14: Mocuba em Zambezia apresenta tr?s fichas, incluindo a Cidadela; Maputo Prov?ncia exclui-as. Oportunidades sem implanta??o documentada n?o entram no filtro provincial por influ?ncia do corredor. Teste HTTP e confer?ncia real; ?mbito conferido, aguarda aceita??o. |
|
| P02 | ME P0053 | Portal — carteira | Filtrar resultados exclusivamente pela província escolhida | INTEGRADO E VALIDADO | portfolio/index.tsx; filtros territoriais partilhados | E14; prova-oportunidades-p01-p02-p09-20261120.json | E14: Mocuba em Zambezia apresenta tr?s fichas, incluindo a Cidadela; Maputo Prov?ncia exclui-as. Oportunidades sem implanta??o documentada n?o entram no filtro provincial por influ?ncia do corredor. Teste HTTP e confer?ncia real; ?mbito conferido, aguarda aceita??o. |
|
||||||
| P03 | ME P0054/P0062/P0066 | Portal — território | Deduplicar limites em carteira, zonas e negócios (Data/Edição) | IMPLEMENTADO MAS NÃO VALIDADO | territorial-source-evidence.tsx; portfolio/index.tsx; investment/zone.tsx | base bae996e1 | Existe apresentação partilhada; nenhuma prova suficiente dos três exemplos e da deduplicação por identidade/edição na QA actual. |
|
| P03 | ME P0054/P0062/P0066 | Portal — território | Deduplicar limites em carteira, zonas e negócios (Data/Edição) | PARCIALMENTE DEMONSTRADO | structure-geography.tsx; territorial-source-evidence.tsx; public-source-list.tsx | E33; e33-presentation-20261121/functional-receipt.json | Deduplicação idêntica por geometria/fonte/data e fontes por referência/edição, sem apagar edições distintas ou originais. Teste do componente real e visitas Mocuba/Balama/Montepuez em dois tamanhos. A QA não contém todos os exemplos documentais de limites dos três catálogos; não se inventaram geometrias para fechar a cobertura global. E33. |
|
||||||
| P04 | ME P0055/P0088 | Portal — conteúdo público | Ocultar fontes internas de programação e códigos internos de cartões/fichas | NÃO IMPLEMENTADO | territorial-source-evidence.tsx:28; investment/zone.tsx; portfolio/index.tsx | base c34670ef | Componente público ainda apresenta source_reference e citações sem garantia de excluir referências internas. Prova negativa concreta de padrão incompleto; registo exacto de Mocuba não conferido. |
|
| P04 | ME P0055/P0088 | Portal — conteúdo público | Ocultar fontes internas de programação e códigos internos de cartões/fichas | IMPLEMENTADO E DEMONSTRADO EM QA — PROPOSTO PARA ACEITAÇÃO | public-presentation.ts; public-reference.tsx; componentes de fontes, mapas, classificações e cartões | E33; e33-presentation-20261121/functional-receipt.json | Referências técnicas/locais excluídas da consulta pública; referências legais e URLs oficiais preservados, incluindo PHP. Códigos de cabeçalhos ocultos e referências cruzadas da carteira substituídas pelos nomes publicados. Originais e campos de edição preservados. Mocuba e restantes percursos E33 conferidos; sem alteração dos dados persistidos. |
|
||||||
| P05 | ME P0058/P0100–0101 | Portal — zonas | Manter filtros só no mesmo contexto; limpar quando contexto diferente | IMPLEMENTADO MAS NÃO VALIDADO | opportunity-selection.ts; opportunity-search-filters.tsx; portfolio/index.tsx | base bae996e1 | Regra do proprietário definida. Persistência de filtros por família existe; transição exacta carteira → zonas com contexto diferente não demonstrada. |
|
| P05 | ME P0058/P0100–0101 | Portal — zonas | Manter filtros só no mesmo contexto; limpar quando contexto diferente | IMPLEMENTADO E DEMONSTRADO EM QA — PROPOSTO PARA ACEITAÇÃO | catalogue-context.ts; catalogue-filter-context.tsx | E33; e33-presentation-20261121/functional-receipt.json | Critérios explícitos da URL conservados apenas na família correspondente; outra família recebe só o contexto territorial permitido. Remoção de província elimina descendentes; remoção/limpeza trata arrays indexados e paginação. Testes de regressão e remoção real de actividade sem perder grupo/pesquisa. E33. |
|
||||||
| P06 | ME P0059 | Portal — zonas | Grupo com informação própria ou indisponibilidade informada antecipadamente | IMPLEMENTADO MAS NÃO VALIDADO | investment/zones.tsx; catalogue-filter-group.tsx | base bae996e1 | Há grupos e estados vazios; falta prova da antecipação de indisponibilidade do grupo especificado. |
|
| P06 | ME P0059 | Portal — zonas | Grupo com informação própria ou indisponibilidade informada antecipadamente | IMPLEMENTADO E DEMONSTRADO EM QA — PROPOSTO PARA ACEITAÇÃO | InvestmentZoneController.php; investment/zones.tsx | E33; e33-presentation-20261121/functional-receipt.json | Selector mostra previamente a contagem pública de cada grupo nos filtros actuais. QA Balama: ZEE 0, ZFI 0, parques 2; actividade sem correspondências 0, reconciliado com a lista. Vazio distingue falta de resultados publicados de ausência de actividade ou disponibilidade física. E33. |
|
||||||
| P07 | ME P0060–0061 | Portal — zonas | Grupo conservado ao sair/regressar e Mais filtros ligado à intenção | IMPLEMENTADO MAS NÃO VALIDADO | investment/zones.tsx; catalogue-filter-group.tsx; opportunity-selection.ts | base bae996e1 | Código de filtros existente; prova do exemplo de grupo que volta a Todas não localizada. |
|
| P07 | ME P0060–0061 | Portal — zonas | Grupo conservado ao sair/regressar e Mais filtros ligado à intenção | IMPLEMENTADO E DEMONSTRADO EM QA — PROPOSTO PARA ACEITAÇÃO | catalogue-context.ts; investment/zones.tsx | E33; e33-presentation-20261121/functional-receipt.json | Grupo, pesquisa e actividade pertencem ao contexto explícito da lista; ida à ficha/regresso conserva grupo e pesquisa em computador/móvel. Mais filtros participa na mesma pesquisa; remover actividade conserva os outros critérios. E33. |
|
||||||
| P08 | ME P0063 | Portal — zonas | Captura/exemplar incorporado como evidência da repetição | NÃO DETERMINADO | ME word/media/image1.emf e word/embeddings/Microsoft_Excel_Macro-Enabled_Worksheet.xlsm | — | EMF contém ícone de objecto. Workbook incorporado, lido só por XML, tem apenas cabeçalhos Código…Fontes, A1:K1, sem registos/captura. Não prova valores das zonas; não foram executadas macros. |
|
| P08 | ME P0063 | Portal — zonas | Captura/exemplar incorporado como evidência da repetição | NÃO DETERMINADO | ME word/media/image1.emf e word/embeddings/Microsoft_Excel_Macro-Enabled_Worksheet.xlsm | — | EMF contém ícone de objecto. Workbook incorporado, lido só por XML, tem apenas cabeçalhos Código…Fontes, A1:K1, sem registos/captura. Não prova valores das zonas; não foram executadas macros. |
|
||||||
| P09 | ME P0067 | Portal — negócios | Mostrar oportunidades publicadas na consulta, em vez de obrigar nova pesquisa | PARCIALMENTE DEMONSTRADO | resources/js/pages/portfolio/index.tsx:204–207 | E14; prova-oportunidades-p01-p02-p09-20261120.json | E14: defeito de liga??o sem resultados incorporados corrigido em /carteira; dois cart?es Soja e sete Beira nos testes, detalhe correspondente e vazio ?til; computador e m?vel 390?844. /negocios j? renderiza resultados pr?prios no c?digo, mas o invent?rio QA tem zero neg?cios existentes: n?o h? caso documental dispon?vel para demonstrar resultados individuais nesta execu??o; sem afirmar cobertura integral das duas consultas. |
|
| P09 | ME P0067 | Portal — negócios | Mostrar oportunidades publicadas na consulta, em vez de obrigar nova pesquisa | PARCIALMENTE DEMONSTRADO | resources/js/pages/portfolio/index.tsx:204–207 | E14; prova-oportunidades-p01-p02-p09-20261120.json | E14: defeito de liga??o sem resultados incorporados corrigido em /carteira; dois cart?es Soja e sete Beira nos testes, detalhe correspondente e vazio ?til; computador e m?vel 390?844. /negocios j? renderiza resultados pr?prios no c?digo, mas o invent?rio QA tem zero neg?cios existentes: n?o h? caso documental dispon?vel para demonstrar resultados individuais nesta execu??o; sem afirmar cobertura integral das duas consultas. |
|
||||||
| P10 | ME P0023/P0068–0072 | Portal — navegação | Acções agrupadas e fáceis de encontrar em todos os consumidores | IMPLEMENTADO MAS NÃO VALIDADO | portfolio/index.tsx:200; componentes de navegação partilhados | base bae996e1 | Exemplo usa nav identificado e espaçado; cobertura de todos os consumidores do portal não demonstrada. |
|
| P10 | ME P0023/P0068–0072 | Portal — navegação | Acções agrupadas e fáceis de encontrar em todos os consumidores | PARCIALMENTE DEMONSTRADO | portfolio/index.tsx; investment/zones.tsx; business-marketplace.tsx; navegação partilhada | E33; e33-presentation-20261121/functional-receipt.json | Acções de cartões agrupadas em navegação identificada, com quebra de linha; destinos existentes consultados sem mutações e com resposta 200. Percursos públicos e revisão financeira de E33 conferidos em computador/móvel. Não se declara cobertura exaustiva de todas as áreas privadas do portal. |
|
||||||
| P11 | ME P0075 | Portal — educação | Informação útil segundo requisitos técnicos; indisponibilidade explícita sem inventar | NÃO DETERMINADO | education/index.tsx; SectorContentAnalysis.php | 6e7dfdab;base bae996e1 | Há análise sectorial e registos de ensino. Documento remete para especificação técnica externa; não há correspondência exaustiva desses campos/provas que permita declarar esta página conforme. |
|
| P11 | ME P0075 | Portal — educação | Informação útil segundo requisitos técnicos; indisponibilidade explícita sem inventar | NÃO DETERMINADO | education/index.tsx; SectorContentAnalysis.php | 6e7dfdab;base bae996e1 | Há análise sectorial e registos de ensino. Documento remete para especificação técnica externa; não há correspondência exaustiva desses campos/provas que permita declarar esta página conforme. |
|
||||||
| P12 | ME P0084 | Portal — formulários fiscais | Remover Exemplar e cobertura, nomes de ficheiro, SHA256 e notas técnicas | NÃO IMPLEMENTADO | resources/js/pages/portal/fiscal-forms.tsx:431–435 | dab85aee (último commit do ficheiro na QA) | Exemplar e cobertura, source.source, SHA256 e source.coverage continuam na vista. Cálculos não foram alterados nesta auditoria. |
|
| P12 | ME P0084 | Portal — formulários fiscais | Remover Exemplar e cobertura, nomes de ficheiro, SHA256 e notas técnicas | IMPLEMENTADO E DEMONSTRADO EM QA — PROPOSTO PARA ACEITAÇÃO | resources/js/pages/portal/fiscal-forms.tsx | E33; e33-presentation-20261121/functional-receipt.json | Removidos Exemplar e cobertura, nomes de ficheiros, SHA256 e notas técnicas da apresentação pública, incluindo cobertura repetida no cabeçalho. Modelos IVA/IRPC conferidos em dois tamanhos. Registo fiscal, exemplares, campos e funções de preparação preservados. E33. |
|
||||||
| P13 | ME P0025/P0087/P0102–0103 | Portal — idioma | Traduzir textos de fontes e estados para português em todo o portal | IMPLEMENTADO MAS NÃO VALIDADO | project-readiness.ts; investment/zone.tsx; fontes de conteúdo | 04d8db6c; base bae996e1 | Estados Sim/Não/Parcialmente traduzidos em E0; tradução de todas as fontes/cartões não demonstrada. Incidente HTTP503 independente não equivale a erro financeiro. |
|
| P13 | ME P0025/P0087/P0102–0103 | Portal — idioma | Traduzir textos de fontes e estados para português em todo o portal | IMPLEMENTADO MAS NÃO VALIDADO | project-readiness.ts; investment/zone.tsx; fontes de conteúdo | 04d8db6c; base bae996e1 | Estados Sim/Não/Parcialmente traduzidos em E0; tradução de todas as fontes/cartões não demonstrada. Incidente HTTP503 independente não equivale a erro financeiro. |
|
||||||
| P14 | ME P0089/P0090/P0108–0109 | Portal — apresentação | Cartões uniformes, localização completa, notas únicas e ligações separadas | IMPLEMENTADO MAS NÃO VALIDADO | investment/zone.tsx; investment/zones.tsx; componentes partilhados | base bae996e1 | Há componentes comuns; exemplos concretos Balama/Montepuez e todos os consumidores não têm prova suficiente nesta QA. |
|
| P14 | ME P0089/P0090/P0108–0109 | Portal — apresentação | Cartões uniformes, localização completa, notas únicas e ligações separadas | PARCIALMENTE DEMONSTRADO | portfolio/index.tsx; investment/zones.tsx; business-marketplace.tsx; public-source-list.tsx | E33; e33-presentation-20261121/functional-receipt.json | Cartões com quebra de texto e acções separadas; hierarquia territorial completa quando documentada, sem eliminar níveis com o mesmo nome; notas/fontes idênticas deduplicadas preservando edições. Sem transbordo horizontal nos percursos E33, incluindo Balama/Montepuez. /negocios mantém vazio real útil; não há negócio publicado na QA para validar um cartão real dessa lista. |
|
||||||
| P15 | ME P0091/P0110–0111 | Portal — língua | Grafia pré-Acordo, acentos e negrito coerentes | IMPLEMENTADO MAS NÃO VALIDADO | páginas e componentes públicos | base bae996e1;04d8db6c | Decisão definida, com aplicação parcial; auditoria de código não demonstra uniformidade de todos os conteúdos persistidos. |
|
| P15 | ME P0091/P0110–0111 | Portal — língua | Grafia pré-Acordo, acentos e negrito coerentes | IMPLEMENTADO MAS NÃO VALIDADO | páginas e componentes públicos | base bae996e1;04d8db6c | Decisão definida, com aplicação parcial; auditoria de código não demonstra uniformidade de todos os conteúdos persistidos. E33 corrige grafia de rótulos de actividade, selecção, acções, projecto, sector e acto nos componentes encontrados; não reescreve conteúdos de origem nem encerra a auditoria linguística global. |
|
||||||
| P16 | ME P0092/P0104–0105 | Portal — informação ausente | Preservar Não documentado e investigar omissão vs inexistência em Mocuba | IMPLEMENTADO MAS NÃO VALIDADO | investment/zone.tsx; páginas de fichas e fontes | base bae996e1 | Estados de ausência existem. Não foi localizada investigação específica dos cinco campos de Mocuba; não omitir nem preencher por inferência. |
|
| P16 | ME P0092/P0104–0105 | Portal — informação ausente | Preservar Não documentado e investigar omissão vs inexistência em Mocuba | IMPLEMENTADO MAS NÃO VALIDADO | investment/zone.tsx; páginas de fichas e fontes | base bae996e1 | Estados de ausência existem. Não foi localizada investigação específica dos cinco campos de Mocuba; não omitir nem preencher por inferência. |
|
||||||
| P17 | ME P0010–0015/P0020–0022/P0094–0097; PN P0002 | Processo transversal | Não inventar; preservar funcionalidades; corrigir por padrão; declarar provas e lacunas | NÃO DETERMINADO | matriz e documentação de auditoria existentes; presente correspondência | c34670ef; presente auditoria | São condições transversais. Os pacotes financeiros têm provas delimitadas; não existe demonstração de cumprimento integral de todos os consumidores do portal. Não converter regra de execução em funcionalidade validada. |
|
| P17 | ME P0010–0015/P0020–0022/P0094–0097; PN P0002 | Processo transversal | Não inventar; preservar funcionalidades; corrigir por padrão; declarar provas e lacunas | NÃO DETERMINADO | matriz e documentação de auditoria existentes; presente correspondência | c34670ef; presente auditoria | São condições transversais. Os pacotes financeiros têm provas delimitadas; não existe demonstração de cumprimento integral de todos os consumidores do portal. Não converter regra de execução em funcionalidade validada. |
|
||||||
| P18 | ME P0004–0007/P0026–0029/P0037–0039/P0050–0051/P0056–0057/P0064–0065/P0073–0074/P0076–0077/P0082–0083/P0085–0086/P0093/P0098–0099/P0112–0114/P0121–0124/P0129–0132/P0138–0139/P0149–0153/P0158–0159/P0164/P0169/P0171/P0173/P0179–0195/P0197–0202; T001/T002 | Cobertura documental | Títulos, exemplos, URLs, resumos e estados citados: cobertos pelas linhas funcionais acima | NÃO DETERMINADO | PN-extracted.txt; ME-extracted.txt; sources.json | — | Não são funcionalidades adicionais. Estados no exemplo T002 (partial/no) abrangidos por P13/C08/C09; alertas e financiamento por B01–B07. Não contabilizar títulos como requisitos implementados. |
|
| P18 | ME P0004–0007/P0026–0029/P0037–0039/P0050–0051/P0056–0057/P0064–0065/P0073–0074/P0076–0077/P0082–0083/P0085–0086/P0093/P0098–0099/P0112–0114/P0121–0124/P0129–0132/P0138–0139/P0149–0153/P0158–0159/P0164/P0169/P0171/P0173/P0179–0195/P0197–0202; T001/T002 | Cobertura documental | Títulos, exemplos, URLs, resumos e estados citados: cobertos pelas linhas funcionais acima | NÃO DETERMINADO | PN-extracted.txt; ME-extracted.txt; sources.json | — | Não são funcionalidades adicionais. Estados no exemplo T002 (partial/no) abrangidos por P13/C08/C09; alertas e financiamento por B01–B07. Não contabilizar títulos como requisitos implementados. |
|
||||||
@@ -2504,3 +2504,22 @@ Verifica??es: oito casos dirigidos no registo principal (incluindo transi??o anu
|
|||||||
Durante a confer?ncia adicional houve uma leitura prematura ap?s guardar: a prova foi substitu?da pela observa??o do PUT real e leitura de vers?o 5, seguida de recupera??o nova nos dois formatos. Sem alterar persist?ncia ou contornar autentica??o. Limites: emula??o m?vel, n?o dispositivo f?sico; aquisi??es sem cr?dito/adiantamentos; NIRF apenas linear fundamentado. Planos legados sem ades?o mant?m exactamente o caminho anterior; nenhum plano activo ou fonte original alterado.
|
Durante a confer?ncia adicional houve uma leitura prematura ap?s guardar: a prova foi substitu?da pela observa??o do PUT real e leitura de vers?o 5, seguida de recupera??o nova nos dois formatos. Sem alterar persist?ncia ou contornar autentica??o. Limites: emula??o m?vel, n?o dispositivo f?sico; aquisi??es sem cr?dito/adiantamentos; NIRF apenas linear fundamentado. Planos legados sem ades?o mant?m exactamente o caminho anterior; nenhum plano activo ou fonte original alterado.
|
||||||
|
|
||||||
Provas: [manifesto SHA-256](e32-f22-20261121/sha256.json). Conta e dossier exclusivamente sint?ticos no QA isolado. S? a linha F22 muda entre as 88; restantes 87, F20 e provas aceites preservados. Sem instala??o, publica??o, migra??o ou nova frente.
|
Provas: [manifesto SHA-256](e32-f22-20261121/sha256.json). Conta e dossier exclusivamente sint?ticos no QA isolado. S? a linha F22 muda entre as 88; restantes 87, F20 e provas aceites preservados. Sem instala??o, publica??o, migra??o ou nova frente.
|
||||||
|
|
||||||
|
|
||||||
|
## E33 — Apresentação em QA: V13, P04 e correcções do mesmo padrão — 21/11/2026
|
||||||
|
|
||||||
|
Autorização: corrigir continuamente os erros de apresentação em QA, começando por V13/P04, validando cartões, acções e filtros; preservar F20/provas aceites, sem instalar nem publicar. Execução limitada ao worktree/servidor QA isolado e base de ensaio identificada. Nenhuma alteração de dados públicos/editoriais, migração, instalação, publicação ou envio externo.
|
||||||
|
|
||||||
|
**Correcções implementadas e demonstradas; propostas para aceitação no âmbito das provas abaixo.** V13 liga diagnósticos já existentes aos campos reais, abre secções e muda de etapa a partir da revisão final; não cria regras financeiras. P04 protege a apresentação de fontes/cartões/mapas/classificações, conserva referências legais e substitui referências cruzadas internas da carteira pelos nomes publicados. P12 retira a exposição técnica dos formulários fiscais. Filtros dependentes/indexados, actividade no regresso às zonas, contagens antecipadas por grupo, acções dos cartões, fontes repetidas, hierarquia e grafia dos rótulos encontrados foram corrigidos pelo mesmo padrão.
|
||||||
|
|
||||||
|
### Provas e limites
|
||||||
|
|
||||||
|
- `e33-presentation-20261121/functional-receipt.json`: percursos reais de lista/detalhe em 1440×1000 e 390×844; Mocuba, Balama e Montepuez; formulários IVA/IRPC; acções existentes com resposta 200; grupo/pesquisa preservados e actividade removida isoladamente; foco financeiro por rato/teclado e revisão final entre etapas. Sem erros JavaScript ou transbordo horizontal nas páginas conferidas.
|
||||||
|
- `tests.log`: 13 testes dirigidos/regressões de apresentação, com componentes reais para fontes, tabelas e limites. Referências oficiais PHP mantidas, esquemas executáveis/caminhos locais excluídos, edições distintas preservadas e dados originais imutáveis.
|
||||||
|
- `group-availability.json`: contagens de grupos reconciliadas com os resultados, sem confundir zero registos com ausência de actividade/disponibilidade.
|
||||||
|
- Tipos, lint, sintaxe/estilo PHP e compilação QA aprovados. O aviso opcional de fontes da ferramenta de compilação não motivou instalação de dependências.
|
||||||
|
- `preservation.json`: 47 ficheiros protegidos/provas E25/E26/E29 exactamente iguais ao HEAD de partida `1950bb69`; ficheiros de cálculo F20/F22 e preparação fiscal preservados. Nenhum teste financeiro aceite repetido. Apenas um novo dossier sintético próprio foi usado para V13.
|
||||||
|
|
||||||
|
P03/P10/P14 mantêm os limites globais descritos nas respectivas linhas: não há todos os casos documentais de limites nem um negócio publicado na QA, e não se declara auditada a totalidade das áreas privadas. P13/P15 não se tornam uma tradução/revisão linguística integral dos conteúdos persistidos. Dados ausentes continuam identificados; nenhuma localização, fonte, ligação ou disponibilidade foi inferida para preencher lacunas.
|
||||||
|
|
||||||
|
Matriz conserva 88 linhas; nove linhas funcionais actualizadas e uma nota de grafia em P15; restantes 78 linhas, incluindo F20 e F22, exactamente preservadas. Os estados numéricos apresentados anteriormente são a fotografia da auditoria anterior, não uma nova percentagem de implementação. F20 e as suas aceitações não são reabertos por este incremento. Sem instalação ou publicação.
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
const {chromium}=require('C:/Users/macbook/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/playwright');
|
||||||
|
const fs=require('node:fs'),path=require('node:path'),assert=require('node:assert/strict');
|
||||||
|
const DIR=path.resolve('outputs/presentation-qa-20261121'),BASE='http://127.0.0.3:18724';
|
||||||
|
(async()=>{const b=await chromium.launch({headless:true,executablePath:'C:/Users/macbook/AppData/Local/ms-playwright/chromium-1243/chrome-win64/chrome.exe'});const result={scope:'Presentation only, isolated QA',errors:[],pages:[],v13:[],filters:[],actions:[]};
|
||||||
|
const context=async opts=>{const c=await b.newContext(opts);c.setDefaultTimeout(15000);c.setDefaultNavigationTimeout(20000);await c.route('**/*',r=>new URL(r.request().url()).origin===BASE?r.continue():r.abort());return c;};
|
||||||
|
try{
|
||||||
|
for(const mobile of [false,true]){const c=await context({viewport:mobile?{width:390,height:844}:{width:1440,height:1000}});const p=await c.newPage();p.on('pageerror',e=>result.errors.push(e.message));
|
||||||
|
const routes=['/carteira','/carteira?kind=cluster','/zonas','/oportunidades','/negocios','/clusters','/corredores','/formularios/fiscais','/formularios/fiscais?imposto=irpc','/documentos','/apoio'];
|
||||||
|
const details=new Set(['/carteira/dc8892ff-fdda-480c-81f1-2ffe0bfcb40b','/carteira/b30ecd8c-220d-4c7a-b1a7-704dc24d0933','/zonas/dc40c57e-a799-44d5-813c-5b80a83481dc','/zonas/0047f8a8-f3e0-402c-adb8-1d87476480ca']);
|
||||||
|
for(const route of routes){console.log(mobile,route);const r=await p.goto(BASE+route,{waitUntil:'domcontentloaded'});if(r.status()===404){result.pages.push({route,mobile,status:404});continue;}assert.equal(r.status(),200,route);await p.locator('h1').first().waitFor();await p.waitForTimeout(300);const root=p.locator('#portal-content');const text=await root.textContent();assert.doesNotMatch(text,/\bCOR-0[1-6]\b|resources\/js\/|C:\\laragon\\/);if(route.startsWith('/formularios/fiscais'))assert.doesNotMatch(text,/Exemplar e cobertura|SHA256:|\.xlsx|\.xlsm/);const overflow=await p.evaluate(()=>({body:document.documentElement.scrollWidth,width:innerWidth}));assert.ok(overflow.body<=overflow.width+1,JSON.stringify({route,mobile,overflow}));
|
||||||
|
if(!mobile){const nav=root.locator('nav[aria-label^="Acções de"]').first();if(await nav.count()){for(const href of await nav.locator('a').evaluateAll(a=>a.map(e=>e.getAttribute('href')))){assert.ok(href.startsWith('/')&&!href.startsWith('//'));const response=await c.request.get(BASE+href);assert.equal(response.status(),200,href);result.actions.push({from:route,href,status:200});}}}const links=await root.locator('a').evaluateAll(a=>a.map(x=>x.getAttribute('href')).filter(x=>x&&/^\/(?:carteira|zonas|oportunidades)\/[^/?]+/.test(x)));for(const href of links.slice(0,2))details.add(href);
|
||||||
|
result.pages.push({route,mobile,status:r.status(),overflow,textLength:text.length,groupedActions:await root.locator('nav[aria-label^="Acções de"]').count()});if(['/carteira','/zonas','/oportunidades'].includes(route)&&await root.locator('article').count())await root.locator('article').first().scrollIntoViewIfNeeded();if(['/carteira','/zonas','/oportunidades'].includes(route))await p.screenshot({path:path.join(DIR,`${mobile?'mobile':'desktop'}-${route.slice(1)}.png`)});
|
||||||
|
}
|
||||||
|
for(const route of details){console.log(mobile,route);const r=await p.goto(BASE+route,{waitUntil:'domcontentloaded'});await p.locator('h1').first().waitFor();const text=await p.locator('#portal-content').textContent();assert.doesNotMatch(text,/\bCOR-0[1-6]\b|resources\/js\/|C:\\laragon\\/);const bounds=await p.evaluate(()=>({body:document.documentElement.scrollWidth,width:innerWidth}));assert.ok(bounds.body<=bounds.width+1,JSON.stringify({route,mobile,bounds}));result.pages.push({route,mobile,status:r.status(),bounds});}
|
||||||
|
await p.goto(BASE+'/zonas?category=industrial_park&q=Balama&activity=');await p.locator('h1').first().waitFor();assert.match(await p.locator('select[name="category"] option[value="zee"]').textContent(),/registos/);const link=p.getByRole('link',{name:'Consultar ficha',exact:true}).first();const destination=new URL(await link.getAttribute('href'),BASE).href;await Promise.all([p.waitForURL(destination),link.click()]);const back=p.getByRole('link',{name:'Voltar à pesquisa',exact:true});await back.waitFor();result.filters.push({mobile,detail:p.url(),back:await back.getAttribute('href')});assert.match(await back.getAttribute('href'),/category=industrial_park/);assert.match(await back.getAttribute('href'),/q=Balama/);const returnUrl=new URL(await back.getAttribute('href'),BASE).href;await Promise.all([p.waitForURL(u=>u.pathname===new URL(returnUrl).pathname&&[...new URL(returnUrl).searchParams].every(([k,v])=>u.searchParams.get(k)===v)),back.click()]);assert.equal(await p.locator('select[name="category"]').inputValue(),'industrial_park');assert.equal(await p.locator('input[name="q"]').inputValue(),'Balama');await p.locator('summary').filter({hasText:'Mais filtros'}).click();await p.locator('input[name="activity"]').fill('energia');await p.waitForURL(u=>u.searchParams.get('activity')==='energia');assert.equal(await p.locator('select[name="category"]').inputValue(),'industrial_park');await p.getByRole('link',{name:'Remover Actividade',exact:true}).click();await p.waitForURL(u=>!u.searchParams.has('activity'));assert.equal(await p.locator('input[name="q"]').inputValue(),'Balama');result.filters.push({mobile,activityRemovedWithoutLosingGroupOrText:true});
|
||||||
|
await c.close();}
|
||||||
|
console.log('V13');const c=await context({viewport:{width:1440,height:1000}});const p=await c.newPage();p.on('pageerror',e=>result.errors.push(e.message));await p.goto(BASE+'/login');await p.getByLabel('Email',{exact:true}).fill('qa-v13-presentation-20261121@example.invalid');await p.getByLabel('Palavra-passe',{exact:true}).fill('password');await Promise.all([p.waitForURL(BASE+'/dashboard'),p.getByRole('button',{name:'Entrar',exact:true}).click()]);
|
||||||
|
const seed=JSON.parse(fs.readFileSync(path.join(DIR,'seed.json'),'utf8').replace(/^\uFEFF/,''));const url=BASE+'/simulador-fiscal?draft='+seed.draft;
|
||||||
|
await p.goto(url);await p.getByRole('button',{name:'5. Investimento e financiamento',exact:true}).click();
|
||||||
|
const help=async()=>{const ch=p.getByRole('checkbox',{name:'Orientações automáticas neste navegador'});if(await ch.isVisible())await ch.uncheck();const close=p.getByRole('button',{name:'Fechar ajuda',exact:true});if(await close.isVisible())await close.click();};await help();
|
||||||
|
const funding=p.getByText('Plano financeiro empresarial (pressupostos editáveis)',{exact:true});if(!await p.getByRole('button',{name:'Exportar plano JSON',exact:true}).isVisible())await funding.click();await help();
|
||||||
|
const exp=async name=>{const [d]=await Promise.all([p.waitForEvent('download'),p.getByRole('button',{name:'Exportar plano JSON',exact:true}).click()]);const data=JSON.parse(fs.readFileSync(await d.path(),'utf8'));fs.writeFileSync(path.join(DIR,name+'.json'),JSON.stringify(data,null,2));return data;};
|
||||||
|
console.log('export initial');const before=await exp('v13-before');const details=p.locator('summary').filter({hasText:'Crescimento, despesas discriminadas, capital e dividendos'}).locator('..');await details.locator('summary').click();await p.getByRole('checkbox',{name:'Discriminar o capital introduzido',exact:true}).check();await p.getByLabel('Capital do proprietário',{exact:true}).fill('700');await p.getByLabel('Capital do investidor',{exact:true}).fill('0');await p.getByLabel('Capital adicional angariado',{exact:true}).fill('0');await p.getByLabel('Capital próprio',{exact:true}).fill('600');
|
||||||
|
const summary=p.getByRole('region',{name:'Falta preencher ou corrigir',exact:true});await summary.waitFor();console.log(await summary.innerText());await details.locator('summary').click();await summary.scrollIntoViewIfNeeded();await p.screenshot({path:path.join(DIR,'v13-summary-desktop.png')});await summary.getByRole('link',{name:/^Capital do proprietário(?: —|$)/}).first().click();assert.notEqual(await details.getAttribute('open'),null);assert.equal(await p.getByLabel('Capital do proprietário',{exact:true}).evaluate(e=>document.activeElement===e),true);result.v13.push({case:'diagnostic opens closed section and focuses actual field',passed:true});
|
||||||
|
await p.getByLabel('Capital do proprietário',{exact:true}).fill('600');await p.waitForTimeout(300);const after=await exp('v13-after');const expected=structuredClone(before);expected.plan.fundingBreakdown={ownerCapital:'600',investorCapital:'0',additionalCapital:'0'};expected.plan.equity='600.00';assert.deepEqual(after,expected);result.v13.push({case:'navigation preserves all financial values; only explicit synthetic input differs',passed:true});
|
||||||
|
assert.equal(await summary.getByText(/capital discriminado/i).count(),0);await p.screenshot({path:path.join(DIR,'v13-desktop.png')});
|
||||||
|
await p.getByLabel('Capital do proprietário',{exact:true}).fill('700');await p.getByLabel('Capital próprio',{exact:true}).fill('600');await p.setViewportSize({width:390,height:844});await details.locator('summary').click();const target=summary.getByRole('link',{name:/^Capital do proprietário(?: —|$)/}).first();await target.focus();await p.keyboard.press('Enter');assert.equal(await p.getByLabel('Capital do proprietário',{exact:true}).evaluate(e=>document.activeElement===e),true);await p.screenshot({path:path.join(DIR,'v13-mobile.png')});result.v13.push({case:'mobile keyboard link opens and focuses field',passed:true});await p.getByLabel('Capital do proprietário',{exact:true}).fill('600');
|
||||||
|
await p.getByRole('navigation',{name:'Etapas do formulário',exact:true}).getByRole('button').last().click();await help();await p.getByRole('button',{name:'Validar este rascunho',exact:true}).click();const pending=p.locator('li > button').filter({hasText:/:/}).first();const pendingText=await pending.innerText();const reviewStep=await p.locator('[aria-current="step"]').innerText();await pending.click();await p.waitForTimeout(200);const active=await p.evaluate(()=>({tag:document.activeElement.tagName,id:document.activeElement.id,field:document.activeElement.closest('[id^="field-"]')?.id}));assert.ok(['INPUT','SELECT','TEXTAREA','BUTTON'].includes(active.tag),JSON.stringify(active));assert.ok(active.field,JSON.stringify(active));assert.notEqual(await p.locator('[aria-current="step"]').innerText(),reviewStep);result.v13.push({case:'final review changes step and focuses the real control',pendingText,active});await c.close();assert.equal(result.errors.length,0);result.status='presentation demonstrated in QA';fs.writeFileSync(path.join(DIR,'functional-receipt.json'),JSON.stringify(result,null,2));console.log(JSON.stringify(result));
|
||||||
|
}catch(e){fs.writeFileSync(path.join(DIR,'failed.json'),JSON.stringify({error:e.stack,result},null,2));throw e;}finally{await b.close()}})().catch(e=>{console.error(e.stack);process.exitCode=1});
|
||||||
@@ -0,0 +1,339 @@
|
|||||||
|
[plugin laravel:fonts] Optimized font fallbacks require the optional "fontaine" package. Install it, or set "optimizedFallbacks: false" on your fonts to disable the feature.
|
||||||
|
transforming...
|
||||||
|
✓ 2906 modules transformed.
|
||||||
|
rendering chunks...
|
||||||
|
computing gzip size...
|
||||||
|
public/build-qa-opportunities/assets/layers-BWBAp2CZ.png 0.69 kB
|
||||||
|
public/build-qa-opportunities/assets/layers-2x-Bpkbi35X.png 1.25 kB
|
||||||
|
public/build-qa-opportunities/assets/marker-icon-hN30_KVU.png 1.46 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-400-normal-BTkUljjl.woff2 13.12 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-700-normal-CrvTEWhy.woff2 13.46 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-500-normal-DCA2Z9Cj.woff2 13.49 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-600-normal-Dkgu5AE5.woff2 13.49 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-serif-400-normal-BV_iYGc9.woff2 14.40 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-serif-700-normal-CIw17UNa.woff2 15.23 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-serif-600-normal-BiuDA9L7.woff2 15.31 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-400-normal-DPpKfCgK.woff 16.68 kB
|
||||||
|
public/build-qa-opportunities/assets/instrument-sans-400-normal-DRC__1Mx.woff2 16.86 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-700-normal-ZyrKABVF.woff 16.95 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-500-normal-CDPngY5C.woff 17.09 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-sans-600-normal-DVJMj_t0.woff 17.10 kB
|
||||||
|
public/build-qa-opportunities/assets/instrument-sans-500-normal-Dk9ku72i.woff2 17.23 kB
|
||||||
|
public/build-qa-opportunities/assets/instrument-sans-600-normal-B7fBEWYG.woff2 17.40 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-serif-400-normal-DT0cwSa_.woff 17.81 kB
|
||||||
|
public/build-qa-opportunities/fonts-manifest.json 18.53 kB │ gzip: 1.23 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-serif-700-normal-mX-AlFMT.woff 18.54 kB
|
||||||
|
public/build-qa-opportunities/assets/noto-serif-600-normal-RZopCp-J.woff 18.68 kB
|
||||||
|
public/build-qa-opportunities/assets/instrument-sans-400-normal-D1W7dsQl.woff 21.24 kB
|
||||||
|
public/build-qa-opportunities/assets/instrument-sans-500-normal-Z6ESRlEs.woff 21.65 kB
|
||||||
|
public/build-qa-opportunities/assets/instrument-sans-600-normal-B9e8oLYv.woff 21.67 kB
|
||||||
|
public/build-qa-opportunities/manifest.json 122.65 kB │ gzip: 13.10 kB
|
||||||
|
public/build-qa-opportunities/assets/fonts-CcFLQaQ-.css 7.91 kB │ gzip: 0.65 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-catalogue-WaRR19FV.css 8.15 kB │ gzip: 2.00 kB
|
||||||
|
public/build-qa-opportunities/assets/interactive-investment-map-Bm3WjoQm.css 10.62 kB │ gzip: 2.65 kB
|
||||||
|
public/build-qa-opportunities/assets/app-CnWeED8-.css 158.88 kB │ gzip: 25.54 kB
|
||||||
|
public/build-qa-opportunities/assets/input-text-BlEFHnL-.js 0.09 kB │ gzip: 0.10 kB
|
||||||
|
public/build-qa-opportunities/assets/check-PcBNn_NG.js 0.12 kB │ gzip: 0.14 kB
|
||||||
|
public/build-qa-opportunities/assets/company-comparison-qLTgpXjz.js 0.12 kB │ gzip: 0.13 kB
|
||||||
|
public/build-qa-opportunities/assets/chevron-down-Bjkqe1aH.js 0.12 kB │ gzip: 0.14 kB
|
||||||
|
public/build-qa-opportunities/assets/chevron-right-K0fOEtTQ.js 0.12 kB │ gzip: 0.14 kB
|
||||||
|
public/build-qa-opportunities/assets/display-value-DRR1EAAK.js 0.13 kB │ gzip: 0.12 kB
|
||||||
|
public/build-qa-opportunities/assets/value-text-BztaYdGl.js 0.14 kB │ gzip: 0.12 kB
|
||||||
|
public/build-qa-opportunities/assets/loader-circle-DS8Tf4er.js 0.14 kB │ gzip: 0.15 kB
|
||||||
|
public/build-qa-opportunities/assets/shared-B-QpuOU2.js 0.15 kB │ gzip: 0.13 kB
|
||||||
|
public/build-qa-opportunities/assets/arrow-left-DMVHIw8Z.js 0.16 kB │ gzip: 0.16 kB
|
||||||
|
public/build-qa-opportunities/assets/arrow-up-right-BIVouzdL.js 0.16 kB │ gzip: 0.15 kB
|
||||||
|
public/build-qa-opportunities/assets/search-BRvPeo47.js 0.17 kB │ gzip: 0.16 kB
|
||||||
|
public/build-qa-opportunities/assets/circle-check-DckzuBoW.js 0.17 kB │ gzip: 0.16 kB
|
||||||
|
public/build-qa-opportunities/assets/product-usage-CHhCL93_.js 0.18 kB │ gzip: 0.17 kB
|
||||||
|
public/build-qa-opportunities/assets/editorial-states-Bc7NQzsj.js 0.19 kB │ gzip: 0.16 kB
|
||||||
|
public/build-qa-opportunities/assets/types-BoD_IJFv.js 0.19 kB │ gzip: 0.16 kB
|
||||||
|
public/build-qa-opportunities/assets/participation-identity-BWabb4yN.js 0.24 kB │ gzip: 0.18 kB
|
||||||
|
public/build-qa-opportunities/assets/circle-alert-uV7omYjr.js 0.24 kB │ gzip: 0.18 kB
|
||||||
|
public/build-qa-opportunities/assets/eye-CmcEBfxN.js 0.25 kB │ gzip: 0.20 kB
|
||||||
|
public/build-qa-opportunities/assets/log-in-Wgc8VLfq.js 0.25 kB │ gzip: 0.22 kB
|
||||||
|
public/build-qa-opportunities/assets/partnership-history-CfclSLAo.js 0.27 kB │ gzip: 0.19 kB
|
||||||
|
public/build-qa-opportunities/assets/compiler-runtime-sKsOXjDo.js 0.27 kB │ gzip: 0.23 kB
|
||||||
|
public/build-qa-opportunities/assets/file-text-CEJtuNfp.js 0.33 kB │ gzip: 0.21 kB
|
||||||
|
public/build-qa-opportunities/assets/confirm-Culw9Q-x.js 0.36 kB │ gzip: 0.22 kB
|
||||||
|
public/build-qa-opportunities/assets/country-select-Bo9GXSHJ.js 0.40 kB │ gzip: 0.29 kB
|
||||||
|
public/build-qa-opportunities/assets/text-link-BBvcP60s.js 0.40 kB │ gzip: 0.27 kB
|
||||||
|
public/build-qa-opportunities/assets/content-management-entry-C_oY4VyW.js 0.42 kB │ gzip: 0.31 kB
|
||||||
|
public/build-qa-opportunities/assets/handshake-YqyTTm3a.js 0.44 kB │ gzip: 0.28 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-guides-DO58L8zr.js 0.45 kB │ gzip: 0.26 kB
|
||||||
|
public/build-qa-opportunities/assets/currency-select-BGabtvj1.js 0.46 kB │ gzip: 0.33 kB
|
||||||
|
public/build-qa-opportunities/assets/evidence-details-BR-xEWlz.js 0.47 kB │ gzip: 0.32 kB
|
||||||
|
public/build-qa-opportunities/assets/operation-key-Dr4VtGxa.js 0.51 kB │ gzip: 0.35 kB
|
||||||
|
public/build-qa-opportunities/assets/spinner-Dmx1j41V.js 0.52 kB │ gzip: 0.36 kB
|
||||||
|
public/build-qa-opportunities/assets/types-Cxp_Nskt.js 0.55 kB │ gzip: 0.32 kB
|
||||||
|
public/build-qa-opportunities/assets/sliders-horizontal-D-4FqAHA.js 0.58 kB │ gzip: 0.26 kB
|
||||||
|
public/build-qa-opportunities/assets/page-preparation-guard-B-OckhBt.js 0.59 kB │ gzip: 0.35 kB
|
||||||
|
public/build-qa-opportunities/assets/portal-presentation-fH7FShU8.js 0.62 kB │ gzip: 0.38 kB
|
||||||
|
public/build-qa-opportunities/assets/confidentiality-C2eqbRBb.js 0.64 kB │ gzip: 0.41 kB
|
||||||
|
public/build-qa-opportunities/assets/public-reference-DPnuv6XU.js 0.67 kB │ gzip: 0.45 kB
|
||||||
|
public/build-qa-opportunities/assets/dist-RzQD0wUd.js 0.68 kB │ gzip: 0.43 kB
|
||||||
|
public/build-qa-opportunities/assets/published-opportunities-empty-C6GPHq6x.js 0.69 kB │ gzip: 0.44 kB
|
||||||
|
public/build-qa-opportunities/assets/dist-qw3FPjRO.js 0.74 kB │ gzip: 0.49 kB
|
||||||
|
public/build-qa-opportunities/assets/labels-DxqjesIG.js 0.74 kB │ gzip: 0.46 kB
|
||||||
|
public/build-qa-opportunities/assets/preparation-intent-Di5hC8UV.js 0.82 kB │ gzip: 0.40 kB
|
||||||
|
public/build-qa-opportunities/assets/wayfinder-Dp7PqxvV.js 0.89 kB │ gzip: 0.53 kB
|
||||||
|
public/build-qa-opportunities/assets/createLucideIcon-oMeAlXbs.js 0.95 kB │ gzip: 0.56 kB
|
||||||
|
public/build-qa-opportunities/assets/context-documents-Bh7vrWBo.js 1.01 kB │ gzip: 0.57 kB
|
||||||
|
public/build-qa-opportunities/assets/label-Dpfg_IeY.js 1.02 kB │ gzip: 0.62 kB
|
||||||
|
public/build-qa-opportunities/assets/technical-incident-labels-DlL6bSeE.js 1.02 kB │ gzip: 0.51 kB
|
||||||
|
public/build-qa-opportunities/assets/use-interest-draft-CDw2a6F9.js 1.05 kB │ gzip: 0.55 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-consumer-identity-Cxp_hGfX.js 1.07 kB │ gzip: 0.59 kB
|
||||||
|
public/build-qa-opportunities/assets/article-DSLULANW.js 1.08 kB │ gzip: 0.65 kB
|
||||||
|
public/build-qa-opportunities/assets/search-state-RHLy6yI7.js 1.10 kB │ gzip: 0.68 kB
|
||||||
|
public/build-qa-opportunities/assets/rolldown-runtime-Dd_uD5pT.js 1.10 kB │ gzip: 0.62 kB
|
||||||
|
public/build-qa-opportunities/assets/catalogue-investment-map-DDHtN9dl.js 1.12 kB │ gzip: 0.62 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-contexts-BQGiwu9n.js 1.17 kB │ gzip: 0.60 kB
|
||||||
|
public/build-qa-opportunities/assets/catalogue-choice-select-BAtEMbIT.js 1.19 kB │ gzip: 0.75 kB
|
||||||
|
public/build-qa-opportunities/assets/profile-json-Bza-VQzw.js 1.20 kB │ gzip: 0.72 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-budget-range-CfaWEAZF.js 1.21 kB │ gzip: 0.62 kB
|
||||||
|
public/build-qa-opportunities/assets/document-JsHSF350.js 1.23 kB │ gzip: 0.72 kB
|
||||||
|
public/build-qa-opportunities/assets/shared-JTxA6RNb.js 1.24 kB │ gzip: 0.74 kB
|
||||||
|
public/build-qa-opportunities/assets/public-detail-CaRRAwXq.js 1.25 kB │ gzip: 0.72 kB
|
||||||
|
public/build-qa-opportunities/assets/public-offer-card-Di32q-qG.js 1.30 kB │ gzip: 0.70 kB
|
||||||
|
public/build-qa-opportunities/assets/public-presentation-BoEkRx5B.js 1.36 kB │ gzip: 0.77 kB
|
||||||
|
public/build-qa-opportunities/assets/input-BJ-Jg-jz.js 1.37 kB │ gzip: 0.75 kB
|
||||||
|
public/build-qa-opportunities/assets/cluster-competitiveness-hNV0FaaW.js 1.37 kB │ gzip: 0.73 kB
|
||||||
|
public/build-qa-opportunities/assets/verify-email-CH4nF9Bg.js 1.40 kB │ gzip: 0.74 kB
|
||||||
|
public/build-qa-opportunities/assets/public-source-list-B2e15dGE.js 1.42 kB │ gzip: 0.81 kB
|
||||||
|
public/build-qa-opportunities/assets/business-types-SGCXhH6X.js 1.47 kB │ gzip: 0.75 kB
|
||||||
|
public/build-qa-opportunities/assets/verification-BOcn3HIw.js 1.48 kB │ gzip: 0.52 kB
|
||||||
|
public/build-qa-opportunities/assets/manage-BuxzoPy9.js 1.56 kB │ gzip: 0.74 kB
|
||||||
|
public/build-qa-opportunities/assets/educational-article-card-0rCqZ1kX.js 1.59 kB │ gzip: 0.72 kB
|
||||||
|
public/build-qa-opportunities/assets/partnership-source-links-VfrXk2FZ.js 1.65 kB │ gzip: 0.91 kB
|
||||||
|
public/build-qa-opportunities/assets/catalogue-DyjsijBT.js 1.78 kB │ gzip: 0.96 kB
|
||||||
|
public/build-qa-opportunities/assets/technical-incident-notice-CjziWA6m.js 1.79 kB │ gzip: 0.89 kB
|
||||||
|
public/build-qa-opportunities/assets/report-DRxtlCFu.js 1.80 kB │ gzip: 0.93 kB
|
||||||
|
public/build-qa-opportunities/assets/search-territory-cn2TEGQ6.js 1.81 kB │ gzip: 0.71 kB
|
||||||
|
public/build-qa-opportunities/assets/demographic-context-DHHS20Dk.js 1.84 kB │ gzip: 0.98 kB
|
||||||
|
public/build-qa-opportunities/assets/preparation-index-CdgPdpQ-.js 1.87 kB │ gzip: 0.89 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-technical-incidents-C4aVbut7.js 1.88 kB │ gzip: 0.98 kB
|
||||||
|
public/build-qa-opportunities/assets/password-input-DdsNob7W.js 1.89 kB │ gzip: 1.06 kB
|
||||||
|
public/build-qa-opportunities/assets/territorial-source-evidence-C140x2kX.js 1.99 kB │ gzip: 1.00 kB
|
||||||
|
public/build-qa-opportunities/assets/passkey-verify-DMP76ewx.js 2.04 kB │ gzip: 1.15 kB
|
||||||
|
public/build-qa-opportunities/assets/public-record-offline-BmjvnSLE.js 2.07 kB │ gzip: 1.22 kB
|
||||||
|
public/build-qa-opportunities/assets/investors-Di6y94fY.js 2.09 kB │ gzip: 1.15 kB
|
||||||
|
public/build-qa-opportunities/assets/forgot-password-DsXDUtL8.js 2.10 kB │ gzip: 0.98 kB
|
||||||
|
public/build-qa-opportunities/assets/sources-BGKiB1I-.js 2.13 kB │ gzip: 1.12 kB
|
||||||
|
public/build-qa-opportunities/assets/saved-DdfdD-38.js 2.21 kB │ gzip: 1.10 kB
|
||||||
|
public/build-qa-opportunities/assets/zone-map-Ty9mp6qu.js 2.32 kB │ gzip: 1.19 kB
|
||||||
|
public/build-qa-opportunities/assets/appearance-kqdMZ-fb.js 2.36 kB │ gzip: 1.14 kB
|
||||||
|
public/build-qa-opportunities/assets/shared-CBJ3c_x-.js 2.37 kB │ gzip: 1.24 kB
|
||||||
|
public/build-qa-opportunities/assets/editorial-subjects-C6_MfRSK.js 2.38 kB │ gzip: 1.14 kB
|
||||||
|
public/build-qa-opportunities/assets/context-installation-CYKpRDW2.js 2.39 kB │ gzip: 1.23 kB
|
||||||
|
public/build-qa-opportunities/assets/workspace-4_R1CLYI.js 2.40 kB │ gzip: 1.20 kB
|
||||||
|
public/build-qa-opportunities/assets/reset-password-CwoTFQw2.js 2.43 kB │ gzip: 0.98 kB
|
||||||
|
public/build-qa-opportunities/assets/manage-BX2DPPw5.js 2.47 kB │ gzip: 1.10 kB
|
||||||
|
public/build-qa-opportunities/assets/confirm-password-CWd7sibX.js 2.47 kB │ gzip: 1.06 kB
|
||||||
|
public/build-qa-opportunities/assets/territory-search-select-BPwyqg6Q.js 2.48 kB │ gzip: 1.28 kB
|
||||||
|
public/build-qa-opportunities/assets/public-document-content-CxPCjivY.js 2.49 kB │ gzip: 0.90 kB
|
||||||
|
public/build-qa-opportunities/assets/structures-Dr2nXdub.js 2.49 kB │ gzip: 1.35 kB
|
||||||
|
public/build-qa-opportunities/assets/bootstrap-confirmation-9RmA5-Yz.js 2.55 kB │ gzip: 1.19 kB
|
||||||
|
public/build-qa-opportunities/assets/territory-associations-CMMTruF1.js 2.55 kB │ gzip: 1.11 kB
|
||||||
|
public/build-qa-opportunities/assets/catalogue-context-CBdsVRhQ.js 2.58 kB │ gzip: 1.11 kB
|
||||||
|
public/build-qa-opportunities/assets/installation-Dly8Xg6e.js 2.59 kB │ gzip: 1.28 kB
|
||||||
|
public/build-qa-opportunities/assets/technical-support-DlW3Jv7q.js 2.60 kB │ gzip: 1.18 kB
|
||||||
|
public/build-qa-opportunities/assets/management-CvdeRZYq.js 2.68 kB │ gzip: 1.18 kB
|
||||||
|
public/build-qa-opportunities/assets/experiments-CyzCWNaK.js 2.73 kB │ gzip: 1.31 kB
|
||||||
|
public/build-qa-opportunities/assets/password-CB_NxgQN.js 2.73 kB │ gzip: 0.73 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-install-B232n6lM.js 2.75 kB │ gzip: 1.34 kB
|
||||||
|
public/build-qa-opportunities/assets/dist-BobFCjoG.js 2.92 kB │ gzip: 1.29 kB
|
||||||
|
public/build-qa-opportunities/assets/offer-navigation-DLl-_mMp.js 2.98 kB │ gzip: 1.11 kB
|
||||||
|
public/build-qa-opportunities/assets/portal-api-CpQBRfcu.js 2.98 kB │ gzip: 1.50 kB
|
||||||
|
public/build-qa-opportunities/assets/two-factor-challenge-QWIymxSZ.js 3.24 kB │ gzip: 1.52 kB
|
||||||
|
public/build-qa-opportunities/assets/territory-geometry-preview-DOoterbt.js 3.25 kB │ gzip: 1.47 kB
|
||||||
|
public/build-qa-opportunities/assets/workspace-pklSqipZ.js 3.29 kB │ gzip: 1.44 kB
|
||||||
|
public/build-qa-opportunities/assets/partnership-agreement-instrument-CCnuZNBy.js 3.43 kB │ gzip: 1.49 kB
|
||||||
|
public/build-qa-opportunities/assets/funding-classification-DIx8s2Cc.js 3.44 kB │ gzip: 1.64 kB
|
||||||
|
public/build-qa-opportunities/assets/guide-mndEuKFT.js 3.45 kB │ gzip: 1.43 kB
|
||||||
|
public/build-qa-opportunities/assets/history-DSPDM8gM.js 3.46 kB │ gzip: 1.70 kB
|
||||||
|
public/build-qa-opportunities/assets/audit-Xdo8qR4z.js 3.51 kB │ gzip: 1.69 kB
|
||||||
|
public/build-qa-opportunities/assets/show-D8H3OZGR.js 3.60 kB │ gzip: 1.82 kB
|
||||||
|
public/build-qa-opportunities/assets/corridor-agribusiness-BcIVf-hW.js 3.72 kB │ gzip: 1.53 kB
|
||||||
|
public/build-qa-opportunities/assets/business-opportunity-CGPMGu4o.js 3.73 kB │ gzip: 1.63 kB
|
||||||
|
public/build-qa-opportunities/assets/management-access-D4VE9LUB.js 3.75 kB │ gzip: 1.43 kB
|
||||||
|
public/build-qa-opportunities/assets/businesses-D5qONTmC.js 3.76 kB │ gzip: 1.56 kB
|
||||||
|
public/build-qa-opportunities/assets/editorial-reading-DUFQmJtD.js 3.89 kB │ gzip: 1.68 kB
|
||||||
|
public/build-qa-opportunities/assets/sector-content-analysis-3po9rf38.js 3.93 kB │ gzip: 1.85 kB
|
||||||
|
public/build-qa-opportunities/assets/catalog-B6dpdVsW.js 3.95 kB │ gzip: 1.51 kB
|
||||||
|
public/build-qa-opportunities/assets/desk-assignments-CfWpiIpK.js 3.99 kB │ gzip: 1.95 kB
|
||||||
|
public/build-qa-opportunities/assets/dashboard-CxoTLkSg.js 3.99 kB │ gzip: 1.61 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-context-cards-gJe_oyxw.js 4.05 kB │ gzip: 1.84 kB
|
||||||
|
public/build-qa-opportunities/assets/shared-Ce45Fqr6.js 4.09 kB │ gzip: 2.05 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-contact-form-Cxrg1jjd.js 4.10 kB │ gzip: 1.67 kB
|
||||||
|
public/build-qa-opportunities/assets/conversation-87D1leHF.js 4.42 kB │ gzip: 1.95 kB
|
||||||
|
public/build-qa-opportunities/assets/reference-sEIdW1C5.js 4.46 kB │ gzip: 2.00 kB
|
||||||
|
public/build-qa-opportunities/assets/territory-geometry-import-BnSl5jzG.js 4.49 kB │ gzip: 1.90 kB
|
||||||
|
public/build-qa-opportunities/assets/context-inheritance-N4jYGhgU.js 4.64 kB │ gzip: 1.99 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-origin-D3o6OTRg.js 4.64 kB │ gzip: 2.07 kB
|
||||||
|
public/build-qa-opportunities/assets/installation-CnslW5oi.js 4.67 kB │ gzip: 1.95 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunities-YsMGMCR_.js 4.73 kB │ gzip: 1.77 kB
|
||||||
|
public/build-qa-opportunities/assets/references-DPs9b-JT.js 4.79 kB │ gzip: 2.22 kB
|
||||||
|
public/build-qa-opportunities/assets/offer-confidential-access-Bu9EgZ3d.js 4.83 kB │ gzip: 1.91 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-curation-7Gt2cWer.js 4.88 kB │ gzip: 2.04 kB
|
||||||
|
public/build-qa-opportunities/assets/business-verifications-7xmvqzT3.js 4.90 kB │ gzip: 1.71 kB
|
||||||
|
public/build-qa-opportunities/assets/crm-edit-comparison-Db53T7I7.js 4.91 kB │ gzip: 1.99 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-complements-Cye75wpS.js 5.02 kB │ gzip: 2.05 kB
|
||||||
|
public/build-qa-opportunities/assets/service-CbUB6_Ll.js 5.05 kB │ gzip: 2.33 kB
|
||||||
|
public/build-qa-opportunities/assets/agreement-history-BfSa8E7Q.js 5.13 kB │ gzip: 2.10 kB
|
||||||
|
public/build-qa-opportunities/assets/catalogue-BIa6-iuY.js 5.13 kB │ gzip: 2.54 kB
|
||||||
|
public/build-qa-opportunities/assets/workspace-COn0Fmzi.js 5.20 kB │ gzip: 2.19 kB
|
||||||
|
public/build-qa-opportunities/assets/article-editor-ByLxbPbJ.js 5.25 kB │ gzip: 2.20 kB
|
||||||
|
public/build-qa-opportunities/assets/demography-PqCKCMI3.js 5.28 kB │ gzip: 2.15 kB
|
||||||
|
public/build-qa-opportunities/assets/economic-references-C7dNVUC6.js 5.61 kB │ gzip: 2.52 kB
|
||||||
|
public/build-qa-opportunities/assets/context-start-DC4wZmFv.js 5.73 kB │ gzip: 2.21 kB
|
||||||
|
public/build-qa-opportunities/assets/convert-B3LtI2n6.js 5.81 kB │ gzip: 2.40 kB
|
||||||
|
public/build-qa-opportunities/assets/editorial-subject-form-B2W8E2NJ.js 5.87 kB │ gzip: 2.66 kB
|
||||||
|
public/build-qa-opportunities/assets/public-sector-cards-Esb1aTm6.js 5.94 kB │ gzip: 2.55 kB
|
||||||
|
public/build-qa-opportunities/assets/demography-install-B57rikBv.js 6.05 kB │ gzip: 2.50 kB
|
||||||
|
public/build-qa-opportunities/assets/context-CuZsPj2M.js 6.06 kB │ gzip: 2.65 kB
|
||||||
|
public/build-qa-opportunities/assets/portfolio-BRV1Thb5.js 6.08 kB │ gzip: 2.12 kB
|
||||||
|
public/build-qa-opportunities/assets/request-BP8TNrKj.js 6.10 kB │ gzip: 2.41 kB
|
||||||
|
public/build-qa-opportunities/assets/editorial-workflow-DYYZzXOw.js 6.22 kB │ gzip: 2.29 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-map-panel-Dgw_F99d.js 6.27 kB │ gzip: 2.88 kB
|
||||||
|
public/build-qa-opportunities/assets/procurement-C9aXrJW0.js 6.35 kB │ gzip: 2.73 kB
|
||||||
|
public/build-qa-opportunities/assets/register-CV4r5zGz.js 6.43 kB │ gzip: 2.71 kB
|
||||||
|
public/build-qa-opportunities/assets/leads-Bu2UK8ON.js 6.56 kB │ gzip: 2.82 kB
|
||||||
|
public/build-qa-opportunities/assets/interest-xqtiIFPC.js 6.63 kB │ gzip: 2.23 kB
|
||||||
|
public/build-qa-opportunities/assets/demography-BxaBdOBx.js 6.66 kB │ gzip: 2.51 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-territory-s6Cv1C0w.js 6.71 kB │ gzip: 2.58 kB
|
||||||
|
public/build-qa-opportunities/assets/fiscal-qa-review-CXU84JYo.js 6.74 kB │ gzip: 2.69 kB
|
||||||
|
public/build-qa-opportunities/assets/business-interest-BeY5bGW9.js 6.82 kB │ gzip: 2.60 kB
|
||||||
|
public/build-qa-opportunities/assets/interests-C0MCvWri.js 6.83 kB │ gzip: 2.79 kB
|
||||||
|
public/build-qa-opportunities/assets/catalogue-CVorItOO.js 6.84 kB │ gzip: 2.81 kB
|
||||||
|
public/build-qa-opportunities/assets/business-marketplace-B0bSDP0a.js 6.87 kB │ gzip: 2.58 kB
|
||||||
|
public/build-qa-opportunities/assets/structure-geography-DXZtyeUS.js 6.97 kB │ gzip: 2.34 kB
|
||||||
|
public/build-qa-opportunities/assets/business-classification-Bs6rWPZo.js 7.01 kB │ gzip: 2.57 kB
|
||||||
|
public/build-qa-opportunities/assets/dist-Ddn_hEUd.js 7.02 kB │ gzip: 2.71 kB
|
||||||
|
public/build-qa-opportunities/assets/blank-2jFZEe2q.js 7.07 kB │ gzip: 2.77 kB
|
||||||
|
public/build-qa-opportunities/assets/analysis-V3FnU3E3.js 7.11 kB │ gzip: 2.96 kB
|
||||||
|
public/build-qa-opportunities/assets/profile-BeVjq4WS.js 7.19 kB │ gzip: 2.46 kB
|
||||||
|
public/build-qa-opportunities/assets/install-D_nSCX19.js 7.23 kB │ gzip: 3.03 kB
|
||||||
|
public/build-qa-opportunities/assets/investor-COYuuRY_.js 7.30 kB │ gzip: 2.89 kB
|
||||||
|
public/build-qa-opportunities/assets/proactive-supply-review-Bspf5LP7.js 7.55 kB │ gzip: 2.73 kB
|
||||||
|
public/build-qa-opportunities/assets/legacy-CBGwFFnl.js 7.78 kB │ gzip: 2.61 kB
|
||||||
|
public/build-qa-opportunities/assets/jsx-runtime-BpzPEenQ.js 7.89 kB │ gzip: 2.99 kB
|
||||||
|
public/build-qa-opportunities/assets/shared-BFCbvJo7.js 7.90 kB │ gzip: 3.08 kB
|
||||||
|
public/build-qa-opportunities/assets/business-objects-oM2Pf3eS.js 7.95 kB │ gzip: 2.57 kB
|
||||||
|
public/build-qa-opportunities/assets/assisted-D6mktt5I.js 8.06 kB │ gzip: 3.16 kB
|
||||||
|
public/build-qa-opportunities/assets/value-network-Cp8UYtMs.js 8.06 kB │ gzip: 3.08 kB
|
||||||
|
public/build-qa-opportunities/assets/company-comparison-CL1sKylh.js 8.16 kB │ gzip: 3.01 kB
|
||||||
|
public/build-qa-opportunities/assets/editor-DqvtqYHd.js 8.21 kB │ gzip: 2.97 kB
|
||||||
|
public/build-qa-opportunities/assets/territorial-editorial-B0ni24WA.js 8.22 kB │ gzip: 3.03 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-promotion-CyWpImc1.js 8.40 kB │ gzip: 2.96 kB
|
||||||
|
public/build-qa-opportunities/assets/publication-history-DfLO6jOc.js 8.42 kB │ gzip: 3.02 kB
|
||||||
|
public/build-qa-opportunities/assets/print-Tn3aXHlY.js 8.66 kB │ gzip: 3.55 kB
|
||||||
|
public/build-qa-opportunities/assets/dialog-BoFDdZjc.js 8.81 kB │ gzip: 2.77 kB
|
||||||
|
public/build-qa-opportunities/assets/investor-path-Rg_QseUc.js 8.82 kB │ gzip: 3.53 kB
|
||||||
|
public/build-qa-opportunities/assets/shared-DXIXdF9G.js 8.92 kB │ gzip: 3.83 kB
|
||||||
|
public/build-qa-opportunities/assets/iva-modelo-a-BL0rpXjp.js 8.94 kB │ gzip: 3.27 kB
|
||||||
|
public/build-qa-opportunities/assets/zone-relations-B7ZzD3j3.js 8.95 kB │ gzip: 2.99 kB
|
||||||
|
public/build-qa-opportunities/assets/fiscal-qa-preview-Co-f1sP-.js 9.15 kB │ gzip: 3.33 kB
|
||||||
|
public/build-qa-opportunities/assets/why-invest-DLq_VTbO.js 9.16 kB │ gzip: 3.49 kB
|
||||||
|
public/build-qa-opportunities/assets/interactive-investment-map-D7QT_kKB.js 9.21 kB │ gzip: 3.63 kB
|
||||||
|
public/build-qa-opportunities/assets/similar-businesses-CZcaLsJ_.js 9.26 kB │ gzip: 3.63 kB
|
||||||
|
public/build-qa-opportunities/assets/interest-history-oHNykKmC.js 9.48 kB │ gzip: 3.45 kB
|
||||||
|
public/build-qa-opportunities/assets/content-hub-CGuu1WGT.js 9.95 kB │ gzip: 2.93 kB
|
||||||
|
public/build-qa-opportunities/assets/privacy-policy-LI1lpUCK.js 10.36 kB │ gzip: 3.07 kB
|
||||||
|
public/build-qa-opportunities/assets/editorial-edition-Zq39X7mf.js 10.36 kB │ gzip: 3.47 kB
|
||||||
|
public/build-qa-opportunities/assets/panel-B7Lnjhve.js 10.46 kB │ gzip: 4.29 kB
|
||||||
|
public/build-qa-opportunities/assets/result-yez5wOFo.js 10.57 kB │ gzip: 4.73 kB
|
||||||
|
public/build-qa-opportunities/assets/dashboard-Bsgf1rNb.js 10.92 kB │ gzip: 3.47 kB
|
||||||
|
public/build-qa-opportunities/assets/zone-attachments-BwA8-OM8.js 10.94 kB │ gzip: 2.75 kB
|
||||||
|
public/build-qa-opportunities/assets/business-BDrl4u87.js 11.10 kB │ gzip: 3.08 kB
|
||||||
|
public/build-qa-opportunities/assets/funding-Cx0Pqjfb.js 11.36 kB │ gzip: 3.66 kB
|
||||||
|
public/build-qa-opportunities/assets/login-DM6frJxt.js 11.89 kB │ gzip: 4.92 kB
|
||||||
|
public/build-qa-opportunities/assets/detail-DTUzaU5l.js 11.94 kB │ gzip: 4.37 kB
|
||||||
|
public/build-qa-opportunities/assets/demographic-evidence-CTcUntUH.js 12.22 kB │ gzip: 4.70 kB
|
||||||
|
public/build-qa-opportunities/assets/support-installation-tsBpnQkP.js 12.36 kB │ gzip: 4.86 kB
|
||||||
|
public/build-qa-opportunities/assets/tempo-brand-BXcnRsyn.js 12.38 kB │ gzip: 5.01 kB
|
||||||
|
public/build-qa-opportunities/assets/show-CtfIU5Ob.js 12.43 kB │ gzip: 4.01 kB
|
||||||
|
public/build-qa-opportunities/assets/fiscal-forms-CFDxHtIP.js 12.47 kB │ gzip: 4.60 kB
|
||||||
|
public/build-qa-opportunities/assets/guide-C05vrPHr.js 12.58 kB │ gzip: 4.03 kB
|
||||||
|
public/build-qa-opportunities/assets/contact-fP05WPG1.js 12.65 kB │ gzip: 4.33 kB
|
||||||
|
public/build-qa-opportunities/assets/dossier-prefill-VYJO99dq.js 12.72 kB │ gzip: 4.65 kB
|
||||||
|
public/build-qa-opportunities/assets/technical-incident-GDB_x0wp.js 12.73 kB │ gzip: 4.96 kB
|
||||||
|
public/build-qa-opportunities/assets/competitiveness-60nqrOfg.js 12.74 kB │ gzip: 4.23 kB
|
||||||
|
public/build-qa-opportunities/assets/show-DWn_ysQr.js 12.96 kB │ gzip: 4.63 kB
|
||||||
|
public/build-qa-opportunities/assets/editor-C8Umd2ZX.js 12.96 kB │ gzip: 3.75 kB
|
||||||
|
public/build-qa-opportunities/assets/project-dossier-document-BqO9qoA9.js 13.57 kB │ gzip: 5.40 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-classification-BS0E13qS.js 13.62 kB │ gzip: 4.63 kB
|
||||||
|
public/build-qa-opportunities/assets/react-CjVep8xp.js 13.90 kB │ gzip: 4.61 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-step-help-DHkq1rOX.js 14.11 kB │ gzip: 5.64 kB
|
||||||
|
public/build-qa-opportunities/assets/case-wwTeoOmv.js 14.77 kB │ gzip: 5.38 kB
|
||||||
|
public/build-qa-opportunities/assets/product-usage-D1cs7wvf.js 14.81 kB │ gzip: 5.29 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-search-filters-7BfiuG3M.js 15.15 kB │ gzip: 4.85 kB
|
||||||
|
public/build-qa-opportunities/assets/terms-of-use-CUQdwKes.js 15.27 kB │ gzip: 4.20 kB
|
||||||
|
public/build-qa-opportunities/assets/edit-DuCs0vTA.js 15.38 kB │ gzip: 5.15 kB
|
||||||
|
public/build-qa-opportunities/assets/relationship-repair-brZoqSge.js 16.29 kB │ gzip: 5.62 kB
|
||||||
|
public/build-qa-opportunities/assets/company-preparation-M0V_xSHQ.js 16.35 kB │ gzip: 5.29 kB
|
||||||
|
public/build-qa-opportunities/assets/edit-sghUkefM.js 16.60 kB │ gzip: 4.88 kB
|
||||||
|
public/build-qa-opportunities/assets/edit-Cwpn6sgt.js 16.93 kB │ gzip: 4.91 kB
|
||||||
|
public/build-qa-opportunities/assets/use-two-factor-auth-D9w0KtSq.js 17.31 kB │ gzip: 6.30 kB
|
||||||
|
public/build-qa-opportunities/assets/search-Cf44viBn.js 17.39 kB │ gzip: 5.78 kB
|
||||||
|
public/build-qa-opportunities/assets/administration-CgUGyaX7.js 17.41 kB │ gzip: 4.30 kB
|
||||||
|
public/build-qa-opportunities/assets/notifications-BuvMPszb.js 17.61 kB │ gzip: 5.83 kB
|
||||||
|
public/build-qa-opportunities/assets/funding-institution-B4AoqWT6.js 17.78 kB │ gzip: 6.01 kB
|
||||||
|
public/build-qa-opportunities/assets/ai-CNd8Py_S.js 18.08 kB │ gzip: 6.92 kB
|
||||||
|
public/build-qa-opportunities/assets/submission-Bhvv1AcL.js 19.99 kB │ gzip: 6.32 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-resources-a-j_Eqlf.js 20.20 kB │ gzip: 7.22 kB
|
||||||
|
public/build-qa-opportunities/assets/about-BtlawfeW.js 20.95 kB │ gzip: 7.03 kB
|
||||||
|
public/build-qa-opportunities/assets/service-editor-0_VoUJAh.js 21.30 kB │ gzip: 6.58 kB
|
||||||
|
public/build-qa-opportunities/assets/zones-DOxR4Tmt.js 21.54 kB │ gzip: 5.36 kB
|
||||||
|
public/build-qa-opportunities/assets/declaration-Bzl3lixx.js 22.15 kB │ gzip: 7.14 kB
|
||||||
|
public/build-qa-opportunities/assets/Combination-BBDI-RbM.js 23.03 kB │ gzip: 8.24 kB
|
||||||
|
public/build-qa-opportunities/assets/desk-internal-operations-BrIYrHPK.js 23.14 kB │ gzip: 6.53 kB
|
||||||
|
public/build-qa-opportunities/assets/education-DmPZLlw8.js 23.40 kB │ gzip: 8.19 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-opportunity-choices-27nAximj.js 23.97 kB │ gzip: 7.96 kB
|
||||||
|
public/build-qa-opportunities/assets/context-B2TkM692.js 24.36 kB │ gzip: 7.89 kB
|
||||||
|
public/build-qa-opportunities/assets/preparation-Eg6XjL1C.js 24.56 kB │ gzip: 6.73 kB
|
||||||
|
public/build-qa-opportunities/assets/utils-CCDJ05Ll.js 27.31 kB │ gzip: 8.71 kB
|
||||||
|
public/build-qa-opportunities/assets/business-wizard-DqIgmi56.js 28.60 kB │ gzip: 9.42 kB
|
||||||
|
public/build-qa-opportunities/assets/proactive-investment-DfIQuXvs.js 28.65 kB │ gzip: 9.16 kB
|
||||||
|
public/build-qa-opportunities/assets/lead-vUXgd2g8.js 29.03 kB │ gzip: 9.96 kB
|
||||||
|
public/build-qa-opportunities/assets/preparation-4ln3i1vY.js 29.25 kB │ gzip: 8.51 kB
|
||||||
|
public/build-qa-opportunities/assets/form-CxbSssMr.js 29.80 kB │ gzip: 8.04 kB
|
||||||
|
public/build-qa-opportunities/assets/welcome-Dk-CormK.js 30.73 kB │ gzip: 6.49 kB
|
||||||
|
public/build-qa-opportunities/assets/manage-GV_WvYCX.js 31.17 kB │ gzip: 7.63 kB
|
||||||
|
public/build-qa-opportunities/assets/profile-Bul-3pje.js 31.38 kB │ gzip: 9.51 kB
|
||||||
|
public/build-qa-opportunities/assets/security-B-tQPwxY.js 32.11 kB │ gzip: 10.06 kB
|
||||||
|
public/build-qa-opportunities/assets/editor-CWbYf7YK.js 35.03 kB │ gzip: 11.76 kB
|
||||||
|
public/build-qa-opportunities/assets/case-Ct4yiMoe.js 37.37 kB │ gzip: 10.33 kB
|
||||||
|
public/build-qa-opportunities/assets/room-Bg8k9V54.js 38.25 kB │ gzip: 12.14 kB
|
||||||
|
public/build-qa-opportunities/assets/request-DywI0ygG.js 41.86 kB │ gzip: 11.29 kB
|
||||||
|
public/build-qa-opportunities/assets/simulation-form-BWl-Cni_.js 42.25 kB │ gzip: 10.94 kB
|
||||||
|
public/build-qa-opportunities/assets/detail-CNlR5TK5.js 46.42 kB │ gzip: 15.18 kB
|
||||||
|
public/build-qa-opportunities/assets/PortalInvestidor-f0FF8QpD.js 48.71 kB │ gzip: 14.86 kB
|
||||||
|
public/build-qa-opportunities/assets/catalogue-uklbvgP3.js 50.69 kB │ gzip: 16.25 kB
|
||||||
|
public/build-qa-opportunities/assets/dropdown-menu-DeBy_kF_.js 57.05 kB │ gzip: 19.02 kB
|
||||||
|
public/build-qa-opportunities/assets/zone-BzGjpR2Z.js 62.41 kB │ gzip: 15.68 kB
|
||||||
|
public/build-qa-opportunities/assets/opportunity-draft-BY07rZ5K.js 70.65 kB │ gzip: 20.89 kB
|
||||||
|
public/build-qa-opportunities/assets/business-financial-plan-DoC4ciz9.js 79.59 kB │ gzip: 21.26 kB
|
||||||
|
public/build-qa-opportunities/assets/show-veuaCCd1.js 87.11 kB │ gzip: 26.75 kB
|
||||||
|
public/build-qa-opportunities/assets/document-zip-bqFSTgG4.js 95.97 kB │ gzip: 28.50 kB
|
||||||
|
public/build-qa-opportunities/assets/investment-operating-assistance-BtPFn4HW.js 143.84 kB │ gzip: 42.97 kB
|
||||||
|
public/build-qa-opportunities/assets/leaflet-src-CUWrUTR2.js 148.82 kB │ gzip: 43.39 kB
|
||||||
|
public/build-qa-opportunities/assets/app-ByEEw630.js 172.70 kB │ gzip: 54.12 kB
|
||||||
|
public/build-qa-opportunities/assets/dist-BRfsww6z.js 307.99 kB │ gzip: 96.67 kB
|
||||||
|
public/build-qa-opportunities/assets/document-word-CqTGSyXu.js 403.66 kB │ gzip: 115.44 kB
|
||||||
|
public/build-qa-opportunities/assets/project-dossier-njX7LgJk.js 1,010.99 kB │ gzip: 274.61 kB
|
||||||
|
public/build-qa-opportunities/assets/services-D8fXyJIn.js 1,060.94 kB │ gzip: 250.79 kB
|
||||||
|
|
||||||
|
✓ built in 34.83s
|
||||||
|
[plugin builtin:vite-reporter]
|
||||||
|
(!) Some chunks are larger than 500 kB after minification. Consider:
|
||||||
|
- Using dynamic import() to code-split the application
|
||||||
|
- Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
|
||||||
|
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
||||||
|
[PLUGIN_TIMINGS] Your build spent 98% of 34.8s inside plugin hooks (34.2s).
|
||||||
|
Measured inside the callback, so queue time is excluded and time the callback itself awaited is not:
|
||||||
|
- @rolldown/plugin-babel transform (81%, 28.1s, 442 calls)
|
||||||
|
- @tailwindcss/vite:generate:build transform (13%, 4.5s, 3 calls)
|
||||||
|
Those rows are 93% of the build; the rest of the 98% is below.
|
||||||
|
Not measurable — 1 hook whose calls overlap, so elapsed time covers work other calls were doing. Profile with `node --cpu-prof`:
|
||||||
|
- vite:css transform (3 calls)
|
||||||
|
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.
|
||||||
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 126 KiB |
|
After Width: | Height: | Size: 109 KiB |
@@ -0,0 +1,20 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"mobile": false,
|
||||||
|
"detail": "http://127.0.0.3:18724/zonas/f4fe500f-923f-473e-91a3-ce44b498508b?catalogue_query=q%3DBalama%26category%3Dindustrial_park",
|
||||||
|
"back": "/zonas?q=Balama&category=industrial_park"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mobile": false,
|
||||||
|
"activityRemovedWithoutLosingGroupOrText": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mobile": true,
|
||||||
|
"detail": "http://127.0.0.3:18724/zonas/f4fe500f-923f-473e-91a3-ce44b498508b?catalogue_query=q%3DBalama%26category%3Dindustrial_park",
|
||||||
|
"back": "/zonas?q=Balama&category=industrial_park"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mobile": true,
|
||||||
|
"activityRemovedWithoutLosingGroupOrText": true
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
const {chromium}=require('C:/Users/macbook/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/playwright');
|
||||||
|
const fs=require('node:fs'),path=require('node:path'),assert=require('node:assert/strict');
|
||||||
|
const DIR=path.resolve('outputs/presentation-qa-20261121'),BASE='http://127.0.0.3:18724';
|
||||||
|
(async()=>{const b=await chromium.launch({headless:true,executablePath:'C:/Users/macbook/AppData/Local/ms-playwright/chromium-1243/chrome-win64/chrome.exe'});const result={scope:'Presentation only, isolated QA',errors:[],pages:[],v13:[],filters:[],actions:[]};
|
||||||
|
const context=async opts=>{const c=await b.newContext(opts);c.setDefaultTimeout(15000);c.setDefaultNavigationTimeout(20000);await c.route('**/*',r=>new URL(r.request().url()).origin===BASE?r.continue():r.abort());return c;};
|
||||||
|
try{for(const mobile of [false,true]){const c=await context({viewport:mobile?{width:390,height:844}:{width:1440,height:1000}});const p=await c.newPage(); await p.goto(BASE+'/zonas?category=industrial_park&q=Balama&activity=');await p.locator('h1').first().waitFor();assert.match(await p.locator('select[name="category"] option[value="zee"]').textContent(),/registos/);const link=p.getByRole('link',{name:'Consultar ficha',exact:true}).first();const destination=new URL(await link.getAttribute('href'),BASE).href;await Promise.all([p.waitForURL(destination),link.click()]);const back=p.getByRole('link',{name:'Voltar à pesquisa',exact:true});await back.waitFor();result.filters.push({mobile,detail:p.url(),back:await back.getAttribute('href')});assert.match(await back.getAttribute('href'),/category=industrial_park/);assert.match(await back.getAttribute('href'),/q=Balama/);const returnUrl=new URL(await back.getAttribute('href'),BASE).href;await Promise.all([p.waitForURL(u=>u.pathname===new URL(returnUrl).pathname&&[...new URL(returnUrl).searchParams].every(([k,v])=>u.searchParams.get(k)===v)),back.click()]);assert.equal(await p.locator('select[name="category"]').inputValue(),'industrial_park');assert.equal(await p.locator('input[name="q"]').inputValue(),'Balama');await p.locator('summary').filter({hasText:'Mais filtros'}).click();await p.locator('input[name="activity"]').fill('energia');await p.waitForURL(u=>u.searchParams.get('activity')==='energia');assert.equal(await p.locator('select[name="category"]').inputValue(),'industrial_park');await p.getByRole('link',{name:'Remover Actividade',exact:true}).click();await p.waitForURL(u=>!u.searchParams.has('activity'));assert.equal(await p.locator('input[name="q"]').inputValue(),'Balama');result.filters.push({mobile,activityRemovedWithoutLosingGroupOrText:true});
|
||||||
|
await c.close();}fs.writeFileSync(path.join(DIR,'filter-receipt.json'),JSON.stringify(result.filters,null,2));console.log(JSON.stringify(result.filters));}finally{await b.close()}})().catch(e=>{console.error(e.stack);process.exitCode=1});
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
[{"mobile":false,"detail":"http://127.0.0.3:18724/zonas/f4fe500f-923f-473e-91a3-ce44b498508b?catalogue_query=q%3DBalama%26category%3Dindustrial_park","back":"/zonas?q=Balama&category=industrial_park"},{"mobile":false,"activityRemovedWithoutLosingGroupOrText":true},{"mobile":true,"detail":"http://127.0.0.3:18724/zonas/f4fe500f-923f-473e-91a3-ce44b498508b?catalogue_query=q%3DBalama%26category%3Dindustrial_park","back":"/zonas?q=Balama&category=industrial_park"},{"mobile":true,"activityRemovedWithoutLosingGroupOrText":true}]
|
||||||
@@ -0,0 +1,513 @@
|
|||||||
|
{
|
||||||
|
"scope": "Presentation only, isolated QA",
|
||||||
|
"errors": [],
|
||||||
|
"pages": [
|
||||||
|
{
|
||||||
|
"route": "/carteira",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 12734,
|
||||||
|
"groupedActions": 30
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira?kind=cluster",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 3572,
|
||||||
|
"groupedActions": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 3654,
|
||||||
|
"groupedActions": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/oportunidades",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 11445,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/negocios",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 2262,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/clusters",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 3572,
|
||||||
|
"groupedActions": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/corredores",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 3794,
|
||||||
|
"groupedActions": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/formularios/fiscais",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 4756,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/formularios/fiscais?imposto=irpc",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 4634,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/documentos",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 6900,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/apoio",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
},
|
||||||
|
"textLength": 1380,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/dc8892ff-fdda-480c-81f1-2ffe0bfcb40b",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/b30ecd8c-220d-4c7a-b1a7-704dc24d0933",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas/dc40c57e-a799-44d5-813c-5b80a83481dc",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas/0047f8a8-f3e0-402c-adb8-1d87476480ca",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/0c63d8de-18fd-451f-a7ca-1ea04dd5906c",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/0c63d8de-18fd-451f-a7ca-1ea04dd5906c?catalogue_query=kind%3Dcluster",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas/f4fe500f-923f-473e-91a3-ce44b498508b",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/oportunidades/inv-mz-gen-5137141825128895",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/fb85ebfc-798c-42df-a267-d4b771c443f8?catalogue_query=kind%3Dcorridor",
|
||||||
|
"mobile": false,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 1440,
|
||||||
|
"width": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 12734,
|
||||||
|
"groupedActions": 30
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira?kind=cluster",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 3572,
|
||||||
|
"groupedActions": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 3654,
|
||||||
|
"groupedActions": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/oportunidades",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 11445,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/negocios",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 2262,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/clusters",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 3572,
|
||||||
|
"groupedActions": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/corredores",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 3794,
|
||||||
|
"groupedActions": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/formularios/fiscais",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 4756,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/formularios/fiscais?imposto=irpc",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 4634,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/documentos",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 6900,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/apoio",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"overflow": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
},
|
||||||
|
"textLength": 1380,
|
||||||
|
"groupedActions": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/dc8892ff-fdda-480c-81f1-2ffe0bfcb40b",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/b30ecd8c-220d-4c7a-b1a7-704dc24d0933",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas/dc40c57e-a799-44d5-813c-5b80a83481dc",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas/0047f8a8-f3e0-402c-adb8-1d87476480ca",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/0c63d8de-18fd-451f-a7ca-1ea04dd5906c",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/0c63d8de-18fd-451f-a7ca-1ea04dd5906c?catalogue_query=kind%3Dcluster",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/zonas/f4fe500f-923f-473e-91a3-ce44b498508b",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/oportunidades/inv-mz-gen-5137141825128895",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"route": "/carteira/fb85ebfc-798c-42df-a267-d4b771c443f8?catalogue_query=kind%3Dcorridor",
|
||||||
|
"mobile": true,
|
||||||
|
"status": 200,
|
||||||
|
"bounds": {
|
||||||
|
"body": 390,
|
||||||
|
"width": 390
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"v13": [
|
||||||
|
{
|
||||||
|
"case": "diagnostic opens closed section and focuses actual field",
|
||||||
|
"passed": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"case": "navigation preserves all financial values; only explicit synthetic input differs",
|
||||||
|
"passed": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"case": "mobile keyboard link opens and focuses field",
|
||||||
|
"passed": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"case": "final review changes step and focuses the real control",
|
||||||
|
"pendingText": "Idioma preferido: Este campo é obrigatório.",
|
||||||
|
"active": {
|
||||||
|
"tag": "INPUT",
|
||||||
|
"id": "choice-_r_22_",
|
||||||
|
"field": "field-preferred_language"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filters": [
|
||||||
|
{
|
||||||
|
"mobile": false,
|
||||||
|
"detail": "http://127.0.0.3:18724/zonas/f4fe500f-923f-473e-91a3-ce44b498508b?catalogue_query=q%3DBalama%26category%3Dindustrial_park",
|
||||||
|
"back": "/zonas?q=Balama&category=industrial_park"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mobile": false,
|
||||||
|
"activityRemovedWithoutLosingGroupOrText": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mobile": true,
|
||||||
|
"detail": "http://127.0.0.3:18724/zonas/f4fe500f-923f-473e-91a3-ce44b498508b?catalogue_query=q%3DBalama%26category%3Dindustrial_park",
|
||||||
|
"back": "/zonas?q=Balama&category=industrial_park"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mobile": true,
|
||||||
|
"activityRemovedWithoutLosingGroupOrText": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"from": "/carteira",
|
||||||
|
"href": "/carteira/0c63d8de-18fd-451f-a7ca-1ea04dd5906c",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/carteira",
|
||||||
|
"href": "/oportunidades?cluster_id=dec19dd5-6b0a-4858-9fbf-8e983d2069b2",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/carteira?kind=cluster",
|
||||||
|
"href": "/carteira/0c63d8de-18fd-451f-a7ca-1ea04dd5906c?catalogue_query=kind%3Dcluster",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/carteira?kind=cluster",
|
||||||
|
"href": "/oportunidades?cluster_id=dec19dd5-6b0a-4858-9fbf-8e983d2069b2",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/zonas",
|
||||||
|
"href": "/zonas/f4fe500f-923f-473e-91a3-ce44b498508b",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/zonas",
|
||||||
|
"href": "/oportunidades?park_id=f4fe500f-923f-473e-91a3-ce44b498508b",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/clusters",
|
||||||
|
"href": "/carteira/0c63d8de-18fd-451f-a7ca-1ea04dd5906c?catalogue_query=kind%3Dcluster",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/clusters",
|
||||||
|
"href": "/oportunidades?cluster_id=dec19dd5-6b0a-4858-9fbf-8e983d2069b2",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/corredores",
|
||||||
|
"href": "/carteira/fb85ebfc-798c-42df-a267-d4b771c443f8?catalogue_query=kind%3Dcorridor",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "/corredores",
|
||||||
|
"href": "/oportunidades?corridor_id=9f8a6bea-3f96-46fa-832d-d9159db1c3b5",
|
||||||
|
"status": 200
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"status": "presentation demonstrated in QA",
|
||||||
|
"verification": {
|
||||||
|
"presentationTests": 13,
|
||||||
|
"publicPageChecks": 40,
|
||||||
|
"actionDestinations": 10,
|
||||||
|
"financialTestsRepeated": false,
|
||||||
|
"separateFilterReceipt": "filter-receipt.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"query": "?category=industrial_park&q=Balama",
|
||||||
|
"counts": {
|
||||||
|
"zee": 0,
|
||||||
|
"zfi": 0,
|
||||||
|
"industrial_park": 2
|
||||||
|
},
|
||||||
|
"selectedTotal": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"query": "?category=zee&q=Balama",
|
||||||
|
"counts": {
|
||||||
|
"zee": 0,
|
||||||
|
"zfi": 0,
|
||||||
|
"industrial_park": 2
|
||||||
|
},
|
||||||
|
"selectedTotal": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"query": "?category=industrial_park&q=Balama&activity=energia",
|
||||||
|
"counts": {
|
||||||
|
"zee": 0,
|
||||||
|
"zfi": 0,
|
||||||
|
"industrial_park": 0
|
||||||
|
},
|
||||||
|
"selectedTotal": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 65 KiB |
@@ -0,0 +1 @@
|
|||||||
|
{"tool":"pint","result":"passed"}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
No syntax errors detected in app/Http/Controllers/InvestmentPortfolioController.php
|
||||||
|
No syntax errors detected in app/Http/Controllers/InvestmentZoneController.php
|
||||||
@@ -0,0 +1,241 @@
|
|||||||
|
{
|
||||||
|
"baselineCommit": "1950bb69ec9acffdf7859b50c76e9c6727886ea3",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "resources/js/lib/business-financial-plan.ts",
|
||||||
|
"sha256": "e197777326e97a67c4e503e6903415968489e4e0732822661580c5939b997a85",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "resources/js/lib/supplier-advances.ts",
|
||||||
|
"sha256": "c0b676b1f27bc6ae7ca964c5c64f98d2a8805407ac13e0d3237463529e55fbe6",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "resources/js/lib/integral-financial-report.ts",
|
||||||
|
"sha256": "708a8702dc7996b86827bc7905560bb39e7dbaf04993e6e6ffb943a06163cebf",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "resources/js/lib/financial-day-terms.ts",
|
||||||
|
"sha256": "fcc7d9828ec204f1cc9c42593f73fc96c25535f9be232ecd082b3ee3cee5534d",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "resources/js/lib/period-investments.ts",
|
||||||
|
"sha256": "b0f6428a7a743803785fcdc1aa5d602dab76d165812ca09b879c8956428bddee",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "resources/js/lib/fiscal-form-preparation.ts",
|
||||||
|
"sha256": "f015e5f701b8ea066ecc34843fbf79452e8307662e4f0abd19b58e19434d8174",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/before-activation.json",
|
||||||
|
"sha256": "d781e1ac27512ea925d23788dfd49a47808230e91bdafb7f91272d77ea3fc0dc",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/desktop-tables.json",
|
||||||
|
"sha256": "94e862a89b32078f4f2a27fb94a9c5be1b708b3a95841a0a3a751202b07b58b3",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/early-payment-desktop.png",
|
||||||
|
"sha256": "71474f0ba2ea5fdc3db4e20cb70bab6a4a73139d0ba311def7dc93cdba92c2c2",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/export-focused-test.log",
|
||||||
|
"sha256": "de6250f35cdcfd3f8362539252380828fa811965a431c5dedcfd112c2b8f9027",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/functional-receipt.json",
|
||||||
|
"sha256": "fdb2e9ea4896ec515382fce4c6686ca79312c7631276c22e2ddf3b16b9d86aae",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/independent-income-after.log",
|
||||||
|
"sha256": "b396e819d642f83519c28ae2872436b42ae1eb65e7aee2a05199ec7539a645de",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/independent-income-before.log",
|
||||||
|
"sha256": "4961533883853af13f631984dffe8edc8c0fad8b8b6d6f69f9747f1fd665e1a5",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/independent-income-desktop.png",
|
||||||
|
"sha256": "aa4e3d17f07ff3b9a0f097462a5366aaea2d212ccc39e28e2af1470a6d4d9c52",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/initial-desktop.png",
|
||||||
|
"sha256": "8290d563c29a904ffd1b4799a5b520d9dfe6a909bae4fb8998dcd1c944303709",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/parcelas-mobile.png",
|
||||||
|
"sha256": "f0104f4c54275d8a763235604cdd7400f9ec6558f06570656c59e383330609c5",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/recovered-desktop.png",
|
||||||
|
"sha256": "0cbcb0cdde746bd3dda01d29db15cc9c463c58279faa9dd548bc21db2a21362f",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/saved.json",
|
||||||
|
"sha256": "7921afdfabf89c0c54545ad6521c97b97c150ef94e9d0f0772d06131da8c0c83",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/vencimentos-desktop.png",
|
||||||
|
"sha256": "e309b203af1bce606e3ec2f49178f16ad0ca95047b1db45bc364278a065d1a78",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/vencimentos-mobile.png",
|
||||||
|
"sha256": "ee85b453b0a137790ce8b07da051d9263bbf53546a645d15b2329b2ca857891a",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e25-f20-a-20261121/verification.json",
|
||||||
|
"sha256": "255323be50c94789b30e9bb7af29bcb330d1316f6620373e33e7663fd1ae961a",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/desktop-editor.png",
|
||||||
|
"sha256": "9c5631868c7db9a958fdf6dcb3ec2cc81c21626688b762416b49435092e7d512",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/f20-b-baseline-tests.log",
|
||||||
|
"sha256": "2861be26516ce3027cf2d95a1aa230795c4497a7b886a554b9762c1e0233c15b",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/f20-b-build.log",
|
||||||
|
"sha256": "76ddd241b79aa5d7a8d069883db6c55ab8e3e2e33b2e89ce2098a4e3336f49bb",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/f20-b-delta-tests.log",
|
||||||
|
"sha256": "ce4de249fdace049099fc55182ac4244b5f370953c1c271cb481d82b9e400df2",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/f20-b-lint.log",
|
||||||
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/f20-b-tests.log",
|
||||||
|
"sha256": "469c325c7ebf8dc1da71380ba8288c3008c433cd63a22f0fa4f960eeb3e2aace",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/f20-b-types.log",
|
||||||
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/functional-receipt.json",
|
||||||
|
"sha256": "053070f30cef41c669fccc1485d7f2ec4dc4eb3698c693bf57688fb8d7406dc9",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/recovered-desktop.png",
|
||||||
|
"sha256": "b4e55b483e5a2a17f36fcbf6dbc502d522e74da032cd0bd4a342c65af7e549d4",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/recovered-mobile.png",
|
||||||
|
"sha256": "1a14b7f0e72e9f02c7d2a7e0cf5396d44972d099d6a78009b77263bf5f8f0eec",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/saved-active.json",
|
||||||
|
"sha256": "bb9fdb372d957386be05020134f62ddaa33aa2cd129837d680f8658f529244e4",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/saved-refund.json",
|
||||||
|
"sha256": "956bddae3285f7f79af0ae3b5312e075eaf3a72be9166c7dde40916cb60a1ab8",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e26-f20-b-20261121/verification.json",
|
||||||
|
"sha256": "444133a91953649b46d4a71ef0a1a0952ba634c3507f885037007fc0fbb124fc",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/build.log",
|
||||||
|
"sha256": "16ece58521946aa9e64293749fd0e806e2fcaa92d1bc82521a939e602b7e58e0",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/desktop-result.png",
|
||||||
|
"sha256": "96048cea9b9e3c211ed7bc0a086e7780a3ac38a5b659c980a5bca2c51d1d9a20",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/functional-receipt.json",
|
||||||
|
"sha256": "8ec2b51c6dc1145bfd1425af3b77163655f4fed20946cdd911d54eb338bdb478",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/legacy-before.json",
|
||||||
|
"sha256": "bb9fdb372d957386be05020134f62ddaa33aa2cd129837d680f8658f529244e4",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/lint.log",
|
||||||
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/mobile-table-right.png",
|
||||||
|
"sha256": "050ce36b6897c9ed3ae554644ffc1975b19ab8356c153a9c89fc198f2a882617",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/plan.csv",
|
||||||
|
"sha256": "0a6d319795fc9975686202ec4085b33ed0cc160f73e01f587a2b0222f86a9bea",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/recovered-desktop.png",
|
||||||
|
"sha256": "d6dfa457bac9d7626933f3163d8bd7360b2ba35525d7ef88a98182200685f12d",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/recovered-mobile.png",
|
||||||
|
"sha256": "0079be4a32f56bc10ff6f232a2d7bf4e3fcc0f91f36f81d1d99b9d9be9e0ccba",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/saved-plan.json",
|
||||||
|
"sha256": "f7dbcf051ef60ef6e4137531c75f242a9924302856e147bbdd8aa6cab02b1822",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/tests.log",
|
||||||
|
"sha256": "cba855be269061678869dc1e2f55eaf54496286e6348f7c5f2b90134b2162475",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/types.log",
|
||||||
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/investmoz/v2/auditoria-portal/e29-f20-b-nirf-20261121/verification.json",
|
||||||
|
"sha256": "f3be7a43c1826bf79e7385e3b3bc8f11726069aa1fc24a51f4eea5e47c34e499",
|
||||||
|
"unchangedFromHead": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"acceptedFinancialTestsRepeated": false
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"before.json": "521a663df5520f6d547d1b6e73e2762d65715f1edf10ec876a33c37c03755ff5",
|
||||||
|
"browser.cjs": "0b7f212baaf0fc1ccd830ad37f80bf6155b23f231f01d00c95004b20d34eaf10",
|
||||||
|
"build.log": "3ee4130002ad1e320c9ea50751e1b9a82c0a473754b147df30ea8d35e4a1cb8b",
|
||||||
|
"classification-lint.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"desktop-carteira.png": "69ba23bd42503c6e9028d8b61f614c8875d2433e1c9ff8ecbf18945326a145f7",
|
||||||
|
"desktop-oportunidades.png": "c73f73ad2b68b4e82c3782464a4f70aa38542882acb157fa407b48183c32792b",
|
||||||
|
"desktop-zonas.png": "c9eb4660cf36ae118229a19a7c19f9e186ba56271fdb13c3fd8283f21a34862f",
|
||||||
|
"field-lint.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"filter-receipt.json": "2411684fe28b8ae304cae4585a13fbc2a44217655d5240235d427800af1f1784",
|
||||||
|
"filters.cjs": "88603544a0dba66afe327b7c19325007f564387db634e2e969f137dcefbff32a",
|
||||||
|
"filters.log": "0cadec4a62cf4ecacce9ea737e67c094a2de5e45c95a76108f7f586b693b7257",
|
||||||
|
"functional-receipt.json": "346b18c3ce3e4d4c8e70e835a54dec7638e828b0b12f09bb18d157f63b82bd1e",
|
||||||
|
"group-availability.json": "7169e372768d54ed609ebd9813ebc8531c66a3f582e30578937e8c93d17ce632",
|
||||||
|
"lint.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"mobile-carteira.png": "12d17453bee708138ddf2471c66b92ce4ac31c3ff985b7a1a7d3eeacbe79507d",
|
||||||
|
"mobile-oportunidades.png": "d957228d6b4bb2ca8dbbdef7c62baf80ab8dca36de2453ba3d12a981a19fe1b1",
|
||||||
|
"mobile-zonas.png": "0d415981b3123ec4f7a75a371fd0075d25a3f49e71d492255daee788b7cfd449",
|
||||||
|
"php-style.log": "9fa3c401d4d7dcf9d616a4e847f09d73bafe2397e5f1b5b77531e2516436ed5a",
|
||||||
|
"php-syntax.log": "b5a1eb1eb4cb7a599d65ffc7152c7cc3d034c9fd172fcc9994a6b9354efeee9c",
|
||||||
|
"preservation.json": "60bde4c8fda947b2bdff08d22569c9e5bf282aa8bbb08a67eba5913bb46823c5",
|
||||||
|
"test-lint.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"tests.log": "94d8a4303c5919fdf7c7a5a4b44f6a1cd32f3e3a42c8ede1bd8d2e9ce485f704",
|
||||||
|
"types.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||||
|
"v13-after.json": "42a88e72d0b38a861998625824d55a8e3bc077672e44951fa59bfe7ad6ef9ab9",
|
||||||
|
"v13-before.json": "42a88e72d0b38a861998625824d55a8e3bc077672e44951fa59bfe7ad6ef9ab9",
|
||||||
|
"v13-desktop.png": "30f4af4f177c56f83ef20db4295c2377580ca07cab74746d7e3727b371a87698",
|
||||||
|
"v13-mobile.png": "8cc2111cea5f652e2d0ba1b255282dab870224a8b9ec1de01106c92f8da451b1",
|
||||||
|
"v13-summary-desktop.png": "552172d572d4698fe5438de9568815d1a87ec13c50eb5c4450d827fb4480ae9d"
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
✔ return preserves deliberate destination edits, including cleared ancestors, without stale descendants (7.02125ms)
|
||||||
|
✔ different catalogue families share geography but not text, kind, price, page or private context (0.502166ms)
|
||||||
|
✔ resource-specific return queries do not inherit from other tabs or mutable storage (1.81225ms)
|
||||||
|
✔ detail URL preserves existing parameters and fragment; unsafe and recursive filters are not carried (0.172334ms)
|
||||||
|
✔ only positive finite page numbers survive; repeated scalar criteria have one deliberate value (0.210166ms)
|
||||||
|
✔ existing diagnostics point to matching labels without inventing fields for unknown messages (5.027375ms)
|
||||||
|
✔ public sources retain legal references and official PHP links, excluding local paths and executable schemes (1.747833ms)
|
||||||
|
✔ presentation deduplicates identical editions and preserves source records and full location (0.299792ms)
|
||||||
|
✔ published names replace internal cross-reference codes without replacing a code inside a word or altering originals (1.085625ms)
|
||||||
|
✔ filter removal clears actual indexed arrays and dependent geography without losing deliberate criteria (3.379666ms)
|
||||||
|
✔ real public source list separates links, merges duplicate notes, retains different editions and original data (143.749083ms)
|
||||||
|
✔ real report tables expose existing message for navigation without changing their rows or values (39.395375ms)
|
||||||
|
✔ real territorial presentation removes identical geometry editions but preserves distinct dates and full hierarchy (70.088042ms)
|
||||||
|
ℹ tests 13
|
||||||
|
ℹ suites 0
|
||||||
|
ℹ pass 13
|
||||||
|
ℹ fail 0
|
||||||
|
ℹ cancelled 0
|
||||||
|
ℹ skipped 0
|
||||||
|
ℹ todo 0
|
||||||
|
ℹ duration_ms 1361.304709
|
||||||
@@ -0,0 +1,141 @@
|
|||||||
|
{
|
||||||
|
"version": 21,
|
||||||
|
"plan": {
|
||||||
|
"currency": "MZN",
|
||||||
|
"openingCash": "1000",
|
||||||
|
"assetInvestment": "600",
|
||||||
|
"equity": "600.00",
|
||||||
|
"products": [
|
||||||
|
{
|
||||||
|
"label": "Sintético F20-B",
|
||||||
|
"monthlyUnits": "0",
|
||||||
|
"unitPrice": "0",
|
||||||
|
"unitVariableCost": "0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"depreciationLifeMonths": 60,
|
||||||
|
"periods": 4,
|
||||||
|
"monthlyCollections": "0",
|
||||||
|
"monthlyVariableCostPayments": "999",
|
||||||
|
"monthlyInventoryPurchases": "400",
|
||||||
|
"monthlyOperatingExpenses": "0",
|
||||||
|
"monthlyOperatingPayments": "888",
|
||||||
|
"monthlyPayrollExpense": "0",
|
||||||
|
"monthlyPayrollPayments": "0",
|
||||||
|
"inventory": "0",
|
||||||
|
"receivables": "0",
|
||||||
|
"payables": "0",
|
||||||
|
"shareholderLoans": "0",
|
||||||
|
"bankLoanProceeds": "0",
|
||||||
|
"grants": "0",
|
||||||
|
"assetDepreciation": "600",
|
||||||
|
"monthlyInterestExpense": "0",
|
||||||
|
"monthlyInterestPayment": "0",
|
||||||
|
"monthlyPrincipalRepayment": "0",
|
||||||
|
"salesCollectionLagMonths": 0,
|
||||||
|
"salesCollectionPercent": "100",
|
||||||
|
"openingReceivablesCollectionPercent": "0",
|
||||||
|
"reportAssumptions": {
|
||||||
|
"startYear": "2027",
|
||||||
|
"openingFixedAssets": "0",
|
||||||
|
"openingOtherAssets": "0",
|
||||||
|
"openingEquity": "1000",
|
||||||
|
"startupExpenses": [
|
||||||
|
{
|
||||||
|
"label": "Constituição",
|
||||||
|
"amount": "100"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"taxExpenseByMonth": [
|
||||||
|
"30",
|
||||||
|
"30",
|
||||||
|
"30",
|
||||||
|
"30"
|
||||||
|
],
|
||||||
|
"taxPaymentByMonth": [
|
||||||
|
"20",
|
||||||
|
"20",
|
||||||
|
"20",
|
||||||
|
"20"
|
||||||
|
],
|
||||||
|
"taxSource": "Hipótese sintética de teste; não é taxa legal",
|
||||||
|
"grantsTreatment": "",
|
||||||
|
"manualCollectionsKind": ""
|
||||||
|
},
|
||||||
|
"monthlyOperatingExpensesByPeriod": [
|
||||||
|
"0",
|
||||||
|
"0",
|
||||||
|
"0",
|
||||||
|
"0"
|
||||||
|
],
|
||||||
|
"useInventoryPurchaseSchedule": true,
|
||||||
|
"inventoryPurchaseSchedule": [
|
||||||
|
{
|
||||||
|
"amount": "0",
|
||||||
|
"leadMonths": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": "100000",
|
||||||
|
"leadMonths": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": "0",
|
||||||
|
"leadMonths": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": "0",
|
||||||
|
"leadMonths": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"supplierAdvances": {
|
||||||
|
"regime": "PGC-PE",
|
||||||
|
"purchases": true,
|
||||||
|
"services": true,
|
||||||
|
"operations": [
|
||||||
|
{
|
||||||
|
"kind": "purchases",
|
||||||
|
"originId": "OP-1",
|
||||||
|
"parcelId": "P-1",
|
||||||
|
"supplier": "Fornecedor sintético",
|
||||||
|
"amount": "100000",
|
||||||
|
"recognitionDate": "2027-02-15",
|
||||||
|
"invoiceDate": "2027-03-01",
|
||||||
|
"ordinaryContract": true,
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"id": "A",
|
||||||
|
"kind": "advance",
|
||||||
|
"date": "2027-01-10",
|
||||||
|
"amount": "30000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "B",
|
||||||
|
"kind": "apply",
|
||||||
|
"date": "2027-03-01",
|
||||||
|
"amount": "30000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "C",
|
||||||
|
"kind": "settle",
|
||||||
|
"date": "2027-04-01",
|
||||||
|
"amount": "70000"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"inventoryPurchaseLeadMonths": 0,
|
||||||
|
"useProductInventorySchedule": false,
|
||||||
|
"useSupplierPaymentTerms": false,
|
||||||
|
"monthlyVariableCostPaymentsByPeriod": null,
|
||||||
|
"openingReceivablesCollectionMonth": null,
|
||||||
|
"openingReceivablesInstallments": [],
|
||||||
|
"openingPayablesInstallments": [],
|
||||||
|
"salesRecoverySchedule": [],
|
||||||
|
"fundingBreakdown": {
|
||||||
|
"ownerCapital": "600",
|
||||||
|
"investorCapital": "0",
|
||||||
|
"additionalCapital": "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,141 @@
|
|||||||
|
{
|
||||||
|
"version": 21,
|
||||||
|
"plan": {
|
||||||
|
"currency": "MZN",
|
||||||
|
"openingCash": "1000",
|
||||||
|
"assetInvestment": "600",
|
||||||
|
"equity": "600.00",
|
||||||
|
"products": [
|
||||||
|
{
|
||||||
|
"label": "Sintético F20-B",
|
||||||
|
"monthlyUnits": "0",
|
||||||
|
"unitPrice": "0",
|
||||||
|
"unitVariableCost": "0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"depreciationLifeMonths": 60,
|
||||||
|
"periods": 4,
|
||||||
|
"monthlyCollections": "0",
|
||||||
|
"monthlyVariableCostPayments": "999",
|
||||||
|
"monthlyInventoryPurchases": "400",
|
||||||
|
"monthlyOperatingExpenses": "0",
|
||||||
|
"monthlyOperatingPayments": "888",
|
||||||
|
"monthlyPayrollExpense": "0",
|
||||||
|
"monthlyPayrollPayments": "0",
|
||||||
|
"inventory": "0",
|
||||||
|
"receivables": "0",
|
||||||
|
"payables": "0",
|
||||||
|
"shareholderLoans": "0",
|
||||||
|
"bankLoanProceeds": "0",
|
||||||
|
"grants": "0",
|
||||||
|
"assetDepreciation": "600",
|
||||||
|
"monthlyInterestExpense": "0",
|
||||||
|
"monthlyInterestPayment": "0",
|
||||||
|
"monthlyPrincipalRepayment": "0",
|
||||||
|
"salesCollectionLagMonths": 0,
|
||||||
|
"salesCollectionPercent": "100",
|
||||||
|
"openingReceivablesCollectionPercent": "0",
|
||||||
|
"reportAssumptions": {
|
||||||
|
"startYear": "2027",
|
||||||
|
"openingFixedAssets": "0",
|
||||||
|
"openingOtherAssets": "0",
|
||||||
|
"openingEquity": "1000",
|
||||||
|
"startupExpenses": [
|
||||||
|
{
|
||||||
|
"label": "Constituição",
|
||||||
|
"amount": "100"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"taxExpenseByMonth": [
|
||||||
|
"30",
|
||||||
|
"30",
|
||||||
|
"30",
|
||||||
|
"30"
|
||||||
|
],
|
||||||
|
"taxPaymentByMonth": [
|
||||||
|
"20",
|
||||||
|
"20",
|
||||||
|
"20",
|
||||||
|
"20"
|
||||||
|
],
|
||||||
|
"taxSource": "Hipótese sintética de teste; não é taxa legal",
|
||||||
|
"grantsTreatment": "",
|
||||||
|
"manualCollectionsKind": ""
|
||||||
|
},
|
||||||
|
"monthlyOperatingExpensesByPeriod": [
|
||||||
|
"0",
|
||||||
|
"0",
|
||||||
|
"0",
|
||||||
|
"0"
|
||||||
|
],
|
||||||
|
"useInventoryPurchaseSchedule": true,
|
||||||
|
"inventoryPurchaseSchedule": [
|
||||||
|
{
|
||||||
|
"amount": "0",
|
||||||
|
"leadMonths": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": "100000",
|
||||||
|
"leadMonths": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": "0",
|
||||||
|
"leadMonths": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": "0",
|
||||||
|
"leadMonths": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"supplierAdvances": {
|
||||||
|
"regime": "PGC-PE",
|
||||||
|
"purchases": true,
|
||||||
|
"services": true,
|
||||||
|
"operations": [
|
||||||
|
{
|
||||||
|
"kind": "purchases",
|
||||||
|
"originId": "OP-1",
|
||||||
|
"parcelId": "P-1",
|
||||||
|
"supplier": "Fornecedor sintético",
|
||||||
|
"amount": "100000",
|
||||||
|
"recognitionDate": "2027-02-15",
|
||||||
|
"invoiceDate": "2027-03-01",
|
||||||
|
"ordinaryContract": true,
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"id": "A",
|
||||||
|
"kind": "advance",
|
||||||
|
"date": "2027-01-10",
|
||||||
|
"amount": "30000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "B",
|
||||||
|
"kind": "apply",
|
||||||
|
"date": "2027-03-01",
|
||||||
|
"amount": "30000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "C",
|
||||||
|
"kind": "settle",
|
||||||
|
"date": "2027-04-01",
|
||||||
|
"amount": "70000"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"inventoryPurchaseLeadMonths": 0,
|
||||||
|
"useProductInventorySchedule": false,
|
||||||
|
"useSupplierPaymentTerms": false,
|
||||||
|
"monthlyVariableCostPaymentsByPeriod": null,
|
||||||
|
"openingReceivablesCollectionMonth": null,
|
||||||
|
"openingReceivablesInstallments": [],
|
||||||
|
"openingPayablesInstallments": [],
|
||||||
|
"salesRecoverySchedule": [],
|
||||||
|
"fundingBreakdown": {
|
||||||
|
"ownerCapital": "600",
|
||||||
|
"investorCapital": "0",
|
||||||
|
"additionalCapital": "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 127 KiB |
@@ -1,3 +1,4 @@
|
|||||||
|
import { catalogueFilterHref } from '@/lib/catalogue-context';
|
||||||
import { Link, usePage } from '@inertiajs/react';
|
import { Link, usePage } from '@inertiajs/react';
|
||||||
|
|
||||||
const labels: Record<string, string> = {
|
const labels: Record<string, string> = {
|
||||||
@@ -71,8 +72,17 @@ const values: Record<string, string> = {
|
|||||||
/** Name each active criterion without exposing IDs or taxonomy codes. */
|
/** Name each active criterion without exposing IDs or taxonomy codes. */
|
||||||
export default function CatalogueFilterContext() {
|
export default function CatalogueFilterContext() {
|
||||||
const page = usePage();
|
const page = usePage();
|
||||||
const filters = page.props.filters as Record<string, unknown> | undefined;
|
const supplied = page.props.filters as Record<string, unknown> | undefined;
|
||||||
if (!filters) return null;
|
const path = page.props.territorySelection as
|
||||||
|
| { id: string; name: string; location_type?: string }[]
|
||||||
|
| undefined;
|
||||||
|
const filters: Record<string, unknown> = { ...supplied };
|
||||||
|
path?.forEach((place, index) => {
|
||||||
|
const key = place.location_type
|
||||||
|
? territoryKeys.find((name) => name === `${place.location_type}_id`)
|
||||||
|
: territoryKeys[index];
|
||||||
|
if (key && !filters[key]) filters[key] = place.id;
|
||||||
|
});
|
||||||
const active = Object.entries(filters).filter(
|
const active = Object.entries(filters).filter(
|
||||||
([key, value]) =>
|
([key, value]) =>
|
||||||
!['page', 'per_page', 'sort', 'view', 'publication_state'].includes(
|
!['page', 'per_page', 'sort', 'view', 'publication_state'].includes(
|
||||||
@@ -93,28 +103,15 @@ export default function CatalogueFilterContext() {
|
|||||||
if (typeof value !== 'string') return 'seleccionado';
|
if (typeof value !== 'string') return 'seleccionado';
|
||||||
return (
|
return (
|
||||||
values[value] ??
|
values[value] ??
|
||||||
(['q', 'query', 'province', 'topic', 'issuer'].includes(key)
|
(['q', 'query', 'province', 'topic', 'issuer', 'activity'].includes(
|
||||||
|
key,
|
||||||
|
)
|
||||||
? value
|
? value
|
||||||
: 'seleccionado')
|
: 'seleccionado')
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const href = (remove?: string) => {
|
const href = (remove?: string) =>
|
||||||
const url = new URL(page.url, 'https://portal.invalid');
|
catalogueFilterHref(page.url, Object.keys(filters), remove);
|
||||||
const keys = remove
|
|
||||||
? [
|
|
||||||
remove,
|
|
||||||
...territoryKeys
|
|
||||||
.slice(territoryKeys.indexOf(remove) + 1)
|
|
||||||
.filter(() => territoryKeys.includes(remove)),
|
|
||||||
]
|
|
||||||
: Object.keys(filters);
|
|
||||||
for (const key of keys) {
|
|
||||||
url.searchParams.delete(key);
|
|
||||||
url.searchParams.delete(`${key}[]`);
|
|
||||||
}
|
|
||||||
url.searchParams.delete('page');
|
|
||||||
return url.pathname + url.search;
|
|
||||||
};
|
|
||||||
return (
|
return (
|
||||||
<nav
|
<nav
|
||||||
aria-label="Filtros activos"
|
aria-label="Filtros activos"
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export default function FintechInvestment({
|
|||||||
{
|
{
|
||||||
version: 'Versão do dossier',
|
version: 'Versão do dossier',
|
||||||
'profile.model': 'Natureza do modelo',
|
'profile.model': 'Natureza do modelo',
|
||||||
'profile.activity_basis': 'Fundamento das atividades',
|
'profile.activity_basis': 'Fundamento das actividades',
|
||||||
} as Record<string, string>
|
} as Record<string, string>
|
||||||
)[field] ?? 'Caracterização'
|
)[field] ?? 'Caracterização'
|
||||||
);
|
);
|
||||||
@@ -179,7 +179,7 @@ export default function FintechInvestment({
|
|||||||
</option>
|
</option>
|
||||||
<option value="technology_provider">
|
<option value="technology_provider">
|
||||||
Fornecedor de tecnologia, sem presumir
|
Fornecedor de tecnologia, sem presumir
|
||||||
atividade financeira reservada
|
actividade financeira reservada
|
||||||
</option>
|
</option>
|
||||||
<option value="financial_operator">
|
<option value="financial_operator">
|
||||||
Operador de serviços financeiros declarado,
|
Operador de serviços financeiros declarado,
|
||||||
@@ -248,7 +248,7 @@ export default function FintechInvestment({
|
|||||||
</p>
|
</p>
|
||||||
<fieldset className="grid gap-3 md:grid-cols-2">
|
<fieldset className="grid gap-3 md:grid-cols-2">
|
||||||
<legend className="font-semibold">
|
<legend className="font-semibold">
|
||||||
Atividades pretendidas, ainda sujeitas a
|
Actividades pretendidas, ainda sujeitas a
|
||||||
enquadramento
|
enquadramento
|
||||||
</legend>
|
</legend>
|
||||||
{Object.entries(data.activities).map(
|
{Object.entries(data.activities).map(
|
||||||
@@ -285,7 +285,7 @@ export default function FintechInvestment({
|
|||||||
)}
|
)}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<label className="grid gap-1">
|
<label className="grid gap-1">
|
||||||
Fundamento e limites da declaração de atividades
|
Fundamento e limites da declaração de actividades
|
||||||
<textarea
|
<textarea
|
||||||
rows={3}
|
rows={3}
|
||||||
maxLength={3000}
|
maxLength={3000}
|
||||||
@@ -375,7 +375,7 @@ export default function FintechInvestment({
|
|||||||
className="mt-5 space-y-3"
|
className="mt-5 space-y-3"
|
||||||
>
|
>
|
||||||
<h3 className="font-semibold">
|
<h3 className="font-semibold">
|
||||||
Aplicabilidade por atividade e ação
|
Aplicabilidade por actividade e acção
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
Quem prepara: promotor. Quem confere: responsável
|
Quem prepara: promotor. Quem confere: responsável
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react';
|
import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react';
|
||||||
import type {
|
import type {
|
||||||
Map as LeafletMap,
|
Map as LeafletMap,
|
||||||
@@ -231,7 +232,7 @@ export default function InteractiveInvestmentMap({
|
|||||||
: 0;
|
: 0;
|
||||||
for (const area of allAreas) {
|
for (const area of allAreas) {
|
||||||
const label = document.createElement('p');
|
const label = document.createElement('p');
|
||||||
label.textContent = `${area.title} · ${areaDescription(area)} · Fonte: ${area.source_reference ?? 'Não indicada'} · Data: ${area.source_date ?? 'Não documentada'}`;
|
label.textContent = `${area.title} · ${areaDescription(area)} · Fonte: ${publicReference(area.source_reference) ?? 'Não indicada'} · Data: ${area.source_date ?? 'Não documentada'}`;
|
||||||
const layer = L.geoJSON(
|
const layer = L.geoJSON(
|
||||||
area.geometry,
|
area.geometry,
|
||||||
area.purpose === 'administrative_boundary'
|
area.purpose === 'administrative_boundary'
|
||||||
@@ -299,7 +300,7 @@ export default function InteractiveInvestmentMap({
|
|||||||
for (const text of [
|
for (const text of [
|
||||||
p.category,
|
p.category,
|
||||||
p.location,
|
p.location,
|
||||||
`Fonte: ${p.source_reference ?? 'Não indicada'} · Data: ${p.source_date ?? 'Não documentada'}`,
|
`Fonte: ${publicReference(p.source_reference) ?? 'Não indicada'} · Data: ${p.source_date ?? 'Não documentada'}`,
|
||||||
`Corredor: ${p.corridors?.join(', ') || 'Não associado'}`,
|
`Corredor: ${p.corridors?.join(', ') || 'Não associado'}`,
|
||||||
`Cluster: ${p.clusters?.join(', ') || 'Não associado'}`,
|
`Cluster: ${p.clusters?.join(', ') || 'Não associado'}`,
|
||||||
`Projecto âncora: ${p.projects?.join(', ') || 'Não associado'}`,
|
`Projecto âncora: ${p.projects?.join(', ') || 'Não associado'}`,
|
||||||
@@ -468,8 +469,9 @@ export default function InteractiveInvestmentMap({
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Fonte:{' '}
|
Fonte:{' '}
|
||||||
{p.properties.source_reference ?? 'Não indicada'} ·
|
{publicReference(p.properties.source_reference) ??
|
||||||
Data:{' '}
|
'Não indicada'}{' '}
|
||||||
|
· Data:{' '}
|
||||||
{p.properties.source_date ?? 'Não documentada'}
|
{p.properties.source_date ?? 'Não documentada'}
|
||||||
</p>
|
</p>
|
||||||
<a className="underline" href={p.properties.url}>
|
<a className="underline" href={p.properties.url}>
|
||||||
@@ -496,8 +498,9 @@ export default function InteractiveInvestmentMap({
|
|||||||
area.title
|
area.title
|
||||||
)}{' '}
|
)}{' '}
|
||||||
· {areaDescription(area)} · Fonte:{' '}
|
· {areaDescription(area)} · Fonte:{' '}
|
||||||
{area.source_reference ?? 'Não indicada'} ·
|
{publicReference(area.source_reference) ??
|
||||||
Edição: {area.source_date ?? 'Não indicada'}
|
'Não indicada'}{' '}
|
||||||
|
· Edição: {area.source_date ?? 'Não indicada'}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@@ -510,8 +513,9 @@ export default function InteractiveInvestmentMap({
|
|||||||
{area.title}
|
{area.title}
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
· {areaDescription(area)} · Fonte:{' '}
|
· {areaDescription(area)} · Fonte:{' '}
|
||||||
{area.source_reference ?? 'Não indicada'} · Data:{' '}
|
{publicReference(area.source_reference) ??
|
||||||
{area.source_date ?? 'Não documentada'}
|
'Não indicada'}{' '}
|
||||||
|
· Data: {area.source_date ?? 'Não documentada'}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -22,7 +22,10 @@ export function InvestmentReportTables({
|
|||||||
</h4>
|
</h4>
|
||||||
<ul className="list-disc space-y-2 pl-5">
|
<ul className="list-disc space-y-2 pl-5">
|
||||||
{issues.map((issue) => (
|
{issues.map((issue) => (
|
||||||
<li key={issue.message}>
|
<li
|
||||||
|
key={issue.message}
|
||||||
|
data-correction-message={issue.message}
|
||||||
|
>
|
||||||
<p>{issue.message}</p>
|
<p>{issue.message}</p>
|
||||||
<p className="text-xs">
|
<p className="text-xs">
|
||||||
Tabelas afectadas: {issue.tables.join('; ')}
|
Tabelas afectadas: {issue.tables.join('; ')}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export function ProvinceSelect({
|
|||||||
setGeometrySelection({ value, id: matches[0].id });
|
setGeometrySelection({ value, id: matches[0].id });
|
||||||
else
|
else
|
||||||
setGeometryFeedback(
|
setGeometryFeedback(
|
||||||
'Seleção guardada preservada; sem correspondência cartográfica inequívoca neste cadastro.',
|
'Selecção guardada preservada; sem correspondência cartográfica inequívoca neste cadastro.',
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.catch((cause: unknown) => {
|
.catch((cause: unknown) => {
|
||||||
|
|||||||
@@ -577,7 +577,9 @@ export function ParkIntegralPublic({ value }: { value?: ParkIntegral }) {
|
|||||||
<p>
|
<p>
|
||||||
Fonte:{' '}
|
Fonte:{' '}
|
||||||
{String(
|
{String(
|
||||||
item.source_reference || 'Não informada',
|
publicReference(
|
||||||
|
String(item.source_reference ?? ''),
|
||||||
|
) || 'Referência pública não disponível',
|
||||||
)}{' '}
|
)}{' '}
|
||||||
· data:{' '}
|
· data:{' '}
|
||||||
{String(item.source_date || 'Não informada')} ·
|
{String(item.source_date || 'Não informada')} ·
|
||||||
@@ -590,3 +592,4 @@ export function ParkIntegralPublic({ value }: { value?: ParkIntegral }) {
|
|||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import PublicReference from './public-reference';
|
||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
import ParkIntegralEditor, {
|
import ParkIntegralEditor, {
|
||||||
ParkIntegralPublic,
|
ParkIntegralPublic,
|
||||||
type ParkIntegral,
|
type ParkIntegral,
|
||||||
@@ -175,8 +177,14 @@ export function ParkDetailsPublic({ value }: { value?: Partial<ParkDetails> }) {
|
|||||||
)}
|
)}
|
||||||
<p>
|
<p>
|
||||||
Fonte:{' '}
|
Fonte:{' '}
|
||||||
{item.source_reference || 'Não informada'} ·
|
{publicReference(item.source_reference) ? (
|
||||||
data: {item.source_date || 'Não informada'} ·
|
<PublicReference
|
||||||
|
value={item.source_reference}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
'Referência pública não disponível'
|
||||||
|
)}{' '}
|
||||||
|
· data: {item.source_date || 'Não informada'} ·
|
||||||
âmbito: {item.scope || 'Não informado'}
|
âmbito: {item.scope || 'Não informado'}
|
||||||
</p>
|
</p>
|
||||||
</article>
|
</article>
|
||||||
@@ -192,15 +200,25 @@ export function ParkDetailsPublic({ value }: { value?: Partial<ParkDetails> }) {
|
|||||||
<div key={k}>
|
<div key={k}>
|
||||||
<dt>{reviewLabels[k]}</dt>
|
<dt>{reviewLabels[k]}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{k === 'confidence'
|
{k === 'confidence' ? (
|
||||||
? ({
|
({
|
||||||
unknown: 'Não informada',
|
unknown: 'Não informada',
|
||||||
reported: 'Declarada',
|
reported: 'Declarada',
|
||||||
documented: 'Documentada',
|
documented: 'Documentada',
|
||||||
disputed: 'Divergente',
|
disputed: 'Divergente',
|
||||||
}[value.review?.[k] ?? ''] ??
|
}[value.review?.[k] ?? ''] ??
|
||||||
'Não informada')
|
'Não informada')
|
||||||
: value.review?.[k] || 'Não informado'}
|
) : k === 'source_reference' ? (
|
||||||
|
publicReference(value.review?.[k]) ? (
|
||||||
|
<PublicReference
|
||||||
|
value={value.review?.[k]}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
'Referência pública não disponível'
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
value.review?.[k] || 'Não informado'
|
||||||
|
)}
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
@@ -276,7 +294,7 @@ export default function ParkDetailsEditor({
|
|||||||
<h2 className="font-semibold">Complemento operacional</h2>
|
<h2 className="font-semibold">Complemento operacional</h2>
|
||||||
<p>
|
<p>
|
||||||
Uma entidade pode exercer várias funções. Guardar prepara em
|
Uma entidade pode exercer várias funções. Guardar prepara em
|
||||||
privado; divulgar exige seleção por detalhe e publicação
|
privado; divulgar exige selecção por detalhe e publicação
|
||||||
expressa. Contactos pessoais, notas e suporte permanecem
|
expressa. Contactos pessoais, notas e suporte permanecem
|
||||||
privados.
|
privados.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const labels: Record<string, string> = {
|
|||||||
internal_contact_id: 'Contacto interno',
|
internal_contact_id: 'Contacto interno',
|
||||||
sector_id: 'Sector',
|
sector_id: 'Sector',
|
||||||
subsector_id: 'Subsector',
|
subsector_id: 'Subsector',
|
||||||
economic_activity_id: 'Atividade económica',
|
economic_activity_id: 'Actividade económica',
|
||||||
location_mode: 'Uma ou várias localizações',
|
location_mode: 'Uma ou várias localizações',
|
||||||
geographic_scope: 'Âmbito geográfico',
|
geographic_scope: 'Âmbito geográfico',
|
||||||
multi_district_rationale: 'Justificação territorial',
|
multi_district_rationale: 'Justificação territorial',
|
||||||
@@ -94,7 +94,7 @@ const labels: Record<string, string> = {
|
|||||||
real_estate: 'Imobiliário',
|
real_estate: 'Imobiliário',
|
||||||
land_rights: 'DUAT e direitos fundiários',
|
land_rights: 'DUAT e direitos fundiários',
|
||||||
business_transaction: 'Negócio',
|
business_transaction: 'Negócio',
|
||||||
module_profile_version: 'Versão do contrato QA (seleção explícita)',
|
module_profile_version: 'Versão do contrato QA (selecção explícita)',
|
||||||
module_details: 'Condições do módulo',
|
module_details: 'Condições do módulo',
|
||||||
mode: 'Percurso: procura, oferta ou modalidade',
|
mode: 'Percurso: procura, oferta ou modalidade',
|
||||||
conditions_status: 'Condições propostas ou compromisso documentado',
|
conditions_status: 'Condições propostas ou compromisso documentado',
|
||||||
@@ -1156,7 +1156,7 @@ export default function OpportunityCanonicalFields({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<option value="">
|
<option value="">
|
||||||
Contrato original / por selecionar
|
Contrato original / por seleccionar
|
||||||
</option>
|
</option>
|
||||||
{current && current !== version && (
|
{current && current !== version && (
|
||||||
<option value={current}>
|
<option value={current}>
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import { useEffect, useRef, useState } from 'react';
|
|||||||
import { router } from '@inertiajs/react';
|
import { router } from '@inertiajs/react';
|
||||||
import { control, button } from '@/pages/management/shared';
|
import { control, button } from '@/pages/management/shared';
|
||||||
import { valueText } from '@/lib/value-text';
|
import { valueText } from '@/lib/value-text';
|
||||||
|
import PublicReference from './public-reference';
|
||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
|
|
||||||
type Classification = {
|
type Classification = {
|
||||||
target_type: string;
|
target_type: string;
|
||||||
@@ -49,11 +51,11 @@ const typeLabels: Record<string, string> = {
|
|||||||
corridor: 'Corredor',
|
corridor: 'Corredor',
|
||||||
location: 'Localização',
|
location: 'Localização',
|
||||||
cluster: 'Cluster',
|
cluster: 'Cluster',
|
||||||
project: 'Projeto âncora',
|
project: 'Projecto âncora',
|
||||||
chain: 'Cadeia de valor',
|
chain: 'Cadeia de valor',
|
||||||
zone: 'Zona ou parque',
|
zone: 'Zona ou parque',
|
||||||
sector: 'Setor',
|
sector: 'Sector',
|
||||||
activity: 'Subsector ou atividade',
|
activity: 'Subsector ou actividade',
|
||||||
};
|
};
|
||||||
export const classificationStates: Record<string, string> = {
|
export const classificationStates: Record<string, string> = {
|
||||||
draft: 'Rascunho',
|
draft: 'Rascunho',
|
||||||
@@ -67,8 +69,8 @@ export const classificationStates: Record<string, string> = {
|
|||||||
const externalLabels: Record<string, string> = {
|
const externalLabels: Record<string, string> = {
|
||||||
not_assessed: 'Não determinado',
|
not_assessed: 'Não determinado',
|
||||||
pending: 'Pendente',
|
pending: 'Pendente',
|
||||||
documented_granted: 'Ato de concessão documentado',
|
documented_granted: 'Acto de concessão documentado',
|
||||||
documented_denied: 'Ato de recusa documentado',
|
documented_denied: 'Acto de recusa documentado',
|
||||||
expired: 'Caducado',
|
expired: 'Caducado',
|
||||||
};
|
};
|
||||||
const help =
|
const help =
|
||||||
@@ -211,7 +213,7 @@ export function ClassificationEditor({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<option value="">
|
<option value="">
|
||||||
Selecionar referência
|
Seleccionar referência
|
||||||
</option>
|
</option>
|
||||||
{row.related_id &&
|
{row.related_id &&
|
||||||
!(
|
!(
|
||||||
@@ -295,7 +297,7 @@ export function ClassificationEditor({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<option value="">
|
<option value="">
|
||||||
Selecionar finalidade
|
Seleccionar finalidade
|
||||||
</option>
|
</option>
|
||||||
{Object.entries(
|
{Object.entries(
|
||||||
options.purposes,
|
options.purposes,
|
||||||
@@ -840,7 +842,7 @@ export function ClassificationSummary({
|
|||||||
territory: 'Enquadramento territorial',
|
territory: 'Enquadramento territorial',
|
||||||
production: 'Organização produtiva',
|
production: 'Organização produtiva',
|
||||||
regulation: 'Regime regulatório',
|
regulation: 'Regime regulatório',
|
||||||
activity: 'Atividade económica',
|
activity: 'Actividade económica',
|
||||||
}).map(([dimension, label]) => (
|
}).map(([dimension, label]) => (
|
||||||
<section key={dimension}>
|
<section key={dimension}>
|
||||||
<h3 className="font-semibold">{label}</h3>
|
<h3 className="font-semibold">{label}</h3>
|
||||||
@@ -861,9 +863,15 @@ export function ClassificationSummary({
|
|||||||
{classificationStates[r.state] ??
|
{classificationStates[r.state] ??
|
||||||
'Por determinar'}{' '}
|
'Por determinar'}{' '}
|
||||||
· {r.purpose_label ?? r.purpose} ·{' '}
|
· {r.purpose_label ?? r.purpose} ·{' '}
|
||||||
{r.source_reference || 'Fonte por indicar'}{' '}
|
{publicReference(r.source_reference) ? (
|
||||||
{r.citation} {r.production_stage} · Ato
|
<PublicReference
|
||||||
externo:{' '}
|
value={r.source_reference}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
'Referência pública não disponível'
|
||||||
|
)}{' '}
|
||||||
|
{publicReference(r.citation)}{' '}
|
||||||
|
{r.production_stage} · Acto externo:{' '}
|
||||||
{externalLabels[r.external_status] ??
|
{externalLabels[r.external_status] ??
|
||||||
'Não determinado'}
|
'Não determinado'}
|
||||||
. Benefício ou capacidade disponível: não
|
. Benefício ou capacidade disponível: não
|
||||||
@@ -935,7 +943,7 @@ export function ClassificationFilters({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'subsector_id',
|
key: 'subsector_id',
|
||||||
label: 'Subsector ou atividade publicada',
|
label: 'Subsector ou actividade publicada',
|
||||||
choices: (options.targets.activity ?? []).map((r) => [
|
choices: (options.targets.activity ?? []).map((r) => [
|
||||||
String(r.id),
|
String(r.id),
|
||||||
r.label,
|
r.label,
|
||||||
@@ -962,7 +970,7 @@ export function ClassificationFilters({
|
|||||||
<legend>Classificação multidimensional — filtros combinados</legend>
|
<legend>Classificação multidimensional — filtros combinados</legend>
|
||||||
<p>
|
<p>
|
||||||
Os filtros combinam-se por «e». Tipo, referência e finalidade
|
Os filtros combinam-se por «e». Tipo, referência e finalidade
|
||||||
identificam a mesma associação; cadeia, atividade e entidade
|
identificam a mesma associação; cadeia, actividade e entidade
|
||||||
podem constar de outras associações da mesma oportunidade. A
|
podem constar de outras associações da mesma oportunidade. A
|
||||||
pesquisa inclui apenas publicações públicas. Os vínculos
|
pesquisa inclui apenas publicações públicas. Os vínculos
|
||||||
anteriores continuam nos filtros próprios.
|
anteriores continuam nos filtros próprios.
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export default function OpportunityContactForm({
|
|||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<option value="">Por selecionar</option>
|
<option value="">Por seleccionar</option>
|
||||||
{investors.map((investor) => (
|
{investors.map((investor) => (
|
||||||
<option key={investor.id} value={investor.id}>
|
<option key={investor.id} value={investor.id}>
|
||||||
{investor.legal_name}
|
{investor.legal_name}
|
||||||
@@ -213,7 +213,7 @@ export default function OpportunityContactForm({
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={() => void save()}
|
onClick={() => void save()}
|
||||||
>
|
>
|
||||||
Guardar contacto e selecionar
|
Guardar contacto e seleccionar
|
||||||
</button>
|
</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<p id="contact-result" role="status" tabIndex={-1}>
|
<p id="contact-result" role="status" tabIndex={-1}>
|
||||||
|
|||||||
@@ -0,0 +1,226 @@
|
|||||||
|
import { useEffect, useRef, useState } from 'react';
|
||||||
|
import {
|
||||||
|
correctionFieldHints,
|
||||||
|
fieldLabelMatches,
|
||||||
|
revealCorrectionTarget,
|
||||||
|
} from '@/lib/field-corrections';
|
||||||
|
|
||||||
|
type Correction = { message: string; targets: { id: string; label: string }[] };
|
||||||
|
let nextId = 0;
|
||||||
|
function labelOf(
|
||||||
|
control: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,
|
||||||
|
) {
|
||||||
|
const label = control.labels?.[0];
|
||||||
|
if (label) {
|
||||||
|
const copy = label.cloneNode(true) as HTMLElement;
|
||||||
|
copy.querySelectorAll(
|
||||||
|
'input,select,textarea,button,[role="alert"],.sr-only',
|
||||||
|
).forEach((n) => n.remove());
|
||||||
|
return (
|
||||||
|
copy.textContent?.replace(/\s+/g, ' ').trim() ||
|
||||||
|
control.getAttribute('aria-label') ||
|
||||||
|
''
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return control.getAttribute('aria-label') || '';
|
||||||
|
}
|
||||||
|
/** Maps live, existing messages to real controls; no inferred financial validations. */
|
||||||
|
export default function PortalCorrections() {
|
||||||
|
const marker = useRef<HTMLDivElement>(null);
|
||||||
|
const [items, setItems] = useState<Correction[]>([]);
|
||||||
|
const previous = useRef('');
|
||||||
|
useEffect(() => {
|
||||||
|
const root = marker.current?.closest('#portal-content');
|
||||||
|
if (!root) return;
|
||||||
|
let pending = 0;
|
||||||
|
const collect = () => {
|
||||||
|
pending = 0;
|
||||||
|
const controls = [
|
||||||
|
...root.querySelectorAll<
|
||||||
|
HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
|
||||||
|
>('input:not([type="hidden"]),select,textarea'),
|
||||||
|
].filter(
|
||||||
|
(c) =>
|
||||||
|
!c.disabled && !c.closest('[hidden],[aria-hidden="true"]'),
|
||||||
|
);
|
||||||
|
const names = controls.map((c) => ({
|
||||||
|
control: c,
|
||||||
|
label: labelOf(c),
|
||||||
|
}));
|
||||||
|
const target = (c: (typeof controls)[number], label: string) => {
|
||||||
|
if (!c.id) c.id = `portal-correction-field-${++nextId}`;
|
||||||
|
const group = c.closest('fieldset,[role="group"]');
|
||||||
|
const context =
|
||||||
|
group?.querySelector('legend')?.textContent?.trim() ||
|
||||||
|
group?.getAttribute('aria-label') ||
|
||||||
|
'';
|
||||||
|
return {
|
||||||
|
id: c.id,
|
||||||
|
label: context ? `${label} — ${context}` : label,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
const grouped = new Map<string, Correction>();
|
||||||
|
const add = (message: string, targets: Correction['targets']) => {
|
||||||
|
if (!message || !targets.length) return;
|
||||||
|
const item = grouped.get(message) ?? { message, targets: [] };
|
||||||
|
for (const t of targets)
|
||||||
|
if (!item.targets.some((a) => a.id === t.id))
|
||||||
|
item.targets.push(t);
|
||||||
|
grouped.set(message, item);
|
||||||
|
};
|
||||||
|
for (const { control, label } of names) {
|
||||||
|
if (control.getAttribute('aria-invalid') !== 'true') continue;
|
||||||
|
const messages = (
|
||||||
|
control.getAttribute('aria-describedby') ?? ''
|
||||||
|
)
|
||||||
|
.split(/\s+/)
|
||||||
|
.map((id) =>
|
||||||
|
document.getElementById(id)?.textContent?.trim(),
|
||||||
|
)
|
||||||
|
.filter(Boolean);
|
||||||
|
const local = control
|
||||||
|
.closest('label')
|
||||||
|
?.querySelector('[role="alert"]')
|
||||||
|
?.textContent?.trim();
|
||||||
|
add(
|
||||||
|
messages.join(' ') || local || 'Confira o valor indicado.',
|
||||||
|
[target(control, label || 'Campo indicado')],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
for (const node of root.querySelectorAll<HTMLElement>(
|
||||||
|
'[data-correction-message],[role="alert"]',
|
||||||
|
)) {
|
||||||
|
if (
|
||||||
|
node.closest(
|
||||||
|
'[data-correction-summary],[hidden],[aria-hidden="true"]',
|
||||||
|
)
|
||||||
|
)
|
||||||
|
continue;
|
||||||
|
const message =
|
||||||
|
node.dataset.correctionMessage ||
|
||||||
|
node.textContent?.replace(/\s+/g, ' ').trim() ||
|
||||||
|
'';
|
||||||
|
if (!message) continue;
|
||||||
|
const hints = correctionFieldHints(message);
|
||||||
|
const matches = names.filter(
|
||||||
|
({ label }) =>
|
||||||
|
label && hints.some((h) => fieldLabelMatches(label, h)),
|
||||||
|
);
|
||||||
|
// Restrict explicit product/parcel diagnostics to the matching real group, if present.
|
||||||
|
const index = /produto\s+(\d+)|parcela\s+(\d+)/i.exec(message);
|
||||||
|
const indexed = index
|
||||||
|
? matches.filter(({ control }) => {
|
||||||
|
const group = control.closest(
|
||||||
|
'fieldset,[role="group"],[aria-label]',
|
||||||
|
);
|
||||||
|
const name =
|
||||||
|
group?.getAttribute('aria-label') ||
|
||||||
|
group?.querySelector('legend')?.textContent ||
|
||||||
|
'';
|
||||||
|
return new RegExp(
|
||||||
|
`(?:produto|parcela)\\s+${index[1] || index[2]}\\b`,
|
||||||
|
'i',
|
||||||
|
).test(name);
|
||||||
|
})
|
||||||
|
: [];
|
||||||
|
add(
|
||||||
|
message,
|
||||||
|
(indexed.length ? indexed : matches).map(
|
||||||
|
({ control, label }) => target(control, label),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const next = [...grouped.values()];
|
||||||
|
const serial = JSON.stringify(next);
|
||||||
|
if (serial !== previous.current) {
|
||||||
|
previous.current = serial;
|
||||||
|
setItems(next);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const schedule = () => {
|
||||||
|
if (!pending) pending = requestAnimationFrame(collect);
|
||||||
|
};
|
||||||
|
const observer = new MutationObserver((records) => {
|
||||||
|
if (
|
||||||
|
records.some(
|
||||||
|
(r) =>
|
||||||
|
!(
|
||||||
|
r.target instanceof Element
|
||||||
|
? r.target
|
||||||
|
: r.target.parentElement
|
||||||
|
)?.closest('[data-correction-summary]'),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
schedule();
|
||||||
|
});
|
||||||
|
observer.observe(root, {
|
||||||
|
subtree: true,
|
||||||
|
childList: true,
|
||||||
|
characterData: true,
|
||||||
|
attributes: true,
|
||||||
|
attributeFilter: ['aria-invalid', 'aria-describedby', 'hidden'],
|
||||||
|
});
|
||||||
|
root.addEventListener('input', schedule);
|
||||||
|
root.addEventListener('change', schedule);
|
||||||
|
collect();
|
||||||
|
return () => {
|
||||||
|
observer.disconnect();
|
||||||
|
root.removeEventListener('input', schedule);
|
||||||
|
root.removeEventListener('change', schedule);
|
||||||
|
if (pending) cancelAnimationFrame(pending);
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
ref={marker}
|
||||||
|
data-correction-summary
|
||||||
|
className="mx-auto max-w-6xl px-4 print:hidden"
|
||||||
|
>
|
||||||
|
{items.length > 0 && (
|
||||||
|
<section
|
||||||
|
id="portal-corrections"
|
||||||
|
aria-label="Falta preencher ou corrigir"
|
||||||
|
className="my-3 space-y-3 rounded border border-amber-500 bg-amber-50 p-4 text-sm"
|
||||||
|
>
|
||||||
|
<h2 className="font-semibold">
|
||||||
|
Falta preencher ou corrigir
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
Use as ligações para abrir a secção e chegar ao campo
|
||||||
|
indicado.
|
||||||
|
</p>
|
||||||
|
<ul className="space-y-3">
|
||||||
|
{items.map((item) => (
|
||||||
|
<li key={item.message}>
|
||||||
|
<p>{item.message}</p>
|
||||||
|
<div className="flex flex-wrap gap-2">
|
||||||
|
{item.targets.map((t) => (
|
||||||
|
<a
|
||||||
|
key={t.id}
|
||||||
|
className="min-h-11 rounded border bg-white px-3 py-2 underline"
|
||||||
|
href={`#${t.id}`}
|
||||||
|
onClick={(e) => {
|
||||||
|
const node =
|
||||||
|
document.getElementById(
|
||||||
|
t.id,
|
||||||
|
);
|
||||||
|
if (node) {
|
||||||
|
e.preventDefault();
|
||||||
|
revealCorrectionTarget(
|
||||||
|
node,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t.label}
|
||||||
|
</a>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
|
export default function PublicReference({ value }: { value?: string | null }) {
|
||||||
|
const text = publicReference(value);
|
||||||
|
if (!text) return null;
|
||||||
|
if (/^https?:\/\//i.test(text))
|
||||||
|
return (
|
||||||
|
<a
|
||||||
|
className="underline"
|
||||||
|
href={text}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
Consultar fonte — {new URL(text).hostname}
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
return <>{text}</>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
import EvidenceDetails from './evidence-details';
|
||||||
|
import { publicReference, publicSourceHref } from '@/lib/public-presentation';
|
||||||
|
type Source = {
|
||||||
|
title?: string | null;
|
||||||
|
url?: string | null;
|
||||||
|
source_date?: string | null;
|
||||||
|
supports?: string | null;
|
||||||
|
};
|
||||||
|
export default function PublicSourceList({ sources }: { sources?: Source[] }) {
|
||||||
|
const rows = new Map<
|
||||||
|
string,
|
||||||
|
{
|
||||||
|
title: string;
|
||||||
|
url?: string;
|
||||||
|
date?: string | null;
|
||||||
|
supports: string[];
|
||||||
|
}
|
||||||
|
>();
|
||||||
|
for (const source of sources ?? []) {
|
||||||
|
const url = publicSourceHref(source.url),
|
||||||
|
title =
|
||||||
|
publicReference(source.title) ||
|
||||||
|
(url ? new URL(url).hostname : null);
|
||||||
|
if (!title) continue;
|
||||||
|
const key = JSON.stringify([url || title, source.source_date || '']);
|
||||||
|
const row = rows.get(key) ?? {
|
||||||
|
title,
|
||||||
|
url,
|
||||||
|
date: source.source_date,
|
||||||
|
supports: [],
|
||||||
|
};
|
||||||
|
const support = publicReference(source.supports);
|
||||||
|
if (support && !row.supports.includes(support))
|
||||||
|
row.supports.push(support);
|
||||||
|
rows.set(key, row);
|
||||||
|
}
|
||||||
|
if (!rows.size) return null;
|
||||||
|
return (
|
||||||
|
<EvidenceDetails title="Fontes e datas">
|
||||||
|
<ul className="space-y-2">
|
||||||
|
{[...rows.entries()].map(([key, row]) => (
|
||||||
|
<li key={key}>
|
||||||
|
{row.url ? (
|
||||||
|
<a
|
||||||
|
className="underline"
|
||||||
|
href={row.url}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
{row.title}
|
||||||
|
</a>
|
||||||
|
) : (
|
||||||
|
<span>{row.title}</span>
|
||||||
|
)}
|
||||||
|
{row.date && <> · {row.date}</>}
|
||||||
|
{row.supports.map((text) => (
|
||||||
|
<p key={text}>{text}</p>
|
||||||
|
))}
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</EvidenceDetails>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -60,7 +60,7 @@ export default function SectorEntry({
|
|||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
<nav aria-label="Ações no setor" className="flex flex-wrap gap-3">
|
<nav aria-label="Acções no sector" className="flex flex-wrap gap-3">
|
||||||
{data.start_href ? (
|
{data.start_href ? (
|
||||||
<Link
|
<Link
|
||||||
className="rounded bg-emerald-800 px-4 py-3 text-white"
|
className="rounded bg-emerald-800 px-4 py-3 text-white"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Link } from '@inertiajs/react';
|
import { Link } from '@inertiajs/react';
|
||||||
import { portalRequest } from '@/lib/portal-api';
|
import { portalRequest } from '@/lib/portal-api';
|
||||||
@@ -86,7 +87,7 @@ export function GeographicCoverage({
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Fonte de origem da localização:{' '}
|
Fonte de origem da localização:{' '}
|
||||||
{coverage.origin_source_reference ||
|
{publicReference(coverage.origin_source_reference) ||
|
||||||
'referência não divulgada ou não indicada'}
|
'referência não divulgada ou não indicada'}
|
||||||
. Data da fonte:{' '}
|
. Data da fonte:{' '}
|
||||||
{publicationDate(coverage.origin_source_date) ?? 'desconhecida'}
|
{publicationDate(coverage.origin_source_date) ?? 'desconhecida'}
|
||||||
@@ -149,7 +150,7 @@ export function BusinessLocationSource({
|
|||||||
return (
|
return (
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
Fonte de origem da localização:{' '}
|
Fonte de origem da localização:{' '}
|
||||||
{record.location_source_reference ||
|
{publicReference(record.location_source_reference) ||
|
||||||
'referência não divulgada ou não indicada'}
|
'referência não divulgada ou não indicada'}
|
||||||
. Data da fonte:{' '}
|
. Data da fonte:{' '}
|
||||||
{publicationDate(record.location_source_date) ?? 'desconhecida'}.
|
{publicationDate(record.location_source_date) ?? 'desconhecida'}.
|
||||||
@@ -445,9 +446,10 @@ export default function SimilarBusinesses({
|
|||||||
{selected && (
|
{selected && (
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
Fonte da classificação na ficha de origem:{' '}
|
Fonte da classificação na ficha de origem:{' '}
|
||||||
{selected.source_reference || 'não indicada'}. A relação
|
{publicReference(selected.source_reference) ||
|
||||||
documental não comprova implantação, propriedade ou
|
'não indicada'}
|
||||||
capacidade.
|
. A relação documental não comprova implantação, propriedade
|
||||||
|
ou capacidade.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<Link href={effectiveCatalogueUrl} className="underline">
|
<Link href={effectiveCatalogueUrl} className="underline">
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { focusCorrectionId } from '@/lib/field-corrections';
|
||||||
import FiscalOperationPicker from './fiscal-operation-picker';
|
import FiscalOperationPicker from './fiscal-operation-picker';
|
||||||
import { SimulationIrpcAnnual } from '@/components/simulation-irpc-annual';
|
import { SimulationIrpcAnnual } from '@/components/simulation-irpc-annual';
|
||||||
import DemographicContext from '@/components/demographic-context';
|
import DemographicContext from '@/components/demographic-context';
|
||||||
@@ -5124,13 +5125,9 @@ export function SimulationForm() {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
window.requestAnimationFrame(
|
setOpenedTool(null);
|
||||||
() =>
|
focusCorrectionId(
|
||||||
document
|
`field-${item.key}`,
|
||||||
.getElementById(
|
|
||||||
`field-${item.key}`,
|
|
||||||
)
|
|
||||||
?.focus(),
|
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -5225,7 +5222,7 @@ export function SimulationForm() {
|
|||||||
{draft.purpose === 'simulate_only' && (
|
{draft.purpose === 'simulate_only' && (
|
||||||
<div
|
<div
|
||||||
className="space-y-2 rounded border p-3"
|
className="space-y-2 rounded border p-3"
|
||||||
aria-label="Ações do simulador"
|
aria-label="Acções do simulador"
|
||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
Abrir cálculo apresenta as ferramentas financeiras
|
Abrir cálculo apresenta as ferramentas financeiras
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import PublicReference from './public-reference';
|
||||||
|
import { publicReference, uniquePresentation } from '@/lib/public-presentation';
|
||||||
import { Link } from '@inertiajs/react';
|
import { Link } from '@inertiajs/react';
|
||||||
import DemographicContext from './demographic-context';
|
import DemographicContext from './demographic-context';
|
||||||
import TerritorialSources, {
|
import TerritorialSources, {
|
||||||
@@ -98,38 +100,97 @@ export function LocationList({
|
|||||||
</dl>
|
</dl>
|
||||||
<DemographicContext
|
<DemographicContext
|
||||||
key={location.id}
|
key={location.id}
|
||||||
territoryId={location.path
|
territoryId={
|
||||||
.filter((t) => ['province', 'district'].includes(t.location_type))
|
location.path
|
||||||
.at(-1)?.id}
|
.filter((t) =>
|
||||||
|
['province', 'district'].includes(
|
||||||
|
t.location_type,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.at(-1)?.id
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
{location.coordinates.map((point) => (
|
{uniquePresentation(location.coordinates, (p) =>
|
||||||
<p key={point.geometry_id}>
|
JSON.stringify([
|
||||||
|
p.geometry_id,
|
||||||
|
p.source_reference,
|
||||||
|
p.source_date,
|
||||||
|
]),
|
||||||
|
).map((point) => (
|
||||||
|
<p
|
||||||
|
key={JSON.stringify([
|
||||||
|
point.geometry_id,
|
||||||
|
point.source_reference,
|
||||||
|
point.source_date,
|
||||||
|
])}
|
||||||
|
>
|
||||||
Coordenadas documentadas (
|
Coordenadas documentadas (
|
||||||
{location.location_type === 'site'
|
{location.location_type === 'site'
|
||||||
? 'local cadastrado; não confirma a implantação da oportunidade'
|
? 'local cadastrado; não confirma a implantação da oportunidade'
|
||||||
: 'referência territorial; não representa a implantação'}
|
: 'referência territorial; não representa a implantação'}
|
||||||
): {point.geometry.coordinates[1]},{' '}
|
): {point.geometry.coordinates[1]},{' '}
|
||||||
{point.geometry.coordinates[0]} · Fonte:{' '}
|
{point.geometry.coordinates[0]}
|
||||||
{point.source_reference ?? 'Não indicada'}
|
{publicReference(point.source_reference) && (
|
||||||
{' · Data da fonte: '}
|
<>
|
||||||
{point.source_date ?? 'Não documentada'}
|
{' '}
|
||||||
|
· Fonte:{' '}
|
||||||
|
<PublicReference
|
||||||
|
value={point.source_reference}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{point.source_date && (
|
||||||
|
<> · Data: {point.source_date}</>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
{!location.coordinates.length && (
|
{!location.coordinates.length && (
|
||||||
<p>Coordenadas não documentadas.</p>
|
<p>Coordenadas não documentadas.</p>
|
||||||
)}
|
)}
|
||||||
<p className="text-sm">
|
{(publicReference(location.source_reference) ||
|
||||||
Fonte da relação:{' '}
|
location.source_date) && (
|
||||||
{location.source_reference ?? 'Não indicada'}
|
<p className="text-sm">
|
||||||
{' · Data da fonte: '}
|
{publicReference(location.source_reference) && (
|
||||||
{location.source_date ?? 'Não documentada'}
|
<>
|
||||||
</p>
|
Fonte da relação:{' '}
|
||||||
{location.boundaries?.map((boundary) => (
|
<PublicReference
|
||||||
<p key={boundary.geometry_id}>
|
value={location.source_reference}
|
||||||
Polígono cadastrado · Fonte:{' '}
|
/>
|
||||||
{boundary.source_reference ?? 'Não indicada'} ·
|
</>
|
||||||
Data: {boundary.source_date ?? 'Não documentada'}. O
|
)}
|
||||||
cadastro não certifica limites oficiais.
|
{location.source_date && (
|
||||||
|
<> · Data: {location.source_date}</>
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
{uniquePresentation(location.boundaries ?? [], (b) =>
|
||||||
|
JSON.stringify([
|
||||||
|
b.geometry_id,
|
||||||
|
b.source_reference,
|
||||||
|
b.source_date,
|
||||||
|
]),
|
||||||
|
).map((boundary) => (
|
||||||
|
<p
|
||||||
|
key={JSON.stringify([
|
||||||
|
boundary.geometry_id,
|
||||||
|
boundary.source_reference,
|
||||||
|
boundary.source_date,
|
||||||
|
])}
|
||||||
|
>
|
||||||
|
Polígono cadastrado
|
||||||
|
{publicReference(boundary.source_reference) && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
· Fonte:{' '}
|
||||||
|
<PublicReference
|
||||||
|
value={boundary.source_reference}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{boundary.source_date && (
|
||||||
|
<> · Data: {boundary.source_date}</>
|
||||||
|
)}
|
||||||
|
. O cadastro não certifica limites oficiais.
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
{!location.boundaries?.length && (
|
{!location.boundaries?.length && (
|
||||||
@@ -251,7 +312,7 @@ export default function StructureGeographyPanel({
|
|||||||
className="underline"
|
className="underline"
|
||||||
href={`/carteira/${member.dossier_id}?from=${dossierId}`}
|
href={`/carteira/${member.dossier_id}?from=${dossierId}`}
|
||||||
>
|
>
|
||||||
{member.code} · {member.title}
|
{member.title}
|
||||||
</Link>
|
</Link>
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
@@ -259,7 +320,15 @@ export default function StructureGeographyPanel({
|
|||||||
{member.validation_status === 'validated'
|
{member.validation_status === 'validated'
|
||||||
? 'validada no cadastro'
|
? 'validada no cadastro'
|
||||||
: 'documental de planeamento; validação pendente'}{' '}
|
: 'documental de planeamento; validação pendente'}{' '}
|
||||||
· Fonte: {member.source_reference}
|
{publicReference(member.source_reference) && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
· Fonte:{' '}
|
||||||
|
<PublicReference
|
||||||
|
value={member.source_reference}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
<LocationList locations={member.locations} />
|
<LocationList locations={member.locations} />
|
||||||
{!member.locations.length && (
|
{!member.locations.length && (
|
||||||
@@ -282,7 +351,13 @@ export default function StructureGeographyPanel({
|
|||||||
{item.validation_status === 'validated'
|
{item.validation_status === 'validated'
|
||||||
? 'validada no cadastro'
|
? 'validada no cadastro'
|
||||||
: 'relação documental de planeamento; validação pendente'}{' '}
|
: 'relação documental de planeamento; validação pendente'}{' '}
|
||||||
· Fonte: {item.source_reference}
|
{publicReference(item.source_reference) && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
· Fonte:{' '}
|
||||||
|
<PublicReference value={item.source_reference} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
{cluster && (
|
{cluster && (
|
||||||
@@ -292,7 +367,7 @@ export default function StructureGeographyPanel({
|
|||||||
</h3>
|
</h3>
|
||||||
{geography.chains?.map((chain) => (
|
{geography.chains?.map((chain) => (
|
||||||
<p key={chain.id}>
|
<p key={chain.id}>
|
||||||
{chain.code} · {chain.name} ·{' '}
|
{chain.name} ·{' '}
|
||||||
{(
|
{(
|
||||||
{
|
{
|
||||||
input: 'Insumos',
|
input: 'Insumos',
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
import { publicReference, uniquePresentation } from '@/lib/public-presentation';
|
||||||
|
import PublicReference from './public-reference';
|
||||||
|
import { usePage } from '@inertiajs/react';
|
||||||
import EvidenceDetails from './evidence-details';
|
import EvidenceDetails from './evidence-details';
|
||||||
|
|
||||||
export type TerritorialSourceEvidence = {
|
export type TerritorialSourceEvidence = {
|
||||||
@@ -15,28 +18,68 @@ export default function TerritorialSources({
|
|||||||
}: {
|
}: {
|
||||||
sources?: TerritorialSourceEvidence[];
|
sources?: TerritorialSourceEvidence[];
|
||||||
}) {
|
}) {
|
||||||
if (!sources?.length) return null;
|
const management = usePage().url.startsWith('/management/');
|
||||||
|
const visible = uniquePresentation(
|
||||||
|
(sources ?? []).filter(
|
||||||
|
(row) =>
|
||||||
|
management ||
|
||||||
|
publicReference(row.source_reference) ||
|
||||||
|
publicReference(row.source_quote) ||
|
||||||
|
publicReference(row.supports),
|
||||||
|
),
|
||||||
|
(row) =>
|
||||||
|
JSON.stringify([
|
||||||
|
row.association,
|
||||||
|
row.role,
|
||||||
|
management
|
||||||
|
? row.source_reference
|
||||||
|
: publicReference(row.source_reference),
|
||||||
|
publicReference(row.source_quote),
|
||||||
|
publicReference(row.supports),
|
||||||
|
...(management ? [row.traceability] : []),
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
if (!visible.length) return null;
|
||||||
return (
|
return (
|
||||||
<EvidenceDetails title="Fontes das relações territoriais">
|
<EvidenceDetails title="Fontes das relações territoriais">
|
||||||
{sources.map((source, i) => (
|
{visible.map((source, i) => (
|
||||||
<article className="border-t pt-3" key={i}>
|
<article className="border-t pt-3" key={i}>
|
||||||
<h3 className="font-semibold">
|
<h3 className="font-semibold">
|
||||||
{source.role} — {source.association}
|
{source.role} — {source.association}
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
{(management ||
|
||||||
Fonte:{' '}
|
publicReference(source.source_reference)) && (
|
||||||
{source.source_reference ??
|
<p>
|
||||||
'ligação ao exemplar por recuperar'}
|
Fonte:{' '}
|
||||||
</p>
|
{management ? (
|
||||||
<p>{source.source_quote ?? source.supports}</p>
|
source.source_reference
|
||||||
|
) : (
|
||||||
|
<PublicReference
|
||||||
|
value={source.source_reference}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
{(publicReference(source.source_quote) ||
|
||||||
|
publicReference(source.supports)) && (
|
||||||
|
<p>
|
||||||
|
{publicReference(source.source_quote) ||
|
||||||
|
publicReference(source.supports)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
<EvidenceDetails title="Proveniência e versão da referência">
|
<EvidenceDetails title="Proveniência e versão da referência">
|
||||||
<p>
|
<p>
|
||||||
{source.official_source_accepted
|
{source.official_source_accepted
|
||||||
? 'Fonte oficial identificada.'
|
? 'Fonte oficial identificada.'
|
||||||
: 'Ligação ao exemplar oficial por recuperar.'}
|
: 'Ligação ao exemplar oficial por recuperar.'}
|
||||||
</p>
|
</p>
|
||||||
<p>{source.traceability}</p>
|
{(management ||
|
||||||
{source.existing_validation && (
|
publicReference(source.traceability)) && (
|
||||||
|
<p>{source.traceability}</p>
|
||||||
|
)}
|
||||||
|
{(management
|
||||||
|
? source.existing_validation
|
||||||
|
: publicReference(source.existing_validation)) && (
|
||||||
<p>{source.existing_validation}</p>
|
<p>{source.existing_validation}</p>
|
||||||
)}
|
)}
|
||||||
</EvidenceDetails>
|
</EvidenceDetails>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import PortalCorrections from '@/components/portal-corrections';
|
||||||
import SearchFeedback from '@/components/search-feedback';
|
import SearchFeedback from '@/components/search-feedback';
|
||||||
import { searchTerritoryHref } from '@/lib/search-territory';
|
import { searchTerritoryHref } from '@/lib/search-territory';
|
||||||
import { Link, usePage } from '@inertiajs/react';
|
import { Link, usePage } from '@inertiajs/react';
|
||||||
@@ -170,6 +171,7 @@ function PortalNavigationContent({ children }: { children: ReactNode }) {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<SearchFeedback />
|
<SearchFeedback />
|
||||||
|
{!printable && <PortalCorrections />}
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
<aside
|
<aside
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ const catalogueKeys: Record<string, string[]> = {
|
|||||||
'legal_regime',
|
'legal_regime',
|
||||||
'development_status',
|
'development_status',
|
||||||
'availability_status',
|
'availability_status',
|
||||||
|
'activity',
|
||||||
'province',
|
'province',
|
||||||
],
|
],
|
||||||
'/oportunidades': [
|
'/oportunidades': [
|
||||||
@@ -49,6 +50,34 @@ const catalogueKeys: Record<string, string[]> = {
|
|||||||
'subsector_id',
|
'subsector_id',
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
/** Remove actual filter keys, including indexed arrays and dependent selections. */
|
||||||
|
export function catalogueFilterHref(
|
||||||
|
pageUrl: string,
|
||||||
|
keys: string[],
|
||||||
|
remove?: string,
|
||||||
|
): string {
|
||||||
|
const url = new URL(pageUrl, 'https://portal.invalid');
|
||||||
|
const dependencies: Record<string, string[]> = {
|
||||||
|
province_id: ['district_id', 'admin_post_id', 'locality_id'],
|
||||||
|
district_id: ['admin_post_id', 'locality_id'],
|
||||||
|
admin_post_id: ['locality_id'],
|
||||||
|
sector: ['subsector_id', 'chain_id'],
|
||||||
|
};
|
||||||
|
const selected = new Set(
|
||||||
|
remove ? [remove, ...(dependencies[remove] ?? [])] : keys,
|
||||||
|
);
|
||||||
|
const presentKeys = Array.from(url.searchParams.keys());
|
||||||
|
for (const key of presentKeys)
|
||||||
|
if (
|
||||||
|
selected.has(key) ||
|
||||||
|
[...selected].some((base) =>
|
||||||
|
key.startsWith(base.replace(/\[\]$/, '') + '['),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
url.searchParams.delete(key);
|
||||||
|
url.searchParams.delete('page');
|
||||||
|
return url.pathname + url.search;
|
||||||
|
}
|
||||||
function family(path: string): string {
|
function family(path: string): string {
|
||||||
if (path.startsWith('/management/portfolio')) return '/carteira';
|
if (path.startsWith('/management/portfolio')) return '/carteira';
|
||||||
if (path.startsWith('/management/investment/zones')) return '/zonas';
|
if (path.startsWith('/management/investment/zones')) return '/zonas';
|
||||||
|
|||||||
@@ -0,0 +1,165 @@
|
|||||||
|
/** Presentation routing for existing diagnostics only; never validates or edits values. */
|
||||||
|
export const normaliseFieldLabel = (value: string) =>
|
||||||
|
value
|
||||||
|
.normalize('NFD')
|
||||||
|
.replace(/[\u0300-\u036f]/g, '')
|
||||||
|
.toLowerCase()
|
||||||
|
.replace(/[^a-z0-9]+/g, ' ')
|
||||||
|
.trim();
|
||||||
|
const routes: [RegExp, string[]][] = [
|
||||||
|
[
|
||||||
|
/unidades.*produto|quantidade.*produto/,
|
||||||
|
['Unidades por mes', 'Unidades mensais base'],
|
||||||
|
],
|
||||||
|
[/preco.*produto|preco por unidade/, ['Preço por unidade']],
|
||||||
|
[/custo variavel.*produto/, ['Custo variável por unidade']],
|
||||||
|
[/prazo.*dias/, ['Prazo (dias)', 'Prazo contratual (dias)']],
|
||||||
|
[
|
||||||
|
/preencha.*montantes.*relatorio/,
|
||||||
|
[
|
||||||
|
'Activos fixos anteriores (valor líquido)',
|
||||||
|
'Outros activos anteriores',
|
||||||
|
'Capital e resultados anteriores',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/capital discriminado|capital proprio.*coincide|capital do proprietario/,
|
||||||
|
[
|
||||||
|
'Capital próprio',
|
||||||
|
'Capital do proprietário',
|
||||||
|
'Capital do investidor',
|
||||||
|
'Capital adicional angariado',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/saldos de abertura|capital e resultados anteriores/,
|
||||||
|
[
|
||||||
|
'Capital e resultados anteriores',
|
||||||
|
'Saldo de caixa inicial',
|
||||||
|
'Activos fixos anteriores (valor líquido)',
|
||||||
|
'Outros activos anteriores',
|
||||||
|
'Existências iniciais',
|
||||||
|
'Valores a receber',
|
||||||
|
'Valores a pagar',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/depreciacao.*excede|base depreciavel/,
|
||||||
|
[
|
||||||
|
'Base depreciável contabilística',
|
||||||
|
'Vida útil (meses)',
|
||||||
|
'Aquisição de activos',
|
||||||
|
'Activos fixos anteriores (valor líquido)',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/reembolso.*excede|divida declarada/,
|
||||||
|
['Reembolso de capital', 'Empréstimo recebido', 'Suprimentos'],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/existencias iniciais.*produto/,
|
||||||
|
['Existências iniciais', 'Existências iniciais do produto'],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/stock insuficiente|existencias insuficientes/,
|
||||||
|
[
|
||||||
|
'Existências iniciais',
|
||||||
|
'Encomenda',
|
||||||
|
'Prazo de recepcao',
|
||||||
|
'Unidades por mes',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/aquisicoes.*necessidades|arranque.*aquisicao/,
|
||||||
|
[
|
||||||
|
'Aquisição de activos',
|
||||||
|
'Caixa requerida',
|
||||||
|
'Outros activos correntes requeridos',
|
||||||
|
'Activos de longo prazo requeridos',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[/ano inicial/, ['Ano inicial']],
|
||||||
|
[/fonte.*pressuposto fiscal/, ['Fonte ou pressuposto fiscal']],
|
||||||
|
[
|
||||||
|
/imposto estimado.*pagamento fiscal/,
|
||||||
|
['Imposto estimado', 'Pagamento fiscal'],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/recebimentos manuais|natureza.*cobrancas/,
|
||||||
|
['Natureza dos recebimentos manuais', 'Recebimentos mensais'],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/mapa de pessoal|folha salarial/,
|
||||||
|
[
|
||||||
|
'Quantidade',
|
||||||
|
'Remuneração mensal',
|
||||||
|
'Meses activos',
|
||||||
|
'Custo mensal de pessoal',
|
||||||
|
'Moeda do custo',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/percentagem.*recebiveis|cobrancas.*recebiveis/,
|
||||||
|
[
|
||||||
|
'Percentagem do saldo inicial',
|
||||||
|
'Percentagem de cobrança dos valores a receber de abertura',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[/recuperacao.*mes|mes unico/, ['Mês']],
|
||||||
|
[/moeda.*pessoal|moeda da folha/, ['Moeda do custo', 'Moeda do plano']],
|
||||||
|
[
|
||||||
|
/ficheiro|snapshot|importa/,
|
||||||
|
['Importar plano financeiro InvestMoz (.json, até 60 KB)'],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
export function correctionFieldHints(message: string): string[] {
|
||||||
|
const normal = normaliseFieldLabel(message);
|
||||||
|
const quoted = [...message.matchAll(/«([^»]+)»/g)].map((m) => m[1]);
|
||||||
|
const mapped = routes
|
||||||
|
.filter(([pattern]) => pattern.test(normal))
|
||||||
|
.flatMap(([, labels]) => labels);
|
||||||
|
const prefix = message.split(':')[0].split('/').at(-1)?.trim() ?? '';
|
||||||
|
return [
|
||||||
|
...new Set([
|
||||||
|
...quoted,
|
||||||
|
...mapped,
|
||||||
|
...(prefix.length >= 4 ? [prefix] : []),
|
||||||
|
]),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
export function fieldLabelMatches(label: string, hint: string): boolean {
|
||||||
|
const a = normaliseFieldLabel(label),
|
||||||
|
b = normaliseFieldLabel(hint);
|
||||||
|
return (
|
||||||
|
!!a &&
|
||||||
|
!!b &&
|
||||||
|
(a === b ||
|
||||||
|
(b.length >= 7 && (a.startsWith(b + ' ') || b.startsWith(a + ' '))))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function revealCorrectionTarget(target: HTMLElement): void {
|
||||||
|
const control = target.matches(
|
||||||
|
'input,select,textarea,button,[contenteditable="true"]',
|
||||||
|
)
|
||||||
|
? target
|
||||||
|
: (target.querySelector<HTMLElement>(
|
||||||
|
'input:not([type="hidden"]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),[contenteditable="true"]',
|
||||||
|
) ?? target);
|
||||||
|
for (
|
||||||
|
let node: HTMLElement | null = control.parentElement;
|
||||||
|
node;
|
||||||
|
node = node.parentElement
|
||||||
|
)
|
||||||
|
if (node instanceof HTMLDetailsElement) node.open = true;
|
||||||
|
control.scrollIntoView({ block: 'center', behavior: 'auto' });
|
||||||
|
control.focus({ preventScroll: true });
|
||||||
|
}
|
||||||
|
export function focusCorrectionId(id: string): void {
|
||||||
|
let attempts = 0;
|
||||||
|
const locate = () => {
|
||||||
|
const target = document.getElementById(id);
|
||||||
|
if (target) revealCorrectionTarget(target);
|
||||||
|
else if (++attempts < 10) requestAnimationFrame(locate);
|
||||||
|
};
|
||||||
|
requestAnimationFrame(locate);
|
||||||
|
}
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
/** Public presentation only. Originals, source records and management fields stay intact. */
|
||||||
|
export function publicReference(
|
||||||
|
value: string | null | undefined,
|
||||||
|
): string | null {
|
||||||
|
const text = value?.trim();
|
||||||
|
if (!text) return null;
|
||||||
|
if (/^(?:javascript|data|vbscript|file):/i.test(text)) return null;
|
||||||
|
if (/^https?:\/\//i.test(text)) {
|
||||||
|
try {
|
||||||
|
const u = new URL(text);
|
||||||
|
if (
|
||||||
|
u.username ||
|
||||||
|
u.password ||
|
||||||
|
/^(?:localhost|127\.|10\.|192\.168\.|172\.(?:1[6-9]|2\d|3[01])\.|\[?::1)/i.test(
|
||||||
|
u.hostname,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return null;
|
||||||
|
} catch {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
/(?:\/(?:outputs|resources\/js|node_modules|tests)\/|\.(?:tsx?|jsx?|sql|py|cjs|mjs)(?:[?#]|$))/i.test(
|
||||||
|
new URL(text).pathname,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return null;
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
/(?:[A-Z]:[\\/]|\\\\|file:\/\/|(?:^|[\s/])(?:outputs|resources|storage|vendor|node_modules|docs|tests|app)[\\/]|\b(?:localhost|127\.0\.0\.\d|0\.0\.0\.0)\b|\.(?:tsx?|jsx?|py|php|sql|md|json|log|cjs|mjs)(?:\b|$)|\b(?:MASTER|AUD|QA|REQ|ME|PN)[-_ ](?:[A-Z]*\d|[A-Z0-9]{6,})|\bgit\s+(?:commit|branch|diff)\b)/i.test(
|
||||||
|
text,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return null;
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
export function uniquePresentation<T>(
|
||||||
|
rows: readonly T[],
|
||||||
|
key: (row: T) => string,
|
||||||
|
): T[] {
|
||||||
|
const seen = new Set<string>();
|
||||||
|
return rows.filter((row) => {
|
||||||
|
const id = key(row);
|
||||||
|
if (seen.has(id)) return false;
|
||||||
|
seen.add(id);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export function publicLocation(
|
||||||
|
path: { name: string; location_type?: string }[] | undefined,
|
||||||
|
fallback: (string | null | undefined)[] = [],
|
||||||
|
): string {
|
||||||
|
const names = (path?.length ? path.map((p) => p.name) : fallback).filter(
|
||||||
|
(v): v is string => !!v?.trim(),
|
||||||
|
);
|
||||||
|
return (
|
||||||
|
names.map((v) => v.trim()).join(' · ') || 'Localização por confirmar'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function publicSourceHref(
|
||||||
|
value: string | null | undefined,
|
||||||
|
): string | undefined {
|
||||||
|
const text = publicReference(value);
|
||||||
|
return text && /^https?:\/\//i.test(text) ? text : undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Replace known editorial cross-reference codes with their published names. */
|
||||||
|
export function publicPortfolioText(
|
||||||
|
value: string,
|
||||||
|
names: Record<string, string>,
|
||||||
|
): string {
|
||||||
|
const codes = Object.keys(names)
|
||||||
|
.filter(Boolean)
|
||||||
|
.sort((a, b) => b.length - a.length);
|
||||||
|
if (!codes.length) return value;
|
||||||
|
const escaped = codes.map((code) =>
|
||||||
|
code.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'),
|
||||||
|
);
|
||||||
|
return value.replace(
|
||||||
|
new RegExp(
|
||||||
|
`(?<![\\p{L}\\p{N}_])(${escaped.join('|')})(?![\\p{L}\\p{N}_])`,
|
||||||
|
'gu',
|
||||||
|
),
|
||||||
|
(code) => names[code],
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -272,7 +272,7 @@ export default function BusinessMarketplace({
|
|||||||
zone: 'Regime de zona',
|
zone: 'Regime de zona',
|
||||||
sector: 'Setor associado',
|
sector: 'Setor associado',
|
||||||
activity:
|
activity:
|
||||||
'Subsector ou atividade',
|
'Subsector ou actividade',
|
||||||
} as Record<string, string>
|
} as Record<string, string>
|
||||||
)[id] ?? id,
|
)[id] ?? id,
|
||||||
})),
|
})),
|
||||||
@@ -299,7 +299,7 @@ export default function BusinessMarketplace({
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'subsector_id',
|
'subsector_id',
|
||||||
'Subsector ou atividade',
|
'Subsector ou actividade',
|
||||||
classificationOptions.targets
|
classificationOptions.targets
|
||||||
.activity ?? [],
|
.activity ?? [],
|
||||||
],
|
],
|
||||||
@@ -361,7 +361,10 @@ export default function BusinessMarketplace({
|
|||||||
)}
|
)}
|
||||||
<ul className="grid gap-4 md:grid-cols-2">
|
<ul className="grid gap-4 md:grid-cols-2">
|
||||||
{results.data.map((record) => (
|
{results.data.map((record) => (
|
||||||
<li className={card} key={record.id}>
|
<li
|
||||||
|
className={`${card} flex min-w-0 flex-col gap-3 [overflow-wrap:anywhere]`}
|
||||||
|
key={record.id}
|
||||||
|
>
|
||||||
<p>
|
<p>
|
||||||
{businessModalities[record.modality] ??
|
{businessModalities[record.modality] ??
|
||||||
'Modalidade por indicar'}
|
'Modalidade por indicar'}
|
||||||
@@ -400,6 +403,17 @@ export default function BusinessMarketplace({
|
|||||||
{record.objective}
|
{record.objective}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
<nav
|
||||||
|
aria-label={`Acções de ${record.title}`}
|
||||||
|
className="mt-auto flex flex-wrap gap-3"
|
||||||
|
>
|
||||||
|
<Link
|
||||||
|
className="underline"
|
||||||
|
href={`/negocios/${record.slug}${returnQuery ? `?${returnQuery}` : ''}`}
|
||||||
|
>
|
||||||
|
Consultar ficha
|
||||||
|
</Link>
|
||||||
|
</nav>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -1175,7 +1175,6 @@ export default function Catalogue({
|
|||||||
className="catalogue-territorial-link"
|
className="catalogue-territorial-link"
|
||||||
>
|
>
|
||||||
<span className="text-sm">
|
<span className="text-sm">
|
||||||
{d.content.code} ·{' '}
|
|
||||||
{d.cluster_id
|
{d.cluster_id
|
||||||
? 'Cluster'
|
? 'Cluster'
|
||||||
: d.corridor_id
|
: d.corridor_id
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import PublicReference from '@/components/public-reference';
|
||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
import { ProactiveSummary } from '@/components/proactive-investment';
|
import { ProactiveSummary } from '@/components/proactive-investment';
|
||||||
import DemographicContext from '@/components/demographic-context';
|
import DemographicContext from '@/components/demographic-context';
|
||||||
import EducationalGuides from '@/components/educational-guides';
|
import EducationalGuides from '@/components/educational-guides';
|
||||||
@@ -186,9 +188,13 @@ export default function Detail({
|
|||||||
/>
|
/>
|
||||||
<DemographicContext
|
<DemographicContext
|
||||||
key={c.primary_territory_path?.at(-1)?.id}
|
key={c.primary_territory_path?.at(-1)?.id}
|
||||||
territoryId={c.primary_territory_path
|
territoryId={
|
||||||
?.filter((t) => ['province', 'district'].includes(t.location_type))
|
c.primary_territory_path
|
||||||
.at(-1)?.id}
|
?.filter((t) =>
|
||||||
|
['province', 'district'].includes(t.location_type),
|
||||||
|
)
|
||||||
|
.at(-1)?.id
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
{c.primary_territory_path &&
|
{c.primary_territory_path &&
|
||||||
c.primary_territory_path.length > 0 && (
|
c.primary_territory_path.length > 0 && (
|
||||||
@@ -282,7 +288,15 @@ export default function Detail({
|
|||||||
{z.association_type === 'official'
|
{z.association_type === 'official'
|
||||||
? 'Associação documental validada'
|
? 'Associação documental validada'
|
||||||
: 'Relação ' + z.association_type}{' '}
|
: 'Relação ' + z.association_type}{' '}
|
||||||
· Fonte: {z.source_reference}
|
{publicReference(z.source_reference) && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
· Fonte:{' '}
|
||||||
|
<PublicReference
|
||||||
|
value={z.source_reference}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
<p>
|
<p>
|
||||||
@@ -335,7 +349,7 @@ export default function Detail({
|
|||||||
['Modelo de negócio', c.profile.business_model],
|
['Modelo de negócio', c.profile.business_model],
|
||||||
['Requisitos', c.profile.requirements],
|
['Requisitos', c.profile.requirements],
|
||||||
['Riscos', c.profile.risks],
|
['Riscos', c.profile.risks],
|
||||||
['Fonte', c.profile.source_reference],
|
['Fonte', publicReference(c.profile.source_reference)],
|
||||||
].map(([label, text]) => (
|
].map(([label, text]) => (
|
||||||
<div key={label}>
|
<div key={label}>
|
||||||
<h3 className="font-bold">{label}</h3>
|
<h3 className="font-bold">{label}</h3>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { api, button, card } from './shared';
|
import { api, button, card } from './shared';
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ export default function ZoneMap({ id }: { id: string }) {
|
|||||||
<g key={f.id}>
|
<g key={f.id}>
|
||||||
<title>
|
<title>
|
||||||
{f.properties.purpose} ·{' '}
|
{f.properties.purpose} ·{' '}
|
||||||
{f.properties.source}
|
{publicReference(f.properties.source)}
|
||||||
</title>
|
</title>
|
||||||
{rings(f.geometry.coordinates).map((ring, i) =>
|
{rings(f.geometry.coordinates).map((ring, i) =>
|
||||||
ring.length === 1 ? (
|
ring.length === 1 ? (
|
||||||
@@ -113,7 +114,7 @@ export default function ZoneMap({ id }: { id: string }) {
|
|||||||
{features.map((f) => (
|
{features.map((f) => (
|
||||||
<li key={f.id}>
|
<li key={f.id}>
|
||||||
{f.properties.purpose} · Fonte:{' '}
|
{f.properties.purpose} · Fonte:{' '}
|
||||||
{f.properties.source} · Data:{' '}
|
{publicReference(f.properties.source)} · Data:{' '}
|
||||||
{f.properties.observed_at}
|
{f.properties.observed_at}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
import PublicSourceList from '@/components/public-source-list';
|
||||||
|
import PublicReference from '@/components/public-reference';
|
||||||
|
import { publicReference } from '@/lib/public-presentation';
|
||||||
import ParkDetailsEditor, {
|
import ParkDetailsEditor, {
|
||||||
ParkDetailsPublic,
|
ParkDetailsPublic,
|
||||||
emptyParkDetails,
|
emptyParkDetails,
|
||||||
@@ -585,7 +588,7 @@ function Editor({
|
|||||||
)}
|
)}
|
||||||
{!management && <PartnershipSourceLinks type="zone" id={z.id} />}
|
{!management && <PartnershipSourceLinks type="zone" id={z.id} />}
|
||||||
<p>
|
<p>
|
||||||
{z.code} ·{' '}
|
{management && <>{z.code} · </>}
|
||||||
{z.category === 'industrial_park'
|
{z.category === 'industrial_park'
|
||||||
? 'Parque industrial'
|
? 'Parque industrial'
|
||||||
: z.category.toUpperCase()}{' '}
|
: z.category.toUpperCase()}{' '}
|
||||||
@@ -1792,8 +1795,15 @@ function Editor({
|
|||||||
{area.value ?? 'Não informado'}{' '}
|
{area.value ?? 'Não informado'}{' '}
|
||||||
{area.value == null ? '' : area.unit} ·{' '}
|
{area.value == null ? '' : area.unit} ·{' '}
|
||||||
{label(area.status)} · Fonte:{' '}
|
{label(area.status)} · Fonte:{' '}
|
||||||
{area.source_reference ||
|
{publicReference(
|
||||||
'Não informada'}{' '}
|
area.source_reference,
|
||||||
|
) ? (
|
||||||
|
<PublicReference
|
||||||
|
value={area.source_reference}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
'Referência pública não disponível'
|
||||||
|
)}{' '}
|
||||||
·{' '}
|
·{' '}
|
||||||
{area.source_date ??
|
{area.source_date ??
|
||||||
'Data não informada'}
|
'Data não informada'}
|
||||||
@@ -1802,37 +1812,8 @@ function Editor({
|
|||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
{zoneExtensionsAvailable && !!z.source_evidence?.length && (
|
{zoneExtensionsAvailable && (
|
||||||
<section className={card}>
|
<PublicSourceList sources={z.source_evidence} />
|
||||||
<h2 className="font-bold">
|
|
||||||
Fontes e o que comprovam
|
|
||||||
</h2>
|
|
||||||
<ul>
|
|
||||||
{z.source_evidence.map((evidence) => (
|
|
||||||
<li key={evidence.url}>
|
|
||||||
<a
|
|
||||||
className="underline"
|
|
||||||
href={evidence.url}
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
>
|
|
||||||
{evidence.title}
|
|
||||||
</a>
|
|
||||||
{evidence.source_date
|
|
||||||
? ` · ${evidence.source_date}`
|
|
||||||
: ' · data não indicada'}{' '}
|
|
||||||
· {evidence.source_type} ·{' '}
|
|
||||||
{evidence.supports}
|
|
||||||
</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
<p>
|
|
||||||
Esta informação descreve o que a fonte declara;
|
|
||||||
não confirma vigência legal, benefícios, estado
|
|
||||||
operacional ou disponibilidade para
|
|
||||||
investimento.
|
|
||||||
</p>
|
|
||||||
</section>
|
|
||||||
)}
|
)}
|
||||||
{z.historical_territory?.name && (
|
{z.historical_territory?.name && (
|
||||||
<p>
|
<p>
|
||||||
@@ -1868,16 +1849,26 @@ function Editor({
|
|||||||
{label(activity.focus)} ·{' '}
|
{label(activity.focus)} ·{' '}
|
||||||
{activity.source_date ??
|
{activity.source_date ??
|
||||||
'Data não informada'}
|
'Data não informada'}
|
||||||
{activity.source_reference
|
{publicReference(
|
||||||
? ` · ${activity.source_reference}`
|
activity.source_reference,
|
||||||
: ''}
|
) && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
·{' '}
|
||||||
|
<PublicReference
|
||||||
|
value={
|
||||||
|
activity.source_reference
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
) : null}
|
) : null}
|
||||||
{!z.activities?.length && (
|
{!z.activities?.length && (
|
||||||
<p>Atividades: não informadas.</p>
|
<p>Actividades: não informadas.</p>
|
||||||
)}
|
)}
|
||||||
{!z.resources?.length && (
|
{!z.resources?.length && (
|
||||||
<p>
|
<p>
|
||||||
@@ -1908,9 +1899,19 @@ function Editor({
|
|||||||
·{' '}
|
·{' '}
|
||||||
{resource.source_date ??
|
{resource.source_date ??
|
||||||
'Data não informada'}
|
'Data não informada'}
|
||||||
{resource.source_reference
|
{publicReference(
|
||||||
? ` · ${resource.source_reference}`
|
resource.source_reference,
|
||||||
: ''}
|
) && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
·{' '}
|
||||||
|
<PublicReference
|
||||||
|
value={
|
||||||
|
resource.source_reference
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
</section>
|
</section>
|
||||||
@@ -2217,7 +2218,7 @@ function DetailFields({
|
|||||||
)}
|
)}
|
||||||
{kind === 'activities' && (
|
{kind === 'activities' && (
|
||||||
<label className="grid gap-1">
|
<label className="grid gap-1">
|
||||||
Atividade económica documentada
|
Actividade económica documentada
|
||||||
<select
|
<select
|
||||||
className={input}
|
className={input}
|
||||||
value={detail.economic_activity_id ?? ''}
|
value={detail.economic_activity_id ?? ''}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import PublicSourceList from '@/components/public-source-list';
|
||||||
|
import { publicLocation } from '@/lib/public-presentation';
|
||||||
import InvestmentZoneInstallation, {
|
import InvestmentZoneInstallation, {
|
||||||
type ParkInstallationPlan,
|
type ParkInstallationPlan,
|
||||||
} from '@/components/investment-zone-installation';
|
} from '@/components/investment-zone-installation';
|
||||||
@@ -68,6 +70,7 @@ export default function Zones({
|
|||||||
detailsInstallation,
|
detailsInstallation,
|
||||||
records,
|
records,
|
||||||
filters,
|
filters,
|
||||||
|
groupAvailability = {},
|
||||||
management,
|
management,
|
||||||
zoneExtensionsAvailable = false,
|
zoneExtensionsAvailable = false,
|
||||||
territorySelection = [],
|
territorySelection = [],
|
||||||
@@ -94,6 +97,9 @@ export default function Zones({
|
|||||||
activity?: string;
|
activity?: string;
|
||||||
};
|
};
|
||||||
management: boolean;
|
management: boolean;
|
||||||
|
groupAvailability?: Partial<
|
||||||
|
Record<'zee' | 'zfi' | 'industrial_park', number>
|
||||||
|
>;
|
||||||
zoneExtensionsAvailable?: boolean;
|
zoneExtensionsAvailable?: boolean;
|
||||||
territorySelection?: TerritoryOption[];
|
territorySelection?: TerritoryOption[];
|
||||||
}) {
|
}) {
|
||||||
@@ -282,6 +288,14 @@ export default function Zones({
|
|||||||
maxLength={120}
|
maxLength={120}
|
||||||
/>
|
/>
|
||||||
</Field>
|
</Field>
|
||||||
|
{!records.total && (
|
||||||
|
<p role="status" className="md:col-span-3">
|
||||||
|
Não há resultados publicados para este grupo e os
|
||||||
|
filtros seleccionados. Pode alterar o grupo ou remover
|
||||||
|
filtros; isto não demonstra ausência de actividade no
|
||||||
|
território.
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
<Field label="Grupo">
|
<Field label="Grupo">
|
||||||
<select
|
<select
|
||||||
className={input}
|
className={input}
|
||||||
@@ -289,10 +303,20 @@ export default function Zones({
|
|||||||
defaultValue={filters.category ?? ''}
|
defaultValue={filters.category ?? ''}
|
||||||
>
|
>
|
||||||
<option value="">Todas</option>
|
<option value="">Todas</option>
|
||||||
<option value="zee">ZEE</option>
|
<option value="zee">
|
||||||
<option value="zfi">ZFI</option>
|
ZEE
|
||||||
|
{groupAvailability.zee != null &&
|
||||||
|
` — ${groupAvailability.zee} registos`}
|
||||||
|
</option>
|
||||||
|
<option value="zfi">
|
||||||
|
ZFI
|
||||||
|
{groupAvailability.zfi != null &&
|
||||||
|
` — ${groupAvailability.zfi} registos`}
|
||||||
|
</option>
|
||||||
<option value="industrial_park">
|
<option value="industrial_park">
|
||||||
Parque industrial
|
Parque industrial
|
||||||
|
{groupAvailability.industrial_park != null &&
|
||||||
|
` — ${groupAvailability.industrial_park} registos`}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</Field>
|
</Field>
|
||||||
@@ -460,36 +484,42 @@ export default function Zones({
|
|||||||
{zone.name}
|
{zone.name}
|
||||||
</Link>
|
</Link>
|
||||||
</h2>
|
</h2>
|
||||||
<Link
|
<nav
|
||||||
className="underline"
|
aria-label={`Acções de ${zone.name}`}
|
||||||
href={catalogueDetailHref(
|
className="flex flex-wrap items-center gap-3"
|
||||||
`${management ? '/management/investment/zones' : '/zonas'}/${zone.id}`,
|
|
||||||
exportParams.toString(),
|
|
||||||
pageUrl,
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
Consultar ficha
|
|
||||||
</Link>
|
|
||||||
{!management && (
|
|
||||||
<Link
|
<Link
|
||||||
className="ml-4 underline"
|
className="underline"
|
||||||
href={searchTerritoryHref(
|
href={catalogueDetailHref(
|
||||||
`/oportunidades?${new URLSearchParams({ [zone.category === 'zee' ? 'zee_id' : zone.category === 'zfi' ? 'zfi_id' : 'park_id']: zone.id })}`,
|
`${management ? '/management/investment/zones' : '/zonas'}/${zone.id}`,
|
||||||
|
exportParams.toString(),
|
||||||
pageUrl,
|
pageUrl,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
Ver oportunidades associadas
|
Consultar ficha
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
{!management && (
|
||||||
|
<Link
|
||||||
|
className="underline"
|
||||||
|
href={searchTerritoryHref(
|
||||||
|
`/oportunidades?${new URLSearchParams({ [zone.category === 'zee' ? 'zee_id' : zone.category === 'zfi' ? 'zfi_id' : 'park_id']: zone.id })}`,
|
||||||
|
pageUrl,
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
Ver oportunidades associadas
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</nav>
|
||||||
<p>
|
<p>
|
||||||
{zone.code} ·{' '}
|
{management && <>{zone.code} · </>}
|
||||||
{zone.category === 'industrial_park'
|
{zone.category === 'industrial_park'
|
||||||
? 'Parque industrial'
|
? 'Parque industrial'
|
||||||
: zone.category.toUpperCase()}{' '}
|
: zone.category.toUpperCase()}{' '}
|
||||||
·{' '}
|
·{' '}
|
||||||
{[zone.district, zone.province]
|
{publicLocation(zone.territory_path, [
|
||||||
.filter(Boolean)
|
zone.province,
|
||||||
.join(', ') || 'Localização por confirmar'}
|
zone.district,
|
||||||
|
])}
|
||||||
</p>
|
</p>
|
||||||
{zone.legal_regime && (
|
{zone.legal_regime && (
|
||||||
<p>
|
<p>
|
||||||
@@ -540,35 +570,14 @@ export default function Zones({
|
|||||||
.join(' · ')}
|
.join(' · ')}
|
||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
{!!zone.source_evidence?.length && (
|
<PublicSourceList sources={zone.source_evidence} />
|
||||||
<p>
|
|
||||||
Fonte:{' '}
|
|
||||||
{zone.source_evidence.map((source, index) => (
|
|
||||||
<span key={source.url}>
|
|
||||||
{index > 0 ? ' · ' : ''}
|
|
||||||
<a
|
|
||||||
className="underline"
|
|
||||||
href={source.url}
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
>
|
|
||||||
{source.title}
|
|
||||||
</a>
|
|
||||||
{source.source_date
|
|
||||||
? ` (${source.source_date})`
|
|
||||||
: ' (data da fonte não informada)'}{' '}
|
|
||||||
— {source.supports}
|
|
||||||
</span>
|
|
||||||
))}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
{zone.category === 'industrial_park' && (
|
{zone.category === 'industrial_park' && (
|
||||||
<p>
|
<p>
|
||||||
{zone.resources?.length
|
{zone.resources?.length
|
||||||
? `${zone.resources.length} recursos descritos; consulte o âmbito e a fonte na ficha.`
|
? `${zone.resources.length} recursos descritos; consulte o âmbito e a fonte na ficha.`
|
||||||
: 'Infraestruturas, serviços, acessos e capacidades: não informados.'}{' '}
|
: 'Infraestruturas, serviços, acessos e capacidades: não informados.'}{' '}
|
||||||
{!zone.activities?.length &&
|
{!zone.activities?.length &&
|
||||||
'Atividades: não informadas.'}
|
'Actividades: não informadas.'}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<p>{zone.description}</p>
|
<p>{zone.description}</p>
|
||||||
|
|||||||
@@ -1,7 +1,15 @@
|
|||||||
import { Head, Link, router } from '@inertiajs/react';
|
import { Head, Link, router } from '@inertiajs/react';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { PortalMenu } from '@/components/portal-menu';
|
import { PortalMenu } from '@/components/portal-menu';
|
||||||
import { fiscalForms, fiscalFormFields, fiscalPreparationIssues, newFiscalPreparation, readFiscalPreparation, type FiscalFormKind, type FiscalPreparation } from '@/lib/fiscal-form-preparation';
|
import {
|
||||||
|
fiscalForms,
|
||||||
|
fiscalFormFields,
|
||||||
|
fiscalPreparationIssues,
|
||||||
|
newFiscalPreparation,
|
||||||
|
readFiscalPreparation,
|
||||||
|
type FiscalFormKind,
|
||||||
|
type FiscalPreparation,
|
||||||
|
} from '@/lib/fiscal-form-preparation';
|
||||||
|
|
||||||
const input =
|
const input =
|
||||||
'mt-1 block w-full rounded border border-slate-400 bg-white p-3 text-slate-900';
|
'mt-1 block w-full rounded border border-slate-400 bg-white p-3 text-slate-900';
|
||||||
@@ -112,7 +120,6 @@ export default function FiscalForms({
|
|||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<h2 className="text-xl font-bold">{source.title}</h2>
|
<h2 className="text-xl font-bold">{source.title}</h2>
|
||||||
<p>{source.coverage}</p>
|
|
||||||
<nav
|
<nav
|
||||||
aria-label="Etapas de preenchimento"
|
aria-label="Etapas de preenchimento"
|
||||||
className="flex flex-wrap gap-2 print:hidden"
|
className="flex flex-wrap gap-2 print:hidden"
|
||||||
@@ -426,20 +433,6 @@ export default function FiscalForms({
|
|||||||
{notice}
|
{notice}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<details className="rounded border p-4">
|
|
||||||
<summary className="cursor-pointer font-semibold">
|
|
||||||
Exemplar e cobertura
|
|
||||||
</summary>
|
|
||||||
<p>{source.source}</p>
|
|
||||||
<p className="text-sm break-all">SHA256: {source.hash}</p>
|
|
||||||
<p>{source.coverage}</p>
|
|
||||||
<p>
|
|
||||||
Os cálculos e correspondências já disponíveis no
|
|
||||||
simulador permanecem separados desta introdução manual.
|
|
||||||
Não se executam fórmulas nem se transportam valores
|
|
||||||
entre edições automaticamente.
|
|
||||||
</p>
|
|
||||||
</details>
|
|
||||||
<div className="flex flex-wrap gap-4 print:hidden">
|
<div className="flex flex-wrap gap-4 print:hidden">
|
||||||
<Link href="/simulador-fiscal" className="underline">
|
<Link href="/simulador-fiscal" className="underline">
|
||||||
Consultar cálculos e preparação M20/M22 no simulador
|
Consultar cálculos e preparação M20/M22 no simulador
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Link, useForm, usePage } from '@inertiajs/react';
|
import { Link, useForm, usePage } from '@inertiajs/react';
|
||||||
|
import { publicPortfolioText } from '@/lib/public-presentation';
|
||||||
import { searchTerritoryHref } from '@/lib/search-territory';
|
import { searchTerritoryHref } from '@/lib/search-territory';
|
||||||
import { catalogueDetailHref } from '@/lib/catalogue-context';
|
import { catalogueDetailHref } from '@/lib/catalogue-context';
|
||||||
import { Management } from '../management/shared';
|
import { Management } from '../management/shared';
|
||||||
@@ -12,6 +13,7 @@ import {
|
|||||||
export default function Index({
|
export default function Index({
|
||||||
records,
|
records,
|
||||||
management,
|
management,
|
||||||
|
publicReferenceNames = {},
|
||||||
filters,
|
filters,
|
||||||
territorySelection = [],
|
territorySelection = [],
|
||||||
sectors = [],
|
sectors = [],
|
||||||
@@ -19,6 +21,7 @@ export default function Index({
|
|||||||
}: {
|
}: {
|
||||||
records: Paginated<Dossier>;
|
records: Paginated<Dossier>;
|
||||||
management: boolean;
|
management: boolean;
|
||||||
|
publicReferenceNames?: Record<string, string>;
|
||||||
sectors?: string[];
|
sectors?: string[];
|
||||||
publishedOpportunities?: Paginated<{
|
publishedOpportunities?: Paginated<{
|
||||||
id: number;
|
id: number;
|
||||||
@@ -121,10 +124,11 @@ export default function Index({
|
|||||||
{records.data.map((r) => (
|
{records.data.map((r) => (
|
||||||
<article
|
<article
|
||||||
key={r.id}
|
key={r.id}
|
||||||
className="space-y-3 rounded-xl border p-5"
|
className="flex min-w-0 flex-col gap-3 rounded-xl border p-5 [overflow-wrap:anywhere]"
|
||||||
>
|
>
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
{kind(r)} · {r.content.code}
|
{kind(r)}
|
||||||
|
{management && ` · ${r.content.code}`}
|
||||||
{management &&
|
{management &&
|
||||||
` · ${r.publication_status === 'published' ? 'Publicado' : 'Rascunho'}`}
|
` · ${r.publication_status === 'published' ? 'Publicado' : 'Rascunho'}`}
|
||||||
</p>
|
</p>
|
||||||
@@ -145,9 +149,13 @@ export default function Index({
|
|||||||
</Link>
|
</Link>
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
{r.content.description ??
|
{publicPortfolioText(
|
||||||
r.content.focus ??
|
r.content.description ??
|
||||||
r.content.anchors}
|
r.content.focus ??
|
||||||
|
r.content.anchors ??
|
||||||
|
'',
|
||||||
|
publicReferenceNames,
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
{(r.content.location || r.content.region) && (
|
{(r.content.location || r.content.region) && (
|
||||||
<p>
|
<p>
|
||||||
@@ -163,37 +171,47 @@ export default function Index({
|
|||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<Link
|
<nav
|
||||||
className="underline"
|
aria-label={`Acções de ${r.title}`}
|
||||||
href={catalogueDetailHref(
|
className="mt-auto flex flex-wrap items-center gap-3"
|
||||||
`${base}/${r.id}`,
|
|
||||||
new URLSearchParams(
|
|
||||||
Object.entries(filters).filter(
|
|
||||||
([, value]) => Boolean(value),
|
|
||||||
) as [string, string][],
|
|
||||||
).toString(),
|
|
||||||
url,
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
Consultar ficha
|
<Link
|
||||||
</Link>
|
className="underline"
|
||||||
{!management &&
|
href={catalogueDetailHref(
|
||||||
(r.corridor_id || r.cluster_id || r.project_id) && (
|
`${base}/${r.id}`,
|
||||||
<Link
|
new URLSearchParams(
|
||||||
className="ml-4 underline"
|
Object.entries(filters).filter(
|
||||||
href={searchTerritoryHref(
|
([, value]) => Boolean(value),
|
||||||
`/oportunidades?${new URLSearchParams(r.corridor_id ? { corridor_id: r.corridor_id } : r.cluster_id ? { cluster_id: r.cluster_id } : { project_id: r.project_id! })}`,
|
) as [string, string][],
|
||||||
url,
|
).toString(),
|
||||||
)}
|
url,
|
||||||
>
|
)}
|
||||||
Ver oportunidades associadas
|
>
|
||||||
</Link>
|
Consultar ficha
|
||||||
)}
|
</Link>
|
||||||
|
{!management &&
|
||||||
|
(r.corridor_id ||
|
||||||
|
r.cluster_id ||
|
||||||
|
r.project_id) && (
|
||||||
|
<Link
|
||||||
|
className="underline"
|
||||||
|
href={searchTerritoryHref(
|
||||||
|
`/oportunidades?${new URLSearchParams(r.corridor_id ? { corridor_id: r.corridor_id } : r.cluster_id ? { cluster_id: r.cluster_id } : { project_id: r.project_id! })}`,
|
||||||
|
url,
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
Ver oportunidades associadas
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</nav>
|
||||||
</article>
|
</article>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
{!records.data.length && (
|
{!records.data.length && (
|
||||||
<div className="space-y-3 rounded-xl border p-5" role="status">
|
<div
|
||||||
|
className="flex min-w-0 flex-col gap-3 rounded-xl border p-5 [overflow-wrap:anywhere]"
|
||||||
|
role="status"
|
||||||
|
>
|
||||||
<p>
|
<p>
|
||||||
Ainda não existem fichas publicadas para esta pesquisa.
|
Ainda não existem fichas publicadas para esta pesquisa.
|
||||||
Os filtros activos foram mantidos.
|
Os filtros activos foram mantidos.
|
||||||
@@ -253,7 +271,7 @@ export default function Index({
|
|||||||
{publishedOpportunities.data.map((opportunity) => (
|
{publishedOpportunities.data.map((opportunity) => (
|
||||||
<article
|
<article
|
||||||
key={opportunity.id}
|
key={opportunity.id}
|
||||||
className="space-y-3 rounded-xl border p-5"
|
className="flex min-w-0 flex-col gap-3 rounded-xl border p-5 [overflow-wrap:anywhere]"
|
||||||
>
|
>
|
||||||
<h3 className="text-xl font-semibold">
|
<h3 className="text-xl font-semibold">
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
import PublicReference from '@/components/public-reference';
|
||||||
|
import {
|
||||||
|
publicReference,
|
||||||
|
publicPortfolioText,
|
||||||
|
} from '@/lib/public-presentation';
|
||||||
import { Link, useForm, router, usePage } from '@inertiajs/react';
|
import { Link, useForm, router, usePage } from '@inertiajs/react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { catalogueReturnHref } from '@/lib/catalogue-context';
|
import { catalogueReturnHref } from '@/lib/catalogue-context';
|
||||||
@@ -30,6 +35,7 @@ export default function Show(props: Props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
publicReferenceNames?: Record<string, string>;
|
||||||
editorialEnabled?: boolean;
|
editorialEnabled?: boolean;
|
||||||
competitiveness?: ApprovedCompetitiveness | null;
|
competitiveness?: ApprovedCompetitiveness | null;
|
||||||
complements?: ComplementOption[];
|
complements?: ComplementOption[];
|
||||||
@@ -65,6 +71,7 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function Editor({
|
function Editor({
|
||||||
|
publicReferenceNames = {},
|
||||||
editorialEnabled = false,
|
editorialEnabled = false,
|
||||||
competitiveness,
|
competitiveness,
|
||||||
complements = [],
|
complements = [],
|
||||||
@@ -104,9 +111,19 @@ function Editor({
|
|||||||
Voltar à pesquisa
|
Voltar à pesquisa
|
||||||
</Link>
|
</Link>
|
||||||
<p>
|
<p>
|
||||||
{kind(record)} · {record.content.code}
|
{kind(record)}
|
||||||
|
{management && ` · ${record.content.code}`}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm">Fonte: {record.source}</p>
|
{(management || publicReference(record.source)) && (
|
||||||
|
<p className="text-sm">
|
||||||
|
Fonte:{' '}
|
||||||
|
{management ? (
|
||||||
|
record.source
|
||||||
|
) : (
|
||||||
|
<PublicReference value={record.source} />
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
{competitiveness && (
|
{competitiveness && (
|
||||||
<ClusterCompetitivenessPublic analysis={competitiveness} />
|
<ClusterCompetitivenessPublic analysis={competitiveness} />
|
||||||
)}
|
)}
|
||||||
@@ -150,7 +167,8 @@ function Editor({
|
|||||||
Referência de projecto âncora
|
Referência de projecto âncora
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
{anchorProject.code} · {anchorProject.name}
|
{management && `${anchorProject.code} · `}
|
||||||
|
{anchorProject.name}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Estado registado:{' '}
|
Estado registado:{' '}
|
||||||
@@ -234,7 +252,16 @@ function Editor({
|
|||||||
>
|
>
|
||||||
{z.name}
|
{z.name}
|
||||||
</Link>{' '}
|
</Link>{' '}
|
||||||
· {z.association_type} · Fonte: {z.source_reference}
|
· {z.association_type}
|
||||||
|
{publicReference(z.source_reference) && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
· Fonte:{' '}
|
||||||
|
<PublicReference
|
||||||
|
value={z.source_reference}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
</section>
|
</section>
|
||||||
@@ -491,7 +518,10 @@ function Editor({
|
|||||||
{labels[key] ?? key}
|
{labels[key] ?? key}
|
||||||
</dt>
|
</dt>
|
||||||
<dd className="mt-1 whitespace-pre-line">
|
<dd className="mt-1 whitespace-pre-line">
|
||||||
{value}
|
{publicPortfolioText(
|
||||||
|
value,
|
||||||
|
publicReferenceNames,
|
||||||
|
)}
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -0,0 +1,133 @@
|
|||||||
|
import test from 'node:test';
|
||||||
|
import assert from 'node:assert/strict';
|
||||||
|
import {
|
||||||
|
correctionFieldHints,
|
||||||
|
fieldLabelMatches,
|
||||||
|
} from '../../resources/js/lib/field-corrections.ts';
|
||||||
|
import {
|
||||||
|
publicReference,
|
||||||
|
publicSourceHref,
|
||||||
|
publicLocation,
|
||||||
|
uniquePresentation,
|
||||||
|
publicPortfolioText,
|
||||||
|
} from '../../resources/js/lib/public-presentation.ts';
|
||||||
|
import {
|
||||||
|
catalogueFilterHref,
|
||||||
|
catalogueDetailHref,
|
||||||
|
catalogueReturnHref,
|
||||||
|
} from '../../resources/js/lib/catalogue-context.ts';
|
||||||
|
|
||||||
|
test('existing diagnostics point to matching labels without inventing fields for unknown messages', () => {
|
||||||
|
const hints = correctionFieldHints(
|
||||||
|
'O capital discriminado não coincide com o capital próprio.',
|
||||||
|
);
|
||||||
|
assert.ok(
|
||||||
|
hints.some((h) => fieldLabelMatches('Capital do proprietário', h)),
|
||||||
|
);
|
||||||
|
assert.ok(hints.some((h) => fieldLabelMatches('Capital próprio (MZN)', h)));
|
||||||
|
assert.ok(
|
||||||
|
correctionFieldHints(
|
||||||
|
'Confira «Preço por unidade»: valor em falta.',
|
||||||
|
).some((h) => fieldLabelMatches('Preço por unidade', h)),
|
||||||
|
);
|
||||||
|
assert.equal(
|
||||||
|
correctionFieldHints('Situação não prevista').some((h) =>
|
||||||
|
fieldLabelMatches('Capital próprio', h),
|
||||||
|
),
|
||||||
|
false,
|
||||||
|
);
|
||||||
|
assert.equal(
|
||||||
|
fieldLabelMatches('Capital do investidor', 'Capital do proprietário'),
|
||||||
|
false,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('public sources retain legal references and official PHP links, excluding local paths and executable schemes', () => {
|
||||||
|
for (const value of [
|
||||||
|
'C:\\laragon\\www\\portal\\app.php',
|
||||||
|
'docs/auditoria/e25.json',
|
||||||
|
'QA-20261121',
|
||||||
|
'http://127.0.0.3:18724/private',
|
||||||
|
'javascript:alert(1)',
|
||||||
|
'https://example.org/resources/js/report.ts',
|
||||||
|
])
|
||||||
|
assert.equal(publicReference(value), null, value);
|
||||||
|
assert.equal(publicReference('Decreto n.º 70/2009'), 'Decreto n.º 70/2009');
|
||||||
|
assert.equal(
|
||||||
|
publicSourceHref('https://example.gov.mz/documento.php?id=70'),
|
||||||
|
'https://example.gov.mz/documento.php?id=70',
|
||||||
|
);
|
||||||
|
assert.equal(publicSourceHref('Decreto n.º 70/2009'), undefined);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('presentation deduplicates identical editions and preserves source records and full location', () => {
|
||||||
|
const rows = Object.freeze([
|
||||||
|
Object.freeze({ ref: 'Lei', date: '2020' }),
|
||||||
|
Object.freeze({ ref: 'Lei', date: '2020' }),
|
||||||
|
Object.freeze({ ref: 'Lei', date: '2024' }),
|
||||||
|
]);
|
||||||
|
assert.equal(uniquePresentation(rows, (r) => r.ref + r.date).length, 2);
|
||||||
|
assert.equal(rows.length, 3);
|
||||||
|
assert.equal(
|
||||||
|
publicLocation([
|
||||||
|
{ name: 'Cabo Delgado' },
|
||||||
|
{ name: 'Balama' },
|
||||||
|
{ name: 'Balama' },
|
||||||
|
]),
|
||||||
|
'Cabo Delgado · Balama · Balama',
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('published names replace internal cross-reference codes without replacing a code inside a word or altering originals', () => {
|
||||||
|
const names = Object.freeze({
|
||||||
|
A06: 'Projecto de arroz',
|
||||||
|
'CLU-01': 'Cluster industrial',
|
||||||
|
'A.1': 'Nome pontuado',
|
||||||
|
});
|
||||||
|
assert.equal(
|
||||||
|
publicPortfolioText(
|
||||||
|
'A06 e CLU-01; A.1. CA06 e A060 permanecem.',
|
||||||
|
names,
|
||||||
|
),
|
||||||
|
'Projecto de arroz e Cluster industrial; Nome pontuado. CA06 e A060 permanecem.',
|
||||||
|
);
|
||||||
|
assert.equal(names.A06, 'Projecto de arroz');
|
||||||
|
});
|
||||||
|
|
||||||
|
test('filter removal clears actual indexed arrays and dependent geography without losing deliberate criteria', () => {
|
||||||
|
assert.equal(
|
||||||
|
catalogueFilterHref(
|
||||||
|
'/oportunidades?q=arroz&facets%5B0%5D=a&facets%5B1%5D=b&page=3',
|
||||||
|
['q', 'facets'],
|
||||||
|
'facets',
|
||||||
|
),
|
||||||
|
'/oportunidades?q=arroz',
|
||||||
|
);
|
||||||
|
assert.equal(
|
||||||
|
catalogueFilterHref(
|
||||||
|
'/zonas?category=zee&province_id=p&district_id=d&locality_id=l&activity=energia&page=2',
|
||||||
|
[],
|
||||||
|
'province_id',
|
||||||
|
),
|
||||||
|
'/zonas?category=zee&activity=energia',
|
||||||
|
);
|
||||||
|
assert.equal(
|
||||||
|
catalogueFilterHref('/zonas?category=zee&q=arroz&page=2', [
|
||||||
|
'category',
|
||||||
|
'q',
|
||||||
|
]),
|
||||||
|
'/zonas',
|
||||||
|
);
|
||||||
|
const detail = catalogueDetailHref(
|
||||||
|
'/zonas/zone',
|
||||||
|
'category=industrial_park&activity=energia&q=Balama&page=2',
|
||||||
|
);
|
||||||
|
const back = new URL(
|
||||||
|
catalogueReturnHref('/zonas', detail),
|
||||||
|
'https://portal.invalid',
|
||||||
|
);
|
||||||
|
assert.equal(back.searchParams.get('activity'), 'energia');
|
||||||
|
assert.equal(back.searchParams.get('category'), 'industrial_park');
|
||||||
|
assert.equal(back.searchParams.get('q'), 'Balama');
|
||||||
|
assert.equal(back.searchParams.get('page'), '2');
|
||||||
|
});
|
||||||
@@ -0,0 +1,216 @@
|
|||||||
|
import test from 'node:test';
|
||||||
|
import assert from 'node:assert/strict';
|
||||||
|
import fs from 'node:fs';
|
||||||
|
import { createRequire } from 'node:module';
|
||||||
|
import { compileFunction } from 'node:vm';
|
||||||
|
import ts from 'typescript';
|
||||||
|
import React from 'react';
|
||||||
|
import { renderToStaticMarkup } from 'react-dom/server';
|
||||||
|
import * as publicPresentation from '../../resources/js/lib/public-presentation.ts';
|
||||||
|
import { displayReportMoney } from '../../resources/js/lib/integral-financial-report.ts';
|
||||||
|
const require = createRequire(import.meta.url);
|
||||||
|
function component(name) {
|
||||||
|
const module = { exports: {} };
|
||||||
|
const code = ts.transpileModule(
|
||||||
|
fs.readFileSync(
|
||||||
|
new URL(
|
||||||
|
`../../resources/js/components/${name}.tsx`,
|
||||||
|
import.meta.url,
|
||||||
|
),
|
||||||
|
'utf8',
|
||||||
|
),
|
||||||
|
{
|
||||||
|
compilerOptions: {
|
||||||
|
module: ts.ModuleKind.CommonJS,
|
||||||
|
target: ts.ScriptTarget.ES2022,
|
||||||
|
jsx: ts.JsxEmit.ReactJSX,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
).outputText;
|
||||||
|
compileFunction(code, ['require', 'module', 'exports'])(
|
||||||
|
(id) =>
|
||||||
|
id === '@/lib/public-presentation'
|
||||||
|
? publicPresentation
|
||||||
|
: id.startsWith('./')
|
||||||
|
? component(id.slice(2))
|
||||||
|
: require(id),
|
||||||
|
module,
|
||||||
|
module.exports,
|
||||||
|
);
|
||||||
|
return module.exports;
|
||||||
|
}
|
||||||
|
test('real public source list separates links, merges duplicate notes, retains different editions and original data', () => {
|
||||||
|
const sources = [
|
||||||
|
{
|
||||||
|
title: 'Lei de investimento',
|
||||||
|
url: 'https://example.gov.mz/lei.php',
|
||||||
|
source_date: '2020-01-01',
|
||||||
|
supports: 'Âmbito territorial',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Lei de investimento',
|
||||||
|
url: 'https://example.gov.mz/lei.php',
|
||||||
|
source_date: '2020-01-01',
|
||||||
|
supports: 'Âmbito territorial',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Lei de investimento',
|
||||||
|
url: 'https://example.gov.mz/lei.php',
|
||||||
|
source_date: '2024-01-01',
|
||||||
|
supports: 'Edição posterior',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'docs/interno.json',
|
||||||
|
url: 'C:\\portal\\app.php',
|
||||||
|
supports: 'QA-20261121',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
const before = JSON.stringify(sources);
|
||||||
|
const html = renderToStaticMarkup(
|
||||||
|
React.createElement(component('public-source-list').default, {
|
||||||
|
sources,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
assert.equal((html.match(/<li>/g) || []).length, 2);
|
||||||
|
assert.equal((html.match(/Âmbito territorial/g) || []).length, 1);
|
||||||
|
assert.match(html, /2020-01-01/);
|
||||||
|
assert.match(html, /2024-01-01/);
|
||||||
|
assert.match(html, /href="https:\/\/example.gov.mz\/lei.php"/);
|
||||||
|
assert.doesNotMatch(html, /docs\/interno|QA-20261121|C:\\portal/);
|
||||||
|
assert.equal(JSON.stringify(sources), before);
|
||||||
|
});
|
||||||
|
test('real report tables expose existing message for navigation without changing their rows or values', () => {
|
||||||
|
const module = { exports: {} };
|
||||||
|
const code = ts.transpileModule(
|
||||||
|
fs.readFileSync(
|
||||||
|
new URL(
|
||||||
|
'../../resources/js/components/investment-report-tables.tsx',
|
||||||
|
import.meta.url,
|
||||||
|
),
|
||||||
|
'utf8',
|
||||||
|
),
|
||||||
|
{
|
||||||
|
compilerOptions: {
|
||||||
|
module: ts.ModuleKind.CommonJS,
|
||||||
|
target: ts.ScriptTarget.ES2022,
|
||||||
|
jsx: ts.JsxEmit.ReactJSX,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
).outputText;
|
||||||
|
compileFunction(code, ['require', 'module', 'exports'])(
|
||||||
|
(id) =>
|
||||||
|
id === '@/lib/integral-financial-report'
|
||||||
|
? { displayReportMoney }
|
||||||
|
: id === '@/lib/financial-issue-presentation'
|
||||||
|
? {
|
||||||
|
financialIssuesForDisplay: () => [
|
||||||
|
{
|
||||||
|
message: 'Confira «Capital próprio».',
|
||||||
|
tables: ['Quadro'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
: require(id),
|
||||||
|
module,
|
||||||
|
module.exports,
|
||||||
|
);
|
||||||
|
const tables = [
|
||||||
|
{
|
||||||
|
id: 'synthetic',
|
||||||
|
title: 'Quadro',
|
||||||
|
headers: ['Rubrica', 'Janeiro'],
|
||||||
|
rows: [['Saldo declarado', '123.45']],
|
||||||
|
notes: [],
|
||||||
|
issues: ['Confira «Capital próprio».'],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
const before = JSON.stringify(tables);
|
||||||
|
const html = renderToStaticMarkup(
|
||||||
|
React.createElement(module.exports.InvestmentReportTables, { tables }),
|
||||||
|
);
|
||||||
|
assert.match(html, /data-correction-message="Confira «Capital próprio»."/);
|
||||||
|
assert.doesNotMatch(html, /href="#portal-corrections"/); // Read-only report consumers need no dead editor link.
|
||||||
|
assert.match(html, /Saldo declarado/);
|
||||||
|
assert.equal(JSON.stringify(tables), before);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('real territorial presentation removes identical geometry editions but preserves distinct dates and full hierarchy', () => {
|
||||||
|
const module = { exports: {} };
|
||||||
|
const code = ts.transpileModule(
|
||||||
|
fs.readFileSync(
|
||||||
|
new URL(
|
||||||
|
'../../resources/js/components/structure-geography.tsx',
|
||||||
|
import.meta.url,
|
||||||
|
),
|
||||||
|
'utf8',
|
||||||
|
),
|
||||||
|
{
|
||||||
|
compilerOptions: {
|
||||||
|
module: ts.ModuleKind.CommonJS,
|
||||||
|
target: ts.ScriptTarget.ES2022,
|
||||||
|
jsx: ts.JsxEmit.ReactJSX,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
).outputText;
|
||||||
|
compileFunction(code, ['require', 'module', 'exports'])(
|
||||||
|
(id) =>
|
||||||
|
id === '@/lib/public-presentation'
|
||||||
|
? publicPresentation
|
||||||
|
: id === './public-reference'
|
||||||
|
? component('public-reference')
|
||||||
|
: id === '@inertiajs/react'
|
||||||
|
? {
|
||||||
|
Link: ({ children, ...p }) =>
|
||||||
|
React.createElement('a', p, children),
|
||||||
|
}
|
||||||
|
: id.startsWith('./')
|
||||||
|
? { default: () => null }
|
||||||
|
: require(id),
|
||||||
|
module,
|
||||||
|
module.exports,
|
||||||
|
);
|
||||||
|
const point = {
|
||||||
|
geometry_id: 'point-1',
|
||||||
|
source_reference: 'Decreto 70/2009',
|
||||||
|
source_date: '2020-01-01',
|
||||||
|
geometry: { coordinates: [32, -25] },
|
||||||
|
};
|
||||||
|
const boundary = {
|
||||||
|
geometry_id: 'boundary-1',
|
||||||
|
source_reference: 'Decreto 70/2009',
|
||||||
|
source_date: '2020-01-01',
|
||||||
|
geometry: { type: 'Polygon', coordinates: [] },
|
||||||
|
};
|
||||||
|
const locations = [
|
||||||
|
{
|
||||||
|
id: 'location',
|
||||||
|
name: 'Balama sintético',
|
||||||
|
role: 'primary',
|
||||||
|
location_type: 'district',
|
||||||
|
path: [
|
||||||
|
{ id: 'p', name: 'Cabo Delgado', location_type: 'province' },
|
||||||
|
{ id: 'd', name: 'Balama', location_type: 'district' },
|
||||||
|
],
|
||||||
|
coordinates: [
|
||||||
|
point,
|
||||||
|
{ ...point },
|
||||||
|
{ ...point, source_date: '2024-01-01' },
|
||||||
|
],
|
||||||
|
boundaries: [
|
||||||
|
boundary,
|
||||||
|
{ ...boundary },
|
||||||
|
{ ...boundary, source_date: '2024-01-01' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
const before = JSON.stringify(locations);
|
||||||
|
const html = renderToStaticMarkup(
|
||||||
|
React.createElement(module.exports.LocationList, { locations }),
|
||||||
|
);
|
||||||
|
assert.equal((html.match(/Coordenadas documentadas/g) || []).length, 2);
|
||||||
|
assert.equal((html.match(/Polígono cadastrado/g) || []).length, 2);
|
||||||
|
assert.match(html, /Cabo Delgado/);
|
||||||
|
assert.match(html, /Balama/);
|
||||||
|
assert.match(html, /2024-01-01/);
|
||||||
|
assert.equal(JSON.stringify(locations), before);
|
||||||
|
});
|
||||||