@@ -38,7 +38,13 @@ type Assessment = {
|
||||
answers: Answer[];
|
||||
reason: string;
|
||||
created_at: string;
|
||||
snapshot: { analyst: { name: string; purchasing_role: string } };
|
||||
snapshot: {
|
||||
analyst: {
|
||||
name: string;
|
||||
purchasing_role: string;
|
||||
profile_label?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
type Props = {
|
||||
requisition: { id: number; number: string; justification: string };
|
||||
@@ -465,8 +471,9 @@ function AssessmentDetails({
|
||||
· {record.snapshot.analyst.name} · Análise v{record.revision}
|
||||
</summary>
|
||||
<p className="mt-3 text-xs text-muted-foreground">
|
||||
{roleLabels[record.snapshot.analyst.purchasing_role]} ·{' '}
|
||||
{date(record.created_at)}
|
||||
{record.snapshot.analyst.profile_label ??
|
||||
roleLabels[record.snapshot.analyst.purchasing_role]}{' '}
|
||||
· {date(record.created_at)}
|
||||
</p>
|
||||
<p className="mt-3 text-sm whitespace-pre-wrap">{record.reason}</p>
|
||||
<p className="mt-3 text-xs text-muted-foreground">
|
||||
|
||||
Reference in New Issue
Block a user