Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:52
Immutable release. Only release title and notes can be modified.
8302d61

2.0 rebuilds every screen, block, and Blade component on the ArtisanPack UI
design system through livewire-ui-components 3.0. Routes, route names,
Livewire component names, config keys, and hooks are unchanged unless listed
below. It still runs on engine ^1.1; engine 1.4 or later turns on rich
product options, "Notify me", line summaries, and the engine's hold for
stranded payments.

Breaking: daisyUI is gone, published views and translations from 1.x
must be republished, and some Blade component props changed. Read
Upgrading from 1.x to 2.0 before updating.

Added

  • Design system: every screen, block, and x-artisanpack-ec-* component is rebuilt on livewire-ui-components 3.0 and the @artisanpack-ui/css and @artisanpack-ui/behavior packages, with light and dark themes and right-to-left layouts. ecommerce-storefront:install prints the front-end setup.
  • Package layout: a store navigation ("Shop all" and the top-level categories), a footer with link columns, a menu drawer on phones, and a slim secure header on the checkout page. Change its links with the ap.ecommerceStorefrontLivewire.layout.navigation and ap.ecommerceStorefrontLivewire.layout.footerLinks filters.
  • Rich product options (engine 1.4+): swatches, option metadata, conditional fields (visible_when), and live price quotes on the options form.
  • "Notify me" (engine 1.4+): a back-in-stock signup in place of the sold-out notice. Turn it off with the ap.ecommerceStorefrontLivewire.product.backInStockEnabled filter.
  • Line summaries: cart, checkout, and order lines describe the options chosen, using the engine's line descriptions (engine 1.4+).
  • Toaster: storefront toasts go through the component library's toaster, rendered by the new <x-artisanpack-ec-toaster>. SendsToasts helpers take an optional $options argument (variant, icon, and one action).
  • Account "Sign out": the account navigation posts to the new auth.logout_route config key, and is hidden when that route doesn't exist.
  • Embedded components take an optional show-title property that renders the page's h1.
  • Config keys: storefront.tagline, storefront.nav_categories, auth.logout_route, catalog.description, cart.free_shipping_threshold, product.variation_select_after, and search.keyboard_shortcut (turns off the header search's "/" shortcut).
  • Extension points: filters for the add-to-cart row, the product highlights, the sold-out notice, the payment method cards, and the store navigation; and the ap.ecommerceStorefrontLivewire.checkout.paymentMismatch and ap.ecommerceStorefrontLivewire.checkout.marketingConsentPending actions.
  • Empty state: <x-artisanpack-ec-empty-state> takes a live prop that makes it a status region; it is off by default.
  • Translations: Brazilian Portuguese (pt_BR), Japanese (ja), Simplified Chinese (zh_CN), Italian (it), and Arabic (ar) catalogues, machine-translated and awaiting native-speaker review. Arabic uses all six plural forms, and Japanese and Chinese a single form. Translations now load early, so strings resolved during boot are translated.

Changed

  • Requires artisanpack-ui/livewire-ui-components ^3.0 (was ^2.1).

  • Variation pickers: an attribute with more than product.variation_select_after (8) values is drawn as a select instead of swatches.

  • Claiming guest orders: a successful claim stays on the page with a success message and a "View orders" link instead of redirecting.

  • Checkout: upcoming steps are shown, muted, in the multi-step layout, and the checkout page uses the slim secure header.

  • Page titles: the address book's heading is "Saved addresses" and the claim page's is "Claim orders".

  • ToastPayload::make(): the fourth argument is now an options array, not a CSS class string.

  • Theming: colours come from the design system's --apui-* tokens instead of daisyUI theme colours.

  • Product and category descriptions are cleaned with the security package's safe profile: custom elements, form controls, <template>, and class, style, event-handler, Alpine (x-*, @*, :*) and wire:* attributes are removed, and only http, https, mailto and tel links are kept.

  • Customer records are only created from the profile and address pages once a MustVerifyEmail user has verified their email.

  • Marketing consent: the order's meta.marketing_consent now includes applied. A guest checkout no longer opts in an existing customer record that hadn't opted in; checkout.marketingConsentPending fires instead.

  • Inlined stylesheet is minified.

Removed

  • daisyUI support and classes.
  • Blade component props and methods replaced by the design system's data-columns grids: gridClass, classes(), and large().

Fixed

  • Security:
    • Product and category descriptions could carry script through custom elements with Alpine directives (stored XSS).
    • A guest-order claim checked the user's current verified email but claimed orders under the customer record's older email, so another person's guest orders could be claimed.
    • Unbounded price and attribute filters on the catalog and search pages could flood the cache and multiply queries.
    • Profile saves and the checkout contact and review steps weren't rate-limited, and the review step revealed whether an email had an account.
  • Checkout and payments:
    • A payment confirmed for an earlier cart total, or for a payment session the cart had since replaced, told the shopper to pay again and could charge them twice with no order. The checkout now records it, tells the shopper not to pay again, and won't set up another payment. Stripe checks the form is still current before charging. With engine 1.4+, an order the engine holds for a stranded payment (meta.payment_mismatch) goes to its confirmation like a fraud-review hold, never to payment again.
    • Browser back and forward could open steps the shopper hadn't reached, or reopen forms after payment.
    • Stripe's "Pay now" re-enabled while the order was being placed.
    • Changing the email after review skipped the account check, so the requested account silently failed.
    • Repeated payment and shipping errors weren't announced to screen readers.
  • Cart and product:
    • The cart page kept a shipping estimate the engine had dropped.
    • Root-relative image URLs (for example /storage/...) were dropped, so product images could disappear.
    • Quick cart quantity changes could be lost when the shopper went straight to checkout, and re-opening the drawer showed stale quantities.
    • The cart page counted lines while the header and drawer counted items.
    • A variant without a price in the shopper's currency was called "out of stock", and grouped products ignored customer pricing.
  • Catalog and search:
    • A search page past the last page showed "No results" beside a result count.
    • Hand-picked Product Grid products were cut by the sort before the limit, and all-digit slugs were read as ids.
    • The catalog canonical kept ?category= instead of the category page, and price filter URLs now carry their currency.
    • Category and tag pages under the product-archive template rendered two h1s.
    • Catalog renders repeated slug lookups and uncached counts, and quick add re-rendered the product card.
  • Accounts:
    • Below 1024px the account pages had no "Sign out".
    • Download links on an open downloads page expired after 10 minutes and showed a bare 403; Download now signs a fresh link on click, and an expired link returns to the downloads page.
    • The dashboard counted expired and used-up downloads as available.
  • Accessibility:
    • The header search's "/" shortcut couldn't be turned off (WCAG 2.1.4).
    • Removing a filter chip, "Clear all", or the coupon dropped keyboard focus to the page.
    • Every cart quantity field was named "Quantity"; each now names its product.
    • Required option checkboxes and quantities weren't marked required, and the shipping-estimate error wasn't tied to its radio group.
    • The sticky header could cover the focused element, and selected swatches and chips lacked 3:1 contrast.
    • Every empty state was a live region; the checkout "order placed" state had no h1; checkout steps misused aria-disabled.
    • Header search throttled and failed messages weren't announced, and the price slider could announce $0.00 for an unset bound.
    • Order lookup, claim, address and profile fields used generic or dotted ids that could clash with the host page.
  • Front end: related-products arrows pointed the wrong way in right-to-left layouts, card focus rings showed on mouse clicks and were clipped in the related-products scroller, and long chips overflowed at 320px.
  • Translations: removed 10 strings 2.0 no longer uses (the six 1.x checkout step strings stay for published views).
  • Version: the satellite registry now reports 2.0.0.