Commit Graph
3 Commits
Author SHA1 Message Date
alexandre_gain_mt3s 4fb36eebfc feat(call-script): add the Call Script component (0.19.0)
A new Mautic component, listed under Components > Call Scripts (/s/call-scripts),
built like the other domains on AbstractStandardFormController/FormModel.

- CallScript (mt3s_call_scripts): name, description, category, owner, status,
the publish window shown as start/end date and time, the HTML script with
dynamic tokens kept as typed (html cleaning mask), the calling window
(weekdays, hours, sentinel in the contact's or a fixed timezone) and the retry
policy (max attempts, delay, backoff: none/linear/exponential)
- CallScriptOutcome (mt3s_call_script_outcomes, ON DELETE CASCADE): label,
data type (checkbox/radio/free text/dropdown), options JSON ({value,label})
and position; nested collections reuse the program-collection JS
- validators: ValidCallingWindow, ValidCallScriptOutcomeOptions, and an atPath
option on EndDateAfterStartDate so its violation lands on publishDown
- config: routes, the Components menu item (parent mautic.core.components),
call_script category type, model alias, call_scripts permissions, version 0.19.0
- migration Version_0_19_0 creates both tables and their FKs immediately
(users/categories SET NULL, outcomes CASCADE), idempotent
- translations en_US/fr_FR, unit tests, readme/AGENTS documentation
2026-11-21 20:58:25 +01:00
Alexandre Gain debce4ba4a fix(program): endless spinner on client-side buttons; program pages never ran their JS
Two defects kept the task form's dependency/RACI rows appearing stuck, and left the program pages uninitialized:

- Add btn-nospin to the 14 client-side Add/Remove buttons (task dependency
  and RACI add/remove, program form collections, item type rows, read-more
  toggle): core binds startIconSpinOnEvent to .btn:not(.btn-nospin) and only
  the ajax handlers restore the icon, so these non-ajax buttons spun forever
- Add ProgramController::getJsLoadMethodPrefix() returning 'mt3sMpProgram':
  core dispatches Mautic[getJsLoadMethodPrefix() + 'OnLoad'](), and without
  the override it fell back to the model alias 'mt3smp.program', which
  nothing listens to, so collections/tabs/sortables were never initialized
- Set the Program list/form/details mauticContent blocks to mt3sMpProgram
  so Mautic.mt3sMpProgramOnLoad() is dispatched on those pages
- TaskController: pass mauticContent=mt3sMpProgram in the post-save
  redirect back to the program view so the program page's JS re-fires
  after saving a task from program context
2026-11-15 17:48:40 +01:00
Alexandre Gain ea88b7a772 refactor(plugin): rebrand as MT3SMarketingProgram, release 0.17.0
Rename the plugin's vendor/namespace from experiential/Program to mt3s/MT3SMarketingProgram (composer: mt3s/mautic-marketing-program-bundle):

- ProgramBundle -> MT3SMarketingProgramBundle; extension, integration,
  config support, permissions, events and twig extension renamed likewise
- Initiative* -> Program*: controller (InitiativeController ->
  ProgramController), model, entities, repositories, form types and views
  (new _tabs/_task_table/_tab_table_filter partials, details page)
- Settings config form theme -> _config_mt3smarketingprogramconfig_widget;
  routes and translations re-prefixed (mt3s_marketing_program_*)
- Assets: icon.svg -> mt3s-mp-icon.svg; program.js -> mt3s-mp-program.js
  (OnLoad hooks renamed mt3sMpProgram*)
- Add Command/RefreshStatsCommand; Migrations/Version_0_17_0.php renames
  the tables to mt3s_mp_program_*
2026-11-15 17:48:01 +01:00