Skip to content

Conversation

@vividviolet
Copy link
Member

Pull Request Description

This PR revises the existing templates to retain the React versions while adding support for Preact templates. The modifications include:

  • Standardization: Updated React and Vanilla templates to utilize the 2025.7.x API versions.
  • Preact Integration: Introduced Preact support across all UI extension templates, employing a three-flavor pattern:
    • Preact: Implements Preact with ~2025.10.0-rc API.
    • React: Continues using React with 2025.7.x API.
    • Vanilla: Utilizes vanilla JavaScript with 2025.7.x API.
  • Template Updates: Fixed version inconsistencies across all templates.
  • Feature Expansion: Added Preact support for validation-settings, customer-segment-template-extension, and discount-details-function-settings-block.
  • Backward Compatibility: Ensured that existing React templates remain functional and compatible.

Additionally, the README.md has been updated to reflect the changes and provide better guidance for users. An initial cart line item template has also been added.

This effort aims to enhance the flexibility of our UI templates while ensuring that current React implementations remain intact.

- Standardize React/Vanilla templates to use 2025.7.x API versions
- Add Preact support to all UI extension templates with three-flavor pattern:
  - Preact: uses preact with ~2025.10.0-rc API
  - React: uses react with 2025.7.x API
  - Vanilla: uses vanilla JS with 2025.7.x API
- Update version inconsistencies across templates
- Add Preact support to validation-settings, customer-segment-template-extension, and discount-details-function-settings-block
- Maintain backward compatibility with existing React templates

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@vividviolet vividviolet changed the base branch from main to cx_migrate_pos_templates_to_preact July 18, 2025 14:06
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