diff --git a/webui/src/features/docs/DocsPage.tsx b/webui/src/features/docs/DocsPage.tsx
index a687b39..a9c6184 100644
--- a/webui/src/features/docs/DocsPage.tsx
+++ b/webui/src/features/docs/DocsPage.tsx
@@ -1,3 +1,4 @@
+import { DescriptionList } from "@govoplan/core-webui";
import { useEffect, useMemo, useRef, useState } from "react";
import { Link, useLocation } from "react-router";
import { ChevronDown, ChevronRight, Eye, RefreshCw } from "lucide-react";
@@ -459,7 +460,7 @@ function ConstraintDetails({ id, constraints }: { id: string; constraints: Recor
return (
i18n:govoplan-docs.requirements.09a428f9
-
+
{constraints.map((constraint, index) => {
const label = metadataString(constraint, "label");
const description = metadataString(constraint, "description");
@@ -474,7 +475,7 @@ function ConstraintDetails({ id, constraints }: { id: string; constraints: Recor
);
})}
-
+
);
}
@@ -487,11 +488,11 @@ function ReferenceDetails({ topic, showTechnical, documentationType, topicById }
return (
{(route || screen || section) &&
-
+
{screen && - i18n:govoplan-docs.screen.c4878ec4
- {screen}
}
{section && - i18n:govoplan-docs.section.5e498158
- {section}
}
{showTechnical && route && - i18n:govoplan-docs.route.4999528e
- {route}
}
-
+
}
{!!fields.length &&
}
@@ -604,14 +605,14 @@ function UnavailableDocumentationReason({ topic }: { topic: DocsDocumentationTop
{topic.reason}
{!!rows.length &&
-
+
{rows.map(([label, values]) =>
- {label}
- {(values as string[]).join(", ")}
)}
-
+
}
);
@@ -1001,7 +1002,7 @@ function RouteTable({ routes, emptyText }: { routes: DocsRoute[]; emptyText: str
function PermissionList({ permissions }: { permissions: Array<{ scope: string; label: string; category: string }> }) {
if (!permissions.length) return
i18n:govoplan-docs.no_granted_platform_permissions_found.36010898
;
return (
-
+
{permissions.slice(0, 24).map((permission) =>
- {permission.category}
@@ -1009,7 +1010,7 @@ function PermissionList({ permissions }: { permissions: Array<{ scope: string; l
)}
{permissions.length > 24 && - i18n:govoplan-docs.more.4bab2d8f
- {permissions.length - 24} i18n:govoplan-docs.additional_permissions.8042cb01
}
-
+
);
}
@@ -1047,7 +1048,7 @@ function EvidenceList({
return (
<>
{sourceError &&
{sourceError}}
-
+
{modules.map((item) =>
@@ -1076,7 +1077,7 @@ function EvidenceList({
)}
-
+