Skip to main content

Base Store - June 2022

ยท 4 min read

PLPs now support price range filtering, and nonexistent PDPs can now handle 404 errors. Also, more components have been updated to conform to the new Base Store Theming architecture.

๐ŸŽ‰ Newโ€‹

  • New Dropdown component (Gatsby #111 | Next.js #118)

    The Dropdown component has been extracted from Breadcrumb and received new local tokens as part of adhering to the new Base Store Theming architecture.

    Dropdown component

  • Price range filtering now available for PLPs (Gatsby #112 | Next.js #121)

    Thanks to the new PriceRange component, Product Listing Pages (PLPs) can now support price range filtering.

  • 301 redirects added to PDPs (Gatsby #87 | Next.js #93)

    So that VTEX stores migrating to FastStore can work seamlessly, a 301 redirect between vtexSlug and fastStoreSlug was created, where:

    • vtexSlug: /{slug}/p
    • fastStoreSlug: /{slug}-{skuId}/p

Themingโ€‹

As part of adhering to the new Base Store Theming architecture, the following components now have new local tokens related to global ones:

๐Ÿ› Bug fixโ€‹

  • ImageGallerySelector scroll fixed (Gatsby ##121 | Next.js ##132)

    Undesired behaviors of the ImageGallerySelector scroll on Safari were fixed.

    BeforeNow
    Scroll with errorFixed scroll

โœจ Enhancementโ€‹

  • Page code error handling enhanced (Gatsby #108 | Next.js #116)

    Instead of always responding with a 500 status code, nonexistent Product Details Pages (PDPs) can now handle 404 errors.

  • External and client-side navigation now supported by the Link component ( Gatsby #103 | Next.js #117)

    The Link component now handles both external and client-side navigation. This change intends to unify the Link component usage.

  • SVG logo replaced by a static asset (Gatsby #116 | Next.js #135)

    The SVG logo was removed from the JavaScript code and imported as a static asset. This change aims to reduce the amount of JavaScript downloaded on the client-side since directly declaring SVGs in JS code can harm the Total Blocking Time (TBT) and final bundle sizes.

๐Ÿ“„ Documentationโ€‹

  • New Regionalization section on the Storybook (Gatsby #124 | Next.js #110)

    The Base Store Storybook now has the Regionalization section that lists all regionalization-related components and how to use them.

  • General improvements on Storybook implemented (Gatsby #115 | Next.js #129)

    The Sandbox tab is now available for all component pages, allowing to test the component in different viewports and use other add-ons. Also, some console errors on the Storybook were fixed.

๐Ÿงน Choreโ€‹

Next.js-specific updatesโ€‹

  • ๐ŸŽ‰ New local tokens to Filter (#139)

    As part of adhering to the new Base Store Theming architecture, the Filter component now has new local tokens related to global ones.

  • โœจ Search history and top searches on search input (#112).

    The last four previously searched terms (SearchHistory) and the top five searches (SuggestionsTopSearch) are now presented on search input.

    Search input

  • โœจ CSS selector for DropdownButton updated (#123)

    To select the DropdownButton component, the [data-fs-dropdown-button] CSS handle is being used instead of [data-store-dropdown-button].

  • โœจ EmptyState styles updated (#125)

    The --fs-text-size-3 token was replaced by --fs-text-size-lead on the EmptyCart component.

  • โœจ Facets styles updated (#150)

    The tokens related to the Facets components were renamed and updated accordingly.

  • ๐Ÿ“„ EmptyState Storybook enhanced with use cases (#126)

  • ๐Ÿงน Support for new type definitions from React 18 (#113)