Contribute Tasks to product presentation

This commit is contained in:
2026-08-06 19:02:54 +02:00
parent 3cdab599ff
commit 8e4a247308
3 changed files with 82 additions and 3 deletions
+2
View File
@@ -3,6 +3,7 @@ import type { PlatformTranslations } from "@govoplan/core-webui";
export const generatedTranslations: PlatformTranslations = {
de: {
"i18n:govoplan-tasks.work": "Arbeit",
"i18n:govoplan-tasks.quick_access_description": "Offene und überfällige Arbeit, die Ihre Aufmerksamkeit benötigt.",
"i18n:govoplan-tasks.work_inbox": "Arbeitsvorrat",
"i18n:govoplan-tasks.work_details": "Arbeitsdetails",
"i18n:govoplan-tasks.work_items": "Arbeitsobjekte",
@@ -68,6 +69,7 @@ export const generatedTranslations: PlatformTranslations = {
},
en: {
"i18n:govoplan-tasks.work": "Work",
"i18n:govoplan-tasks.quick_access_description": "Open and overdue work requiring your attention.",
"i18n:govoplan-tasks.work_inbox": "Work inbox",
"i18n:govoplan-tasks.work_details": "Work details",
"i18n:govoplan-tasks.work_items": "Work items",
+18 -3
View File
@@ -1,7 +1,8 @@
import { createElement, lazy } from "react";
import type {
DashboardWidgetsUiCapability,
PlatformWebModule
PlatformWebModule,
QuickAccessToolsUiCapability
} from "@govoplan/core-webui";
import TasksSummaryWidget from "./features/tasks/TasksSummaryWidget";
import { generatedTranslations } from "./i18n/generatedTranslations";
@@ -30,6 +31,18 @@ const dashboardWidgets: DashboardWidgetsUiCapability = {
]
};
const quickAccessTools: QuickAccessToolsUiCapability = {
tools: [
{
id: "tasks.work",
render: ({ settings }) => createElement(TasksSummaryWidget, {
settings,
refreshKey: 0
})
}
]
};
export const tasksModule: PlatformWebModule = {
id: "tasks",
label: "i18n:govoplan-tasks.work",
@@ -61,10 +74,12 @@ export const tasksModule: PlatformWebModule = {
{ id: "tasks.page.detail", moduleId: "tasks", kind: "section", label: "i18n:govoplan-tasks.work_details", parentId: "tasks.route.work", order: 30 },
{ id: "tasks.action.create", moduleId: "tasks", kind: "action", label: "i18n:govoplan-tasks.create_task", parentId: "tasks.page.inbox", order: 40 },
{ id: "tasks.action.advance", moduleId: "tasks", kind: "action", label: "i18n:govoplan-tasks.advance_task", parentId: "tasks.page.detail", order: 50 },
{ id: "tasks.widget.open-work", moduleId: "tasks", kind: "section", label: "i18n:govoplan-tasks.widget", order: 60 }
{ id: "tasks.widget.open-work", moduleId: "tasks", kind: "section", label: "i18n:govoplan-tasks.widget", order: 60 },
{ id: "tasks.quick_access.work", moduleId: "tasks", kind: "quick_access", label: "i18n:govoplan-tasks.work", order: 70 }
],
uiCapabilities: {
"dashboard.widgets": dashboardWidgets
"dashboard.widgets": dashboardWidgets,
"quickAccess.tools": quickAccessTools
}
};