Add display of assessedAt

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-05-01 09:01:48 -07:00
parent 9d6b1e23b3
commit 25614d5ea1
2 changed files with 23 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### Added
- Add end-user confirmation before sending policy sign notification
- Add assessed at in the vendor list
### Fixed

View File

@@ -331,7 +331,8 @@ function ListVendorContent({
status: "NEEDED",
dataSensitivity: null,
businessImpact: null,
isExpired: false
isExpired: false,
assessedAt: null
};
}
@@ -343,7 +344,8 @@ function ListVendorContent({
status: isExpired ? "EXPIRED" : "VALID",
dataSensitivity: latestAssessment.dataSensitivity,
businessImpact: latestAssessment.businessImpact,
isExpired
isExpired,
assessedAt: latestAssessment.assessedAt
};
};
@@ -529,6 +531,21 @@ function ListVendorContent({
</svg>
</div>
</th>
<th className="py-3 px-4 text-left text-xs font-semibold text-gray-500">
<div className="flex items-center gap-2">
Accessed At
<svg
width="8"
height="8"
viewBox="0 0 8 8"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="text-gray-400"
>
<path d="M4 6L7 3H1L4 6Z" fill="currentColor" />
</svg>
</div>
</th>
<th className="py-3 px-4"></th>
</tr>
</thead>
@@ -590,6 +607,9 @@ function ListVendorContent({
</Badge>
)}
</td>
<td className="py-4 px-4">
{riskStatus.assessedAt ? formatDate(riskStatus.assessedAt) : "N/A"}
</td>
<td className="py-4 px-4 text-right">
<DropdownMenu>
<DropdownMenuTrigger asChild>