Filter dashboard widgets by View

This commit is contained in:
2026-07-28 21:04:54 +02:00
parent cfacc47ebb
commit 64032b1ed1
3 changed files with 29 additions and 2 deletions
@@ -2,6 +2,7 @@ from __future__ import annotations
from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER
from govoplan_core.core.modules import DocumentationTopic, FrontendModule, FrontendRoute, ModuleManifest, NavItem
from govoplan_core.core.views import ViewSurface
manifest = ModuleManifest(
@@ -16,6 +17,15 @@ manifest = ModuleManifest(
package_name="@govoplan/dashboard-webui",
routes=(FrontendRoute(path="/dashboard", component="DashboardPage", order=10),),
nav_items=(NavItem(path="/dashboard", label="Dashboard", icon="dashboard", order=10),),
view_surfaces=(
ViewSurface(
id="dashboard.widget.installed-modules",
module_id="dashboard",
kind="section",
label="Installed modules widget",
order=10,
),
),
),
documentation=(
DocumentationTopic(