id
stringlengths 12
68
| messages
listlengths 3
7
|
|---|---|
doc_3acf3cb6
|
[
{
"content": "You are a VTEX documentation expert. You provide accurate, detailed information about VTEX platform, APIs, apps, and Store Framework development.",
"role": "system"
},
{
"content": "How do I use zopim?",
"role": "user"
},
{
"content": "Documentation\n\n[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)\n\n[GuidesLearn how to use our APIs and extend the VTEX platform.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides)\n\n[API ReferenceExplore detailed information about our endpoints.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/api-reference)\n\n[App DevelopmentLearn how to build cloud-based apps and integrations.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/app-development)\n\n[Storefront DevelopmentExpress your brand identity creating unique storefronts.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/storefront-development)\n\n[VTEX IO AppsFind pre-built solutions to grow your business.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/vtex-io-apps)\n\n[TroubleshootingFind practical solutions to common development issues.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/troubleshooting)\n\n[Release NotesStay up to date with our latest releases and bug fixes.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/updates/release-notes)\n\nVTEX IO Apps\n\n[Basic components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/basic-components)\n\n---\n\n[Store Components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/store-components)\n\n---\n\n[Advanced components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/advanced-components)\n\n---\n\n[B2B components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/b2b-components)\n\n---\n\n[B2B Suite](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.b2b-suite)\n\n---\n\n[Functional Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/functional-apps)\n\n---\n\n[Layout Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/layout-apps)\n\n---\n\n[Pixel Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/pixel-apps)\n\n[Alexa Certify](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.alexa-certify-code)\n\n[Audara](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.audara)\n\n[Bluecore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.bluecore)\n\n[Blueknow app](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.blueknow)\n\n[BTG360](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.btg360)\n\n[Cookiebot](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.cookiebot)\n\n[Cookie Script](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.cookie-script)\n\n[CyberSource Fingerprint](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.cybersource-fingerprint)\n\n[Elfsight](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.elfsight)\n\n[Facebook pixel](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.facebook-pixel)\n\n[Facebook Domain Verification](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.facebook-domain-verification)\n\n[Google Adwords](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.google-adwords)\n\n[Google Customer Reviews](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.google-customer-reviews)\n\n[Hotjar](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.hotjar)\n\n[Idea CRM](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.ideacrm)\n\n[Iubenda](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.iubenda)\n\n[JivoChat](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.jivochat)\n\n[Kelkoo app](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.kelkoo)\n\n[LogRocket](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.logrocket)\n\n[Lucky Orange](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.lucky-orange)\n\n[Search Console](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.google-search-console)\n\n[Shareasale](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.shareasale)\n\n[smarthint](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.smarthint)\n\n[Suiteshare](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.suite-share)\n\n[Tawk.to](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.tawk-to)\n\n[Trustpilot](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.trustpilot)\n\n[Zendesk Chat](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.zendesk-chat)\n\n[Zopim](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.zopim)\n\n---\n\n[My Account - StoreV2 version](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.my-account)\n\n---\n\n[VTEX IO deprecated apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/vtex-io-deprecated-apps)\n\n---\n\n[Guides](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides)\n\n[API Reference](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/api-reference)\n\n[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/app-development)\n\n[Storefront Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/storefront-development)\n\n[VTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/vtex-io-apps)\n\n[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/troubleshooting)\n\n---\n\n[Release Notes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/updates/release-notes)\n\nVTEX IO Apps\n\n[Basic components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/basic-components)\n\n---\n\n[Store Components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/store-components)\n\n---\n\n[Advanced components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/advanced-components)\n\n---\n\n[B2B components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/b2b-components)\n\n---\n\n[B2B Suite](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.b2b-suite)\n\n---\n\n[Functional Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/functional-apps)\n\n---\n\n[Layout Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/layout-apps)\n\n---\n\n[Pixel Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/pixel-apps)\n\n[Alexa Certify](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.alexa-certify-code)\n\n[Audara](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.audara)\n\n[Bluecore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.bluecore)\n\n[Blueknow app](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.blueknow)\n\n[BTG360](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.btg360)\n\n[Cookiebot](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.cookiebot)\n\n[Cookie Script](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.cookie-script)\n\n[CyberSource Fingerprint](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.cybersource-fingerprint)\n\n[Elfsight](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.elfsight)\n\n[Facebook pixel](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.facebook-pixel)\n\n[Facebook Domain Verification](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.facebook-domain-verification)\n\n[Google Adwords](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.google-adwords)\n\n[Google Customer Reviews](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.google-customer-reviews)\n\n[Hotjar](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.hotjar)\n\n[Idea CRM](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.ideacrm)\n\n[Iubenda](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.iubenda)\n\n[JivoChat](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.jivochat)\n\n[Kelkoo app](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.kelkoo)\n\n[LogRocket](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.logrocket)\n\n[Lucky Orange](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.lucky-orange)\n\n[Search Console](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.google-search-console)\n\n[Shareasale](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.shareasale)\n\n[smarthint](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.smarthint)\n\n[Suiteshare](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.suite-share)\n\n[Tawk.to](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.tawk-to)\n\n[Trustpilot](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.trustpilot)\n\n[Zendesk Chat](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.zendesk-chat)\n\n[Zopim](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.zopim)\n\n---\n\n[My Account - StoreV2 version](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.my-account)\n\n---\n\n[VTEX IO deprecated apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/vtex-io-deprecated-apps)\n\n---\n\n[VTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/vtex-io-apps)\n\n[Pixel Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/guides/pixel-apps)\n\nZopim\n\nOfficial extension\n\nVersion: 1.2.3\n\nLatest version: 1.2.3\n\nVTEX Zopim first-party app\n\n## How to install\n\nOpen the VTEX App Store and install this app on your store.\n\nNow, open the app settings on your admin and fill in your Zopim's Account Key.\n\n[Zendesk Chat« Previous](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.zendesk-chat)[My Account - StoreV2 versionNext »](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.my-account)\n\nSee also\n\n[VTEX App StoreVTEX IO Apps](https://read.calvincode.net/reader?url=https://apps.vtex.com/)\n\nON THIS PAGE\n\n[How to install](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/apps/vtex.zopim/docs/apps/vtex.zopim%23how-to-install)\n\nWas this helpful?\n\n[Github](https://read.calvincode.net/reader?url=https://github.com/vtex-apps)[Help Center](https://read.calvincode.net/reader?url=https://help.vtex.com/)[Community](https://read.calvincode.net/reader?url=https://community.vtex.com/?%5Fga=2.198523433.743584735.1647618303-1974737580.1645714642)[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)",
"role": "assistant"
}
] |
code_glovo-integration_bd124350
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How do I implement the Icon Glovo component in my VTEX store?",
"role": "user"
},
{
"content": "```tsx\nimport type { FC } from 'react'\nimport React from 'react'\n\nimport logo from './GlovoLogo.png'\n\ninterface Props {\n size?: number\n}\n\nconst IconGlovo: FC<Props> = ({ size = 80 }) => {\n return <img src={logo} style={{ width: `${size}px` }} alt=\"Glovo logo\" />\n}\n\nexport { IconGlovo }\n\n```",
"role": "assistant"
}
] |
code_community_bc99f2d7
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Explain the code in community/b2b-newstore-theme-experimental/store/blocks/product/features.jsonc.",
"role": "user"
},
{
"content": "Here's the implementation:\n\n```jsonc\n{\n \"flex-layout.row#features\": {\n \"children\": [\"flex-layout.col#features\"],\n \"props\": {\n \"blockClass\": \"specification\"\n }\n },\n\n \"flex-layout.col#features\": {\n \"children\": [\"disclosure-layout#features\", \"flex-layout.col#divider\"],\n \"props\": {\n \"blockClass\": \"specification\",\n \"width\": \"74%\"\n }\n },\n\n \"disclosure-layout#features\": {\n \"children\": [\"disclosure-trigger#features\", \"disclosure-content#features\"],\n \"props\": {\n \"initialVisibility\": \"visible\"\n }\n },\n\n \"disclosure-trigger#features\": {\n \"children\": [\"flex-layout.row#disclosure-trigger-features\"],\n \"props\": {\n \"as\": \"div\"\n }\n },\n\n \"flex-layout.row#disclosure-trigger-features\": {\n \"children\": [\n \"rich-text#features-disclosure-trigger-heading\",\n \"flex-layout.col#spacer\",\n \"disclosure-state-indicator\"\n ],\n \"props\": {\n \"blockClass\": [\"items-end\", \"disclosure-trigger-specification\"],\n \"colGap\": 0,\n \"colSizing\": \"auto\",\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true\n }\n },\n\n \"rich-text#features-disclosure-trigger-heading\": {\n \"props\": {\n \"blockClass\": [\"features\", \"disclosure-trigger-heading\"],\n \"text\": \"<span>Features & details</span>\",\n \"font\": \"t-heading-5\"\n }\n },\n\n \"disclosure-content#features\": {\n \"children\": [\"product-specification-group#features\"],\n \"props\": {\n \"blockClass\": \"specification\"\n }\n },\n\n \"product-specification-group#features\": {\n \"children\": [\"flex-layout.row#spec-group--features\"],\n \"props\": {\n \"filter\": {\n \"type\": \"show\",\n \"specificationGroups\": [\"Features & details\"]\n }\n }\n },\n\n \"flex-layout.row#spec-group--features\": {\n \"children\": [\"flex-layout.col#spec-group--features\"],\n \"props\": {\n \"blockClass\": [\"spec-group\"]\n }\n },\n\n \"flex-layout.col#spec-group--features\": {\n \"children\": [\"product-specification#table--features\"],\n \"props\": {\n \"blockClass\": [\"spec-group\"]\n }\n },\n\n \"product-specification#table--features\": {\n \"children\": [\"flex-layout.row#spec-item--features\"]\n },\n\n \"flex-layout.row#spec-item--features\": {\n \"children\": [\"flex-layout.col#spec-name--features\"],\n \"props\": {\n \"blockClass\": [\"spec-item\"],\n \"preserveLayoutOnMobile\": true,\n \"colGap\": 3\n }\n },\n\n \"flex-layout.col#spec-name--features\": {\n \"children\": [\"product-specification-text#features\"],\n \"props\": {\n \"blockClass\": [\"spec-name\", \"features\"]\n }\n },\n\n \"product-specification-text#features\": {\n \"props\": {\n \"blockClass\": [\"bullet-list\"],\n \"message\": \"{specificationName}\"\n }\n }\n}\n\n```",
"role": "assistant"
}
] |
code_product-availability-gallery_230bccbc
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How do I implement the Show Available component in my VTEX store?",
"role": "user"
},
{
"content": "The implementation is:\n\n```tsx\nimport React from 'react'\n\nimport { useContextCssHandles } from './CssHandlesContext'\n\ninterface Props {\n showAvailabilityMessage?: string\n availableQuantity: number\n}\n\nfunction HighStock({ showAvailabilityMessage, availableQuantity }: Props) {\n const { handles } = useContextCssHandles()\n\n return (\n <span className={`${handles.showAvailableText} c-muted-2 t-body b mh1`}>\n {showAvailabilityMessage} {availableQuantity}\n </span>\n )\n}\n\nexport default HighStock\n\n```",
"role": "assistant"
}
] |
troubleshoot_store-header_performance_issues_af81ac32
|
[
{
"content": "You are a VTEX debugging expert. You help developers troubleshoot issues with VTEX IO apps, Store Framework components, and GraphQL services. You provide clear, actionable solutions with code fixes.",
"role": "system"
},
{
"content": "My page with store-header is loading slowly. What can I do to improve performance?",
"role": "user"
},
{
"content": "## Common Causes\n\nSlow page loading with `store-header` typically stems from these issues:\n\n1. **Unoptimized menu data fetching** - The header often loads navigation menus that fetch category trees synchronously, blocking render\n2. **Large header bundle size** - Including unnecessary components like search autocomplete, login widgets, and mega menus increases initial JavaScript payload\n3. **Missing lazy loading for below-fold components** - Components like minicart dropdowns and user account menus load eagerly even when not immediately visible\n4. **Excessive API calls** - Multiple simultaneous requests for user session, wishlist counts, and cart data create network bottleneck\n5. **Uncompressed or uncached static assets** - Logo images and icon fonts without proper caching headers force repeated downloads\n\n## Debugging Steps\n\n**Step 1: Analyze the header's network requests**\n\nOpen Chrome DevTools Network tab, filter by \"Fetch/XHR\", and reload the page. Look for requests triggered by header components - common culprits include `/api/catalog_system/pub/category/tree`, `/api/sessions`, and `/api/checkout/pub/orderForm`.\n\n**Step 2: Check component render timing**\n\nIn the Performance tab, record a page load and search for \"store-header\" in the flame chart. Identify which child blocks take longest to render.\n\n**Step 3: Audit bundle composition**\n\nRun `vtex deps list` and check which header-related apps are installed. Each dependency adds to the bundle size.\n\n**Step 4: Verify caching headers**\n\nIn Network tab, check the response headers for your logo and static assets. Look for `Cache-Control` and `ETag` headers.\n\n## Solution\n\n**Implement lazy loading for non-critical header components:**\n\n```json\n// store/blocks/header.jsonc\n{\n \"header-layout.desktop\": {\n \"children\": [\n \"header-row#main\",\n \"header-row#menu\"\n ]\n },\n \"header-row#main\": {\n \"children\": [\n \"logo#header\",\n \"search-bar\",\n \"minicart.v2#lazy\"\n ],\n \"props\": {\n \"blockClass\": \"main-header\",\n \"horizontalAlign\": \"center\"\n }\n },\n \"minicart.v2#lazy\": {\n \"props\": {\n \"variation\": \"popup\",\n \"openOnHover\": false,\n \"drawerSlideDirection\": \"rightToLeft\",\n \"MinicartIcon\": \"icon-cart#minicart\"\n }\n }\n}\n```\n\n**Optimize menu data fetching with memoization:**\n\n```json\n// store/blocks/header/menu.jsonc\n{\n \"vtex.menu@2.x:menu#header\": {\n \"props\": {\n \"orientation\": \"horizontal\",\n \"categoryId\": 1,\n \"textType\": \"t-body\",\n \"experimentalOptimizeRendering\": true\n },\n \"children\": [\n \"menu-item#category-womens\",\n \"menu-item#category-mens\"\n ]\n },\n \"menu-item#category-womens\": {\n \"props\": {\n \"id\": \"menu-item-womens\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/womens\",\n \"noFollow\": false,\n \"tagTitle\": \"Womens\",\n \"text\": \"Womens\"\n }\n }\n }\n}\n```\n\n**Reduce search bar initialization overhead:**\n\n```json\n{\n \"search-bar\": {\n \"props\": {\n \"placeholder\": \"Search products...\",\n \"attemptPageTypeSearch\": false,\n \"autocompleteAlignment\": \"left\",\n \"openAutocompleteOnFocus\": false,\n \"blurOnSubmit\": true,\n \"minSearchTermLength\": 3,\n \"autocompleteFullWidth\": false,\n \"displayMode\": \"search-button\"\n }\n }\n}\n```\n\n**Configure proper image optimization for logo:**\n\n```json\n{\n \"logo#header\": {\n \"props\": {\n \"url\": \"https://youraccount.vtexassets.com/assets/your-logo.svg\",\n \"width\": 150,\n \"height\": 40,\n \"title\": \"Store Name\",\n \"fetchpriority\": \"high\"\n }\n }\n}\n```\n\n## Prevention Tips\n\n1. **Use SVG logos** - Vector formats are smaller and scale without quality loss; avoid PNG/JPG for logos when possible\n\n2. **Defer non-essential widgets** - Login dropdowns, wishlist counters, and notification badges can load after initial paint using `experimentalLazyImages` and similar props\n\n3. **Limit menu depth** - Restrict category tree fetching to 2-3 levels maximum; deeper navigation should use separate page navigation\n\n4. **Enable HTTP/2** - Ensure your CDN configuration supports multiplexed connections to parallelize header asset loading\n\n5. **Audit regularly** - Run Lighthouse performance audits monthly; target a Time to Interactive under 3.5 seconds for header-heavy pages\n\n6. **Use `blockClass` strategically** - Apply custom classes only where needed to avoid CSS selector bloat that impacts render performance",
"role": "assistant"
}
] |
code_list-wallet_01da120c
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of list-wallet/messages/fi.json from list-wallet.",
"role": "user"
},
{
"content": "```json\n{\n \"titles.value.gift.card\": \"Lahjakortin saldo: \",\n \"titles.credit\": \"Hyvitys: \",\n \"titles.redemption\": \"Luo lunastus:\",\n \"input.value.label\": \"Syötä summa\",\n \"input.value.button\": \"LUNASTA\",\n \"input.tooltip\": \"Koodi lahjakortin lunastamiseksi. Tämä koodi on ainutlaatuinen. Käytä sitä kaikissa ostoksissasi myymälässä.\",\n \"input.value.tooltip\": \"Muunna hyvityksesi lahjakorttisaldoksi.\",\n \"input.code.label\": \"Lahjakortin koodi\",\n \"input.code.placeholder\": \"Koodi\",\n \"input.code.button\": \"KOPIOI KOODI\",\n \"input.code.loading\": \"Ladataan...\",\n \"history.open.button\": \"Lauseke\",\n \"history.empty.title\": \"Ei toimintaa\",\n \"history.empty.message\": \"Lompakkosi saldo ei ole muuttunut.\",\n \"history.credit.description\": \"Hyvitys vastaanotettu\",\n \"history.debit.description\": \"Hyvitys muunnettu lahjakortiksi\",\n \"history.credit.status\": \"Hyvitys\",\n \"history.debit.status\": \"Veloitus\",\n \"history.date.title\": \"Päivämäärä\",\n \"history.description.title\": \"Kuvaus\",\n \"history.value.title\": \"Summa\",\n \"history.status.title\": \"Tila\",\n \"history.pagination.of\": \"alkaen\",\n \"history.filter.clear\": \"Tyhjennä suodattimet\",\n \"history.filter.all\": \"Kaikki\",\n \"history.filter.is\": \"on\",\n \"history.filter.between\": \"–\",\n \"history.filter.and\": \"ja\",\n \"history.filter.date\": \"Päivämäärä\",\n \"history.filter.status\": \"Tila\",\n \"history.filter.status.credit\": \"Hyvitykset\",\n \"history.filter.status.debit\": \"Veloitukset\",\n \"collapsible.title\": \"Minun lompakkoni\",\n \"provider.without.code\": \"Ei koodia\",\n \"provider.missing.value\": \"Syötä lunastussumma\",\n \"provider.value.negative\": \"Lisää summa, joka on suurempi kuin 0\",\n \"provider.value.bigger.than.could.be\": \"Syötä summa, joka on vähemmän tai yhtä suuri kuin \",\n \"toast.rescue.value\": \"Määrä: \",\n \"toast.rescue.sucess\": \"Lunastus onnistui!\",\n \"toast.rescue.error\": \"Virhe summan lisäämisessä lahjakortille\",\n \"toast.code\": \"Koodi \",\n \"toast.copy\": \"Kopioitu onnistuneesti\",\n \"toast.copy.error\": \"Koodin kopiointi epäonnistui\",\n \"toast.without.code\": \"Ei koodia\"\n}\n\n```",
"role": "assistant"
}
] |
code_native-types_2375f302
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of native-types/messages/sv-SE.json from native-types.",
"role": "user"
},
{
"content": "This is the code:\n\n```json\n{\n \"admin/native-types.brand\": \"Varumärke\",\n \"admin/native-types.category\": \"Kategori\",\n \"admin/native-types.collection\": \"Samling\",\n \"admin/native-types.department\": \"Avdelning\",\n \"admin/native-types.image\": \"Bild\",\n \"admin/native-types.image.description\": \"Beskrivning\",\n \"admin/native-types.image.desktop\": \"Skrivbord\",\n \"admin/native-types.image.filename\": \"Filnamn\",\n \"admin/native-types.image.mobile\": \"Mobil\",\n \"admin/native-types.link\": \"Koppla\",\n \"admin/native-types.link.attributeNofollow\": \"Attribut nofollow\",\n \"admin/native-types.link.attributeTitle\": \"Attribut title\",\n \"admin/native-types.link.newTab\": \"Ny flik\",\n \"admin/native-types.link.url\": \"URL\",\n \"admin/native-types.richText\": \"RTF\",\n \"admin/native-types.text\": \"Text\",\n \"admin/native-types.url\": \"URL\",\n \"admin/native-types.video.description\": \"Beskrivning\",\n \"admin/native-types.video.thumbnail\": \"Miniatyr\",\n \"admin/native-types.video\": \"Video\",\n \"admin/native-types.video.title\": \"Rubrik\",\n \"admin/native-types.video.url\": \"URL\",\n \"store/native-types.text\": \"Skriv din text här\",\n \"store/native-types.richText\": \"Lorem ipsum...\",\n \"store/native-types.url\": \"https://example.com\",\n \"admin/format-io-message.empty-string-example\": \"\",\n \"admin/format-io-message.working-static-example\": \"Det fungerar :)\",\n \"admin/format-io-message.working-dynamic-example\": \"{subject} {verb} {emoji}\"\n}\n\n```",
"role": "assistant"
}
] |
code_search-result_1f31a08f
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of search-result/react/components/FacetItem.js from search-result.",
"role": "user"
},
{
"content": "```javascript\nimport React, { useContext, useState, useEffect, useMemo } from 'react'\nimport { Checkbox } from 'vtex.styleguide'\nimport { useCssHandles, applyModifiers } from 'vtex.css-handles'\nimport classNames from 'classnames'\nimport { useSearchPage } from 'vtex.search-page-context/SearchPageContext'\nimport { usePixel } from 'vtex.pixel-manager'\nimport { useIntl } from 'react-intl'\n\nimport { pushFilterManipulationPixelEvent } from '../utils/filterManipulationPixelEvents'\nimport SettingsContext from './SettingsContext'\nimport ShippingActionButton from './ShippingActionButton'\nimport useShippingActions from '../hooks/useShippingActions'\n\nconst CSS_HANDLES = ['filterItem', 'productCount', 'filterItemTitle']\n\n// These are used to prevent creating a <Checkbox /> with id equal\n// to any of these words.\nconst reservedVariableNames = [\n 'global',\n 'window',\n 'document',\n 'self',\n 'screen',\n 'parent',\n]\n\nconst FacetItem = ({\n navigateToFacet,\n facetTitle,\n facet,\n className,\n preventRouteChange,\n showTitle = false,\n onOpenPostalCodeModal,\n onOpenPickupModal,\n}) => {\n const intl = useIntl()\n const { push } = usePixel()\n\n const { actionLabel, actionType, shouldDisable } = useShippingActions(facet)\n\n const showActionButton = !!actionType\n\n const { showFacetQuantity } = useContext(SettingsContext)\n\n const [selected, setSelected] = useState(facet.selected)\n const handles = useCssHandles(CSS_HANDLES)\n const classes = classNames(\n applyModifiers(handles.filterItem, facet.value),\n { [`${handles.filterItem}--selected`]: facet.selected },\n className,\n 'lh-copy w-100'\n )\n\n const { searchQuery } = useSearchPage()\n const sampling = searchQuery?.facets?.sampling\n\n const checkBoxId = reservedVariableNames.includes(facet.value)\n ? `filterItem--${facet.key}-${facet.value}`\n : `${facet.key}-${facet.value}`\n\n // This effect fixes the issue described in this PR\n // https://github.com/vtex-apps/search-result/pull/422\n useEffect(() => {\n if (facet.selected !== selected) {\n setSelected(facet.selected)\n }\n // however, having `selected` as a dependency causes it\n // to always reset back to `facet.selected`. So, we remove it,\n // so only changes in facet.selected affect the state.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [facet.selected])\n\n const facetLabel = useMemo(() => {\n let labelElement = facet.name\n\n if (showFacetQuantity && !sampling) {\n labelElement = (\n <>\n {labelElement}{' '}\n <span\n data-testid={`facet-quantity-${facet.value}-${facet.quantity}`}\n className={handles.productCount}\n >\n ({facet.quantity})\n </span>\n </>\n )\n }\n\n if (showActionButton) {\n labelElement = (\n <div>\n <div>{labelElement}</div>\n <ShippingActionButton\n label={intl.formatMessage({ id: actionLabel ?? 'none' })}\n openDrawer={\n actionType === 'DELIVERY'\n ? onOpenPostalCodeModal\n : onOpenPickupModal\n }\n />\n </div>\n )\n }\n\n if (showTitle) {\n labelElement = (\n <>\n <span className={handles.filterItemTitle}>{facetTitle}</span>:{' '}\n {labelElement}\n </>\n )\n }\n\n return labelElement\n }, [\n showFacetQuantity,\n sampling,\n facet.name,\n facet.value,\n facet.quantity,\n handles.productCount,\n handles.filterItemTitle,\n showActionButton,\n actionLabel,\n showTitle,\n facetTitle,\n intl,\n actionType,\n onOpenPostalCodeModal,\n onOpenPickupModal,\n ])\n\n return (\n <div\n className={classes}\n style={{ hyphens: 'auto', wordBreak: 'break-word', alignSelf: 'center' }}\n alt={facet.name}\n title={facet.name}\n >\n <Checkbox\n id={checkBoxId}\n checked={selected}\n label={facetLabel}\n name={facet.name}\n onChange={() => {\n pushFilterManipulationPixelEvent({\n name: facetTitle,\n value: facet.name,\n products: searchQuery?.products ?? [],\n push,\n })\n\n setSelected(!selected)\n navigateToFacet({ ...facet, title: facetTitle }, preventRouteChange)\n }}\n value={facet.name}\n disabled={shouldDisable}\n />\n </div>\n )\n}\n\nexport default FacetItem\n\n```",
"role": "assistant"
}
] |
code_mycheckout-sdk_e18d69d4
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of mycheckout-sdk/src/components/shared/Carousel/index.ts from mycheckout-sdk.",
"role": "user"
},
{
"content": "This is the code:\n\n```typescript\nimport { Carousel as CarouselHOC } from './Carousel'\nimport { CarouselItem } from './CarouselItems/CarouselItem'\nimport type { CarouselHOCProps } from '../interfaces/interfaces'\n\nexport const Carousel: CarouselHOCProps = Object.assign(CarouselHOC, {\n Item: CarouselItem,\n})\n\nexport default Carousel\n\n```",
"role": "assistant"
}
] |
code_storefront-permissions_090e0137
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the backend implementation from storefront-permissions.",
"role": "user"
},
{
"content": "This is the code:\n\n```typescript\nimport { AuthenticationError, ForbiddenError } from '@vtex/api'\nimport type { GraphQLField } from 'graphql'\nimport { defaultFieldResolver } from 'graphql'\nimport { SchemaDirectiveVisitor } from 'graphql-tools'\n\nimport sendAuthMetric, { AuthMetric } from '../metrics/auth'\nimport {\n validateAdminToken,\n validateAdminTokenOnHeader,\n validateApiToken,\n validateStoreToken,\n} from './helper'\n\nexport class CheckUserAccess extends SchemaDirectiveVisitor {\n public visitFieldDefinition(field: GraphQLField<any, any>) {\n const { resolve = defaultFieldResolver } = field\n\n field.resolve = async (\n root: any,\n args: any,\n context: Context,\n info: any\n ) => {\n const {\n vtex: { adminUserAuthToken, storeUserAuthToken, logger },\n } = context\n\n // now we emit a metric with all the collected data before we proceed\n const operation = field?.astNode?.name?.value ?? context?.request?.url\n const userAgent = context?.request?.headers['user-agent'] as string\n const caller = context?.request?.headers['x-vtex-caller'] as string\n const forwardedHost = context?.request?.headers[\n 'x-forwarded-host'\n ] as string\n\n const metricFields = {\n operation,\n forwardedHost,\n caller,\n userAgent,\n }\n\n const { hasAdminToken, hasValidAdminToken, hasCurrentValidAdminToken } =\n await validateAdminToken(\n context,\n adminUserAuthToken as string,\n metricFields\n )\n\n const {\n hasAdminTokenOnHeader,\n hasValidAdminTokenOnHeader,\n hasCurrentValidAdminTokenOnHeader,\n } = await validateAdminTokenOnHeader(context, metricFields)\n\n const { hasApiToken, hasValidApiToken } = await validateApiToken(\n context,\n metricFields\n )\n\n const { hasStoreToken, hasValidStoreToken, hasCurrentValidStoreToken } =\n await validateStoreToken(context, storeUserAuthToken as string)\n\n const auditMetric = new AuthMetric(\n context?.vtex?.account,\n {\n operation,\n forwardedHost,\n caller,\n userAgent,\n hasAdminToken,\n hasValidAdminToken,\n hasApiToken,\n hasValidApiToken,\n hasStoreToken,\n hasCurrentValidStoreToken,\n hasValidStoreToken,\n hasAdminTokenOnHeader,\n hasValidAdminTokenOnHeader,\n },\n 'CheckUserAccessAudit'\n )\n\n sendAuthMetric(logger, auditMetric)\n\n if (\n !hasAdminToken &&\n !hasApiToken &&\n !hasStoreToken &&\n !hasAdminTokenOnHeader\n ) {\n logger.warn({\n message: 'CheckUserAccess: No token provided',\n userAgent,\n caller,\n forwardedHost,\n operation,\n hasAdminToken,\n hasValidAdminToken,\n hasApiToken,\n hasValidApiToken,\n hasStoreToken,\n hasAdminTokenOnHeader,\n hasValidAdminTokenOnHeader,\n })\n throw new AuthenticationError('No token was provided')\n }\n\n if (\n !hasCurrentValidAdminToken &&\n !hasValidApiToken &&\n !hasCurrentValidStoreToken &&\n !hasCurrentValidAdminTokenOnHeader\n ) {\n logger.warn({\n message: `CheckUserAccess: Invalid token`,\n userAgent,\n caller,\n forwardedHost,\n operation,\n hasAdminToken,\n hasValidAdminToken,\n hasApiToken,\n hasValidApiToken,\n hasStoreToken,\n hasCurrentValidStoreToken,\n hasValidStoreToken,\n hasAdminTokenOnHeader,\n hasValidAdminTokenOnHeader,\n })\n throw new ForbiddenError('Unauthorized Access')\n }\n\n return resolve(root, args, context, info)\n }\n }\n}\n\n```",
"role": "assistant"
}
] |
code_b2b-theme_e1cd6679
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the CSS/SCSS implementation from b2b-theme.",
"role": "user"
},
{
"content": "This is the code:\n\n```css\n.containerCreate,\n.containerList,\n.containerView {\n max-width: 1440px;\n width: 100%;\n padding: 0px;\n margin: 0px auto;\n}\n\n.buttonSave :global(.vtex-button),\n.createButton :global(.vtex-button),\n.buttonUse :global(.vtex-button) {\n background: var(--serious-blue-dark);\n}\n\n```",
"role": "assistant"
}
] |
code_order-manager_8e235c7b
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "What dependencies does order-manager require?",
"role": "user"
},
{
"content": "This is the code:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"order-manager\",\n \"version\": \"0.12.1\",\n \"title\": \"Order Manager\",\n \"description\": \"Order Manager\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.checkout-resources\": \"0.x\",\n \"vtex.checkout-graphql\": \"0.x\",\n \"vtex.checkout-splunk\": \"0.x\",\n \"vtex.styleguide\": \"9.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```",
"role": "assistant"
}
] |
code_product-availability-gallery_bdc3966a
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How do I implement the Product Availability component in my VTEX store?",
"role": "user"
},
{
"content": "The implementation is:\n\n```tsx\nimport ProductAvailabilityWrapper from './components/ProductAvailabilityWrapper'\n\nexport default ProductAvailabilityWrapper\n\n\n```",
"role": "assistant"
}
] |
code_relevanc_7e1bd4ae
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How does relevanc resolve GraphQL queries?",
"role": "user"
},
{
"content": "Here's how it works:\n\n```typescript\nimport { after } from './after'\nimport { before } from './before'\n\nexport const resolvers = {\n Query: {\n before,\n after,\n },\n}\n\n```",
"role": "assistant"
}
] |
code_b2b-organizations_c34c1dda
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of b2b-organizations/messages/ru.json from b2b-organizations.",
"role": "user"
},
{
"content": "```json\n{\n \"admin/b2b-organizations.autocomplete-searching\": \"Поиск организаций\",\n \"admin/b2b-organizations.b2b-organizations.navigation.label\": \"Корпоративные организации и финансовые центры\",\n \"admin/b2b-organizations.back\": \"Назад\",\n \"admin/b2b-organizations.bulk-import.import.done\": \"Готово\",\n \"admin/b2b-organizations.bulk-import.import.downloadReviewedLink\": \"Скачать проверенный XLSX\",\n \"admin/b2b-organizations.bulk-import.import.errorMessage\": \"Сбой импортирования. Повторите попытку.\",\n \"admin/b2b-organizations.bulk-import.import.fileExtensionError\": \"К сожалению, выбранный формат файлов не поддерживается.\",\n \"admin/b2b-organizations.bulk-import.import.fileSizeError\": \"К сожалению, размер файла слишком большой.\",\n \"admin/b2b-organizations.bulk-import.import.importDetails\": \"Информация об импортировании\",\n \"admin/b2b-organizations.bulk-import.import.importError\": \"Файл {fileName} импортирован с ошибками.\",\n \"admin/b2b-organizations.bulk-import.import.importErrorReportTitle\": \"Из-за ошибок не удалось импортировать организации-покупатели: {count} шт.\",\n \"admin/b2b-organizations.bulk-import.import.importErrorTryAgain\": \"Попробовать снова\",\n \"admin/b2b-organizations.bulk-import.import.importing\": \"Импорт\",\n \"admin/b2b-organizations.bulk-import.import.importProgress\": \"{completed} из {total}\",\n \"admin/b2b-organizations.bulk-import.import.importReportErrorTab\": \"Не импортировано ({count})\",\n \"admin/b2b-organizations.bulk-import.import.importReportGenericError\": \"Импортирование прервано из-за ошибок. Не удалось импортировать организации-покупатели: {count} шт. Проверьте ваш файл и загрузите его заново.\\nНужна помощь? Ознакомьтесь с нашим руководством по применению.\",\n \"admin/b2b-organizations.bulk-import.import.importReportSuccessTab\": \"Успешно импортировано ({count})\",\n \"admin/b2b-organizations.bulk-import.import.importReportTabTitle\": \"Отчет\",\n \"admin/b2b-organizations.bulk-import.import.importReportTitle\": \"Отчет об импортировании организаций-покупателей\",\n \"admin/b2b-organizations.bulk-import.import.importSuccess\": \"Файл {fileName} успешно импортирован.\",\n \"admin/b2b-organizations.bulk-import.import.importSuccessReportTitle\": \"Удалось импортировать организации-покупатели: {count} шт.\",\n \"admin/b2b-organizations.bulk-import.import.permissionAlertTooltip\": \"Требуется разрешение\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationDescription\": \"Файл {fileName} загружен {uploadDate} пользователем {userName}\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationImportFailed\": \"Не удалось импортировать\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationImportSuccessFully\": \"Успешно импортировано\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationInitialImport\": \"Скачайте файл <file-name-link>reviewed.xlsx</file-name-link> с полной разбивкой. В файле для каждой строки показан статус: зеленый означает успешное устранение ошибки, а красный — что ошибка осталась. В последнем столбце ошибок приведены ошибки и их детали, где это применимо.\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationInitialUpload\": \"Скачайте <file-name-link>reviewed.xlsx</file-name-link> для устранения ошибок. В файле для каждой строки показан статус: зеленый означает успешное устранение ошибки, а красный — что ошибка осталась. В последнем столбце ошибок приведены ошибки и их детали, где это применимо.\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationListTotal\": \"Всего\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationNextSteps\": \"Для устранения ошибок выполните следующие шаги:\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep1\": \"1. Проверьте строки, выделенные красным.\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep2\": \"2. Исправьте ошибки.\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep3Import\": \"3. Заново загрузите файл с помощью инструмента массового импортирования.\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep3Upload\": \"3. Заново загрузите исправленные строки с помощью инструмента массового импортирования.\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep4\": \"4. Убедитесь, что используете формат <template-link>VTEX File Template</template-link>. Нужна помощь? Ознакомьтесь с нашим <best-practices-link>руководством по импортированию</best-practices-link>.\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep4Filename\": \"VTEX File Template\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide\": \"Ознакомьтесь с нашим руководством по импортированию\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance\": \"Нужна помощь?\",\n \"admin/b2b-organizations.bulk-import.import.reportInformationTitle\": \"Успешно импортировано {fullPercentage} % файлов\",\n \"admin/b2b-organizations.bulk-import.import.reportScreenDescription\": \"Файл <file-name-link>{fileName}</file-name-link>\",\n \"admin/b2b-organizations.bulk-import.import.reportScreenLabel\": \"Всего ошибок\",\n \"admin/b2b-organizations.bulk-import.import.reportScreenSuccessCount\": \"Организаций-покупателей: {successCount}\",\n \"admin/b2b-organizations.bulk-import.import.reportScreenTitle\": \"В этом файле обнаружены ошибки ({errorCount} шт.)\",\n \"admin/b2b-organizations.bulk-import.upload.back\": \"Назад\",\n \"admin/b2b-organizations.bulk-import.upload.close\": \"Закрыть\",\n \"admin/b2b-organizations.bulk-import.upload.dragDrop\": \"Перетяните файл сюда\",\n \"admin/b2b-organizations.bulk-import.upload.filesType\": \"Тип файла\",\n \"admin/b2b-organizations.bulk-import.upload.helpLinks\": \"Нужна помощь? Скачайте <template-link>VTEX File Template</template-link> или ознакомьтесь с нашим <best-practices-link>руководством</best-practices-link>.\",\n \"admin/b2b-organizations.bulk-import.upload.maxSize\": \"Максимальный размер\",\n \"admin/b2b-organizations.bulk-import.upload.unknownRowName\": \"Неизвестно\",\n \"admin/b2b-organizations.bulk-import.upload.upload\": \"Загрузить\",\n \"admin/b2b-organizations.bulk-import.upload.uploadErrorCount\": \"Найдено ошибок: {count}\",\n \"admin/b2b-organizations.bulk-import.upload.uploadErrorReport\": \"Отчет об ошибке файла\",\n \"admin/b2b-organizations.bulk-import.upload.uploadErrorReportMessage\": \"В этом файле обнаружены ошибки: {count} шт. Исправьте их и загрузите файл еще раз.\",\n \"admin/b2b-organizations.bulk-import.upload.uploadFinish\": \"Импортировать\",\n \"admin/b2b-organizations.bulk-import.upload.uploadGeneralFailure\": \"Произошла непредвиденная ошибка.\",\n \"admin/b2b-organizations.bulk-import.upload.uploading\": \"Загрузка и проверка файла...\",\n \"admin/b2b-organizations.bulk-import.upload.uploadMultipleErrors\": \"В файле обнаружены ошибки.\",\n \"admin/b2b-organizations.bulk-import.upload.uploadSuccess\": \"Готово! Файл можно импортировать.\",\n \"admin/b2b-organizations.bulk-import.upload.uploadSuccessItems\": \"Организаций-покупателей: {count}\",\n \"admin/b2b-organizations.bulk-import.upload.uploadTitle\": \"Массовое импортирование организаций-покупателей\",\n \"admin/b2b-organizations.bulk-import.upload.uploadViewReport\": \"Просмотр отчета\",\n \"admin/b2b-organizations.check-it-out\": \"Взгляните!\",\n \"admin/b2b-organizations.costCenter-details.address.delete\": \"Удалить\",\n \"admin/b2b-organizations.costCenter-details.address.edit\": \"Редактировать\",\n \"admin/b2b-organizations.costCenter-details.address.new\": \"Добавить новый адрес\",\n \"admin/b2b-organizations.costCenter-details.addresses\": \"Адреса\",\n \"admin/b2b-organizations.costCenter-details.addresses.nothing-to-show\": \"Nothing to show\",\n \"admin/b2b-organizations.costCenter-details.addresses.search-address\": \"Search addresses...\",\n \"admin/b2b-organizations.costCenter-details.addresses.show-rows\": \"Show rows\",\n \"admin/b2b-organizations.costCenter-details.addresses.pagination.of\": \"of\",\n \"admin/b2b-organizations.costCenter-details.businessDocument\": \"Деловая документация\",\n \"admin/b2b-organizations.costCenter-details.businessDocument.helpText\": \"Предоставьте деловую документацию этого финансового центра, такую как регистрационный номер компании, налоговый номер, номер плательщика НДС или тому подобное. Документация будет прилагаться к заказам финансового центра. (Необязательно)\",\n \"admin/b2b-organizations.costCenter-details.button.add\": \"Добавить\",\n \"admin/b2b-organizations.costCenter-details.button.cancel\": \"Отменить\",\n \"admin/b2b-organizations.costCenter-details.button.delete\": \"Удалить\",\n \"admin/b2b-organizations.costCenter-details.button.delete-confirm\": \"Да, удалить\",\n \"admin/b2b-organizations.costCenter-details.button.save\": \"Сохранить\",\n \"admin/b2b-organizations.costCenter-details.button.update\": \"Обновить\",\n \"admin/b2b-organizations.costCenter-details.costCenter-name\": \"Имя\",\n \"admin/b2b-organizations.costCenter-details.default-address\": \"Стандартный адрес\",\n \"admin/b2b-organizations.costCenter-details.delete-address-confirmation\": \"Вы действительно хотите удалить этот адрес?\",\n \"admin/b2b-organizations.costCenter-details.delete-costCenter-confirmation\": \"Вы действительно хотите удалить этот финансовый центр?\",\n \"admin/b2b-organizations.costCenter-details.duplicate-address\": \"Дублировать адрес\",\n \"admin/b2b-organizations.costCenter-details.empty-state\": \"Финансовый центр не найден.\",\n \"admin/b2b-organizations.costCenter-details.marketing-tags\": \"Маркетинговые метки\",\n \"admin/b2b-organizations.costCenter-details.phoneNumber\": \"Номер телефона\",\n \"admin/b2b-organizations.costCenter-details.phoneNumber.helpText\": \"Укажите номер телефона этого финансового центра. Он будет отображаться при оформлении заказа тем пользователям, которые относятся к этому финансовому центру. (Необязательно)\",\n \"admin/b2b-organizations.costCenter-details.stateRegistration\": \"Государственная регистрация\",\n \"admin/b2b-organizations.costCenter-details.stateRegistration.helpText\": \"Предоставьте государственную регистрацию этого финансового центра, такую как государственный регистрационный номер компании, налоговый номер, номер плательщика НДС и т. Д. Документация будет прилагаться к заказам финансового центра. (Не обязательно)\",\n \"admin/b2b-organizations.costCenter-details.table.column-address.receiverName\": \"Recipient\",\n \"admin/b2b-organizations.costCenter-details.table.column-address.title\": \"Адрес\",\n \"admin/b2b-organizations.costCenter-details.title\": \"Информация о финансовом центре\",\n \"admin/b2b-organizations.costCenter-details.toast.delete-failure\": \"Не удалось удалить. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.costCenter-details.toast.update-failure\": \"Не удалось обновить. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.costCenter-details.toast.update-success\": \"Финансовый центр обновлён\",\n \"admin/b2b-organizations.custom-fields.addField\": \"Добавить поле\",\n \"admin/b2b-organizations.custom-fields.explanation\": \"Пользовательские поля используются для сохранения дополнительной информации о формах организации или центра затрат.\",\n \"admin/b2b-organizations.custom-fields.name-singular\": \"Название пользовательского поля\",\n \"admin/b2b-organizations.custom-fields.removeField\": \"Удалить поле\",\n \"admin/b2b-organizations.custom-fields.table.add-dropdown-line\": \"Добавить линию\",\n \"admin/b2b-organizations.custom-fields.table.dropdown-label\": \"Падающий список\",\n \"admin/b2b-organizations.custom-fields.table.dropdown-line-label\": \"Этикетка\",\n \"admin/b2b-organizations.custom-fields.table.dropdown-line-value\": \"Данные\",\n \"admin/b2b-organizations.custom-fields.table.dropdown-preview\": \"Раскрывающийся предварительный просмотр\",\n \"admin/b2b-organizations.custom-fields.table.field-name\": \"Имя поля\",\n \"admin/b2b-organizations.custom-fields.table.field-type\": \"Тип поля\",\n \"admin/b2b-organizations.custom-fields.table.remove-dropdown-line\": \"Удалить линию\",\n \"admin/b2b-organizations.custom-fields.table.text-label\": \"Текст\",\n \"admin/b2b-organizations.custom-fields.table.use-on-registration\": \"Используйте при регистрации\",\n \"admin/b2b-organizations.custom-fields.title\": \"Настраиваемые поля\",\n \"admin/b2b-organizations.invalid-schema\": \"В настоящее время создание корпоративных пользователей не работает, поскольку схема MasterData CL (профиль пользователя) для этой учетной записи недействительна. Ознакомьтесь с документацией в разделе частых вопросов для корпоративного пакета (B2B Suite), чтобы получить более подробную информацию.\",\n \"admin/b2b-organizations.of\": \"из\",\n \"admin/b2b-organizations.organization-details.add-costCenter\": \"Добавить финансовый центр\",\n \"admin/b2b-organizations.organization-details.add-costCenter.helpText\": \"Укажите стандартный адрес финансового центра. Дополнительные адреса можно добавить позже.\",\n \"admin/b2b-organizations.organization-details.add-to-org\": \"Добавить в организацию\",\n \"admin/b2b-organizations.organization-details.add-user\": \"Добавить нового пользователя\",\n \"admin/b2b-organizations.organization-details.add-user.helpText\": \"Если введённый вами адрес электронной почты не совпадает с адресом существующего пользователя этого магазина, для такого пользователя будет создана новая учётная запись.\",\n \"admin/b2b-organizations.organization-details.assigned-to-org\": \"Назначено огранизации\",\n \"admin/b2b-organizations.organization-details.available\": \"Доступно\",\n \"admin/b2b-organizations.organization-details.button.add\": \"Добавить\",\n \"admin/b2b-organizations.organization-details.button.cancel\": \"Отменить\",\n \"admin/b2b-organizations.organization-details.button.new\": \"Новое\",\n \"admin/b2b-organizations.organization-details.button.remove-user\": \"Удалить пользователя\",\n \"admin/b2b-organizations.organization-details.button.remove-user-confirm\": \"Да, удалить пользователя\",\n \"admin/b2b-organizations.organization-details.button.save\": \"Сохранить\",\n \"admin/b2b-organizations.organization-details.collections\": \"Коллекции\",\n \"admin/b2b-organizations.organization-details.costCenters\": \"Финансовые центры\",\n \"admin/b2b-organizations.organization-details.settings\": \"Настройки\",\n \"admin/b2b-organizations.organization-details.settings.createQuote\": \"Создать котировку\",\n \"admin/b2b-organizations.organization-details.created\": \"Создано\",\n \"admin/b2b-organizations.organization-details.default\": \"Общее\",\n \"admin/b2b-organizations.organization-details.edit-user\": \"Редактировать пользователя\",\n \"admin/b2b-organizations.organization-details.empty-state\": \"Организаций не обнаружено.\",\n \"admin/b2b-organizations.organization-details.none\": \"Никто\",\n \"admin/b2b-organizations.organization-details.organization-name\": \"Название организации\",\n \"admin/b2b-organizations.organization-details.organization-name-required\": \"Требуется название организации.\",\n \"admin/b2b-organizations.organization-details.paymentTerms\": \"Условия оплаты\",\n \"admin/b2b-organizations.organization-details.permission-settings\": \"Настройки разрешений\",\n \"admin/b2b-organizations.organization-details.price-tables\": \"Прейскуранты\",\n \"admin/b2b-organizations.organization-details.remove-from-org\": \"Удалить из организации\",\n \"admin/b2b-organizations.organization-details.remove-user\": \"Удалить пользователя\",\n \"admin/b2b-organizations.organization-details.remove-user.helpText\": \"Вы действительно хотите удалить пользователя {email}? Учётная запись пользователя останется, но он не будет иметь доступа к этой организации.\",\n \"admin/b2b-organizations.organization-details.sales-admin-title\": \"Управление пользователями, связанными с продажами\",\n \"admin/b2b-organizations.organization-details.sales-channel\": \"Торговая политика\",\n \"admin/b2b-organizations.organization-details.sellers\": \"Продавцы\",\n \"admin/b2b-organizations.organization-details.status\": \"Статус\",\n \"admin/b2b-organizations.organization-details.status.active\": \"Активен\",\n \"admin/b2b-organizations.organization-details.status.inactive\": \"Неактивен\",\n \"admin/b2b-organizations.organization-details.status.on-hold\": \"В ожидании\",\n \"admin/b2b-organizations.organization-details.table.column-addresses.title\": \"Адреса\",\n \"admin/b2b-organizations.organization-details.table.column-name.title\": \"Имя\",\n \"admin/b2b-organizations.organization-details.title\": \"Информация об организации\",\n \"admin/b2b-organizations.organization-details.toast.add-costCenter-failure\": \"Не удалось создать финансовый центр. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organization-details.toast.add-costCenter-success\": \"Финансовый центр создан\",\n \"admin/b2b-organizations.organization-details.toast.update-failure\": \"Не удалось обновить. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organization-details.toast.update-success\": \"Организация обновлена\",\n \"admin/b2b-organizations.organization-details.tradeName\": \"Торговое наименование\",\n \"admin/b2b-organizations.organization-details.tradeName.helpText\": \"Укажите коммерческое название организации, которое будет указываться при оформлении заказа. (Необязательно)\",\n \"admin/b2b-organizations.organization-details.users\": \"Пользователи\",\n \"admin/b2b-organizations.organization-request-admin.customFields\": \"Пользовательские поля организации\",\n \"admin/b2b-organizations.organization-request-admin.customFields.dropdownValues\": \"Выпадающий список значений\",\n \"admin/b2b-organizations.organization-request-admin.customFields.label\": \"Метка\",\n \"admin/b2b-organizations.organization-request-admin.customFields.name\": \"Название\",\n \"admin/b2b-organizations.organization-request-admin.customFields.type\": \"Тип\",\n \"admin/b2b-organizations.organization-request-admin.customFields.value\": \"Значение\",\n \"admin/b2b-organizations.organization-request-admin.customFieldsCostCenter\": \"Пользовательские поля центра затрат\",\n \"admin/b2b-organizations.organization-request-details.add-note.charactersLeft\": \"{count, plural, =499{осталось символов}=500{Вы достигли лимита в 500 символов}other{осталось символов}}\",\n \"admin/b2b-organizations.organization-request-details.add-note.label\": \"Добавить примечание\",\n \"admin/b2b-organizations.organization-request-details.b2b-customer-admin\": \"Пользователь, который будет администратором корпоративных клиентов для этой организации\",\n \"admin/b2b-organizations.organization-request-details.button.approve\": \"Утвердить\",\n \"admin/b2b-organizations.organization-request-details.button.decline\": \"Отклонить\",\n \"admin/b2b-organizations.organization-request-details.created\": \"Дата запроса\",\n \"admin/b2b-organizations.organization-request-details.default-cost-center\": \"Стандартный финансовый центр\",\n \"admin/b2b-organizations.organization-request-details.default-cost-center.businessDocument\": \"Деловая документация: {businessDocument}\",\n \"admin/b2b-organizations.organization-request-details.default-cost-center.phoneNumber\": \"Номер телефона: {phoneNumber}\",\n \"admin/b2b-organizations.organization-request-details.default-cost-center.stateRegistration\": \"Государственная регистрация: {stateRegistration}\",\n \"admin/b2b-organizations.organization-request-details.empty-state\": \"Запросы организаций не найдены.\",\n \"admin/b2b-organizations.organization-request-details.organization-name\": \"Название организации\",\n \"admin/b2b-organizations.organization-request-details.request-status\": \"Статус\",\n \"admin/b2b-organizations.organization-request-details.title\": \"Запрос организации\",\n \"admin/b2b-organizations.organization-request-details.toast.created-success\": \"Организация создана\",\n \"admin/b2b-organizations.organization-request-details.toast.update-failure\": \"Не удалось обновить. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email\": \"Missing B2B Customer Admin in organization, unable to approve it\",\n \"admin/b2b-organizations.organization-request-details.toast.update-success\": \"Запрос организации обновлён\",\n \"admin/b2b-organizations.organization-request-details.tradeName\": \"Торговое наименование\",\n \"admin/b2b-organizations.organization-request-details.tradeName.helpText\": \"Укажите коммерческое название организации, которое будет указываться при оформлении заказа. (Необязательно)\",\n \"admin/b2b-organizations.organization-requests-admin.table.clearFilters.label\": \"Сбросить фильтры\",\n \"admin/b2b-organizations.organization-requests-admin.table.column-admin.title\": \"Администратор\",\n \"admin/b2b-organizations.organization-requests-admin.table.column-created.title\": \"Дата запроса\",\n \"admin/b2b-organizations.organization-requests-admin.table.column-name.title\": \"Название организации\",\n \"admin/b2b-organizations.organization-requests-admin.table.column-status.title\": \"Статус\",\n \"admin/b2b-organizations.organization-requests-admin.table.empty-state\": \"Запросы организаций не найдены.\",\n \"admin/b2b-organizations.organization-requests-admin.table.filters.all\": \"Все\",\n \"admin/b2b-organizations.organization-requests-admin.table.filters.includes\": \"включает\",\n \"admin/b2b-organizations.organization-requests-admin.table.filters.none\": \"Отсутствует\",\n \"admin/b2b-organizations.organization-requests-admin.table.search.placeholder\": \"Найти\",\n \"admin/b2b-organizations.organization-requests-admin.table.statusFilter.label\": \"Статус\",\n \"admin/b2b-organizations.organization-requests-admin.table.toggleFields.hideAllLabel\": \"Скрыть все\",\n \"admin/b2b-organizations.organization-requests-admin.table.toggleFields.label\": \"Переключение видимых полей\",\n \"admin/b2b-organizations.organization-requests-admin.table.toggleFields.showAllLabel\": \"Показать все\",\n \"admin/b2b-organizations.organization-requests-admin.table.view.label\": \"Просмотр\",\n \"admin/b2b-organizations.organization-requests-admin.title\": \"Запросы организаций\",\n \"admin/b2b-organizations.organization-requests.navigation.keywords\": \"корпоративные, организации, финансовые центры\",\n \"admin/b2b-organizations.organization-requests.navigation.label\": \"Запросы организаций\",\n \"admin/b2b-organizations.organization-settings-admin.autoApprove\": \"Автоподтверждение новых организаций\",\n \"admin/b2b-organizations.organization-settings-admin.availablePaymentsTableTitle\": \"Доступные условия оплаты\",\n \"admin/b2b-organizations.organization-settings-admin.availablePriceTablesTitle\": \"Доступные прейскуранты\",\n \"admin/b2b-organizations.organization-settings-admin.businessReadOnly\": \"Сделать деловую документацию доступной только для чтения\",\n \"admin/b2b-organizations.organization-settings-admin.customFieldsTitle\": \"Настраиваемые поля\",\n \"admin/b2b-organizations.organization-settings-admin.generalSettings\": \"Общие настройки\",\n \"admin/b2b-organizations.organization-settings-admin.saveSettings\": \"Сохранить настройки\",\n \"admin/b2b-organizations.organization-settings-admin.selectedPaymentsTableTitle\": \"Выбранные условия оплаты\",\n \"admin/b2b-organizations.organization-settings-admin.selectedPriceTablesTitle\": \"Выбранные прейскуранты\",\n \"admin/b2b-organizations.organization-settings-admin.stateReadOnly\": \"Сделать государственную регистрацию доступной только для чтения\",\n \"admin/b2b-organizations.organization-settings-admin.title\": \"Настройки\",\n \"admin/b2b-organizations.organization-settings-admin.toast.update-failure\": \"Не удалось обновить. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organization-settings-admin.toast.update-success\": \"Настройки обновлены\",\n \"admin/b2b-organizations.organization-settings-autoApprove\": \"Автоматически подтверждать новые организации\",\n \"admin/b2b-organizations.organization-settings-clearCart\": \"Очищать корзину при переключении компании или входе в систему\",\n \"admin/b2b-organizations.organization-settings-fullImpersonation\": \"Разрешить выбор организации и центра затрат во время имитации\",\n \"admin/b2b-organizations.organization-settings-select.add-to-binding\": \"Добавить к привязкам\",\n \"admin/b2b-organizations.organization-settings-select.binding.available\": \"Доступные привязки\",\n \"admin/b2b-organizations.organization-settings-select.binding.selected\": \"Выбранные привязки\",\n \"admin/b2b-organizations.organization-settings-select.binding.title\": \"Привязки\",\n \"admin/b2b-organizations.organization-settings-select.remove-from-binding\": \"Удалить из привязок\",\n \"admin/b2b-organizations.organization-settings-select.toast.update-failure\": \"Не удалось обновить привязки. Просмотрите консоль для получения дополнительной информации.\",\n \"admin/b2b-organizations.organization-settings-select.toast.update-success\": \"Привязки обновлены\",\n \"admin/b2b-organizations.organization-settings-showModal\": \"Использовать форму для смены компании\",\n \"admin/b2b-organizations.organization-settings.navigation.label\": \"Настройки\",\n \"admin/b2b-organizations.organization-users.column.costCenter\": \"Финансовый центр\",\n \"admin/b2b-organizations.organization-users.column.email\": \"Эл. почта\",\n \"admin/b2b-organizations.organization-users.column.role\": \"Роль\",\n \"admin/b2b-organizations.organization-users.emptyState\": \"Пользователи не найдены.\",\n \"admin/b2b-organizations.organization-users.toast.add-failure\": \"Не удалось добавить пользователя. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organization-users.toast.add-success\": \"Пользователь добавлен\",\n \"admin/b2b-organizations.organization-users.toast.duplicated\": \"Этот пользователь уже зарегистрирован в другой организации.\",\n \"admin/b2b-organizations.organization-users.toast.duplicated-organization\": \"Этот пользователь уже зарегистрирован в этой организации.\",\n \"admin/b2b-organizations.organization-users.toast.remove-failure\": \"Не удалось удалить пользователя. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organization-users.toast.remove-success\": \"Пользователь удалён из организации.\",\n \"admin/b2b-organizations.organization-users.toast.update-failure\": \"Не удалось обновить пользователя. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organization-users.toast.update-success\": \"Пользователь обновлен\",\n \"admin/b2b-organizations.organizations-admin.add-bulk\": \"Массовое импортирование\",\n \"admin/b2b-organizations.organizations-admin.add-organization\": \"Добавить организацию\",\n \"admin/b2b-organizations.organizations-admin.add-organization.default-costCenter-name\": \"Название финансового центра\",\n \"admin/b2b-organizations.organizations-admin.add-organization.default-costCenter.helpText\": \"Укажите название и адрес начального финансового центра. Дополнительны центры и адреса можно добавить позже.\",\n \"admin/b2b-organizations.organizations-admin.add-organization.organization-name\": \"Название организации\",\n \"admin/b2b-organizations.organizations-admin.add-single\": \"Добавлять индивидуально\",\n \"admin/b2b-organizations.organizations-admin.button.refetch\": \"Повторная выборка\",\n \"admin/b2b-organizations.organizations-admin.table.clearFilters.label\": \"Сбросить фильтры\",\n \"admin/b2b-organizations.organizations-admin.table.column-name.title\": \"Имя\",\n \"admin/b2b-organizations.organizations-admin.table.column-status.title\": \"Статус\",\n \"admin/b2b-organizations.organizations-admin.table.empty-state\": \"Организаций не обнаружено.\",\n \"admin/b2b-organizations.organizations-admin.table.filters.all\": \"Все\",\n \"admin/b2b-organizations.organizations-admin.table.filters.includes\": \"включает\",\n \"admin/b2b-organizations.organizations-admin.table.filters.none\": \"Отсутствует\",\n \"admin/b2b-organizations.organizations-admin.table.search.placeholder\": \"Найти\",\n \"admin/b2b-organizations.organizations-admin.table.statusFilter.label\": \"Статус\",\n \"admin/b2b-organizations.organizations-admin.table.view.label\": \"Просмотр\",\n \"admin/b2b-organizations.organizations-admin.title\": \"Организации\",\n \"admin/b2b-organizations.organizations-admin.toast.add-organization-failure\": \"Не удалось создать организацию. Подробная информация доступна на консоли.\",\n \"admin/b2b-organizations.organizations-admin.toast.add-organization-success\": \"Организация создана\",\n \"admin/b2b-organizations.organizations.navigation.label\": \"Организации\",\n \"admin/b2b-organizations.selected-rows\": \"Выбранные строки: {qty}\",\n \"admin/b2b-organizations.showRows\": \"Показать строки\",\n \"admin/b2b-organizations.user-details.costCenter\": \"Финансовый центр\",\n \"admin/b2b-organizations.user-details.email\": \"Эл. почта\",\n \"admin/b2b-organizations.user-details.name\": \"Имя\",\n \"admin/b2b-organizations.organizations.not-allow-view-message\": \"У вас нет доступа к просмотру организаций из-за отсутствия функции «Организации покупателей». Обратитесь к администратору вашей учетной записи.\",\n \"admin/b2b-organizations.user-details.organization\": \"Организация\",\n \"admin/b2b-organizations.user-details.placeholder-costCenter\": \"Выбрать финансовый центр\",\n \"admin/b2b-organizations.user-details.placeholder-role\": \"Выбрать роль\",\n \"admin/b2b-organizations.user-details.role\": \"Роль\",\n \"admin/b2b-organizations.warning-topbar-inative-org.form.title\": \"Topbar customization\",\n \"admin/b2b-organizations.warning-topbar-inative-org.form.help-text\": \"Customize the message and color of the top bar notifications that are displayed when the organization is disabled\",\n \"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label\": \"Topbar color\",\n \"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label\": \"Message\",\n \"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text\": \"If no message is entered, a default message will be displayed.\",\n \"store/b2b-organizations.autocomplete-searching\": \"Поиск организаций\",\n \"store/b2b-organizations.autocomplete-searching.cost-center\": \"Поиск финансового центра\",\n \"store/b2b-organizations.back\": \"Назад\",\n \"store/b2b-organizations.change-organization\": \"Изменить организацию\",\n \"store/b2b-organizations.check-it-out\": \"Взгляните!\",\n \"store/b2b-organizations.costCenter-details.address.delete\": \"Удалить\",\n \"store/b2b-organizations.costCenter-details.address.edit\": \"Редактировать\",\n \"store/b2b-organizations.costCenter-details.address.new\": \"Добавить новый адрес\",\n \"store/b2b-organizations.costCenter-details.addresses\": \"Адреса\",\n \"store/b2b-organizations.costCenter-details.addresses.helpText\": \"Пользователи этого финансового центра при оформлении заказа смогут выбрать один из следующих адресов доставки. Каждый финансовый центр должен иметь хотя бы один адрес.\",\n \"store/b2b-organizations.costCenter-details.businessDocument\": \"Деловая документация\",\n \"store/b2b-organizations.costCenter-details.businessDocument.helpText\": \"Предоставьте деловую документацию этого финансового центра, такую как регистрационный номер компании, налоговый номер, номер плательщика НДС или тому подобное. Документация будет прилагаться к заказам финансового центра. (Необязательно)\",\n \"store/b2b-organizations.costCenter-details.button.add\": \"Добавить\",\n \"store/b2b-organizations.costCenter-details.button.cancel\": \"Отменить\",\n \"store/b2b-organizations.costCenter-details.button.delete\": \"Удалить\",\n \"store/b2b-organizations.costCenter-details.button.delete-confirm\": \"Да, удалить\",\n \"store/b2b-organizations.costCenter-details.button.save\": \"Сохранить\",\n \"store/b2b-organizations.costCenter-details.button.update\": \"Обновить\",\n \"store/b2b-organizations.costCenter-details.costCenter-name\": \"Имя\",\n \"store/b2b-organizations.costCenter-details.default-address\": \"Стандартный адрес\",\n \"store/b2b-organizations.costCenter-details.delete-address-confirmation\": \"Вы действительно хотите удалить этот адрес?\",\n \"store/b2b-organizations.costCenter-details.delete-costCenter-confirmation\": \"Вы действительно хотите удалить этот финансовый центр?\",\n \"store/b2b-organizations.costCenter-details.duplicate-address\": \"Дублировать адрес\",\n \"store/b2b-organizations.costCenter-details.empty-state\": \"Финансовый центр не найден.\",\n \"store/b2b-organizations.costCenter-details.payment-terms\": \"Условия оплаты\",\n \"store/b2b-organizations.costCenter-details.payment-terms.helpText\": \"Пользователи этого финансового центра при оформлении заказа смогут выбрать одно из следующих условий оплаты. Каждый финансовый центр должен иметь хотя бы одни активные работающие условия оплаты.\",\n \"store/b2b-organizations.costCenter-details.phoneNumber\": \"Номер телефона\",\n \"store/b2b-organizations.costCenter-details.phoneNumber.helpText\": \"Укажите номер телефона этого финансового центра. Он будет отображаться при оформлении заказа тем пользователям, которые относятся к этому финансовому центру. (Необязательно)\",\n \"store/b2b-organizations.costCenter-details.stateRegistration\": \"Государственная регистрация\",\n \"store/b2b-organizations.costCenter-details.stateRegistration.helpText\": \"Предоставьте государственную регистрацию этого финансового центра, такую как государственный регистрационный номер компании, налоговый номер, номер плательщика НДС и т. Д. Документация будет прилагаться к заказам финансового центра. (Не обязательно)\",\n \"store/b2b-organizations.costCenter-details.table.column-address.title\": \"Адрес\",\n \"store/b2b-organizations.costCenter-details.title\": \"Информация о финансовом центре\",\n \"store/b2b-organizations.costCenter-details.toast.delete-failure\": \"Не удалось удалить. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.costCenter-details.toast.update-failure\": \"Не удалось обновить. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.costCenter-details.toast.update-success\": \"Финансовый центр обновлён\",\n \"store/b2b-organizations.current-organization\": \"Текущая организация\",\n \"store/b2b-organizations.invalid-schema\": \"В настоящее время создание корпоративных пользователей не работает, поскольку схема MasterData CL (профиль пользователя) для этой учетной записи недействительна. Ознакомьтесь с документацией в разделе частых вопросов для корпоративного пакета (B2B Suite), чтобы получить более подробную информацию.\",\n \"store/b2b-organizations.modal.join\": \"Присоединиться\",\n \"store/b2b-organizations.modal.search\": \"Поиск\",\n \"store/b2b-organizations.modal.select-company\": \"Выбрать компанию\",\n \"store/b2b-organizations.my-account-link\": \"Моя организация\",\n \"store/b2b-organizations.not-authenticated\": \"Для доступа к данному содержимому необходимо авторизоваться.\",\n \"store/b2b-organizations.of\": \"из\",\n \"store/b2b-organizations.organization-details.add-costCenter\": \"Добавить финансовый центр\",\n \"store/b2b-organizations.organization-details.add-costCenter.helpText\": \"Укажите стандартный адрес финансового центра. Дополнительные адреса можно добавить позже.\",\n \"store/b2b-organizations.organization-details.add-user\": \"Добавить нового пользователя\",\n \"store/b2b-organizations.organization-details.add-user.helpText\": \"Если введённый вами адрес электронной почты не совпадает с адресом существующего пользователя этого магазина, для такого пользователя будет создана новая учётная запись.\",\n \"store/b2b-organizations.organization-details.button.add\": \"Добавить\",\n \"store/b2b-organizations.organization-details.button.cancel\": \"Отменить\",\n \"store/b2b-organizations.organization-details.button.new\": \"Новое\",\n \"store/b2b-organizations.organization-details.button.remove-user\": \"Удалить пользователя\",\n \"store/b2b-organizations.organization-details.button.remove-user-confirm\": \"Да, удалить пользователя\",\n \"store/b2b-organizations.organization-details.button.save\": \"Сохранить\",\n \"store/b2b-organizations.organization-details.costCenters\": \"Финансовые центры\",\n \"store/b2b-organizations.organization-details.edit-user\": \"Редактировать пользователя\",\n \"store/b2b-organizations.organization-details.empty-state\": \"Организаций не обнаружено.\",\n \"store/b2b-organizations.organization-details.organization-name\": \"Название организации\",\n \"store/b2b-organizations.organization-details.organizations-without-sales-manager-ok\": \"Все организации имеют менеджера по продажам\",\n \"store/b2b-organizations.organization-details.organizations-without-sales-manager-title\": \"Организации без менеджера по продажам\",\n \"store/b2b-organizations.organization-details.organizations-without-sales-manager-warning\": \"У некоторых организаций нет менеджера по продажам\",\n \"store/b2b-organizations.organization-details.remove-user\": \"Удалить пользователя\",\n \"store/b2b-organizations.organization-details.remove-user.helpText\": \"Вы действительно хотите удалить пользователя {email}? Учётная запись пользователя останется, но он не будет иметь доступа к вашей организации.\",\n \"store/b2b-organizations.organization-details.sales-admin-title\": \"Управление пользователями, связанными с продажами\",\n \"store/b2b-organizations.organization-details.table.column-addresses.title\": \"Адреса\",\n \"store/b2b-organizations.organization-details.table.column-name.title\": \"Имя\",\n \"store/b2b-organizations.organization-details.title\": \"Информация об организации\",\n \"store/b2b-organizations.organization-details.toast.add-costCenter-failure\": \"Не удалось создать финансовый центр. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.organization-details.toast.add-costCenter-success\": \"Финансовый центр создан\",\n \"store/b2b-organizations.organization-details.tradeName\": \"Торговое наименование\",\n \"store/b2b-organizations.organization-details.tradeName.helpText\": \"Укажите коммерческое название организации, которое будет указываться при оформлении заказа. (Необязательно)\",\n \"store/b2b-organizations.organization-details.users\": \"Пользователи\",\n \"store/b2b-organizations.organization-users.column.costCenter\": \"Финансовый центр\",\n \"store/b2b-organizations.organization-users.column.email\": \"Эл. почта\",\n \"store/b2b-organizations.organization-users.column.organizationName\": \"Организация\",\n \"store/b2b-organizations.organization-users.column.role\": \"Роль\",\n \"store/b2b-organizations.organization-users.emptyState\": \"Пользователи не найдены.\",\n \"store/b2b-organizations.organization-users.impersonate\": \"Войти как пользователь\",\n \"store/b2b-organizations.organization-users.table.search.placeholder\": \"Найти\",\n \"store/b2b-organizations.organization-users.toast.add-failure\": \"Не удалось добавить пользователя. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.organization-users.toast.add-success\": \"Пользователь добавлен\",\n \"store/b2b-organizations.organization-users.toast.duplicated\": \"Этот пользователь уже зарегистрирован в другой организации.\",\n \"store/b2b-organizations.organization-users.toast.duplicated-organization\": \"Этот пользователь уже зарегистрирован в этой организации.\",\n \"store/b2b-organizations.organization-users.toast.impersonate-failure\": \"Сбой работы от имени другого лица. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.organization-users.toast.impersonate-forbidden\": \"У вас нет прав для совершения действий от имени этого пользователя\",\n \"store/b2b-organizations.organization-users.toast.impersonate-id-missing\": \"Пользователь должен завершить создание своего профиля, прежде чем другим пользователям можно будет совершать действия от его имени.\",\n \"store/b2b-organizations.organization-users.toast.impersonate-starting\": \"Запуск работы от имени другого лица...\",\n \"store/b2b-organizations.organization-users.toast.impersonate-success\": \"Теперь вы работаете от имени {email}\",\n \"store/b2b-organizations.organization-users.toast.remove-failure\": \"Не удалось удалить пользователя. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.organization-users.toast.remove-success\": \"Пользователь удалён из организации.\",\n \"store/b2b-organizations.organization-users.toast.update-failure\": \"Не удалось обновить пользователя. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.organization-users.toast.update-success\": \"Пользователь обновлен\",\n \"store/b2b-organizations.organizations-found\": \"Найдено организаций\",\n \"store/b2b-organizations.request-new-organization.approved-request\": \"Ваша организация создана. Добавленные в организацию пользователи могут просматривать различные аспекты организации и/или управлять ими, войдя в систему и перейдя в «Мой аккаунт», раздел «Моя организация».\",\n \"store/b2b-organizations.request-new-organization.b2b-customer-admin.helpText\": \"Следующий пользователь будет назначен администратором новой организации. После утверждения и создания организации он получит уведомление по электронной почте. После создания организации этот администратор сможет добавить в неё новых пользователей.\",\n \"store/b2b-organizations.request-new-organization.b2b-customer-admin.title\": \"Пользователь, который будет администратором организации\",\n \"store/b2b-organizations.request-new-organization.businessDocument\": \"Деловая документация\",\n \"store/b2b-organizations.request-new-organization.businessDocument.helpText\": \"Предоставьте деловую документацию этого финансового центра, такую как регистрационный номер компании, налоговый номер, номер плательщика НДС или тому подобное. Документация будет прилагаться к заказам финансового центра. (Необязательно)\",\n \"store/b2b-organizations.request-new-organization.declined-request\": \"Ваш запрос, созданный {created} и касающийся организации, был отклонён.\",\n \"store/b2b-organizations.request-new-organization.default-cost-center-name.label\": \"Название финансового центра\",\n \"store/b2b-organizations.request-new-organization.default-cost-center.helpText\": \"Укажите название и адрес начального финансового центра организации. После создания организации можно добавить дополнительные финансовые центры и адреса.\",\n \"store/b2b-organizations.request-new-organization.default-cost-center.title\": \"Стандартный финансовый центр\",\n \"store/b2b-organizations.request-new-organization.email.label\": \"Эл. почта\",\n \"store/b2b-organizations.request-new-organization.first-name.label\": \"Имя\",\n \"store/b2b-organizations.request-new-organization.helpText\": \"Заполните следующую форму для отправки запроса о создании новой организации.\",\n \"store/b2b-organizations.request-new-organization.last-name.label\": \"Фамилия\",\n \"store/b2b-organizations.request-new-organization.organization-name.label\": \"Название организации\",\n \"store/b2b-organizations.request-new-organization.pending-request\": \"Ваш запрос, касающийся организации, отправлен {created} и ожидает подтверждения. После подтверждения пользователь, отправивший запрос в качестве администратора организации, получит уведомление по электронной почте.\",\n \"store/b2b-organizations.request-new-organization.phoneNumber\": \"Номер телефона\",\n \"store/b2b-organizations.request-new-organization.phoneNumber.helpText\": \"Укажите номер телефона этого финансового центра. Он будет отображаться при оформлении заказа тем пользователям, которые относятся к этому финансовому центру. (Необязательно)\",\n \"store/b2b-organizations.request-new-organization.stateRegistration\": \"Государственная регистрация\",\n \"store/b2b-organizations.request-new-organization.stateRegistration.helpText\": \"Предоставьте государственную регистрацию этого финансового центра, такую как государственный регистрационный номер компании, налоговый номер, номер плательщика НДС и т. Д. Документация будет прилагаться к заказам финансового центра. (Не обязательно)\",\n \"store/b2b-organizations.request-new-organization.submit-button.create-new-request\": \"Создать новый запрос\",\n \"store/b2b-organizations.request-new-organization.submit-button.label\": \"Отправить\",\n \"store/b2b-organizations.request-new-organization.submit.toast-duplicate-approved\": \"Адрес электронной почты в вашем запросе уже связан с другим подтверждённым запросом.\",\n \"store/b2b-organizations.request-new-organization.submit.toast-duplicate-pending\": \"Адрес электронной почты в вашем запросе уже связан с другим обрабатываемым запросом.\",\n \"store/b2b-organizations.request-new-organization.submit.toast-failure\": \"Не удалось отправить. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.request-new-organization.submit.toast-success\": \"Ваш запрос отправлен.\",\n \"store/b2b-organizations.request-new-organization.title\": \"Запросить новую организацию\",\n \"store/b2b-organizations.request-new-organization.tradeName\": \"Торговое наименование\",\n \"store/b2b-organizations.request-new-organization.tradeName.helpText\": \"Укажите коммерческое название организации, которое будет указываться при оформлении заказа. (Необязательно)\",\n \"store/b2b-organizations.selected-rows\": \"Выбранные строки: {qty}\",\n \"store/b2b-organizations.set-current-organization\": \"Установить текущую организацию\",\n \"store/b2b-organizations.set-organization-error\": \"Не удалось установить текущую организацию. Просмотрите консоль для получения дополнительной информации.\",\n \"store/b2b-organizations.showRows\": \"Показать строки\",\n \"store/b2b-organizations.stop-impersonation\": \"Остановить работу от имени другого лица\",\n \"store/b2b-organizations.stop-impersonation-error\": \"Сбой остановки работы от имени другого лица. Подробная информация доступна на консоли.\",\n \"store/b2b-organizations.user-details.costCenter\": \"Финансовый центр\",\n \"store/b2b-organizations.user-details.email\": \"Эл. почта\",\n \"store/b2b-organizations.user-details.name\": \"Имя\",\n \"store/b2b-organizations.user-details.organization\": \"Организация\",\n \"store/b2b-organizations.user-details.placeholder-costCenter\": \"Выбрать финансовый центр\",\n \"store/b2b-organizations.user-details.placeholder-role\": \"Выбрать роль\",\n \"store/b2b-organizations.user-details.role\": \"Роль\",\n \"store/b2b-organizations.user-widget.costCenter\": \"Финансовый центр:\",\n \"store/b2b-organizations.user-widget.impersonating\": \"Работа от имени другого лица:\",\n \"store/b2b-organizations.user-widget.manage-organization\": \"Управление организацией\",\n \"store/b2b-organizations.user-widget.organization\": \"Организация:\",\n \"store/b2b-organizations.user-widget.role\": \"Моя роль:\",\n \"store/b2b-organizations.user-widget.status\": \"Статус организации:\",\n \"store/b2b-organizations.user-widget.status.active\": \"Активен\",\n \"store/b2b-organizations.user-widget.status.inactive\": \"Неактивен\",\n \"store/b2b-organizations.user-widget.status.on-hold\": \"В ожидании\",\n \"store/b2b-organizations.warning-topbar-inative-org.message\": \"Your organization's account is paused, and you cannot complete purchases now.\"\n}\n\n```",
"role": "assistant"
}
] |
code_places-graphql_c64e1802
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "What GraphQL queries are available in places-graphql?",
"role": "user"
},
{
"content": "Here's the graphql schema:\n\n```graphql\ntype Address {\n addressId: ID\n addressType: AddressType\n city: String\n complement: String\n country: String\n geoCoordinates: [Float!]\n neighborhood: String\n number: String\n postalCode: String\n receiverName: String\n reference: String\n state: String\n street: String\n}\n\nenum AddressType {\n residential\n commercial\n inStore\n giftRegistry\n pickup\n search\n}\n\n```",
"role": "assistant"
}
] |
code_store-on-localhost_ab5a8c27
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Explain the code in store-on-localhost/src/monobloco/components/new/StoreComponents/components/Share/components/SocialButton.js.",
"role": "user"
},
{
"content": "Here's the implementation:\n\n```javascript\nimport React, { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport classNames from 'classnames'\nimport * as ReactShare from 'react-share'\n\nimport { SOCIAL_TO_ENUM, SOCIAL_ENUM_TO_COMPONENT } from '../constants/social'\nimport styles from '../styles.css'\n\nexport default class SocialButton extends Component {\n static propTypes = {\n /** Share URL */\n url: PropTypes.string.isRequired,\n /** Message to be shared */\n message: PropTypes.string,\n /** Social Network Enum */\n socialEnum: PropTypes.string.isRequired,\n /** Button size in pixels */\n size: PropTypes.number,\n /** Classes to be applied to social button */\n buttonClass: PropTypes.string,\n /** Classes to be applied to icon of the button */\n iconClass: PropTypes.string,\n /** Image url to share in social medias */\n imageUrl: PropTypes.string,\n }\n\n static defaultProps = {\n size: 32,\n buttonClass: 'mh1 pointer outline-0 dim',\n }\n\n render() {\n const {\n url,\n message,\n size,\n socialEnum,\n buttonClass,\n iconClass,\n imageUrl,\n } = this.props\n const socialComponentName = SOCIAL_ENUM_TO_COMPONENT[socialEnum]\n const SocialComponent = ReactShare[`${socialComponentName}ShareButton`]\n const SocialIcon = ReactShare[`${socialComponentName}Icon`]\n const additionalProps = message && resolveMessageProp(message, socialEnum)\n\n const icon = (\n <SocialIcon\n round\n size={size}\n className={classNames(styles.shareSocialIcon, iconClass)}\n />\n )\n\n /* Pinterest requires imageUrl for the \"media\" prop, but\n * it might not be loaded yet */\n if (socialComponentName === SOCIAL_TO_ENUM.pinterest && !imageUrl) {\n return icon\n }\n\n return (\n <SocialComponent\n url={url}\n className={classNames(styles.shareSocialButton, buttonClass)}\n media={imageUrl}\n {...additionalProps}\n >\n {icon}\n </SocialComponent>\n )\n }\n}\n\nfunction resolveMessageProp(message, socialEnum) {\n const titlePropMessage = [\n SOCIAL_TO_ENUM.whatsapp,\n SOCIAL_TO_ENUM.twitter,\n SOCIAL_TO_ENUM.telegram,\n SOCIAL_TO_ENUM.pinterest,\n ]\n\n return titlePropMessage.includes(socialEnum)\n ? { title: message }\n : socialEnum === SOCIAL_TO_ENUM.facebook\n ? { quote: message }\n : { body: message }\n}\n\n```",
"role": "assistant"
}
] |
code_render-runtime_22df5406
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How do I implement the Box component in my VTEX store?",
"role": "user"
},
{
"content": "Here's the react component:\n\n```tsx\nimport React from 'react'\nimport { ContentLoader, Rect } from './ContentLoader'\n\ninterface Props {\n width: number | string\n height: number | string\n}\n\nconst Box = ({ width, height }: Props) => (\n <ContentLoader width={width} height={height}>\n <Rect x={0} y={0} width={width} height={height} />\n </ContentLoader>\n)\n\nexport default Box\n\n```",
"role": "assistant"
}
] |
code_admin-pages_78805386
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "What props does Store Settings accept and how do I configure them?",
"role": "user"
},
{
"content": "Here's the react component:\n\n```tsx\nimport React from 'react'\nimport { injectIntl, InjectedIntlProps } from 'react-intl'\n\nimport AdminStructure from './components/admin/AdminStructure'\nimport Store from './components/admin/store'\n\nconst StoreSettings: React.FC<InjectedIntlProps> = ({ intl }) => (\n <AdminStructure\n title={intl.formatMessage({\n defaultMessage: 'Store settings',\n id: 'admin/pages.editor.store.settings.title',\n })}\n >\n <Store />\n </AdminStructure>\n)\n\nexport default injectIntl(StoreSettings)\n\n```",
"role": "assistant"
}
] |
code_b2cstoreqa.theme_0d6c3645
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Explain the code in b2cstoreqa.theme/store/blocks/mobile/home.jsonc.",
"role": "user"
},
{
"content": "```jsonc\n{\n \"responsive-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#imageList--mobile\",\n \"flex-layout.row#shopByCategory\",\n // Deprecated\n // \"flex-layout.row#shopByBrandMobile\",\n \"flex-layout.row#shelfMobile\",\n \"flex-layout.row#banners\",\n \"flex-layout.row#singleBannerMobile\",\n \"flex-layout.row#popular-picks\",\n \"flex-layout.row#trending\",\n \"flex-layout.row#benefits\",\n \"flex-layout.row#newsletter\"\n ]\n },\n\n // Deprecated\n // \"flex-layout.row#shopByBrandMobile\": {\n // \"props\": {\n // \"blockClass\": \"shopByBrandSection\"\n // },\n // \"children\": [\n // \"flex-layout.row#shopByBrandHead\",\n // \"list-context.image-list#brandImagesMobile\"\n // ]\n // },\n // \"flex-layout.row#shopByBrandHead\": {\n // \"props\": {\n // \"blockClass\": \"shopByBrandHead\",\n // \"preventHorizontalStretch\": true\n // },\n // \"children\": [\"rich-text#sectionTitle\", \"rich-text#sectionLink\"]\n // },\n // \"rich-text#sectionLink\": {\n // \"props\": {\n // \"text\": \"[See all brands](/brands)\",\n // \"blockClass\": \"sectionLink\"\n // }\n // },\n // \"list-context.image-list#brandImagesMobile\": {\n // \"children\": [\"slider-layout#shopByBrand\"],\n // \"props\": {\n // \"height\": 100,\n // \"images\": [\n // {\n // \"image\": \"assets/placeholders/cokeBrand.png\",\n // \"mobileImage\": \"assets/placeholders/cokeBrand.png\",\n // \"description\": \"something something\"\n // },\n // {\n // \"image\": \"assets/placeholders/AppleBrand.png\",\n // \"mobileImage\": \"assets/placeholders/AppleBrand.png\",\n // \"description\": \"something something\"\n // },\n // {\n // \"image\": \"assets/placeholders/whirlpoolBrand.png\",\n // \"mobileImage\": \"assets/placeholders/whirlpoolBrand.png\",\n // \"description\": \"something something\"\n // },\n // {\n // \"image\": \"assets/placeholders/cokeBrand.png\",\n // \"mobileImage\": \"assets/placeholders/cokeBrand.png\",\n // \"description\": \"something something\"\n // },\n // {\n // \"image\": \"assets/placeholders/AppleBrand.png\",\n // \"mobileImage\": \"assets/placeholders/AppleBrand.png\",\n // \"description\": \"something something\"\n // },\n // {\n // \"image\": \"assets/placeholders/whirlpoolBrand.png\",\n // \"mobileImage\": \"assets/placeholders/whirlpoolBrand.png\",\n // \"description\": \"something something\"\n // }\n // ]\n // }\n // },\n // \"slider-layout#shopByBrand\": {\n // \"props\": {\n // \"blockClass\": \"brandSliderMobile\",\n // \"itemsPerPage\": {\n // \"phone\": 3\n // },\n // \"showNavigationArrows\": \"never\",\n // \"infinite\": false\n // }\n // },\n\n \"flex-layout.row#banners\": {\n \"props\": {\n \"blockClass\": \"bannersSection\"\n },\n \"children\": [\"flex-layout.col#banners\"]\n },\n \"flex-layout.col#banners\": {\n \"children\": [\"rich-text#bannersSectionTitle\", \"slider-layout#banners\"]\n },\n \"rich-text#bannersSectionTitle\": {\n \"props\": {\n \"text\": \"### Summer essentials\",\n \"blockClass\": \"titleWithBorder\"\n }\n },\n \"slider-layout#banners\": {\n \"props\": {\n \"blockClass\": \"bannersSlider\",\n \"itemsPerPage\": {\n \"phone\": 1\n },\n \"showNavigationArrows\": \"never\",\n \"infinite\": false\n },\n \"children\": [\n \"flex-layout.row#banner1\",\n \"flex-layout.row#banner2\",\n \"flex-layout.row#banner3\"\n ]\n },\n \"flex-layout.row#banner1\": {\n \"children\": [\"flex-layout.col#banner1\"]\n },\n \"flex-layout.row#banner2\": {\n \"children\": [\"flex-layout.col#banner2\"]\n },\n \"flex-layout.row#banner3\": {\n \"children\": [\"flex-layout.col#banner3\"]\n },\n \"flex-layout.row#singleBannerMobile\": {\n \"props\": {\n \"blockClass\": \"singleBanner\"\n },\n \"children\": [\"image#singleBannerMobile\"]\n },\n \"image#singleBannerMobile\": {\n \"props\": {\n \"src\": \"assets/placeholders/singleBannerMobile.png\",\n \"maxHeight\": 160,\n \"blockClass\": \"singleBanner\"\n }\n },\n \"flex-layout.row#shelfMobile\": {\n \"children\": [\"list-context.product-list#productSliderMobile\"],\n \"props\": {\n \"blockClass\": \"shelfComplete\"\n }\n },\n \"list-context.product-list#productSliderMobile\": {\n \"blocks\": [\"product-summary.shelf#normal\"],\n \"children\": [\"slider-layout#productsMobile\"],\n \"props\": {\n \"orderBy\": \"OrderByTopSaleDESC\"\n }\n }\n}\n\n```",
"role": "assistant"
}
] |
code_search-resolver_0e7a62a2
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How does search-resolver resolve GraphQL queries?",
"role": "user"
},
{
"content": "```typescript\ninterface OrderFormMarketingData {\n utmCampaign?: string\n utmMedium?: string\n utmSource?: string\n utmiCampaign?: string\n utmiPart?: string\n utmipage?: string\n marketingTags?: string\n}\n\ninterface CheckoutAddress {\n addressType: string\n receiverName: string\n addressId: string\n postalCode: string\n city: string\n state: string\n country: string\n street: string\n number: string\n neighborhood: string\n complement: string\n reference: string | null\n geoCoordinates: [number, number]\n}\ninterface OrderFormItem {\n id: string\n name: string\n detailUrl: string\n imageUrl: string\n productRefId: string\n skuName: string\n quantity: number\n uniqueId: string\n productId: string\n refId: string\n ean: string\n priceValidUntil: string\n price: number\n tax: number\n listPrice: number\n sellingPrice: number\n rewardValue: number\n isGift: boolean\n parentItemIndex: number | null\n parentAssemblyBinding: string | null\n productCategoryIds: string\n priceTags: string[]\n measurementUnit: string\n additionalInfo: {\n brandName: string\n brandId: string\n offeringInfo: any | null\n offeringType: any | null\n offeringTypeId: any | null\n }\n productCategories: Record<string, string>\n seller: string\n sellerChain: string[]\n availability: string\n unitMultiplier: number\n}\n\ninterface PaymentData {\n installmentOptions: {\n paymentSystem: string\n bin: string | null\n paymentName: string | null\n paymentGroupName: string | null\n value: number\n installments: {\n count: number\n hasInterestRate: false\n interestRate: number\n value: number\n total: number\n sellerMerchantInstallments: {\n count: number\n hasInterestRate: false\n interestRate: number\n value: number\n total: number\n }[]\n }[]\n }[]\n paymentSystems: {\n id: string\n name: string\n groupName: string\n validator: {\n regex: string\n mask: string\n cardCodeRegex: string\n cardCodeMask: string\n weights: number[]\n useCvv: boolean\n useExpirationDate: boolean\n useCardHolderName: boolean\n useBillingAddress: boolean\n }\n stringId: string\n template: string\n requiresDocument: boolean\n isCustom: boolean\n description: string | null\n requiresAuthentication: boolean\n dueDate: string\n availablePayments: any | null\n }[]\n payments: any[]\n giftCards: any[]\n giftCardMessages: any[]\n availableAccounts: any[]\n availableTokens: any[]\n}\n\ninterface LogisticsInfo {\n itemIndex: number\n selectedSla: string\n selectedDeliveryChannel: string\n addressId: string\n stockBalance: number\n slas: {\n id: string\n deliveryChannel: string\n name: string\n deliveryIds: {\n courierId: string\n warehouseId: string\n dockId: string\n courierName: string\n quantity: number\n }[]\n shippingEstimate: string\n shippingEstimateDate: string | null\n lockTTL: string | null\n availableDeliveryWindows: any[]\n deliveryWindow: string | null\n price: number\n listPrice: number\n tax: number\n pickupStoreInfo: {\n isPickupStore: boolean\n friendlyName: string | null\n\n address: CheckoutAddress | null\n additionalInfo: any | null\n dockId: string | null\n }\n pickupPointId: string | null\n pickupDistance: number\n polygonName: string | null\n }\n shipsTo: string[]\n itemId: string\n deliveryChannels: { id: string }[]\n\n}\n\ninterface OrderForm {\n orderFormId: string\n salesChannel: string\n loggedIn: boolean\n isCheckedIn: boolean\n storeId: string | null\n checkedInPickupPointId: string | null\n allowManualPrice: boolean\n canEditData: boolean\n userProfileId: string | null\n userType: string | null\n ignoreProfileData: boolean\n value: number\n messages: any[]\n items: OrderFormItem[]\n selectableGifts: any[]\n totalizers: { id: string; name: string; value: number }[]\n logisticsInfo: LogisticsInfo[]\n shippingData: {\n address: CheckoutAddress\n selectedAddresses: CheckoutAddress[]\n availableAddresses: CheckoutAddress[]\n pickupPoints: {\n friendlyName: string\n address: CheckoutAddress\n additionalInfo: string\n id: string\n businessHours: {\n DayOfWeek: number\n OpeningTime: string\n ClosingTime: string\n }[]\n }[]\n }\n clientProfileData: any | null\n paymentData: PaymentData\n marketingData: OrderFormMarketingData | null\n sellers: {\n id: string\n name: string\n logo: string\n }[]\n clientPreferencesData: {\n locale: string\n optinNewsLetter: any | null\n }\n commercialConditionData: any | null\n storePreferencesData: {\n countryCode: string\n saveUserData: boolean\n timeZone: string\n currencyCode: string\n currencyLocale: number\n currencySymbol: string\n currencyFormatInfo: {\n currencyDecimalDigits: number\n currencyDecimalSeparator: string\n currencyGroupSeparator: string\n currencyGroupSize: number\n startsWithCurrencySymbol: boolean\n }\n }\n giftRegistryData: any | null\n openTextField: any | null\n invoiceData: any | null\n customData: any | null\n itemMetadata: {\n items: MetadataItem[]\n }\n hooksData: any | null\n ratesAndBenefitsData: RatesAndBenefitsData\n subscriptionData: any | null\n itemsOrdination: any | null\n}\n\ninterface Teaser {\n featured: boolean\n id: string\n name: string\n conditions: {\n parameters: {\n name: string\n value: string\n }[]\n minimumQuantity: number\n }\n effects: {\n parameters: {\n name: string\n value: string\n }[]\n }\n teaserType: string\n}\ninterface RatesAndBenefitsData {\n rateAndBenefitsIdentifiers: {\n id: string\n name: string\n featured: boolean\n description: string\n }[]\n teaser: Teaser[]\n}\n\ninterface PayloadItem {\n id: string\n quantity: number\n seller: string\n parentItemIndex?: number | null\n parentAssemblyBinding?: string | null\n}\n\ninterface SimulationPayload {\n country?: string\n items: PayloadItem[]\n postalCode?: string\n isCheckedIn?: boolean\n priceTables?: string[]\n marketingData?: Record<string, string>\n shippingData?: ShippingData\n}\n\ninterface ShippingData {\n logisticsInfo?: { regionId?: string | null }[]\n}\n\n```",
"role": "assistant"
}
] |
code_community_dfe20dfe
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "What npm dependencies does community use?",
"role": "user"
},
{
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"for-forin\",\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n },\n \"keywords\": [],\n \"author\": \"\",\n \"license\": \"ISC\",\n \"dependencies\": {\n \"axios\": \"^0.19.2\"\n }\n}\n\n```",
"role": "assistant"
}
] |
code_bitcot-qa-theme_3eab3999
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of bitcot-qa-theme/store/blocks/product-price.jsonc from bitcot-qa-theme.",
"role": "user"
},
{
"content": "This is the code:\n\n```jsonc\n{\n \"flex-layout.row#selling-price\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 4\n },\n \"children\": [\n \"product-selling-price\"\n ]\n },\n\n \"flex-layout.row#list-price-savings\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 2,\n \"marginTop\": 5\n },\n \"children\": [\n \"product-list-price\",\n \"product-price-savings\"\n ]\n }\n}\n\n```",
"role": "assistant"
}
] |
code_b2b-organizations_c1c8b778
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "What GraphQL queries are available in b2b-organizations?",
"role": "user"
},
{
"content": "Here's the graphql schema:\n\n```graphql\nquery GetPriceTables {\n priceTables @context(provider: \"vtex.admin-graphql\")\n}\n\n```",
"role": "assistant"
}
] |
code_regionalization-theme_562487b6
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Explain the code in regionalization-theme/store/blocks/faq.jsonc.",
"role": "user"
},
{
"content": "Here's the source code:\n\n```jsonc\n{\n \"store.custom#faq\": {\n \"children\": [\n \"flex-layout.row#faq\"\n ]\n },\n\n \"flex-layout.row#faq\": {\n \"props\": {\n \"blockClass\": \"faq\"\n },\n \"children\": [\n \"flex-layout.col#faq\"\n ]\n },\n\n \"flex-layout.col#faq\": {\n \"children\": [\n \"rich-text#faq\",\n \"disclosure-layout-group#group\"\n ]\n },\n \"rich-text#faq\": {\n \"props\": {\n \"text\": \"## FAQ\"\n }\n },\n\n \"disclosure-layout-group#group\": {\n \"children\": [\n \"disclosure-layout#first\",\n \"disclosure-layout#second\",\n \"disclosure-layout#third\",\n \"disclosure-layout#fourth\"\n ]\n },\n\n \"disclosure-layout#first\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#first\", \"disclosure-content#first\"]\n },\n \"disclosure-trigger#first\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question1\"]\n },\n \"disclosure-content#first\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer1\"]\n },\n \"rich-text#question1\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer1\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n \"disclosure-layout#second\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#second\", \"disclosure-content#second\"]\n },\n \"disclosure-trigger#second\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question2\"]\n },\n \"disclosure-content#second\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question2\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer2\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-layout#third\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#third\", \"disclosure-content#third\"]\n },\n \"disclosure-trigger#third\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question3\"]\n },\n \"disclosure-content#third\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer3\"]\n },\n \"rich-text#question3\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer3\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n\n \"disclosure-layout#fourth\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#fourth\", \"disclosure-content#fourth\"]\n },\n \"disclosure-trigger#fourth\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question4\"]\n },\n \"disclosure-content#fourth\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question4\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer4\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-state-indicator\": {\n \"props\": {\n \"Show\": \"icon-caret#down\",\n \"Hide\": \"icon-caret#up\"\n }\n },\n \"icon-caret#down\": {\n \"props\": {\n \"orientation\": \"down\"\n }\n },\n \"icon-caret#up\": {\n \"props\": {\n \"orientation\": \"up\"\n }\n }\n}\n\n```",
"role": "assistant"
}
] |
code_admin-pages_d595383b
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the GraphQL schema for admin-pages.",
"role": "user"
},
{
"content": "The implementation is:\n\n```graphql\nquery AvailableTemplates($interfaceId: String) {\n availableTemplates(interfaceId: $interfaceId) {\n id\n }\n}\n\n```",
"role": "assistant"
}
] |
code_telemarketing_31407c72
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Explain the code in telemarketing/react/typings/vtex.store-components.d.ts.",
"role": "user"
},
{
"content": "This is the code:\n\n```typescript\ndeclare module 'vtex.store-components' {\n export const Container\n}\n\n```",
"role": "assistant"
}
] |
code_easy-setup_f0d66c3c
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How do I implement a Node.js service in VTEX IO like easy-setup?",
"role": "user"
},
{
"content": "```json\n{\n \"extends\": [\"tslint-config-vtex\", \"tslint-config-prettier\"],\n \"rules\": {\n \"object-literal-sort-keys\": false\n }\n}\n\n```",
"role": "assistant"
}
] |
doc_cad1b0c6
|
[
{
"content": "You are a VTEX documentation expert. You provide accurate, detailed information about VTEX platform, APIs, apps, and Store Framework development.",
"role": "system"
},
{
"content": "Provide a guide on guides vtex io documentation running native ab testing in VTEX.",
"role": "user"
},
{
"content": "Documentation\n\n[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)\n\n[GuidesLearn how to use our APIs and extend the VTEX platform.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides)\n\n[API ReferenceExplore detailed information about our endpoints.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/api-reference)\n\n[App DevelopmentLearn how to build cloud-based apps and integrations.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/app-development)\n\n[Storefront DevelopmentExpress your brand identity creating unique storefronts.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/storefront-development)\n\n[VTEX IO AppsFind pre-built solutions to grow your business.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/vtex-io-apps)\n\n[TroubleshootingFind practical solutions to common development issues.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/troubleshooting)\n\n[Release NotesStay up to date with our latest releases and bug fixes.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/updates/release-notes)\n\nApp Development\n\n[What is VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-what-is-vtex-io)\n\n---\n\n[What is a VTEX App](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-what-is-a-vtex-app)\n\n---\n\n[Governance and shared security in VTEX IO apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/governance-and-shared-security-in-vtex-io-apps)\n\n---\n\n[Code samples and templates](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/code-samples)\n\n---\n\n[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-getting-started)\n\n---\n\nProject structure\n\n---\n\n[VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-vtex-io-cli-installation-and-command-reference)\n\n---\n\n[Workspace](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-workspace)\n\n---\n\nManaging apps\n\n---\n\nDevelopment guides\n\n---\n\n[Node apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/app-development-guides)\n\n---\n\n[GraphQL in VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/graphql-in-vtex-io)\n\n---\n\n[Policies and permissions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-policies)\n\n---\n\n[A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/ab-tests)\n\n[Running A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing)\n\n[A/B testing Legacy and IO store versions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-performing-ab-testing-between-legacy-and-io)\n\n---\n\n[Deployment](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-making-your-new-app-version-publicly-available)\n\n---\n\n[VTEX App Store](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-app-store)\n\n---\n\n[Edition Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/managing-edition-apps)\n\n---\n\n[Frequently asked questions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-frequently-asked-questions)\n\n---\n\n[Guides](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides)\n\n[API Reference](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/api-reference)\n\n[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/app-development)\n\n[Storefront Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/storefront-development)\n\n[VTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/vtex-io-apps)\n\n[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/troubleshooting)\n\n---\n\n[Release Notes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/updates/release-notes)\n\nApp Development\n\n[What is VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-what-is-vtex-io)\n\n---\n\n[What is a VTEX App](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-what-is-a-vtex-app)\n\n---\n\n[Governance and shared security in VTEX IO apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/governance-and-shared-security-in-vtex-io-apps)\n\n---\n\n[Code samples and templates](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/code-samples)\n\n---\n\n[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-getting-started)\n\n---\n\nProject structure\n\n---\n\n[VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-vtex-io-cli-installation-and-command-reference)\n\n---\n\n[Workspace](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-workspace)\n\n---\n\nManaging apps\n\n---\n\nDevelopment guides\n\n---\n\n[Node apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/app-development-guides)\n\n---\n\n[GraphQL in VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/graphql-in-vtex-io)\n\n---\n\n[Policies and permissions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-policies)\n\n---\n\n[A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/ab-tests)\n\n[Running A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing)\n\n[A/B testing Legacy and IO store versions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-performing-ab-testing-between-legacy-and-io)\n\n---\n\n[Deployment](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-making-your-new-app-version-publicly-available)\n\n---\n\n[VTEX App Store](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-app-store)\n\n---\n\n[Edition Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/managing-edition-apps)\n\n---\n\n[Frequently asked questions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-frequently-asked-questions)\n\n---\n\n[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/app-development)\n\n[A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/ab-tests)\n\n[Running A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing)\n\nRunning A/B tests\n\nIn this guide, you will learn how to manage an A/B test, covering steps from running the test to providing the results.\n\nA/B testing involves comparing traffic between two store workspaces and helps you determine which performs better regarding user engagement and conversions. To run an A/B test, you can use the [VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-vtex-io-cli-installation-and-command-reference) or the [A/B Tester](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtexarg-abtester) app.\n\n> A/B tests have a maximum duration of 30 days from their start date. After this period, tests may end automatically without notice.\n\n## Before you begin\n\nMake sure you have [VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-vtex-io-cli-installation-and-command-reference) installed on your machine.\n\n## Running A/B tests via Admin\n\nThe A/B Tester app allows you to run A/B tests via the Admin. To use the app, follow these steps:\n\n1. Open the terminal and log in to the desired account. \n`1 \nvtex login {accountName} \n` \n> Replace the values between curly brackets based on your account name.\n2. Install the A/B Tester app in the `master` workspace by running: \n`1 \nvtex use master \n2 \nvtex install vtex.ab-tester \n`\n3. Type `y` to confirm that you want to install the app in the `master` workspace.\n4. Install the **A/B Tester app** in the `master` workspace by running the following: \n`1 \nvtex install vtexarg.abtester \n`\n5. Type `y` to confirm the installation.\n6. Now, in the VTEX Admin, go to **Extensions Hub > Installed Apps > AB Tester**.\n7. See the [A/B Tester Admin app documentation](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtexarg-abtester%23usage) to create A/B tests, compare and conclude tests.\n\n## Running A/B tests via VTEX IO CLI\n\n### Step 1 - Enabling A/B testing\n\n1. Open the terminal and log in to the desired account. _Remember to replace the values between curly brackets based on your account name._ \n`1 \nvtex login {accountName} \n` \n> Replace the values between curly brackets based on your account name.\n2. [Create and switch to a Production workspace](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-creating-a-production-workspace) by running the following command: \n`1 \nvtex use {workspaceName} --production \n`\n3. Perform the changes you want to test in the production workspace you are using, such as installing or editing an app. \n> If your store uses the [Checkout UI Custom](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-checkout-ui-custom-v0) app, you must first publish its configurations on your new production workspace. Otherwise, you might experience undesired consequences, such as losing the Checkout custom JavaScript code and styles.\n4. Switch to the `master` workspace. \n`1 \nvtex use master \n`\n5. Install the VTEX A/B tester app in the `master` workspace to enable A/B testing on your store website by running: \n`1 \nvtex install vtex.ab-tester \n` \n> You can run `vtex ls` to ensure you have successfully installed `vtex.ab-tester` in the `master` workspace.\n6. Run the following command in the `master` workspace. \n`1 \nvtex workspace abtest start \n` \n\n7. Select the production workspace you want to use for comparison with the `master` and agree to proceed.\n\n### Step 2 - Configuring the traffic and time\n\nBy agreeing to proceed with the test, you need to answer the following two questions:\n\n1. `What's the proportion of traffic initially directed to the master workspace?`\n\nYou must answer this question with any whole number between 0 and 10000\\. For example, if you answer `9000`, you will set 90% of the traffic to the `master` workspace.\n\n> To promote the changes from your production workspace in the safest way possible, we strongly recommend leaving 90% of traffic dedicated to the `master` and the other 10% to the production workspace being tested.\n\n1. `What's the amount of time respecting the restriction?`\n\nThis is the time (in hours) when the traffic proportion stated in the previous question remains constant. After this period, the A/B testing system automatically balances the traffic proportions, sending more traffic to the best-performing workspace. There are two possible answers to this question:\n\n| Option | Description |\n| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **Answer 0 to automatically proceed with the A/B test.** | In this case, VTEX IO will automatically split your website traffic between workspaces, routing 50% of your store traffic to the master and the other 50% to the production workspace being tested.Following that, the platform will automatically balance traffic every three minutes based on the conversion rates. This means that traffic will be gradually routed from the workspace with the lowest conversion rate to the workspace with the highest conversion rate.**The test doesn't conclude independently.** **Evaluate the test results daily.** |\n| **Answer with the number of hours you want to keep constant the proportion of traffic previously specified.** | During peak operational periods, it's critical for the test to extract as much data as possible. At the same time, the test shouldn't overextend and end up harming users navigating the workspace with the poorest performance. |\n\nYou can run many A/B tests simultaneously by comparing two or more workspaces to the `master` individually. However, if you set up the traffic manually, the A/B test will distribute the traffic evenly among all production workspaces being A/B tested. For example, suppose you started an A/B test between workspace A and `master`, routing 90% of traffic to the former and 10% to the latter. If you run a new A/B test between workspace B and the `master`, each production workspace, A and B, will only receive 5% of the store traffic.\n\n> When a user session begins, their assigned workspace is determined by a cookie that lasts for 24 hours. During this period, the user will remain in the same workspace, regardless of traffic redistribution. After 24 hours, when a new session starts, the user may be randomly assigned to either workspace, which could be the same as before or a different one.\n\n### Step 3 - Interpreting the test results\n\nAny time during the A/B test, you can monitor the live results by executing the following command:\n\n`1\n\nvtex workspace abtest status \n\n`\n\n\n\nYou can update the workspaces used in the A/B test if necessary. However, fewer changes to these workspaces will lead to more accurate results.\n\nBefore concluding your A/B test, it's essential to understand the comparative and final results of the two workspaces. The following presents the metrics available for both results:\n\n#### Comparative results\n\n| Metric | Description |\n| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **Conversion** | Conversion rate percentage displayed by each workspace during the test. |\n| **Expected Loss** | Anticipated percentage of conversion loss for the store if the lower conversion rate workspace is selected as the winner (based on **Conversion** results). |\n| **N. of Sessions** | Total number of sessions for each workspace since the beginning of the test. |\n| **N. of Sessions (last 24hrs)** | Number of sessions for each workspace during the test in the past 24 hours. |\n| **Revenue** | Total revenue placed by users navigating the store version associated with each workspace since the beginning of the test (expressed in the store's native currency). |\n| **Revenue (last 24 hs)** | Total revenue placed by users navigating the store version associated with each workspace in the past 24 hours during the test (expressed in the store's native currency). |\n\n#### Final results\n\n| **Metric** | **Description** |\n| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **Start Date** | Date and time for the test to start. |\n| **Running Time** | Test duration. |\n| **Probability B beats A** | Probability, in percentage points, that the production workspace is better for your store than the current master workspace. This calculation is based on session and completed sales counts. If this metric is greater than 10%, the production workspace can become the winner. |\n| **Winner** | Workspace you selected as the winner. |\n\n> The main results of the A/B test are aimed at scenarios where the platform automatically directs store traffic. Although A/B testing can and should be used even in cases where traffic is directed manually, the numbers behind each result reflect an automatic segmentation depending on each workspace experience.\n\n#### Validating the winner workspace\n\nThe best way to validate your A/B test workspace winner is to set a maximum conversion loss value based on the size of your store operation.\n\nFor example, when starting your test, you can set a maximum conversion loss of `0,0001%`. Then, when either workspace achieves an `Expect Loss` result greater than `0,0001%`, you should end the test and declare a winner.\n\n### Step 4 - Finishing the A/B test\n\nIf your test has already reached the time frame you have manually set, or if you've already detected a winner during [Step 3](#step-3---interpreting-the-test-results), run the following command in `master` to conclude the test:\n\n`1\n\nvtex workspace abtest finish \n\n`\n\n> If you've manually set a predefined time frame to run your A/B test, monitor it throughout the entire period. Although the platform automatically redistributes traffic according to how each workspace behaves after the set time frame, overseeing the test is fundamental to its success.\n\nThis command displays a list of all workspaces tested by the `vtex.ab-tester` app in the `master` environment. Choose the workspace that you intend to finish. For example:\n\n\n\n> Remember to save any relevant data using the `vtex workspace abtest finish` command before it ends automatically in 30 days – A/B test data can't be retrieved otherwise. You can access data from ongoing tests with the `vtex workspace abtest status` command.\n\nAfter concluding the A/B test, follow the next step to promote the workspace to `master`.\n\n### Step 5 - Promoting the production workspace to master\n\nIn [Step 4](#step-4---finishing-the-ab-test), you only ended the test on the selected workspace. Now, you need to promote it to `master` by following the steps below.\n\n1. Change to the production workspace to be promoted. \n> You must be logged in to your VTEX account. \n`1 \nvtex use {workspaceName} \n` \n> Replace the values between curly brackets based on your workspace name.\n2. Promote the workspace being used. \n`1 \nvtex workspace promote \n`\n\nNow, all changes made in production are available in the master workspace.\n\nContributors\n\n2\n\n[](https://github.com/barbara-celi)\n\n[](https://github.com/carolinamenezes)\n\nWas this helpful?\n\nYes\n\nNo\n\n[Suggest Edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/guides/vtex-io/App-Guides/ab-tests/vtex-io-documentation-running-native-ab-testing.md)\n\n[A/B tests« Previous](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing//docs/guides/ab-tests)[A/B testing Legacy and IO store versionsNext »](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing//docs/guides/vtex-io-documentation-performing-ab-testing-between-legacy-and-io)\n\nSee also\n\n[AB TesterVTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtexarg-abtester)\n\nContributors\n\n2\n\n[](https://github.com/barbara-celi)\n\n[](https://github.com/carolinamenezes)\n\nON THIS PAGE\n\n[Before you begin](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23before-you-begin)\n\n[Running A/B tests via Admin](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23running-ab-tests-via-admin)\n\n[Running A/B tests via VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23running-ab-tests-via-vtex-io-cli)\n\n[Step 1 - Enabling A/B testing](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-1-enabling-ab-testing)[Step 2 - Configuring the traffic and time](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-2-configuring-the-traffic-and-time)[Step 3 - Interpreting the test results](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-3-interpreting-the-test-results)[Step 4 - Finishing the A/B test](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-4-finishing-the-ab-test)[Step 5 - Promoting the production workspace to master](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-5-promoting-the-production-workspace-to-master)\n\nWas this helpful?\n\n Send feedback\n\n[Suggest edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/guides/vtex-io/App-Guides/ab-tests/vtex-io-documentation-running-native-ab-testing.md)\n\nCopy page\n\nOn this page\n\nON THIS PAGE\n\n[Before you begin](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23before-you-begin)\n\n[Running A/B tests via Admin](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23running-ab-tests-via-admin)\n\n[Running A/B tests via VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23running-ab-tests-via-vtex-io-cli)\n\n[Step 1 - Enabling A/B testing](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-1-enabling-ab-testing)[Step 2 - Configuring the traffic and time](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-2-configuring-the-traffic-and-time)[Step 3 - Interpreting the test results](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-3-interpreting-the-test-results)[Step 4 - Finishing the A/B test](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-4-finishing-the-ab-test)[Step 5 - Promoting the production workspace to master](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-running-native-ab-testing/docs/guides/vtex-io-documentation-running-native-ab-testing%23step-5-promoting-the-production-workspace-to-master)\n\nOn this page\n\n[Github](https://read.calvincode.net/reader?url=https://github.com/vtex-apps)[Help Center](https://read.calvincode.net/reader?url=https://help.vtex.com/)[Community](https://read.calvincode.net/reader?url=https://community.vtex.com/?%5Fga=2.198523433.743584735.1647618303-1974737580.1645714642)[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)",
"role": "assistant"
}
] |
code_user-identifier-extension-example_3ea8606c
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "What npm dependencies does user-identifier-extension-example use?",
"role": "user"
},
{
"content": "```json\n{\n \"name\": \"user-identifier-extension-example\",\n \"private\": true,\n \"license\": \"UNLICENSED\"\n}\n\n```",
"role": "assistant"
}
] |
code_store-components_5fbb25da
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Explain the code in store-components/react/components/CategoriesHighlights/constants.js.",
"role": "user"
},
{
"content": "Here's the implementation:\n\n```javascript\nexport const ITEMS_PER_ROW = 2\nexport const SQUARED = 'squared'\nexport const RECTANGULAR = 'rectangular'\n\n```",
"role": "assistant"
}
] |
doc_747553b5
|
[
{
"content": "You are a VTEX documentation expert. You provide accurate, detailed information about VTEX platform, APIs, apps, and Store Framework development.",
"role": "system"
},
{
"content": "Provide a guide on guides vtex io documentation managing application logs in VTEX.",
"role": "user"
},
{
"content": "Documentation\n\n[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)\n\n[GuidesLearn how to use our APIs and extend the VTEX platform.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides)\n\n[API ReferenceExplore detailed information about our endpoints.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/api-reference)\n\n[App DevelopmentLearn how to build cloud-based apps and integrations.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/app-development)\n\n[Storefront DevelopmentExpress your brand identity creating unique storefronts.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/storefront-development)\n\n[VTEX IO AppsFind pre-built solutions to grow your business.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/vtex-io-apps)\n\n[TroubleshootingFind practical solutions to common development issues.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/troubleshooting)\n\n[Release NotesStay up to date with our latest releases and bug fixes.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/updates/release-notes)\n\nApp Development\n\n[What is VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-what-is-vtex-io)\n\n---\n\n[What is a VTEX App](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-what-is-a-vtex-app)\n\n---\n\n[Governance and shared security in VTEX IO apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/governance-and-shared-security-in-vtex-io-apps)\n\n---\n\n[Code samples and templates](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/code-samples)\n\n---\n\n[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-getting-started)\n\n---\n\nProject structure\n\n---\n\n[VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-vtex-io-cli-installation-and-command-reference)\n\n---\n\n[Workspace](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-workspace)\n\n---\n\nManaging apps\n\n---\n\nDevelopment guides\n\n[Managing application logs](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs)\n\n[Running IO scripts in non-IO VTEX stores](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-running-io-scripts-in-non-io-vtex-stores)\n\n[Creating an interface for your app settings](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-creating-an-interface-for-your-app-settings)\n\n---\n\n[Node apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/app-development-guides)\n\n---\n\n[GraphQL in VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/graphql-in-vtex-io)\n\n---\n\n[Policies and permissions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-policies)\n\n---\n\n[A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/ab-tests)\n\n---\n\n[Deployment](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-making-your-new-app-version-publicly-available)\n\n---\n\n[VTEX App Store](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-app-store)\n\n---\n\n[Edition Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/managing-edition-apps)\n\n---\n\n[Frequently asked questions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-frequently-asked-questions)\n\n---\n\n[Guides](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides)\n\n[API Reference](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/api-reference)\n\n[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/app-development)\n\n[Storefront Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/storefront-development)\n\n[VTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/vtex-io-apps)\n\n[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/troubleshooting)\n\n---\n\n[Release Notes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/updates/release-notes)\n\nApp Development\n\n[What is VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-what-is-vtex-io)\n\n---\n\n[What is a VTEX App](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-what-is-a-vtex-app)\n\n---\n\n[Governance and shared security in VTEX IO apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/governance-and-shared-security-in-vtex-io-apps)\n\n---\n\n[Code samples and templates](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/code-samples)\n\n---\n\n[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-getting-started)\n\n---\n\nProject structure\n\n---\n\n[VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-vtex-io-cli-installation-and-command-reference)\n\n---\n\n[Workspace](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-workspace)\n\n---\n\nManaging apps\n\n---\n\nDevelopment guides\n\n[Managing application logs](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs)\n\n[Running IO scripts in non-IO VTEX stores](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-running-io-scripts-in-non-io-vtex-stores)\n\n[Creating an interface for your app settings](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-creating-an-interface-for-your-app-settings)\n\n---\n\n[Node apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/app-development-guides)\n\n---\n\n[GraphQL in VTEX IO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/graphql-in-vtex-io)\n\n---\n\n[Policies and permissions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-policies)\n\n---\n\n[A/B tests](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/ab-tests)\n\n---\n\n[Deployment](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-making-your-new-app-version-publicly-available)\n\n---\n\n[VTEX App Store](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-app-store)\n\n---\n\n[Edition Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/managing-edition-apps)\n\n---\n\n[Frequently asked questions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-frequently-asked-questions)\n\n---\n\n[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/app-development)\n\nDevelopment guides\n\n[Managing application logs](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs)\n\nManaging application logs\n\nVTEX IO provides a logging service that allows developers to keep track of app errors, warnings, and informative events. The VTEX IO Logging Service collects data from the cloud infrastructure where VTEX applications run and delivers them via the VTEX IO CLI.\n\nIn the following section, you'll learn how to implement the VTEX IO Logging Service in your apps and how to retrieve their respective logs.\n\n> The VTEX IO Logging Service is currently available for Node apps only.\n\n---\n\n## Before you begin\n\nTo follow this guide, you must have the VTEX IO CLI installed on your machine. For more information, please see [this document](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-vtex-io-cli-install).\n\n---\n\n## Instructions\n\n### Implementing the VTEX IO Logging Service\n\n1. Open your Node app in the code editor of your choice.\n2. Define an object with the `Context` interface as a parameter in a function where you want to provide logging messages. See the following example:\n\n`1\n\nconst helloWorld = (ctx: Context) => { \n\n2\n\n const { vtex: { logger } } = ctx \n\n3\n\n \n4\n\n logger.info('Hello World!') \n\n5\n\n} \n\n`\n\nIn this example, the `helloWorld` function receives an object with a [**Context**](https://read.calvincode.net/reader?url=https://github.com/vtex/node-vtex-api/blob/master/src/service/worker/runtime/typings.ts%23L34) interface as a parameter.\n\n> The `Context` interface contains many implementations inherent to the VTEX IO platform. One of those implementations is called `vtex` — an object containing all [VTEX IO infrastructure](https://read.calvincode.net/reader?url=https://github.com/vtex/node-vtex-api/blob/master/src/service/worker/runtime/typings.ts%23L116) related metadata, such as `account`, `workspace`, `tenant`, `settings`, and some service implementations. In the previous example, we used the `logger` service, an implementation inside `vtex` that generates log messages.\n\n1. [Destructure](https://read.calvincode.net/reader?url=https://www.typescriptlang.org/docs/handbook/variable-declarations.html%23destructuring) the `logger` object from the `vtex` context and use its methods (`error`, `warn`, `info`, and `debug`) to provide error, warning, debugging, or informative messages in the log. See the following example:\n\n`1\n\nconst helloWorld = (ctx: Context) => { \n\n2\n\n const { vtex: { logger } } = ctx \n\n3\n\n \n4\n\n logger.warn('Warning the world!') \n\n5\n\n \n6\n\n logger.error('Error!!!') \n\n7\n\n \n8\n\n logger.debug('Verbose debug message!') \n\n9\n\n} \n\n`\n\n> Every exception that happens in a VTEX IO service app is intercepted and automatically logged with a `logger.error` implementation.\n\n### Retrieving app logs\n\nEvery log written by a running app with the VTEX IO Logging Service is collected and stored for later retrieval.\n\nYou can retrieve the logs using the [VTEX IO CLI](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-vtex-io-cli-installation-and-command-reference) by following the steps:\n\n1. Log in to your VTEX account.\n2. Install the Logs plugin for the VTEX IO CLI by running the following command:\n\n`1\n\nvtex plugins add logs \n\n`\n\n1. Check if the installation of the Logs plugin was successful by running `vtex logs --help`.\n2. Retrieve logs from all apps installed in your account by running the following command:\n\n`1\n\nvtex logs --all \n\n`\n\nThe output should be a message similar to the following:\n\n`1\n\nvtex logs --all \n\n2\n\n18:15:26.779 - info: Connecting to logs stream for store components \n\n3\n\n18:15:26.782 - info: Press CTRL+C to abort \n\n4\n\n \n5\n\n18:15:43.856 - info: Listening to store components logs \n\n6\n\n \n7\n\n info: { status: 403, \n\n8\n\n code: 'FORBIDDEN', \n\n9\n\n name: 'ForbiddenError', \n\n10\n\n level: 'error', \n\n11\n\n message: 'This username is already registered with another email', \n\n12\n\n stack: \n\n13\n\n 'ForbiddenError: This username is already registered with another email[ErrorStack...] \n\n14\n\n routeId: 'login' } \n\n`\n\n> You can also retrieve logs from a specific app installed in your account by running the following command: `vtex logs {serviceAppExample}`. Replace `serviceAppExample` with the desired app name.\n\nWe suggest running `vtex logs --all > {mylogfile.logs}` to save the log messages in a local file. Replace `{mylogfile.logs}` with a name that fits your environment.\n\nIf you want to see log messages that you have previously retrieved, run `vtex logs --past`.\n\n## Log storage and retention limits\n\nVTEX limits the storage size and retention period of logs to guarantee the stability and performance of the platform. The limits are:\n\n* Logs are stored for 7 days at most.\n* Each app can have up to 1 GB of logs stored per account. If an app generates more than 1 GB of logs in one account in 7 days or less, the oldest logs are deleted.\n\nIf you need more than 1 GB of logs per week for an app, we recommend retrieving and storing your logs before they reach the storage limit. You can check the size of the logs from the size of the retrieved files in your local environment. See the instructions in the [Retrieving app logs](#retrieving-app-logs) section.\n\n> VTEX may change the storage limits of app logs without additional notice. Check this documentation for the updated limit values.\n\nContributors\n\n2\n\n[](https://github.com/henriquessb)\n\n[](https://github.com/carolinamenezes)\n\nWas this helpful?\n\nYes\n\nNo\n\n[Suggest Edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/guides/vtex-io/App-Guides/configuring-workspaces/vtex-io-documentation-managing-application-logs.md)\n\n[Deprecating an app« Previous](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs//docs/guides/vtex-io-documentation-deprecating-an-app)[Running IO scripts in non-IO VTEX storesNext »](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs//docs/guides/vtex-io-documentation-running-io-scripts-in-non-io-vtex-stores)\n\nContributors\n\n2\n\n[](https://github.com/henriquessb)\n\n[](https://github.com/carolinamenezes)\n\nON THIS PAGE\n\n[Before you begin](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23before-you-begin)\n\n[Instructions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23instructions)\n\n[Implementing the VTEX IO Logging Service](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23implementing-the-vtex-io-logging-service)[Retrieving app logs](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23retrieving-app-logs)\n\n[Log storage and retention limits](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23log-storage-and-retention-limits)\n\nWas this helpful?\n\n Send feedback\n\n[Suggest edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/guides/vtex-io/App-Guides/configuring-workspaces/vtex-io-documentation-managing-application-logs.md)\n\nCopy page\n\nOn this page\n\nON THIS PAGE\n\n[Before you begin](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23before-you-begin)\n\n[Instructions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23instructions)\n\n[Implementing the VTEX IO Logging Service](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23implementing-the-vtex-io-logging-service)[Retrieving app logs](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23retrieving-app-logs)\n\n[Log storage and retention limits](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/vtex-io-documentation-managing-application-logs/docs/guides/vtex-io-documentation-managing-application-logs%23log-storage-and-retention-limits)\n\nOn this page\n\n[Github](https://read.calvincode.net/reader?url=https://github.com/vtex-apps)[Help Center](https://read.calvincode.net/reader?url=https://help.vtex.com/)[Community](https://read.calvincode.net/reader?url=https://community.vtex.com/?%5Fga=2.198523433.743584735.1647618303-1974737580.1645714642)[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)",
"role": "assistant"
}
] |
code_pharma-orders-admin_77b8e6ba
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of pharma-orders-admin/react/utils/intl.ts from pharma-orders-admin.",
"role": "user"
},
{
"content": "Here's how it works:\n\n```typescript\nimport { defineMessages } from 'react-intl'\n\nconst prefix = 'admin/admin.app.pharma-orders.'\n\nexport const titlesIntl = defineMessages({\n textOf: { id: `${prefix}textOf` },\n textShowRows: { id: `${prefix}textShowRows` },\n filterClear: { id: `${prefix}filterClear` },\n filterAll: { id: `${prefix}filterAll` },\n filterNone: { id: `${prefix}filterNone` },\n filterAny: { id: `${prefix}filterAny` },\n filterIs: { id: `${prefix}filterIs` },\n filterIsNot: { id: `${prefix}filterIsNot` },\n filterContains: { id: `${prefix}filterContains` },\n filterApply: { id: `${prefix}filterApply` },\n ordersTableOrderId: { id: `${prefix}ordersTableOrderId` },\n ordersTableStatus: { id: `${prefix}ordersTableStatus` },\n ordersTableProducts: { id: `${prefix}ordersTableProducts` },\n ordersTableFiles: { id: `${prefix}ordersTableFiles` },\n selectedOrders: { id: `${prefix}selectedOrders` },\n selectAllOrders: { id: `${prefix}selectAllOrders` },\n pageTitle: { id: `${prefix}pageTitle` },\n approve: { id: `${prefix}approve` },\n confirm: { id: `${prefix}confirm` },\n cancel: { id: `${prefix}cancel` },\n buttonShowProducts: { id: `${prefix}buttonShowProducts` },\n buttonShowFiles: { id: `${prefix}buttonShowFiles` },\n productTableProductId: { id: `${prefix}productTableProductId` },\n productTableQuantity: { id: `${prefix}productTableQuantity` },\n productTableName: { id: `${prefix}productTableName` },\n prescription: { id: `${prefix}prescription` },\n withoutPrescription: { id: `${prefix}withoutPrescription` },\n theOrder: { id: `${prefix}theOrder` },\n wasCanceled: { id: `${prefix}wasCanceled` },\n wasNotCanceled: { id: `${prefix}wasNotCanceled` },\n wasAlreadyCanceled: { id: `${prefix}wasAlreadyCanceled` },\n canceled: { id: `${prefix}canceled` },\n created: { id: `${prefix}created` },\n approved: { id: `${prefix}approved` },\n confirmed: { id: `${prefix}confirmed` },\n wasApproved: { id: `${prefix}wasApproved` },\n wasNotApproved: { id: `${prefix}wasNotApproved` },\n wasAlreadyApproved: { id: `${prefix}wasAlreadyApproved` },\n wasConfirmed: { id: `${prefix}wasConfirmed` },\n isConfirmed: { id: `${prefix}isConfirmed` },\n wasNotConfirmed: { id: `${prefix}wasNotConfirmed` },\n wasAlreadyConfirmed: { id: `${prefix}wasAlreadyConfirmed` },\n approvedBeforeConfirming: { id: `${prefix}approvedBeforeConfirming` },\n isCanceled: { id: `${prefix}isCanceled` },\n noOrdersYet: { id: `${prefix}noOrdersYet` },\n invoiceNumber: { id: `${prefix}invoiceNumber` },\n placeholderInvoiceNumber: { id: `${prefix}placeholderInvoiceNumber` },\n noInvoiceNumber: { id: `${prefix}noInvoiceNumber` },\n})\n\n```",
"role": "assistant"
}
] |
code_store-theme_c6007a31
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How do I style components in store-theme?",
"role": "user"
},
{
"content": "Here's the implementation:\n\n```css\n.row--menu-row {\n padding-right: 24px;\n}\n\n.row--menu-row .rowContainer {\n align-items: flex-start;\n}\n\n.row--payment-methods {\n padding-top: 16px;\n}\n\n```",
"role": "assistant"
}
] |
code_admin-organizations_f6cf2130
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Show me the implementation of admin-organizations/messages/pt.json from admin-organizations.",
"role": "user"
},
{
"content": "This is the code:\n\n```json\n{\n \"admin-authorization.navigation.label-group\": \"Autorizações\",\n \"admin-authorization.navigation.label-details\": \"Exemplo de detalhes\",\n \"admin-authorization.navigation.label-table\": \"Exemplo de tabela\",\n \"admin-authorization.navigation.search.kws\": \"teste, mock, fake\",\n \"admin-authorization.navigation.details.search.kws\": \"detalhe, mock, test, oi\",\n \"admin-authorization.navigation.table.search.kws\": \"tabela, mock, test, tchau\",\n \"admin-authorization.hello-world\": \"Admin de exemplo\",\n \"admin-authorization.navigation.label-permissions\": \"All Permissions\",\n \"admin-authorization.navigation.label-roles\": \"All Roles\",\n \"admin-authorization.navigation.roles.search.kws\": \"roles, vtex\",\n \"admin-authorization.navigation.label-user-roles\": \"User roles\",\n \"admin-authorization.navigation.user-roles.search.kws\": \"user role, vtex\",\n \"admin-authorization.permissions.title\": \"Permissions\",\n \"admin-authorization.roles.title\": \"Roles\",\n \"admin-authorization.user-roles.title\": \"User roles\"\n}\n```",
"role": "assistant"
}
] |
code_product-customizer_db3467bd
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "What props does Text Input Value accept and how do I configure them?",
"role": "user"
},
{
"content": "This is the code:\n\n```tsx\nimport React, { FC } from 'react'\nimport { Input } from 'vtex.styleguide'\nimport { useCssHandles } from 'vtex.css-handles'\n\nimport useInputValue from './useInputValue'\n\nconst CSS_HANDLES = ['textInputValue'] as const\n\nconst TextInputValue: FC<Props> = ({ inputValueInfo }) => {\n const [state, onChange] = useInputValue(inputValueInfo.label)\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const { value } = e.target\n\n onChange({ value })\n }\n\n const handles = useCssHandles(CSS_HANDLES)\n\n return (\n <div className={`${handles.textInputValue} mb4`}>\n <Input\n value={state}\n onChange={handleChange}\n label={inputValueInfo.label}\n maxLength={inputValueInfo.maxLength}\n />\n </div>\n )\n}\n\ninterface Props {\n inputValueInfo: TextInputValue\n}\n\nexport default TextInputValue\n\n```",
"role": "assistant"
}
] |
code_affirm-qa-theme_80c8ca69
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "Explain the code in affirm-qa-theme/store/blocks/contact.jsonc.",
"role": "user"
},
{
"content": "This is the code:\n\n```jsonc\n{\n \"store.custom#contact-us\": {\n \"children\": [\n \"flex-layout.row#contact-us\"\n ]\n },\n\n \"flex-layout.row#contact-us\": {\n \"props\": {\n \"blockClass\": \"contact\"\n },\n \"children\": [\n \"flex-layout.col#contact-us\"\n ]\n },\n\n \"flex-layout.col#contact-us\": {\n \"children\": [\n \"rich-text#contact-us\",\n \"form#contact-us\"\n ]\n },\n \"rich-text#contact-us\": {\n \"props\": {\n \"text\": \"## Contact Us\"\n }\n },\n\n \"form#contact-us\": {\n \"props\": {\n \"entity\": \"contact\",\n \"schema\": \"site-contact\"\n },\n \"blocks\": [\n \"form-success#contact-us\"\n ],\n \"children\": [\n \"form-input.text#title\",\n \"form-input.text#name\",\n \"form-input.text#email\",\n \"form-input.textarea#message\",\n \"form-submit#contact\"\n ]\n },\n\n \"form-success#contact-us\": {\n \"children\": [\n \"rich-text#success-submit\"\n ]\n },\n \"rich-text#success-submit\": {\n \"props\": {\n \"text\": \"Thanks for reaching out! We will come back shortly.\",\n \"textAlignment\": \"CENTER\",\n \"textPosition\": \"CENTER\"\n }\n },\n\n \"form-input.text#title\": {\n \"props\": {\n \"pointer\": \"#/properties/title\"\n }\n },\n \"form-input.text#name\": {\n \"props\": {\n \"pointer\": \"#/properties/name\"\n }\n },\n \"form-input.text#email\": {\n \"props\": {\n \"pointer\": \"#/properties/email\"\n }\n },\n \"form-input.textarea#message\": {\n \"props\": {\n \"pointer\": \"#/properties/message\"\n }\n },\n\n \"form-submit#contact\": {\n \"props\": {\n \"label\": \"Submit\"\n }\n }\n}\n\n```",
"role": "assistant"
}
] |
code_mycheckout-sdk_aacd0ef1
|
[
{
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms.",
"role": "system"
},
{
"content": "How do I style components in mycheckout-sdk?",
"role": "user"
},
{
"content": "Here's the implementation:\n\n```css\n.loading {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgb(255, 255, 255);\n z-index: 9999;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n max-height: 100%;\n overflow: hidden;\n}\n\n\n.loading .message {\n margin-top: 1rem;\n font-family: 'Lato';\n font-weight: lighter;\n color: #011D1A;\n text-align: center;\n width: 50%;\n position: relative;\n top: -175px;\n}\n\n.placeholder {\n display: block;\n height: 150px;\n}\n\n@media screen and (min-width: 992px) {\n .placeholder {\n display: none;\n }\n}\n\n```",
"role": "assistant"
}
] |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 15