Skip to content

Add PrestaShop 8.2 and 9.1 compatibility and release tooling#348

Merged
PrestaSafe merged 8 commits into
mainfrom
compat/prestashop-8.2-9.1
Jul 10, 2026
Merged

Add PrestaShop 8.2 and 9.1 compatibility and release tooling#348
PrestaSafe merged 8 commits into
mainfrom
compat/prestashop-8.2-9.1

Conversation

@PrestaSafe

Copy link
Copy Markdown
Owner

Summary

This prepares PrettyBlocks 3.2.1 as a focused compatibility release for the maintained 3.x line.

  • support clean development and release tests on PrestaShop 8.2.7 and 9.1.4
  • fix Symfony/admin URL generation across PrestaShop 8 and 9
  • fix the PrestaShop 9 editor iframe URL
  • fix the iframe loading race that could leave the editor on “Loading in progress”
  • generate a fresh instance_id when cloning blocks across languages
  • add a reproducible Docker release builder and local packaged-release tests
  • build an installable ZIP automatically on pull requests and pushes to main
  • bump the module version from 3.2.0 to 3.2.1

No v4 work is included in this pull request.

Why

PrettyBlocks 3.2.0 assumed URL and iframe behavior that differs between PrestaShop 8 and 9. The iframe load listener could also be registered after the document had already loaded, leaving the loader visible indefinitely.

The previous release workflow did not validate the final ZIP as an installed module. The new workflow builds production dependencies and frontend assets in Docker, validates the archive, and makes the same process available locally.

Contributors

This branch incorporates the focused fixes proposed by:

Their original Git authorship is preserved in the commit history.

Validation

  • scripts/build-release.sh
  • PS82_RELEASE_PORT=8282 PS91_RELEASE_PORT=8291 scripts/test-release.sh
  • PrestaShop 8.2.7 / PHP 8.1.33 / PrettyBlocks 3.2.1
  • PrestaShop 9.1.4 / PHP 8.5.0 / PrettyBlocks 3.2.1
  • production Composer dependency present and development dependencies excluded
  • PHP syntax validated throughout the packaged module
  • built frontend assets fetched successfully from both clean installations
  • editor iframe and AJAX loading flow manually verified

Generated package: prettyblocks-3.2.1.zip
SHA-256: 0b115fba49191a9b94d3852004654a2627bf3211e9c6c3c7bcb32beca2dfe2b2

@PrestaSafe
PrestaSafe marked this pull request as ready for review July 10, 2026 14:17
@PrestaSafe
PrestaSafe merged commit e059832 into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants