Skip to content

hotfix/cms-guard-and-translations#117

Closed
dean-smart wants to merge 3 commits into
mainfrom
hotfix/cms-guard-and-translations
Closed

hotfix/cms-guard-and-translations#117
dean-smart wants to merge 3 commits into
mainfrom
hotfix/cms-guard-and-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 09:28
@dean-smart dean-smart closed this Jun 18, 2026
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