-
Notifications
You must be signed in to change notification settings - Fork 38
VCST-4283: User attributes for builder io pages #2070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
fetchOneEntryAPI 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.
|



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.
GetMeto returncontact.groups; update generatedGetMeQuerytype andGetMeDocument.pages/matcher/builderIo/builder-io.vue, add targetinguserAttributestofetchOneEntry(urlPathwithout locale,locale,organizationId,isAuthenticated,storeId,groupName).useLanguages,globals, anduseUserto supply these attributes.userGroupsinuseUser.Written by Cursor Bugbot for commit f43f96b. This will update automatically on new commits. Configure here.