Declare organization action View surface

This commit is contained in:
2026-07-28 21:04:54 +02:00
parent dd1937a3af
commit 906879caf1
2 changed files with 20 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPA
from govoplan_core.core.identity import CAPABILITY_IDENTITY_DIRECTORY, CAPABILITY_IDENTITY_SEARCH, IdentityDirectory from govoplan_core.core.identity import CAPABILITY_IDENTITY_DIRECTORY, CAPABILITY_IDENTITY_SEARCH, IdentityDirectory
from govoplan_core.core.idm import CAPABILITY_IDM_DIRECTORY from govoplan_core.core.idm import CAPABILITY_IDM_DIRECTORY
from govoplan_core.core.organizations import CAPABILITY_ORGANIZATION_DIRECTORY, OrganizationDirectory from govoplan_core.core.organizations import CAPABILITY_ORGANIZATION_DIRECTORY, OrganizationDirectory
from govoplan_core.core.views import ViewSurface
from govoplan_core.core.module_guards import persistent_table_uninstall_guard from govoplan_core.core.module_guards import persistent_table_uninstall_guard
from govoplan_core.core.modules import ( from govoplan_core.core.modules import (
DocumentationTopic, DocumentationTopic,
@@ -128,6 +129,15 @@ manifest = ModuleManifest(
package_name="@govoplan/idm-webui", package_name="@govoplan/idm-webui",
routes=(FrontendRoute(path="/idm", component="IdmPage", required_any=IDM_READ_SCOPES, order=72),), routes=(FrontendRoute(path="/idm", component="IdmPage", required_any=IDM_READ_SCOPES, order=72),),
nav_items=(NavItem(path="/idm", label="IDM", icon="users", required_any=IDM_READ_SCOPES, order=72),), nav_items=(NavItem(path="/idm", label="IDM", icon="users", required_any=IDM_READ_SCOPES, order=72),),
view_surfaces=(
ViewSurface(
id="idm.action.view-function-assignments",
module_id="idm",
kind="action",
label="View function assignments",
order=40,
),
),
), ),
migration_spec=MigrationSpec( migration_spec=MigrationSpec(
module_id="idm", module_id="idm",

View File

@@ -21,6 +21,7 @@ const organizationFunctionActions: OrganizationFunctionActionsUiCapability = {
actions: [ actions: [
{ {
id: "idm.view-function-assignments", id: "idm.view-function-assignments",
surfaceId: "idm.action.view-function-assignments",
label: "i18n:govoplan-idm.view_assignments.2d40d6a5", label: "i18n:govoplan-idm.view_assignments.2d40d6a5",
icon: createElement(Users, { size: 16 }), icon: createElement(Users, { size: 16 }),
anyOf: idmReadScopes, anyOf: idmReadScopes,
@@ -40,6 +41,15 @@ export const idmModule: PlatformWebModule = {
version: "0.1.6", version: "0.1.6",
dependencies: ["identity", "organizations"], dependencies: ["identity", "organizations"],
translations, translations,
viewSurfaces: [
{
id: "idm.action.view-function-assignments",
moduleId: "idm",
kind: "action",
label: "View function assignments",
order: 40
}
],
navItems: [ navItems: [
{ {
to: "/idm", to: "/idm",