feat: promote work to a stable product destination
Module Package Release / publish-packages (push) Successful in 12s
Module Package Release / publish-packages (push) Successful in 12s
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@govoplan/tasks",
|
"name": "@govoplan/tasks",
|
||||||
"version": "0.1.21",
|
"version": "0.1.22",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Governed work items and unified work inbox for GovOPlaN.",
|
"description": "Governed work items and unified work inbox for GovOPlaN.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
+2
-2
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "govoplan-tasks"
|
name = "govoplan-tasks"
|
||||||
version = "0.1.21"
|
version = "0.1.22"
|
||||||
description = "Governed work items and unified work inbox for GovOPlaN."
|
description = "Governed work items and unified work inbox for GovOPlaN."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
authors = [{ name = "GovOPlaN" }]
|
authors = [{ name = "GovOPlaN" }]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"govoplan-core>=0.1.18",
|
"govoplan-core>=0.1.44",
|
||||||
"govoplan-access>=0.1.18",
|
"govoplan-access>=0.1.18",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
"""GovOPlaN Tasks module."""
|
"""GovOPlaN Tasks module."""
|
||||||
|
|
||||||
__version__ = "0.1.21"
|
__version__ = "0.1.22"
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ from govoplan_core.core.modules import (
|
|||||||
ModuleManifest,
|
ModuleManifest,
|
||||||
NavItem,
|
NavItem,
|
||||||
PermissionDefinition,
|
PermissionDefinition,
|
||||||
|
ProductAvailabilityExplanation,
|
||||||
ProductAreaContribution,
|
ProductAreaContribution,
|
||||||
|
ProductSurfaceContribution,
|
||||||
QuickAccessTool,
|
QuickAccessTool,
|
||||||
RoleTemplate,
|
RoleTemplate,
|
||||||
)
|
)
|
||||||
@@ -47,7 +49,7 @@ from govoplan_tasks.backend.service import SqlTaskService
|
|||||||
|
|
||||||
MODULE_ID = "tasks"
|
MODULE_ID = "tasks"
|
||||||
MODULE_NAME = "Tasks"
|
MODULE_NAME = "Tasks"
|
||||||
MODULE_VERSION = "0.1.21"
|
MODULE_VERSION = "0.1.22"
|
||||||
READ_SCOPE = "tasks:item:read"
|
READ_SCOPE = "tasks:item:read"
|
||||||
WRITE_SCOPE = "tasks:item:write"
|
WRITE_SCOPE = "tasks:item:write"
|
||||||
ADMIN_SCOPE = "tasks:item:admin"
|
ADMIN_SCOPE = "tasks:item:admin"
|
||||||
@@ -209,7 +211,8 @@ DOCUMENTATION = (
|
|||||||
title="Work in product navigation and Quick Access",
|
title="Work in product navigation and Quick Access",
|
||||||
summary="Keep assigned work available in the Work area and the optional right-side Quick Access rail.",
|
summary="Keep assigned work available in the Work area and the optional right-side Quick Access rail.",
|
||||||
body=(
|
body=(
|
||||||
"Tasks contributes its authorized workspace to the Work product area. When Quick Access is enabled, "
|
"Tasks contributes its authorized workspace to the stable Work destination at /work. The owner route "
|
||||||
|
"/tasks remains available through All available tools and as a compatible deep link. When Quick Access is enabled, "
|
||||||
"a bounded seven-item authorized inbox and detail can appear beside the current page. Explicit Tasks can be "
|
"a bounded seven-item authorized inbox and detail can appear beside the current page. Explicit Tasks can be "
|
||||||
"started or completed there; work from another provider exposes only that provider's launch path. Every load "
|
"started or completed there; work from another provider exposes only that provider's launch path. Every load "
|
||||||
"and command is rechecked by Tasks, and completion returns a typed work-item reference to the host. Views may "
|
"and command is rechecked by Tasks, and completion returns a typed work-item reference to the host. Views may "
|
||||||
@@ -224,7 +227,8 @@ DOCUMENTATION = (
|
|||||||
"title": "Arbeit in Produktnavigation und Schnellzugriff",
|
"title": "Arbeit in Produktnavigation und Schnellzugriff",
|
||||||
"summary": "Zugewiesene Arbeit im Produktbereich Arbeit und optional in der rechten Schnellzugriffsleiste verwenden.",
|
"summary": "Zugewiesene Arbeit im Produktbereich Arbeit und optional in der rechten Schnellzugriffsleiste verwenden.",
|
||||||
"body": (
|
"body": (
|
||||||
"Tasks ordnet den berechtigten Arbeitsbereich dem Produktbereich Arbeit zu. Ist der Schnellzugriff aktiviert, "
|
"Tasks ordnet den berechtigten Arbeitsbereich dem stabilen Produktziel Arbeit unter /work zu. Der Eigentümerpfad "
|
||||||
|
"/tasks bleibt unter Alle verfügbaren Werkzeuge und als kompatibler Direktlink erreichbar. Ist der Schnellzugriff aktiviert, "
|
||||||
"kann ein begrenzter, berechtigungsgeprüfter Arbeitsvorrat mit sieben Einträgen und Details neben der "
|
"kann ein begrenzter, berechtigungsgeprüfter Arbeitsvorrat mit sieben Einträgen und Details neben der "
|
||||||
"aktuellen Seite erscheinen. Explizite Tasks lassen sich dort beginnen oder abschließen; fremde Quellen "
|
"aktuellen Seite erscheinen. Explizite Tasks lassen sich dort beginnen oder abschließen; fremde Quellen "
|
||||||
"behalten ihre eigenen Befehle und Startpfade. Jeder Aufruf wird erneut durch Tasks geprüft. Ansichten "
|
"behalten ihre eigenen Befehle und Startpfade. Jeder Aufruf wird erneut durch Tasks geprüft. Ansichten "
|
||||||
@@ -407,6 +411,30 @@ manifest = ModuleManifest(
|
|||||||
order=10,
|
order=10,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
product_surfaces=(
|
||||||
|
ProductSurfaceContribution(
|
||||||
|
id="work.items",
|
||||||
|
module_id=MODULE_ID,
|
||||||
|
label="i18n:govoplan-core.product_surface.work",
|
||||||
|
description="i18n:govoplan-core.product_surface.work_description",
|
||||||
|
icon="list-checks",
|
||||||
|
entry_path="/work",
|
||||||
|
route_path="/tasks",
|
||||||
|
surface_ids=("tasks.route.work",),
|
||||||
|
presentations=("task", "reader"),
|
||||||
|
help_context_ids=("tasks.route.work",),
|
||||||
|
documentation_topic_ids=("tasks.quick-access-and-product-area",),
|
||||||
|
required_any=(READ_SCOPE,),
|
||||||
|
order=10,
|
||||||
|
unavailable=ProductAvailabilityExplanation(
|
||||||
|
reason="authorization",
|
||||||
|
title="i18n:govoplan-core.product_surface.unavailable",
|
||||||
|
description="i18n:govoplan-core.product_surface.unavailable_description",
|
||||||
|
resolution="i18n:govoplan-core.product_surface.unavailable_resolution",
|
||||||
|
responsible_role="i18n:govoplan-core.access_administrator",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
quick_access_tools=(
|
quick_access_tools=(
|
||||||
QuickAccessTool(
|
QuickAccessTool(
|
||||||
id="tasks.work",
|
id="tasks.work",
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@govoplan/tasks-webui",
|
"name": "@govoplan/tasks-webui",
|
||||||
"version": "0.1.21",
|
"version": "0.1.22",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"./styles/tasks.css": "./src/styles/tasks.css"
|
"./styles/tasks.css": "./src/styles/tasks.css"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@govoplan/core-webui": "^0.1.18",
|
"@govoplan/core-webui": "^0.1.44",
|
||||||
"lucide-react": "^1.23.0",
|
"lucide-react": "^1.23.0",
|
||||||
"react": ">=19.2.7 <20",
|
"react": ">=19.2.7 <20",
|
||||||
"react-dom": ">=19.2.7 <20",
|
"react-dom": ">=19.2.7 <20",
|
||||||
|
|||||||
+7
-2
@@ -4,6 +4,7 @@ import type {
|
|||||||
PlatformWebModule,
|
PlatformWebModule,
|
||||||
QuickAccessToolsUiCapability
|
QuickAccessToolsUiCapability
|
||||||
} from "@govoplan/core-webui";
|
} from "@govoplan/core-webui";
|
||||||
|
import { generatedTranslations as productSurfaceTranslations } from "@govoplan/core-webui/outcome-product-surface-translations";
|
||||||
import TasksSummaryWidget from "./features/tasks/TasksSummaryWidget";
|
import TasksSummaryWidget from "./features/tasks/TasksSummaryWidget";
|
||||||
import TasksQuickAccess from "./features/tasks/TasksQuickAccess";
|
import TasksQuickAccess from "./features/tasks/TasksQuickAccess";
|
||||||
import { generatedTranslations } from "./i18n/generatedTranslations";
|
import { generatedTranslations } from "./i18n/generatedTranslations";
|
||||||
@@ -11,6 +12,10 @@ import "./styles/tasks.css";
|
|||||||
|
|
||||||
const TasksPage = lazy(() => import("./features/tasks/TasksPage"));
|
const TasksPage = lazy(() => import("./features/tasks/TasksPage"));
|
||||||
const readScope = ["tasks:item:read"];
|
const readScope = ["tasks:item:read"];
|
||||||
|
const translations = {
|
||||||
|
en: { ...generatedTranslations.en, ...productSurfaceTranslations.en },
|
||||||
|
de: { ...generatedTranslations.de, ...productSurfaceTranslations.de }
|
||||||
|
};
|
||||||
|
|
||||||
const dashboardWidgets: DashboardWidgetsUiCapability = {
|
const dashboardWidgets: DashboardWidgetsUiCapability = {
|
||||||
widgets: [
|
widgets: [
|
||||||
@@ -44,10 +49,10 @@ const quickAccessTools: QuickAccessToolsUiCapability = {
|
|||||||
export const tasksModule: PlatformWebModule = {
|
export const tasksModule: PlatformWebModule = {
|
||||||
id: "tasks",
|
id: "tasks",
|
||||||
label: "i18n:govoplan-tasks.work",
|
label: "i18n:govoplan-tasks.work",
|
||||||
version: "0.1.20",
|
version: "0.1.22",
|
||||||
dependencies: ["access"],
|
dependencies: ["access"],
|
||||||
optionalDependencies: ["idm", "organizations", "workflow_engine", "workflow", "notifications", "postbox", "approvals", "views", "dashboard", "search"],
|
optionalDependencies: ["idm", "organizations", "workflow_engine", "workflow", "notifications", "postbox", "approvals", "views", "dashboard", "search"],
|
||||||
translations: generatedTranslations,
|
translations,
|
||||||
navItems: [
|
navItems: [
|
||||||
{
|
{
|
||||||
to: "/tasks",
|
to: "/tasks",
|
||||||
|
|||||||
Reference in New Issue
Block a user