Declare policy View surfaces

This commit is contained in:
2026-07-28 21:04:54 +02:00
parent d6e09fbbd1
commit 242d023474
2 changed files with 17 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ const policyAdminSections: AdminSectionsUiCapability = {
sections: [
{
id: "system-retention",
surfaceId: "policy.admin.system-retention",
label: "Retention",
group: "SYSTEM",
order: 80,
@@ -19,6 +20,7 @@ const policyAdminSections: AdminSectionsUiCapability = {
},
{
id: "tenant-retention",
surfaceId: "policy.admin.tenant-retention",
label: "Retention",
group: "TENANT",
order: 80,
@@ -31,6 +33,7 @@ const policyAdminSections: AdminSectionsUiCapability = {
},
{
id: "tenant-group-retention",
surfaceId: "policy.admin.group-retention",
label: "Retention",
group: "GROUP",
order: 30,
@@ -43,6 +46,7 @@ const policyAdminSections: AdminSectionsUiCapability = {
},
{
id: "tenant-user-retention",
surfaceId: "policy.admin.user-retention",
label: "Retention",
group: "USER",
order: 30,
@@ -61,6 +65,12 @@ export const policyModule: PlatformWebModule = {
label: "Policy",
version: "0.1.9",
dependencies: ["access", "admin"],
viewSurfaces: [
{ id: "policy.admin.system-retention", moduleId: "policy", kind: "section", label: "System retention", order: 80 },
{ id: "policy.admin.tenant-retention", moduleId: "policy", kind: "section", label: "Tenant retention", order: 80 },
{ id: "policy.admin.group-retention", moduleId: "policy", kind: "section", label: "Group retention", order: 80 },
{ id: "policy.admin.user-retention", moduleId: "policy", kind: "section", label: "User retention", order: 80 }
],
uiCapabilities: {
"admin.sections": policyAdminSections
}