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

+4 -2
View File
@@ -8,8 +8,8 @@ use Mautic\CoreBundle\Security\Permissions\AbstractPermissions;
use Symfony\Component\Form\FormBuilderInterface;
/**
* Permission keys: plan:plans:* and plan:tasks:* (view/edit/delete/publish own and other, create, full),
* and plan:categories:* (managing the "plan" category type).
* Permission keys: plan:plans:*, plan:tasks:* and plan:stakeholders:* (view/edit/delete/publish own and
* other, create, full), and plan:categories:* (managing the "plan" category type).
*
* Shown under Settings > Roles. Core discovers this class from Security/Permissions/.
*/
@@ -25,6 +25,7 @@ class PlanPermissions extends AbstractPermissions
$this->addStandardPermissions('categories');
$this->addExtendedPermissions('plans');
$this->addExtendedPermissions('tasks');
$this->addExtendedPermissions('stakeholders');
}
public function getName(): string
@@ -41,5 +42,6 @@ class PlanPermissions extends AbstractPermissions
$this->addStandardFormFields('plan', 'categories', $builder, $data);
$this->addExtendedFormFields('plan', 'plans', $builder, $data);
$this->addExtendedFormFields('plan', 'tasks', $builder, $data);
$this->addExtendedFormFields('plan', 'stakeholders', $builder, $data);
}
}