Skip to content

Miscellaneous fixes and improvements before release#21

Merged
MassimilianoLattanzio merged 5 commits intomainfrom
massimilianolattanzio/misc-fixes-before-release
Jan 13, 2026
Merged

Miscellaneous fixes and improvements before release#21
MassimilianoLattanzio merged 5 commits intomainfrom
massimilianolattanzio/misc-fixes-before-release

Conversation

@MassimilianoLattanzio
Copy link
Member

@MassimilianoLattanzio MassimilianoLattanzio commented Jan 13, 2026

This PR includes several small improvements and fixes in preparation for the next release.

Changes

Generator Templates

  • Wrap components in Stimulus controller div: All generated liquid templates now include a wrapping div with data-controller attribute for better Stimulus integration
  • Simplify Stimulus controller registration: Refactored controller.js template to use inline class syntax instead of separate class declaration
  • Change console.info to console.log: Updated index.js template to use console.log for better consistency

Documentation

  • Add tested theme compatibility section: Documents that the gem has been tested with Skeleton Theme and Horizon Theme
  • Update TODO list: Added investigation task for import maps and clarified decompilation task priority

Adds a data-controller wrapper div around the existing
template content to enable Stimulus JavaScript framework integration.
Standardizes logging method to use the more common
console.log instead of console.info.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR includes pre-release refinements to generator templates and documentation. The changes improve Stimulus integration, simplify controller registration, and document theme compatibility.

Changes:

  • Refactored Stimulus controller template to use inline class syntax instead of separate class declaration
  • Added wrapping div with data-controller attribute to all generated Liquid templates for better Stimulus integration
  • Updated console output methods and enhanced documentation with tested theme information

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
generators/index.js.tt Changed console.info to console.log for consistency
generators/controller.js.tt Simplified controller registration using inline class syntax
generators/%type%.liquid.tt Added Stimulus controller wrapper div to template
README.md Added "Tested With" section and clarified TODO items

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

## Tested With

- [Skeleton Theme](https://github.com/Shopify/skeleton-theme)
- [Horizon Theme](https://github.com/Shopify/horizon)
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The GitHub repository URL for "Horizon Theme" appears to reference a repository that may not exist. Shopify's official reference theme is typically "Dawn" (https://github.com/Shopify/dawn). Please verify that this repository exists and is the correct reference.

Suggested change
- [Horizon Theme](https://github.com/Shopify/horizon)
- [Dawn Theme](https://github.com/Shopify/dawn)

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

image

@MassimilianoLattanzio MassimilianoLattanzio merged commit e07c217 into main Jan 13, 2026
11 checks passed
@MassimilianoLattanzio MassimilianoLattanzio deleted the massimilianolattanzio/misc-fixes-before-release branch January 13, 2026 20:29
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