Workarea 3.3.21

Patch release notes for Workarea 3.3.21.

Prevent Editing when Sorting Content Blocks

Allow blocks to be sorted without needing to open the Content Editing UI at the end of the process.

Issues

Pull Requests

Commits

Disable WORKAREA.scrollToButton Module When Rendered Within Dialog

The scrollToButton module automatically scrolls down the page towards the anchor that the href of the link was pointing to, but when this occurs within a dialog it can accidentally cause a scroll to the wrong element. This manifested itself when the reviews and quickview plugins were installed and the "Read Reviews" link was clicked while a product was being quick-viewed.

Issues

Pull Requests

Commits

Fix Order Item Spacing for Confirmation Email

Chunk product_grid items into rows of four in mailers to fix wrapping orders with more than 4 items in them in the out-of-box order confirmation email.

Issues

Pull Requests

Commits

Fix Malformed Closing <span> Tag In Menu Item JST

Add the closing bracket to the </span> tag at the end of the ui_menu_item JavaScript Template.

Discovered (and solved) by Lucas Boyd. Thanks Lucas!

Issues

Pull Requests

Commits

Mark Store Credit "Authorize" Transactions as "Purchase" Actions

When managing orders, particularly refunds and cancellations, store credit would not be processed correctly since there is no capturing of store credit funds. Setting the authorization transaction as a purchase transaction allows orders with store credit to be canceled and refunded as expected.

Issues

Pull Requests

Commits

Ensure String Values When Grouping Images without Options in the Option Thumbnails Template

Typically, the Catalog::ProductImage#option value is a String, but it can be nil when images are uploaded programmatically, such as through the bulk upload or CSV import tools, or potentially through a custom data integration of some kind. Ensure that this image option is converted to a String in the Storefront::OptionThumbnailsViewModel#images_without_options method, so that the option_thumbnails product template works as expected.

Issues

Pull Requests

Commits

Expire Extra Admin Cookies

The :analytics and :cache cookies were not being expired at the same time as :user_id, resulting in those cookies lingering around after an admin's session has expired. This causes errors when developers are testing things related to cache and analytics, because those cookies prevent the aforementioned functionality from succeeding. Workarea now expires these cookies at the same time as the user ID, rather than just when the session no longer exists.

Issues

Pull Requests

Commits

Update Syntax for font-url() Example in Email Template

The current example for adding a font to emails uses Ruby interpolation to inject the URL to the font in CSS. However, Rails' out-of-box SCSS integration already includes a font-url() helper that will automatically load the Sprockets fingerprinted asset in production, and look through plugin and gem paths for the asset partial string.

Discovered (and solved) by Kristin Everham. Thanks Kristin!

Issues

Pull Requests

Commits

Fix Floating Select2 "Clear" Action in Admin

Workarea now prevents the "Clear" action from appearing within a single (that is, not multi-select) Select2 UI.

Issues

Pull Requests

Commits

Fix Inability to Remove Navigable Association from Taxon Through the Admin

When associating part of the taxonomy with a "navigable" page, category, or product, admins were not able to remove the association later on if they so chose. The Navigation::Taxon#navigable property would only be set if a navigable object was sent over in params, and this contrasts with how Select2 is implemented to send over a blank value when no selection is made. Workarea will now always set the navigable to the contents of the params.

Issues

Pull Requests

Commits

Prevent Current Release from Being Set When Managing Comments

Commenting on a Releasable model while editing a Release can cause the loss of release changes when a Comment updates the subscribers of the Commentable. Workarea now prevents this by not setting the current release when adding comments.

Issues

Pull Requests

Commits

Now on GitHub