feat: Add TargetType form and migration for plan targets

- Implemented TargetType form for managing target details including name, type, priority, stages, estimated size, profile criteria, pain points, value proposition, and preferred channels.
- Created migration scripts for adding type and priority columns to plan objectives and tasks.
- Added migration for creating plan targets and plan target stages tables, including foreign key constraints.
- Introduced stakeholder management with forms and views for creating, editing, and listing stakeholders.
- Enhanced UI with read more functionality for long text descriptions and filtering options in plan tab tables.
This commit is contained in:
Alexandre Gain committed 2026-11-08 11:54:25 +01:00
1 parent 8c8d7a6f95
commit 8696acd01c
52 files changed
+3178 -125

No files matched your search

+11 -3
View File
@@ -9,10 +9,12 @@ use Mautic\CoreBundle\Helper\LanguageHelper;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* Reads the item types set up in Settings > Configuration > Plan. There is one list of types per kind of
* plan item:
* Reads the item types set up in Settings > Configuration > Plan. There is one list of types per kind:
* - KIND_DESCRIPTION: types of description items (Description tab), parameter plan_description_item_types;
* - KIND_ALLOCATION: types of allocation items (Allocation tab), parameter plan_allocation_item_types.
* - KIND_ALLOCATION: types of allocation items (Allocation tab), parameter plan_allocation_item_types;
* - KIND_OBJECTIVE: types of objectives (Objectives tab), parameter plan_objective_types;
* - KIND_TASK: types of tasks (Planning > Tasks and the plan's Tasks tab), parameter plan_task_types;
* - KIND_STAKEHOLDER: types of stakeholders (Planning > Stakeholders), parameter plan_stakeholder_types.
*
* Each list is stored in local.php, in display order:
*
@@ -30,6 +32,9 @@ class ItemTypeProvider
{
public const KIND_DESCRIPTION = 'description';
public const KIND_ALLOCATION = 'allocation';
public const KIND_OBJECTIVE = 'objective';
public const KIND_TASK = 'task';
public const KIND_STAKEHOLDER = 'stakeholder';
/**
* Kind => local.php parameter.
@@ -37,6 +42,9 @@ class ItemTypeProvider
public const PARAMETERS = [
self::KIND_DESCRIPTION => 'plan_description_item_types',
self::KIND_ALLOCATION => 'plan_allocation_item_types',
self::KIND_OBJECTIVE => 'plan_objective_types',
self::KIND_TASK => 'plan_task_types',
self::KIND_STAKEHOLDER => 'plan_stakeholder_types',
];
public function __construct(