Workarea 3.1.15

Fix inconsistent default regular user permissions

We were using Mongoid's :default option on user permission fields to denote their default values. On the front-end, admins were complaining that users had "Releases" access on the admin, even though they don't have admin access. This prevents that from happening by setting those permissions which defaulted to true when the user becomes an admin, rather than when creating a new user account.

Issues

Pull Requests

Commits

Switch product image when variant changes in generic template

When selecting different options on the generic template, the product detail page changes asynchronously to reflect the new product details, but images not related to the variant are still visible. We're now passing all variant details as query paramters in the GET request, which has the effect of filtering images by the given option.

Issues

Pull Requests

Commits

Translate the address fields partial

The address fields partial was not translated out-of-box, we're now adding the translations from address fields in the storefront into the admin fields partial

Issues

Pull Requests

Commits

When viewing admin pages with a lot of text on them, clicking the "Help" button could potentially have caused a cookie overflow error if the admin's session expired at the same time as they clicked the button. This is because the amount of content in the like_text param in the URL is too large for the :return_to session value (stored in a client-side cookie). We introduced a new configuration value named return_to_url_max_length that prescribes the amount of characters in a :return_to URL. This prevents help URLs from being too long for storage in a client-side cookie.

Issues

Pull Requests

Commits

Include plugin SVGs on style guide

We weren't including new SVG icons introduced by plugins in style guides. This made finding all the icons at your disposal in a given implementation much more difficult to find. We're now including all SVG icons into the style guide, even if it's introduced by a Workarea plugin.

Issues

Pull Requests

Commits

Fix date-specific test failure

Due to the use of 3.months as our order_expiration_period, some tests failed on February 28th specifically because they were expiring orders days before the test had expected them to. We've updated this config setting to be the more specific 90 days, which fluctuates less often.

Issues

Pull Requests

Commits