diff --git a/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx b/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx index 90f4f5210..bd52bfe2e 100644 --- a/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx +++ b/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx @@ -364,32 +364,57 @@ function ShowPolicyContent({ >
{latestVersionNode ? ( -
- {latestVersionNode.changelog && ( -
-
- Change summary + <> +
+
+
+ Document Title: {policy.title}
-
- {latestVersionNode.changelog} +
+ Version: {latestVersionNode.version || "N/A"} +
+
+ Status: {latestVersionNode.status === "PUBLISHED" ? "Published" : "Draft"} +
+
+ Published Date: {latestVersionNode.status === "PUBLISHED" ? formatDate(latestVersionNode.publishedAt || "") : "Not yet published"} +
+
+ Owner: {policy.owner?.fullName || "Unknown"} +
+
+ Last Modified: {formatDate(latestVersionNode.updatedAt)}
- )} - -
- - {latestVersionNode.content || "No content available"} -
-
-
- {latestVersionNode.status === "PUBLISHED" - ? `Published on ${formatDate(latestVersionNode.publishedAt || "")}${latestVersionNode.publishedBy ? ` by ${latestVersionNode.publishedBy.fullName}` : ""}` - : `Last modified on ${formatDate(latestVersionNode.updatedAt)} by ${policy.owner?.fullName || "Unknown"}`} +
+ {latestVersionNode.changelog && ( +
+
+ Change summary +
+
+ {latestVersionNode.changelog} +
+
+ )} + +
+ + {latestVersionNode.content || "No content available"} + +
+ +
+
+ {latestVersionNode.status === "PUBLISHED" + ? `Published on ${formatDate(latestVersionNode.publishedAt || "")}${latestVersionNode.publishedBy ? ` by ${latestVersionNode.publishedBy.fullName}` : ""}` + : `Last modified on ${formatDate(latestVersionNode.updatedAt)} by ${policy.owner?.fullName || "Unknown"}`} +
-
+ ) : (
No content available