Release v0.1.7

This commit is contained in:
2026-07-11 02:34:56 +02:00
parent ae70cac70f
commit 7ffb16d981
9 changed files with 399 additions and 8 deletions
+45
View File
@@ -0,0 +1,45 @@
import { createElement, lazy } from "react";
import { type AdminSectionsUiCapability, type PlatformWebModule } from "@govoplan/core-webui";
const AdminAuditPanel = lazy(() => import("./features/audit/AdminAuditPanel"));
const auditAdminSections: AdminSectionsUiCapability = {
sections: [
{
id: "system-audit",
label: "Audit",
group: "SYSTEM",
order: 90,
allOf: ["system:audit:read"],
render: ({ settings, auth }) => createElement(AdminAuditPanel, {
settings,
auth,
systemMode: true
})
},
{
id: "tenant-audit",
label: "Audit",
group: "TENANT",
order: 100,
allOf: ["audit:read"],
render: ({ settings, auth }) => createElement(AdminAuditPanel, {
settings,
auth,
systemMode: false
})
}
]
};
export const auditModule: PlatformWebModule = {
id: "audit",
label: "Audit",
version: "0.1.6",
dependencies: ["access", "admin"],
uiCapabilities: {
"admin.sections": auditAdminSections
}
};
export default auditModule;