feat: consolidar desenvolvimentos do portal InvestMoz

This commit is contained in:
2026-11-03 23:32:32 +02:00
parent 1da273f1f3
commit 36c8cadb49
345 changed files with 110714 additions and 2799 deletions
+24 -20
View File
@@ -33,6 +33,7 @@ export type Guidance = {
rules_version: string;
computed_at: string;
can_write: boolean;
can_update_tasks?: boolean;
facts: Record<string, string>;
financial_draft: Record<string, unknown> | null;
consulted: {
@@ -725,21 +726,25 @@ export function InvestorGuidance({
Consultar o pedido e a resposta do responsável
</Link>
)}
{(manager || actorId === task.assignee_user_id) && (
<>
<label className="block">
Resultado ou motivo
<textarea
className={input}
value={reason}
onChange={(e) =>
setReason(e.target.value)
}
/>
</label>
<div className="flex flex-wrap gap-2">
{['in_progress', 'done', 'cancelled'].map(
(status) => (
{guidance.can_update_tasks !== false &&
(manager || actorId === task.assignee_user_id) && (
<>
<label className="block">
Resultado ou motivo
<textarea
className={input}
value={reason}
onChange={(e) =>
setReason(e.target.value)
}
/>
</label>
<div className="flex flex-wrap gap-2">
{[
'in_progress',
'done',
'cancelled',
].map((status) => (
<button
key={status}
type="button"
@@ -763,11 +768,10 @@ export function InvestorGuidance({
? 'Registar conclusão'
: 'Cancelar tarefa'}
</button>
),
)}
</div>
</>
)}
))}
</div>
</>
)}
</article>
))}
{!guidance.tasks.length && (