Repository navigation
v2.0.0
refactor(quickview)!: modernize codebase to PHP 8.3, remove Helper, optimize JS
Breaking Changes:
- Removed
Amadeco\QuickView\Helper\Data. Any themes or third-party modules relying on this class must be updated to useAmadeco\QuickView\Model\Config.
PHP 8.3 & Architecture:
- Implement Constructor Property Promotion and
readonlyproperties across all Blocks, Controllers, and Models. - Migrate all configuration logic from
Helper\Datato a newModel\Configservice class to adhere to SOLID principles. - Refactor
Controller\Cart\AddandController\Index\Viewto extendActioninstead of inheriting from complex Catalog/Checkout controllers, reducing coupling. - Add strict return typing (e.g.,
?ProductInterface) inBlock\QuickView.
Frontend & JavaScript:
- Rewrite
amadeco-quickview.jswidget to implementIntersectionObserverfor lazy loading of QuickView buttons (performance improvement). - Improve Modal handling: added
_disposeModalContentto properly clean up KnockoutJS bindings and prevent memory leaks. - Update
container.phtmland layout XMLs to support Bootstrap grid classes (e.g.,g-4). - Refactor
init.phtmlto use ViewModel-style configuration passing (getSerializedConfig) instead of inline Helper calls.
Dependencies & Configuration:
- Update
composer.jsonandmodule.xmlto explicitly declare required dependencies (Magento_Checkout,Magento_Swatches, etc.). - Update
di.xmlto injectModel\Configinto Plugins instead of the removed Helper.
Full Changelog: v1.1.0...v2.0.0