Reconciliar fontes instaladas 423bd512d8c5 com main

This commit is contained in:
2026-10-20 14:45:19 +02:00
parent 507387502c
commit 9ab721c97f
108 changed files with 2766 additions and 494 deletions
+16 -2
View File
@@ -9,6 +9,9 @@ import { Conversation } from './conversation';
import type { Message } from './conversation';
import CountrySelect, { type Country } from '@/components/country-select';
type Payload = {
simple_participation?: boolean;
opportunity_title?: string;
opportunity_reference?: string;
full_name: string;
email: string;
phone: string;
@@ -82,7 +85,7 @@ type Props = {
needs: Need[];
attachments: { id: string; file_name: string }[];
events: { action: string; version: number; created_at: string }[];
receipt: { reference: string; status: string } | null;
receipt: { reference: string; status: string; next_action?: string | null; next_action_due_at?: string | null } | null;
target: string | null;
management: boolean;
messages: Message[];
@@ -338,6 +341,16 @@ function Editor({
)[receipt.status] ?? receipt.status}
</p>
)}
{receipt?.next_action && <p role="status">Próxima acção: {receipt.next_action} {receipt.next_action_due_at && new Date(receipt.next_action_due_at).toLocaleDateString("pt-MZ")}</p>}
{s.status === 'submitted' && s.payload.simple_participation ? <section className={card}>
<h2 className="text-xl font-bold">Dados da manifestação</h2>
<dl className="mt-3 space-y-3">{[
['Nome', s.payload.full_name], ['Email', s.payload.email],
['Telefone', s.payload.phone], ['País declarado', s.payload.country],
['Sector', s.payload.sector], ['Oportunidade', target],
['Mensagem', s.payload.objective],
].filter(([,value]) => value).map(([label,value]) => <div key={label}><dt className="font-semibold">{label}</dt><dd className="whitespace-pre-wrap">{value}</dd></div>)}</dl>
</section> : <>
<nav
aria-label="Etapas da manifestação"
className="flex flex-wrap gap-2"
@@ -1117,6 +1130,7 @@ function Editor({
)}
</section>
)}
</>}
<details className={card}>
<summary className="cursor-pointer font-bold">
Histórico do pedido
@@ -1130,7 +1144,7 @@ function Editor({
draft_created: 'Rascunho criado',
draft_saved: 'Rascunho guardado',
attachment_added: 'Anexo acrescentado',
submitted: 'Submetido',
submitted: 'Submetido', received: 'Recebido', in_review: 'Em análise', contacted: 'Contactado', closed: 'Encerrado',
} as Record<string, string>
)[e.action] ?? e.action}{' '}
· versão {e.version}