Files
mautic-marketing-program-bu…/Config/config.php
T
Alexandre Gain 8268fad886 feat: Rework task management in PlanBundle
- Introduced migration Version_0_13_0 to update task schema:
  - Changed start_date and end_date to DATE type, truncating time.
  - Added new columns: task_kind, definition_of_done, planned_work.
  - Removed parent_id and its index, replacing with a dependency graph.
  - Created new tables: plan_task_dependencies and plan_task_raci, including a join table for stakeholders.

- Updated Version_0_4_0 migration to remove references to parent_id.

- Refactored TaskModel to return tasks as flat rows with dependencies and RACI assignments.

- Modified task table view to display tasks without hierarchical structure, adding badges for milestones and phases.

- Enhanced task form to include dependencies and RACI roles, with appropriate macros for rendering.

- Updated task list view to reflect new task structure and display status based on task kind.

- Added new validation constraints for task dependencies and dates, ensuring no cycles or self-references.

- Removed obsolete ValidTaskParent validation as parent-child relationships are no longer supported.

- Updated translations to reflect changes in task management and new fields.

- Revised documentation to describe new task handling and features.
2026-11-13 21:58:45 +01:00

120 lines
5.1 KiB
PHP

<?php
declare(strict_types=1);
return [
'name' => 'Plan',
'description' => 'Plan plugin for Mautic.',
'version' => '0.13.0',
'author' => 'Experiential',
'routes' => [
'main' => [
'plan_index' => [
'path' => '/plans/{page}',
'controller' => 'MauticPlugin\PlanBundle\Controller\PlanController::indexAction',
],
// objectAction: view, new, edit, delete, batchDelete.
'plan_action' => [
'path' => '/plans/{objectAction}/{objectId}',
'controller' => 'MauticPlugin\PlanBundle\Controller\PlanController::executeAction',
],
'plan_task_index' => [
'path' => '/plan-tasks/{page}',
'controller' => 'MauticPlugin\PlanBundle\Controller\TaskController::indexAction',
],
// objectAction: new (optional ?plan=ID), edit, delete, batchDelete.
'plan_task_action' => [
'path' => '/plan-tasks/{objectAction}/{objectId}',
'controller' => 'MauticPlugin\PlanBundle\Controller\TaskController::executeAction',
],
'plan_stakeholder_index' => [
'path' => '/plan-stakeholders/{page}',
'controller' => 'MauticPlugin\PlanBundle\Controller\StakeholderController::indexAction',
],
// objectAction: new, edit, delete, batchDelete.
'plan_stakeholder_action' => [
'path' => '/plan-stakeholders/{objectAction}/{objectId}',
'controller' => 'MauticPlugin\PlanBundle\Controller\StakeholderController::executeAction',
],
],
],
// Top-level "Planning" menu. Future planning objects go in its children, after Plans.
'menu' => [
'main' => [
'mautic.plan.menu.root' => [
'id' => 'plan_root',
'iconClass' => 'ri-calendar-line',
'access' => ['plan:plans:viewown', 'plan:plans:viewother', 'plan:tasks:viewown', 'plan:tasks:viewother', 'plan:stakeholders:viewown', 'plan:stakeholders:viewother'],
'priority' => 5,
'children' => [
'mautic.plan.menu.index' => [
'id' => 'plan_index',
'route' => 'plan_index',
'access' => ['plan:plans:viewown', 'plan:plans:viewother'],
'priority' => 100,
],
'mautic.plan.task.menu.index' => [
'id' => 'plan_task_index',
'route' => 'plan_task_index',
'access' => ['plan:tasks:viewown', 'plan:tasks:viewother'],
'priority' => 90,
],
'mautic.plan.stakeholder.menu.index' => [
'id' => 'plan_stakeholder_index',
'route' => 'plan_stakeholder_index',
'access' => ['plan:stakeholders:viewown', 'plan:stakeholders:viewother'],
'priority' => 80,
],
],
],
],
],
'services' => [
'integrations' => [
'mautic.plan.integration' => [
'class' => MauticPlugin\PlanBundle\Integration\PlanIntegration::class,
'tags' => [
'mautic.integration',
'mautic.basic_integration',
],
],
'mautic.plan.integration.configuration' => [
'class' => MauticPlugin\PlanBundle\Integration\Support\ConfigSupport::class,
'tags' => [
'mautic.config_integration',
],
],
],
],
// Registers "plan" as a category type (Settings > Categories), used by Plan::$category.
'categories' => [
'plan' => [
'class' => MauticPlugin\PlanBundle\Entity\Plan::class,
'label' => 'mautic.plan.category.type',
],
],
'parameters' => [
// The currency of every amount in the plugin (ISO 4217), edited in Settings > Configuration >
// Plan Settings. Read it through CurrencyProvider.
'plan_currency' => 'EUR',
// Item types, edited in Settings > Configuration > Plan Settings. Read them through ItemTypeProvider.
// Each is a list of ['key' => …, 'names' => [locale => …], 'descriptions' => [locale => …]],
// plus 'icon' => a Remix Icon class for description, allocation, objective, task and stakeholder types.
'plan_description_item_types' => [],
'plan_allocation_item_types' => [],
'plan_objective_types' => [],
'plan_task_types' => [],
'plan_stakeholder_types' => [],
// Default region (ISO 3166-1 alpha-2, e.g. FR) used to parse stakeholder phone numbers typed
// without a country prefix, on save. Read through StakeholderModel.
'plan_stakeholder_phone_region' => 'FR',
],
];