Skip to content

hotfix/cms-guard-and-missing-translations#118

Open
dean-smart wants to merge 2 commits into
developfrom
hotfix/cms-guard-and-missing-translations
Open

hotfix/cms-guard-and-missing-translations#118
dean-smart wants to merge 2 commits into
developfrom
hotfix/cms-guard-and-missing-translations

Conversation

@dean-smart

Copy link
Copy Markdown
Contributor

Summary

Harden checkout CMS block loading and complete missing English (US) locale entries used by checkout flows.

Changes

  • Treat missing optional CMS blocks as empty content instead of throwing an unhandled Axios error.
  • Apply the optional CMS block handling to privacy policy, general terms, and withdrawal terms content.
  • Add missing en-US translations for Click & Collect weight thresholds, collection location UI, payment labels, postcode lookup, and day names.
  • Align en-GB password help text indentation.

Testing

  • Ran npm run lint in view/frontend/web/js/checkout.

Notes

  • Missing CMS blocks now log a warning and return {}, so dependent components simply do not render their optional content.
  • Non-404 CMS block loading errors still throw, so real service failures are not hidden.

@dean-smart dean-smart requested a review from maxparkergene June 18, 2026 10:57
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.

1 participant