ScandiPWA Updates: July 17 (Issue #56)

ScandiPWA
Progressive Web Apps
2 min readJul 17, 2020

Bundle products, dependency version bump, stability improvements

What’s inside

  • Bundle products;
  • Dependency version bump;
  • Bug fixes;

Feature breakdown

Bundle products

Support added for bundle products! Not all options are supported. Supported: dropdown type and checkbox, unsupported: multiple-select and radio. See preview:

Dependency version bump

Almost all dependencies were upgraded. There only one important dependency we currently are not upgrading — that’s the history module. It's a bump from 4.9 to 5.0 will break the application entirely.

From update highlights — we bumped the eslint-config-airbnb preset version, and now by default arrow functions which return immediately require brackets surrounding the arguments. We left this unchanged, as it improved consistency and is an auto-fixable issue.

Bug fixes

  • Breadcrumbs lead to 404
  • Breadcrumbs no longer reference inactive categories
  • Adding a simple product to cart causes issues
  • Adding wish-list item to cart causes error
  • Email field in my-account is not translated
  • Many buttons were missing label
  • Desktop scroll over an image is patched
  • Fail-safe for the non-supported bundle and customization options

Important notes

  • Components CartItem and ProductActions received a rework to split into smaller functions and contain no business logic in components
  • Arrow functions that return immediately require brackets surrounding the arguments. Is auto-fixable by ESLint
  • Customizable options and bundle products logic merged in some cases to keep code “DRY”

Assets

Source code(zip)

Source code(tar.gz)

We hope you enjoyed the latest ScandiPWA updates. Follow us on Twitter or join the first Magento PWA community in our Slack channel where you can stay up-to-date with our work, explore the latest technical progress, ask questions, and meet other enthusiasts!

https://upscri.be/vexmxs

ScandiPWA is the first open-source PWA theme for Magento

--

--