Skip to content

magento-integration: release 1.0.1 with optional inventory and widget fonts - #3

Merged
rockwellll merged 5 commits into
mainfrom
fix/storefront-stability
Oct 20, 2026
Merged

rockwellll merged 5 commits into
mainfrom
fix/storefront-stability

Conversation

@anyelopetit

@anyelopetit anyelopetit commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes found while installing 1.0.0 from Packagist on a clean Magento Open Source 2.4.7-p10 store connected to a production Hellotext business.

  • Optional Magento Inventory (MSI). 1.0.0 requires magento/module-inventory-sales-api, so stores that removed or disabled MSI (a common performance setup) cannot install the module. StockManagement now resolves the MSI services only when Magento_InventorySalesApi is enabled and its classes exist (a removed MSI can leave a stale enabled flag), and otherwise reads Magento's default stock through CatalogInventory. The MSI path is unchanged. MSI moves from require to suggest, and Magento_CatalogInventory replaces it in the module sequence.
  • Widget fonts in the CSP. Popups, webchat and forms load their fonts from https://www.hellotext.com, which font-src did not allow. Magento reports the violation on storefront pages and blocks the fonts on pages where CSP is enforced, such as checkout.
  • PHP 8.4. The constraint follows the Magento 2.4 line instead of stopping at PHP 8.3, so Magento 2.4.8 stores on PHP 8.4 can install it. CI runs the lint and isolated checks on 8.4; PHPUnit stays on 2.4.7 with PHP 8.2 and 8.3. The README describes 2.4.7 as the tested version, not a requirement.
  • Version 1.0.1. composer.json and the changelog (1.0.0 was still under "Unreleased"). The README notes that MSI is optional.

Verification

On the test store (Magento 2.4.7-p10, PHP 8.3, MSI enabled), with this branch installed:

  • vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist <module>/Test/Unit: 65 tests passed, including a new case for the store without MSI.
  • setup:upgrade and setup:di:compile completed without errors.
  • GET /V1/hellotext/catalog/stock: products 1 and 2 salable, unknown product 999 not salable.
  • The checkout CSP header now lists https://www.hellotext.com in font-src.
  • Repository checks: node --test (76 passed), the isolated PHP checks, composer validate.

Storefront tracking was also checked on 1.0.0 (unchanged here): the bridge starts, the SDK initializes, and cart.added reaches https://api.hellotext.com/v1/track/events with HTTP 200.

After merge

Tag 1.0.1 so Packagist publishes it.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T21:34:24.242679Z f1d6c8d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db8d5177a6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Model/StockManagement.php Resolved
@rockwellll
rockwellll merged commit 12639bd into main Oct 20, 2026
5 checks passed
@rockwellll
rockwellll deleted the fix/storefront-stability branch October 20, 2026 17:27
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