Skip to content

Conversation

@vas11yev1work
Copy link
Contributor

@vas11yev1work vas11yev1work commented Nov 3, 2025

Description

https://www.figma.com/design/ryT9jc1XQ2MxZOD9FLycJc/%F0%9F%94%B6--STOREFRONT-DRAFT-%E2%80%A2-3?node-id=1625-145962&t=G25BVqSYhRXCrKJq-4

Adds inline variations display and pagination in list view (desktop) using a new useProductVariations composable, with supporting UI, styles, and i18n updates.

  • Catalog:
    • Product page (client-app/pages/product.vue): Replace ad-hoc params with useProductVariations; compute itemsPerPage/sort for B2C vs default; move to variationsPageNumber; centralize filter building; update sorting, paging, and filtering to use new API.
    • Product card (shared/catalog/components/product-card.vue):
      • Add expandable inline variations (list view, desktop) with loader, count header, and VariationsDefault with pagination.
      • Split variations buttons (inline toggle vs link) and pass appendIcon; lazy-load variations on expand; reset on product change.
      • Use useProductVariations + useProducts({ initialFetchingState: false }).
  • Composables:
    • Add useProductVariations (shared/catalog/composables/useProductVariations.ts) with page, itemsPerPage, sort, filter (including custom builder), reset and update helpers; export in index.ts.
    • Enhance useProducts to accept initialFetchingState and initialize fetchingProducts accordingly.
    • Add comprehensive tests (useProductVariations.test.ts).
  • UI Kit:
    • vc-product-card: new isExpanded prop and expanded-content slot; variants wrapper section.
    • vc-product-button: support appendIcon prop.
    • Adjust styles in vc-product-title, vc-product-price, vc-quantity-stepper to target wrapper structure.
  • i18n:
    • Add pages.catalog.available_variations strings across locales.
image

References

Jira-link:

https://virtocommerce.atlassian.net/browse/VCST-4177

Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.35.0-pr-2038-df21-df212bb9.zip

@vas11yev1work vas11yev1work requested a review from a team as a code owner November 3, 2025 21:39
@vas11yev1work vas11yev1work requested review from Andrew-Orlov, goldenmaya, ivan-kalachikov and yuskithedeveloper and removed request for a team November 3, 2025 21:39
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@goldenmaya goldenmaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@vas11yev1work vas11yev1work force-pushed the feat/VCST-4177-display-variations-in-list-view branch from 9792cc1 to 3ed7405 Compare November 6, 2025 10:48
goldenmaya
goldenmaya previously approved these changes Nov 7, 2025
@sonarqubecloud
Copy link

@vas11yev1work vas11yev1work merged commit 5b0efd1 into dev Nov 14, 2025
9 checks passed
@vas11yev1work vas11yev1work deleted the feat/VCST-4177-display-variations-in-list-view branch November 14, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants