refactor(program): move item types out of Settings > Configuration

Relocate the item type lists (insights, allocations, objectives, tasks,
stakeholders, audience values) from the Configuration tab to a dedicated
"Item types" page under Programs, served by ItemTypesController at
/program-item-types and guarded by the new program:itemtypes:view
permission. The Program settings tab in Configuration now only holds the
general settings (currency, stakeholder phone region, audience attribute
toggles), so ConfigSubscriber no longer needs the item repositories; the
in-use type protection moved to ItemTypeInUseGuard.
This commit is contained in:
Alexandre Gain committed 2026-11-14 09:20:21 +01:00
1 parent 71ff11390b
commit 687d33d30c
14 files changed
+444 -219

No files matched your search

+1
View File
@@ -0,0 +1 @@
mautic.program.item_type.saved="Item types saved."
+10 -3
View File
@@ -1,6 +1,7 @@
mautic.plugin.program.name="Program"
mautic.program.menu.root="Programs"
mautic.program.menu.index="Initiatives"
mautic.program.menu.item_types="Item types"
mautic.program.tab.details="Details"
mautic.program.tab.description="Insights"
@@ -169,6 +170,12 @@ mautic.program.permissions.initiatives="Initiatives - User has access to"
mautic.program.permissions.tasks="Tasks - User has access to"
mautic.program.permissions.stakeholders="Stakeholders - User has access to"
mautic.program.permissions.audiences="Audiences - User has access to"
mautic.program.permissions.itemtypes="Item types - User has access to"
; The Item types page (Programs > Item types).
mautic.program.item_type.header.index="Item types"
mautic.program.item_type.page.description="The types of the plugin's items: insights, allocations, objectives, tasks, stakeholders, and the values offered for an audience's decision roles and tones. Give each type a name and a description in each language, and a pictogram; the default language is required. Users see their own language, or the default language when it's empty."
mautic.program.item_type.not_writable="The configuration file (config/local.php) is not writable: the type lists can be changed, but not saved."
; Tasks (Programs > Tasks). Translation base mautic.program.task.
mautic.program.task.menu.index="Tasks"
@@ -253,7 +260,7 @@ mautic.program.objective.add="Add objective"
mautic.program.objective.remove="Remove objective"
mautic.program.objective.drag="Drag to reorder"
mautic.program.objective.empty="No objectives yet."
mautic.program.objective.no_types="No objective types are set up yet. An administrator can add them in Settings > Configuration > Program Settings."
mautic.program.objective.no_types="No objective types are set up yet. They can be added in Programs > Item types."
mautic.program.objective.progress="%achieved% of %total% achieved"
mautic.program.objective.achieved="Achieved"
mautic.program.objective.not_achieved="Not achieved"
@@ -274,7 +281,7 @@ mautic.program.description_item.add="Add description item"
mautic.program.description_item.remove="Remove description item"
mautic.program.description_item.drag="Drag to reorder"
mautic.program.description_item.empty="No description items yet."
mautic.program.description_item.no_types="No insights types are set up yet. An administrator can add them in Settings > Configuration > Program Settings."
mautic.program.description_item.no_types="No insights types are set up yet. They can be added in Programs > Item types."
mautic.program.description_item.type.unknown="Unknown type (%key%)"
; Settings > Configuration > Plan. Core builds the tab title key from the form alias.
@@ -300,7 +307,7 @@ mautic.program.allocation_item.add="Add allocation item"
mautic.program.allocation_item.remove="Remove allocation item"
mautic.program.allocation_item.drag="Drag to reorder"
mautic.program.allocation_item.empty="No allocation items yet."
mautic.program.allocation_item.no_types="No allocation item types are set up yet. An administrator can add them in Settings > Configuration > Program Settings."
mautic.program.allocation_item.no_types="No allocation item types are set up yet. They can be added in Programs > Item types."
mautic.program.allocation.total="Total"
; Plan page header: total costs of the allocation items, in the general currency.