Implement Temporary Solution for Generating Guided Template Launchpad Carousel Images by sanjacornelius · Pull Request #6250 · ProcessMaker/processmaker

This PR introduces a temporary solution for generating Guided Template Launchpad carousel images. Due to limitations in the current system where launchpad images are not exported alongside process configurations, this temporary solution utilizes the wizard-templates GitHub repo to store images related to the guided template. Upon importing the process created from the guided template, the images are synced to the newly imported process.

The changes include updates to the SyncGuidedTemplates job to handle storing the launchpad images and modifications to the import method for importing a process from a process template to add the guided template images to the processimage_carousel media collection.

How to Test

  1. Ensure your environment is configured with the correct wizard-template branch by adding GUIDED_TEMPLATE_BRANCH=task/FOUR-14171 to your .env file.
  2. Run the commands php artisan optimize and php artisan processmaker:sync-guided-templates.
  3. Navigate to Processes -> Guided Templates.
  4. Run a guided template.
  5. Upon completion and redirection to the newly created process, verify that the carousel images are loaded correctly.
  6. Run another guided template to ensure there are no image errors on subsequent process imports.

Related Tickets & Packages

ci:next

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

ci:deploy
ci:next
ci:wizard-templates:task/FOUR-14171
ci:GUIDED_TEMPLATE_BRANCH="task/FOUR-14171"