Skip to content

Conversation

@basilkot
Copy link
Contributor

@basilkot basilkot commented Nov 19, 2025

Description

References

Jira-link:

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

Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.36.0-pr-2070-dced-dced3eea.zip


Note

Adds contact.groups to the GetMe query and passes locale/org/auth/store/group attributes to Builder.io content fetching, exposing userGroups via useUser.

  • GraphQL:
    • Extend GetMe to return contact.groups; update generated GetMeQuery type and GetMeDocument.
  • Builder.io:
    • In pages/matcher/builderIo/builder-io.vue, add targeting userAttributes to fetchOneEntry (urlPath without locale, locale, organizationId, isAuthenticated, storeId, groupName).
    • Integrate useLanguages, globals, and useUser to supply these attributes.
  • Account (composables):
    • Add and export userGroups in useUser.

Written by Cursor Bugbot for commit f43f96b. This will update automatically on new commits. Configure here.

Copilot AI review requested due to automatic review settings November 19, 2025 19:46
@basilkot basilkot requested a review from a team as a code owner November 19, 2025 19:46
@basilkot basilkot requested review from Andrew-Orlov, goldenmaya, ivan-kalachikov and muller39 and removed request for a team November 19, 2025 19:46
Copilot finished reviewing on behalf of basilkot November 19, 2025 19:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements user attribute targeting for Builder.io pages by passing context information (locale, authentication status, organization, and store) to Builder.io's content fetching API. This enables more personalized content delivery based on user characteristics and session context.

  • Adds user and context attributes to Builder.io's fetchOneEntry API call
  • Normalizes URL paths by removing locale prefixes before querying Builder.io
  • Imports necessary composables (useLanguages, useUser) and globals for accessing user/session data

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
client-app/pages/static-page.vue Adds a blank line (appears unintentional)
client-app/pages/matcher/builderIo/builder-io.vue Implements user attributes (locale, organizationId, isAuthenticated, storeId) for Builder.io content targeting and URL normalization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

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.

3 participants