feat(c7): dashboard widgets as plugin contributions + contact counts via contacts contract
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from app.plugins.base import BasePlugin
|
||||
from app.plugins.manifest import (
|
||||
CronJobContribution,
|
||||
FrontendDashboardWidget,
|
||||
FrontendMenuItem,
|
||||
FrontendPageRoute,
|
||||
PluginManifest,
|
||||
@@ -30,6 +31,18 @@ class TasksPlugin(BasePlugin):
|
||||
],
|
||||
events=[],
|
||||
migrations=["0001_initial.sql", "0002_unified_task_system.sql"],
|
||||
dashboard_widgets=[
|
||||
FrontendDashboardWidget(
|
||||
id="tasks_summary",
|
||||
label_key="dashboard.tasksSummary",
|
||||
label="Tasks Summary",
|
||||
component="@/components/dashboard/TasksSummaryWidget",
|
||||
icon="CheckSquare",
|
||||
order=20,
|
||||
col_span=1,
|
||||
permission="tasks:read",
|
||||
),
|
||||
],
|
||||
permissions=[
|
||||
"tasks:read",
|
||||
"tasks:write",
|
||||
|
||||
Reference in New Issue
Block a user