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:
1 parent
8c8d7a6f95
commit
8696acd01c
52 files changed
+3178
-125
No files matched your search
+25
-3
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
return [
|
||||
'name' => 'Plan',
|
||||
'description' => 'Plan plugin for Mautic.',
|
||||
'version' => '0.8.0',
|
||||
'version' => '0.12.0',
|
||||
'author' => 'Experiential',
|
||||
|
||||
'routes' => [
|
||||
@@ -28,6 +28,15 @@ return [
|
||||
'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',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
@@ -37,7 +46,7 @@ return [
|
||||
'mautic.plan.menu.root' => [
|
||||
'id' => 'plan_root',
|
||||
'iconClass' => 'ri-calendar-line',
|
||||
'access' => ['plan:plans:viewown', 'plan:plans:viewother', 'plan:tasks:viewown', 'plan:tasks:viewother'],
|
||||
'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' => [
|
||||
@@ -52,6 +61,12 @@ return [
|
||||
'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,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
@@ -90,8 +105,15 @@ return [
|
||||
|
||||
// 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 and allocation item types.
|
||||
// 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',
|
||||
],
|
||||
];
|
||||
@@ -27,4 +27,6 @@ return function (ContainerConfigurator $configurator): void {
|
||||
$services->alias('mautic.plan.model.plan', MauticPlugin\PlanBundle\Model\PlanModel::class);
|
||||
// getModel('plan.task').
|
||||
$services->alias('mautic.plan.model.task', MauticPlugin\PlanBundle\Model\TaskModel::class);
|
||||
// getModel('plan.stakeholder').
|
||||
$services->alias('mautic.plan.model.stakeholder', MauticPlugin\PlanBundle\Model\StakeholderModel::class);
|
||||
};
|
||||
Reference in new issue
Block a user