Repository navigation
feat: graduate v4.3.0 - #3396
Conversation
## What's the purpose of this pull request? By using the direction property users will be able to use RTL or LTR layouts.
## What's the purpose of this pull request? With these changes, if merchants remove the footer logo the entire footer component will not be hid anymore, it will throw a console error but the component should be displayed with no logo.
#3077) ## What's the purpose of this pull request? This PR fixes the `border-radius` of the Slider thumb in Firefox. The current CSS rule for Mozilla uses an inexistent variable, making the browser render a square instead of a circle: <img width="1028" height="181" alt="image" src="https://github.com/user-attachments/assets/50c08d79-a6a9-4d31-b2e7-5ef9e287080f" /> ## How it works? The `--fs-slider-thumb-radius` variable is replaced by `--fs-slider-thumb-border-radius`, the one that is defined in the default thumb variables. ## How to test it? - Use the `Local Install Instructions` from the [CodeSandbox CI](https://ci.codesandbox.io/status/vtex/faststore/pr/3077) to add this version in the `package.json` of a store. - Import the `Slider` atom (and styles) in a component following the docs: https://developers.vtex.com/docs/guides/faststore/atoms-slider - Run the store in development mode and browse it in Mozilla Firefox. ### Starters Deploy Preview I'm unable to generate a preview link but here's a screenshot from localhost: <img width="1287" height="617" alt="image" src="https://github.com/user-attachments/assets/f0a5a5e9-d657-41db-9415-303b5d17fefd" /> ## Checklist **PR Title and Commit Messages** - [x] PR title and commit messages follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification - Available prefixes: `feat`, `fix`, `chore`, `docs`, `style`, `refactor`, `ci` and `test` **PR Description** - [ ] Added a label according to the PR goal - `breaking change`, `bug`, `contributing`, `performance`, `documentation`.. _(No permissions. It's a bug though.)_ **Dependencies** - [N/A] Committed the `pnpm-lock.yaml` file when there were changes to the packages **Documentation** - [x] PR description - [N/A] For documentation changes, ping `@Mariana-Caetano` to review and update (Or submit a doc request)
) ## What's the purpose of this pull request? Adds a new "Pending Approval" filter to the MyAccount orders page, allowing users to quickly filter orders that require their approval. ## How it works? - New toggle filter: Added "Pending Approval" as the first filter option in the orders filter slider - Toggle switch: Users can turn on/off the filter to show only pending approval orders - URL integration: Filter state is reflected in the URL (?pendingApproval=true) - Selected tag: When active, shows "Pending my approval" tag below the search bar ## How to test it? - Go to /account/orders - Open filter slider and verify "Pending Approval" is the first option - Toggle the switch and click "Apply" - Check URL - should include ?pendingApproval=true - Verify tag appears - "Pending my approval" tag should show below search bar - Test removal - click "×" on tag or "Clear All" to remove filter - Test direct URL - navigate to /account/orders?pendingApproval=true and verify filter is active ## Starter deploy preview vtex-sites/b2bfaststoredev.store#358 ## References [SFS-2618](https://vtex-dev.atlassian.net/browse/SFS-2618) | List | Filter | | - | - | |  |  | [SFS-2618]: https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SFS-2618]: https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Artur Santiago <[email protected]>
) ## What's the purpose of this pull request? Fix a bug that occurs when regionalized and `isSessionReady` is sent in the' validateSession' and' validateCart' mutations. ## How does it work? It removes the `isSessionReady` from the session sent to the `setRegion` method. <img width="1909" height="916" alt="Screenshot 2025-11-11 at 16 22 55" src="https://github.com/user-attachments/assets/468cc987-a2ee-432f-b306-399bfd32e891" />
## What's the purpose of this pull request? This PR aims to fix the build in the dev branch.
## What's the purpose of this pull request? With these changes, a loading skeleton will be displayed when product price is still being validated, preventing product price flickering on PDP. ## How to test it? ### Starters Deploy Preview
## What's the purpose of this pull request? Allow svg files in public folder, avoid it getting deleted/overwritten when generating .faststore ## How it works? Add it to the allow list. ## How to test it? Create a svg file or modify an existing svg file, it should be copied correctly to the `/.faststore/public` when running the build command. You can use this PR to test: vtex-sites/faststoreqa.store#887, I've added a new svg file and changed an existing one, before it was being deleted/overwritten. <img width="287" height="420" alt="Screenshot 2025-11-20 at 09 57 19" src="https://github.com/user-attachments/assets/7b01d806-bdf9-4c3b-a385-32ea11ab2518" /> Nothing else should change. ### Starters Deploy Preview - https://storeframework-cm652ufll028lmgv665a6xv0g-h0max2o2h.b.vtex.app/ ## References - [Jira task](https://vtex-dev.atlassian.net/browse/SO-559)
## What's the purpose of this pull request? This PR considers the session when deducing the changes to the orderForm done externally. ## What it aims to solve The current FastStore shows a competing nature when dealing with the same cart on two different devices (E.g. 2 browsers, Chrome and Firefox). ### How to reproduce the problem - Open your store in Chrome and Firefox - Make note of the checkout.vtex.com cookie value of Chrome and view the content of the orderForm using a client like Postman - Paste the value of the cookie to the checkout cookie of Firefox - Now you should have the same orderForm in Chrome, Firefox and Postman - Add an item to the cart from Chrome - Without going to Firefox, verify that the item is present in the orderForm using Postman - Now go to Firefox, but you will not see the item (Expected: the item should be present in the cart, Actual: the browser cart in Firefox will override the items of the real orderForm object) - Open Postman, and you will notice that the item is not present in the orderForm - Now go back to Chrome, and it will add back the item to the orderForm - Open Postman, and you will notice that the item is present in the orderForm ## How it works? We include the session ID to the MD5 hash, so that when the store is used in a different browser with the same orderForm, the two hashes are different. The two browsers should respect the changes performed by each other. ## How to test it? - First verify that the existing behavior of the mutation `validateCart` is as expected. - Follow the steps under **How to reproduce the problem**, and verify that the expected behavior is observed. ### Starters Deploy Preview <!--- Add a link to a deploy preview from `starter.store` with this branch being used. ---> <!--- Tip: You can get an installable version of this branch from the CodeSandbox generated when this PR is created. ---> ## References <!--- Spread the knowledge: is there any content you used to create this PR that is worth sharing? ---> <!--- Extra tip: adding references to related issues or mentioning people important to this PR may be good for the documentation and reviewing process ---> ## Checklist <em>You may erase this after checking them all 😉</em> **PR Title and Commit Messages** - [ ] PR title and commit messages follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification - Available prefixes: `feat`, `fix`, `chore`, `docs`, `style`, `refactor`, `ci` and `test` **PR Description** - [ ] Added a label according to the PR goal - `breaking change`, `bug`, `contributing`, `performance`, `documentation`.. **Dependencies** - [ ] Committed the `pnpm-lock.yaml` file when there were changes to the packages **Documentation** - [ ] PR description - [ ] For documentation changes, ping `@Mariana-Caetano` to review and update (Or submit a doc request)
## What's the purpose of this pull request? This PR aims to fix the source code to show `undefined` `searchTerm`. <img width="916" height="811" alt="Screenshot 2025-11-20 at 19 01 42" src="https://github.com/user-attachments/assets/b07e44a4-9e37-45e3-9712-6ab19b1af758" /> ## How it works? 1. The source code can't access the searchTerm from the build time; thus, this page uses the default <img width="1899" height="656" alt="Screenshot 2025-11-20 at 18 42 43" src="https://github.com/user-attachments/assets/697d1b4a-e5cb-4325-a5a1-3ba5d429b7b3" /> 2. The final code (runtime code after hydration, you can see the element tab in the devtools), can access the dynamic search term and uses it. <img width="1570" height="1049" alt="Screenshot 2025-11-20 at 18 42 05" src="https://github.com/user-attachments/assets/04e0a613-950f-4416-9200-dcc239326b41" /> ## How to test it? You can run `pnpm build && pnpm serve` and view the source code (right-click> Source Code). Additionally, you can view the final code using the Element tab in the DevTools.
## What's the purpose of this pull request? This PR aims to consider the `priceTags` in the tax price calculations for my account order details, within the delivery options card. ## How it works? It includes the `priceTags` because previously, the sum was only considering the `tax` field. And by investigating the previous logic from the old `my-orders`, we should also consider the `priceTags`. | Before | After | |--------|--------| | <img width="905" height="672" alt="Screenshot 2025-12-04 at 20 28 34" src="https://github.com/user-attachments/assets/554f1ae2-40f3-4328-b290-47d2df49b633" /> | <img width="805" height="697" alt="Screenshot 2025-12-04 at 20 30 27" src="https://github.com/user-attachments/assets/322d1dbc-fcd2-423a-9fad-139549296efa" /> | ## How to test it? - [Ask me in slack](https://vtex.slack.com/archives/C03L3CRCDC4/p1764892639291049) how to test because you need to replicate some cookies from my user in a specific account, but: - You will need a user with an order placed and tax/price tags included. - You can see the order with tax on the orders page. - Check the delivery options cards, including the tax. --------- Co-authored-by: Larícia Mota <[email protected]>
## What's the purpose of this pull request? This PR adds the schema definitions for components and content types that will be used by CMS (Content Platform). A big change introduced is regarding how we're allowing schema definitions for components to be broken into multiple json | jsonc files. A second significant change is the `base.jsonc` file. It's a special file used only by the Consumer. In this case, Faststore is a Consumer and must maintain this base file. This **must** not be sent to the clients. This PR replaces the #2742 ## How it works? This PR splits the sections.json and content-types.json file into many components. - packages/core/cms/faststore/components/.*jsonc - packages/core/cms/faststore/content-types/.*jsonc It also adds a base.jsonc exclusive for Faststore (it must not be shared with the Developer). - packages/core/cms/faststore/base.jsonc The content CLI (CMS) can combine the files, generate an output, and send it to the Schema Registry. - packages/core/cms/faststore/schema.json (final schema output) The Faststore is the base schema for all Merchants. 🚀 ## How to test it? Install the Content plugin and check the available commands ```bash vtex plugins install @vtex/cli-plugin-content ``` Migrate the **sections** from hCMS to the new CMS: ```bash vtex content split-components -i cms/faststore/sections.json -o cms/faststore/components ``` Migrate the **content-types** from hCMS to the new CMS: ```bash vtex content split-content-types -i packages/core/cms/faststore/content-types.json -s packages/core/cms/faststore/sections.json -o packages/core/cms/faststore/content-types ``` When you are ready, you can generate the final output: **IMPORTANT**: The Faststore Core Team is the only one that needs to add the `-l base.jsonc` to the output. Merchants will automatically use the base from the Schema Registry. ```bash vtex content generate-schema packages/core/cms/faststore/components packages/core/cms/faststore/content-types -l packages/core/cms/faststore/base.jsonc -o packages/core/cms/faststore/schema.json ``` Finally, send the output schema to the Schema Registry 🚀 IMPORTANT: This command is equivalent to the hCMS cms-sync function. ```bash vtex content upload-schema ``` ## References [Schema Registry for CMS (content platform)](https://github.com/vtex/content-platform/tree/main/services/schema-registry-api) [Content Plugin CLI](https://github.com/vtex/cli-plugin-content) [Split command](vtex/cli-plugin-content#13) **Documentation** - [x] For documentation changes, ping `@Mariana-Caetano` to review and update (Or submit a doc request) --------- Co-authored-by: Lucas Feijó <[email protected]>
## Summary The GraphQL BFF (`/api/graphql` handler in `@faststore/core`) collapsed **every** error into HTTP `500`, even when the upstream VTEX error was a client error (`400/401/403/404/...`). Example: an invalid `postalCode` in the shipping simulation makes VTEX Checkout return `400`, but the storefront received `500`. **Root cause:** after `useMaskedErrors`, the `errors` array holds `GraphQLError` instances (`name === 'GraphQLError'`). The handler used `errors.find(isFastStoreError)`, which checks `name === 'FastStoreError'` and therefore never matched — the real `FastStoreError` (carrying `extensions.status`) is nested in `originalError`. So the status always fell back to `500`. ## Changes - Added `recoverFastStoreError` to unwrap the `FastStoreError` whether it is the error itself or nested in `originalError` of a masked `GraphQLError`. - The handler now responds with the recovered `extensions.status` (still `?? 500` as the safe default). - For a recovered `FastStoreError`, the JSON body exposes `extensions.type` and `extensions.status` always; the free-text `message` is included **only when `NODE_ENV !== 'production'`** (and always logged server-side). - Non-`FastStoreError`s keep the masked, body-less `500` (error masking unchanged). - Added unit tests covering `400/401/403/404`, an unmapped `429`, unwrapped `FastStoreError`, non-FastStore→`500`, multi-error selection, and prod vs non-prod body gating. ## Security note Per root `AGENTS.md` (Security & Data Handling), this touches error-surface behavior. Only `FastStoreError`-derived details are exposed; all other errors remain masked. The free-text upstream `message` is restricted to non-production responses; production responses expose only the `type`/`status` enum. ## Known limitations / follow-ups (not in this PR) - The storefront SDK (`src/sdk/graphql/request.ts` → `ParseInvalidRequest`) short-circuits on any non-2xx **before reading the body**, building its error from `response.status`/`statusText`. So the new JSON body benefits external/direct consumers and server logs, not the storefront UI. The storefront still benefits from the now-correct **status**. Surfacing the message in the UI would require updating `ParseInvalidRequest`. - Error responses (both error branches) set no `cache-control`; with a broader range of statuses now emitted (e.g. `404`), consider adding `no-store`. - The `catch`-block error path (`parseRequest`/refresh-token) is still untested and returns a body-less response (shape differs from the `try` branch). ## Test plan - [x] `pnpm vitest run test/pages/api/graphql.test.ts --project node` (10/10 pass) - [x] Full `@faststore/core` node suite green (217/217) - [x] Manually verified: invalid `postalCode` shipping simulation now returns `400` (was `500`); genuine upstream `500` (intelligent search) stays `500` - [ ] Reviewer: confirm the intended status behavior change (consumers branching on `500` will now see accurate codes) Made with [Cursor](https://cursor.com) |before - generic error 500| |-| |<img width="1729" height="700" alt="image" src="https://github.com/user-attachments/assets/fefad20e-a2f9-4bc5-9bcb-f28c76d10bd6" />| |after - bad request| |-| |<img width="1862" height="303" alt="image" src="https://github.com/user-attachments/assets/c726dec0-1fdc-483b-b6ea-3f3cc858669a" />| server-side log: > Graphql execution returned with error: [ > { > message: '{"error":{"code":"ORD006","message":"The postal code (555) field in the shipping attachment is invalid","exception":null},"operationId":"f2c92a0b-d1f8-4cb6-8a4e-cb721fe60039","fields":{}}', > status: 400, > type: 'BadRequestError' > } > ] > [Jira Task](https://vtex-dev.atlassian.net/browse/SFS-2997?atlOrigin=eyJpIjoiNjY1YmViMzMyM2Y5NDI3M2I0MDEwZDhhZmE3NGZjZDEiLCJwIjoiaiJ9) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * GraphQL API now unwraps and propagates known error types so responses use appropriate HTTP status codes (400, 401, 403, 404, etc.) and preserve upstream status when available. * Responses include a structured error payload with type and status; message is omitted in production. * **Tests** * Added tests covering status propagation, masked/unmasked errors, multi-error handling, and production vs. development response bodies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Cursor <[email protected]>
## Context Previously, the quick order feature required merchants to upload files in a strict CSV format — with a fixed column layout — for the system to parse and add products to the cart. This was brittle, error-prone, and limited to a single file type. This PR integrates FastStore with the **VTEX Order Entry Service (OES)**, a backend service that handles file parsing and order composition server-side, with AI-assisted extraction. This means: - **More file types are supported** — not just CSV. The OES can understand various formats without requiring the user to follow a rigid template. - **Smarter parsing** — the OES uses AI to extract product and quantity information from uploaded files, making the feature more resilient to different file structures. - **Transparent to the end user** — the quick order UI looks and feels the same. The user selects a file, waits for processing, and gets the items loaded into the drawer. The underlying engine is now far more capable. ## What changed - **API layer** (`@faststore/api`): adds GraphQL mutations and queries (`uploadFileToOrderEntry`, `startOrderEntryOperation`, `orderEntryOperation`, `orderFormItems`) and the corresponding VTEX commerce client methods to drive the OES flow. - **SDK hooks** (`@faststore/core`): introduces `useOrderEntryUpload`, `useOrderEntryOperation`, `useOrderFormItems`, and the orchestration hook `useOrderEntry` that ties upload → processing → cart merge together. - **UI** (`@faststore/components`): adds a `Processing` state to `FileUploadStatus` to represent the OES processing phase (distinct from the upload phase), with a configurable `processingStatusText` label. - **SearchInput refactor**: replaces the old `useCSVParser` + bulk-product lookup approach with the OES-backed flow end-to-end. - **Cleanup**: removes `useCSVParser` hook and `useBulkProductsQuery` — no longer needed. ## Test Plan - [ ] Select a CSV file in the quick order search input and confirm the upload → processing → drawer flow works end-to-end - [ ] Verify the uploading spinner transitions to a processing state before the drawer opens - [ ] Verify the QuickOrderDrawer is populated with the correct items after a successful OES operation - [ ] Verify error state is shown when the upload or OES operation fails - [ ] Run the test suite: `pnpm turbo run test --filter=@faststore/api --filter=@faststore/core` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
After merging a `vtex content upload-schema` should be executed to account vtex to make it available to all accounts <img width="1749" height="1379" alt="image" src="https://github.com/user-attachments/assets/1fb2a8a3-4ab6-4452-94cf-b67181899f79" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a **“Public”** toggle for Landing Pages to control whether the landing page URL is included in `sitemap.xml`. It’s optional and defaults to **enabled** (true). * **Chores** * Improved CMS schema formatting/readability, with no other functional changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Leandro Rodrigues <[email protected]>
[Linked to task SFS-3234](https://vtex-dev.atlassian.net/jira/software/c/projects/SFS/boards/1051?selectedIssue=SFS-3234) Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4 actions/setup-node@v4 chromaui/[email protected] pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ <img width="1134" height="256" alt="image" src="https://github.com/user-attachments/assets/c46cf284-2658-4e6b-b412-d7e2e754c9bb" />
## What's the purpose of this pull request?
Logged-in shoppers were unable to access the FastStore My Account area:
any navigation to `/pvt/account/*` resulted in an immediate redirect to
`/pvt/account/403?from=...`, where the page entered an infinite
refresh-token loop.
The root cause was on the API side. Every `@auth`-protected GraphQL
query relies on `vtexid.validate`, and the request that backs that call
was forwarding the auth token in two ways at once: once through the
standard account-scoped cookie and again under a duplicated, top-level
header. The duplicated header was being rejected by the platform with
`401`, even though the user's session was perfectly valid.
## How it works?
This PR removes the duplication. The auth token is now forwarded
exclusively through the account-scoped cookie
(`VtexIdclientAutCookie_{account}`) — exactly like every other
authenticated path in the codebase already does (see `getAuthCookie`,
`getJWTAutCookie`, `getIsRepresentative`).
## How to test it?
Pre-conditions: a logged-in shopper on a store that has FastStore My
Account enabled (`experimental.enableFaststoreMyAccount = true`).
- Navigate to `/pvt/account/profile` — should render the profile page
directly, without redirecting to `/pvt/account/403`.
- Run the package tests:
```bash
pnpm --filter @faststore/api test
```
### Starters Deploy Preview
Before
https://github.com/user-attachments/assets/06b3e027-9e1f-4962-aa39-cf3915713f85
<!-- TODO: add deploy preview URL once available -->
## References
-
[task](https://vtex-dev.atlassian.net/jira/software/projects/SO/boards/870?selectedIssue=SO-618&sprintStarted=true)
- related slack threads
https://vtex.slack.com/archives/C06EC3LCZA8/p1777895253411839
https://vtex.slack.com/archives/C0164SHMAV9/p1777899569156569
- Affected package: `@faststore/api`
- Affected pages: everything under
`packages/core/src/pages/pvt/account/*`
- Auth path: `@auth` directive (`packages/api/src/directives/auth.ts`) →
`validateUserAuthentication` → `vtexid.validate`
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* VTEX authentication token validation now derives the token from the
merged/updated cookie set, with improved handling of duplicate auth
cookie entries.
* Updated VTEX request headers to use consistent cookie-based header
construction (including forwarded host and content type) instead of the
previous auth-cookie helper.
* **Tests**
* Added integration coverage for VTEX cookie normalization, including
collapsing duplicate cookie keys and resolving the latest auth token
value.
* Added fallback behavior checks when storage-provided cookie updates
are unavailable.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What's the purpose of this pull request? fix(api): use account-scoped cookie in orderEntry headers The orderEntry methods (file upload via OES, #3334) still referenced the withAutCookie helper that #3381 removed, since that PR was not rebased on the latest dev and did not see the newly merged orderEntry block. This left an undefined withAutCookie reference, breaking the build and tests on dev. Replace the 5 withAutCookie(forwardedHost, account) calls with the withCookie({ 'content-type', 'X-FORWARDED-HOST' }) pattern adopted by #3381 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved authentication/header handling for order entry endpoints to ensure requests consistently include the correct `Content-Type` and forwarded host information. * Ensures file upload continues to use `multipart/form-data` with the proper boundary while retaining the updated base header behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Replace @builder.io/partytown@^0.6.1 with @qwik.dev/partytown@^0.14.0 in packages/core/package.json and update the issue comment URL in lighthouserc.js from BuilderIO/partytown to QwikDev/partytown. - Replace `@builder.io/partytown@^0.6.1` with `@qwik.dev/partytown@^0.14.0` in `packages/core/package.json` - Update comment URL in `packages/core/lighthouserc.js` from `BuilderIO/partytown` to `QwikDev/partytown` - Re-run `pnpm install` — lock file updated, old package fully replaced <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated Partytown library dependency to use the new package location with version `^0.14.0`. * Updated configuration references to reflect the latest documentation sources. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: renatomaurovtex <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]>
## Summary Migrates the My Account → Security → **Reset password** flow off the deprecated VTEX ID endpoint onto the new authenticator route, per [SFS-3056](https://vtex-dev.atlassian.net/browse/SFS-3056). - **US-1 — Successful reset**: `useSetPassword` now posts to `/api/authenticator/pub/authentication/classic/setpassword?expireSessions=true&an={accountName}` instead of `/api/vtexid/pub/authentication/classic/setpassword`. Method (`POST`), `credentials: 'include'`, the `multipart/form-data` body (`login`, `currentPassword`, `newPassword`, `accesskey`, `recaptcha`) and the `authStatus → authMessage` mapping are all unchanged, so the success/error toasts and drawer behavior stay identical. - **US-2 — Error mapping**: existing `authStatus` values (`wrongcredentials`, `invalidemail`, etc.) still resolve to the same user-facing messages; the non-2xx and thrown-error paths are untouched. - **US-3 — `accountName` propagation**: the account name is now passed explicitly via the `an` query string (`encodeURIComponent`-ed), sourced from the `useSetPassword(accountName)` argument already plumbed through `SecurityDrawer`, with a defensive fallback to `config.api.storeId` so `an` is never empty. The change is isolated to `packages/core/src/sdk/account/useSetPassword.ts`. No public API, GraphQL schema, codegen, or UI changes. ## Tests Adds `packages/core/test/sdk/account/useSetPassword.test.ts` covering: - the new authenticator URL with `expireSessions=true&an=…` (and absence of `/api/vtexid/`); - `POST` + `credentials: 'include'` + form-data body shape; - success path (`authStatus: success`); - error mapping (`wrongcredentials` → `Wrong credentials`); - `accountName` fallback to `config.api.storeId`. All 5 new tests pass. Pre-existing failures in `test/pages/api/graphql.test.ts` and `test/utils/cookieCacheBusting.test.ts` are unrelated (verified they fail without this change; the former belongs to the separate, not-yet-implemented BFF 4xx forwarding spec). ## Out of scope - Migrating the other `/api/vtexid/pub/...` callers (`startlogin` inside the same hook, `logout` in `OrganizationDrawer`) — tracked as follow-ups. - GraphQL `password.graphql` types (this flow is REST-only). ## Spec `specs/replace-vtexid-setpassword-route.md` (status: Done). The `specs/` directory is git-ignored in this repo, so the spec file is not part of this PR. Made with [Cursor](https://cursor.com) [SFS-3056]: https://vtex-dev.atlassian.net/browse/SFS-3056?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved password-change flow with tighter authentication integration, consistent account identification fallback, and better session-expiry handling for more reliable credential updates. * **Tests** * Added end-to-end tests covering password submission, credential validation, authentication responses, and account fallback behavior to ensure correct success/error messaging. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: eduardoformiga <[email protected]>
[FAS-930](https://vtex-dev.atlassian.net/browse/FAS-930) ## What's the purpose of this pull request? Store deployments frequently expose preview URLs to external audiences during development and testing phases. This creates multiple security and usability concerns: - SEO Indexing Issues: Search engines can index preview URLs, leading to duplicate content and rankings degradation - Consumer Confusion: Customers may attempt to purchase from preview URLs instead of production stores - Information Disclosure: Unreleased products, features, or sensitive configurations may become visible to unintended audiences - Operational Friction: Commerce developers currently require manual password protection setup at provider level (e.g., Vercel), creating implementation burden ## How it works? Merchants set up password protection settings to their builds, which can be applied to default domains (*.vtex.app) or custom domains (mystore.com). ## How to test it? Password protection setup on WebOps: https://vtexgame1.myvtex.com/admin/webops/settings Running store: https://vtexgame1.vtex.app/ (password is `123`) ### Starters Deploy Preview <!--- Add a link to a deploy preview from `starter.store` with this branch being used. ---> <!--- Tip: You can get an installable version of this branch from the CodeSandbox generated when this PR is created. ---> ## References <!--- Spread the knowledge: is there any content you used to create this PR that is worth sharing? ---> <!--- Extra tip: adding references to related issues or mentioning people important to this PR may be good for the documentation and reviewing process ---> RFC: https://docs.google.com/document/d/1rOwddxX8V08cY-lhJR6VqQ1g-oznJ1dBuNMTCJtO7FI/edit?tab=t.ftdefyeg4z3l#heading=h.n2j25ht9xpmm ## Checklist <em>You may erase this after checking them all 😉</em> **PR Title and Commit Messages** - [x] PR title and commit messages follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification - Available prefixes: `feat`, `fix`, `chore`, `docs`, `style`, `refactor`, `ci` and `test` **PR Description** - [x] Added a label according to the PR goal - `breaking change`, `bug`, `contributing`, `performance`, `documentation`.. **Dependencies** - [x] Committed the `pnpm-lock.yaml` file when there were changes to the packages **Documentation** - [ ] PR description - [ ] For documentation changes, ping `@Mariana-Caetano` to review and update (Or submit a doc request) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added a password-protection login page for gated storefront access. * Added a new unlock endpoint to validate passwords, set a secure session cookie, and return a safe redirect URL. * **Improvements** * Enhanced request protection behavior in the storefront middleware (including root routing coverage and cookie handling). * Simplified CLI dev/build flow by removing localization-based proxy toggling. * **Testing** * Expanded automated coverage for URL generation, unlock responses, proxy behavior, and password-protection service scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai --> [FAS-930]: https://vtex-dev.atlassian.net/browse/FAS-930?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Claude Opus 4.7 <[email protected]> Co-authored-by: Leandro Rodrigues <[email protected]>
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (12)
📒 Files selected for processing (85)
WalkthroughAdds VTEX order-entry upload and polling APIs, rewires quick order to use them, introduces password-protection middleware and unlock flows, updates auth and GraphQL error handling, extends CMS schema fields, removes CLI proxy toggling, and bumps package versions and changelogs. ChangesOrder Entry quick order flow
Password protection flow
Auth and error handling fixes
CMS and release metadata
Sequence Diagram(s)sequenceDiagram
participant UI as SearchInput
participant Hook as useOrderEntry
participant API as API GraphQL
participant VTEX as VTEX Order Entry
UI->>Hook: submitFile(file)
Hook->>API: uploadFileToOrderEntry
API->>VTEX: upload file
VTEX-->>API: objectKey
Hook->>API: startOrderEntryOperation
API->>VTEX: start operation
VTEX-->>API: operationId
Hook->>API: poll orderEntryOperation
API->>VTEX: get operation status
VTEX-->>API: status + entityId
UI->>API: orderFormItems(orderFormId)
sequenceDiagram
participant Browser
participant Proxy as proxy
participant Service as PasswordProtectionService
participant WebOps
participant Unlock as /api/fs/password-protection/unlock
Browser->>Proxy: request page
Proxy->>Service: checkStoreProtection(request)
Service->>WebOps: verify token / fetch status
WebOps-->>Service: protection result
Service-->>Proxy: redirect or continue
Browser->>Unlock: POST password
Unlock->>WebOps: create session
WebOps-->>Unlock: valid + token
Unlock-->>Browser: set cookie + redirectUrl
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
## Summary Back-merge the stable **4.3.0** release from `main` into `dev`, so the `dev` prerelease cycle is rebased on `4.3.0`. - Resolved version files (`lerna.json` + all `package.json`) to `4.3.0` - Merged CHANGELOG entries (the `4.3.0` block on top, dev prerelease history preserved below) - **No generated-file changes.** `dev` and `main` already share the same `@generated`/`__generated__` output, so this sync intentionally touches none of them. ## Expected version bump A local `lerna version` dry-run (same flags as `release:dev`) on this branch proposes **`4.4.0-dev.0`** (minor) for all packages. This is because graduation PR #3396 landed on `main` as `feat: graduate v4.3.0`, and the back-merge brings that `feat` into the range `v4.3.0-dev.8..HEAD`. Lerna's conventional bump picks it up regardless of this PR's `chore:` title. > Follow-up convention: future graduation PRs (`dev -> main`) should use a `chore:`/`fix:` title. Since `--conventional-graduate` sets `main`'s version independently of the commit title, this keeps the subsequent back-merge a **patch** (`x.y.z+1-dev.0`) instead of escalating the minor. ## Effect on merge Merging this PR triggers `release:dev` CD on `dev`, publishing `4.4.0-dev.0` under the `dev` dist-tag. From then on, new work on `dev` continues the `4.4.0-dev.N` cycle. ## Test plan - [ ] CI green on this PR - [ ] After merge, confirm dev CD publishes all packages at `4.4.0-dev.0` under `dev` --------- Co-authored-by: Leandro Rodrigues <[email protected]> Co-authored-by: Matheus P. Silva <[email protected]> Co-authored-by: vtexgithubbot <[email protected]> Co-authored-by: Lucas Feijó <[email protected]> Co-authored-by: Luiz Falcão <[email protected]> Co-authored-by: Artur Santiago <[email protected]> Co-authored-by: Larícia Mota <[email protected]> Co-authored-by: Sahan Jayawardana <[email protected]> Co-authored-by: Mateus Pontes <[email protected]> Co-authored-by: Matheus Martins <[email protected]> Co-authored-by: renatomaurovtex <[email protected]> Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Arthur Andrade <[email protected]> Co-authored-by: Leandro Rodrigues <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Thiago Pereira <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Giuliana Rigaud <[email protected]> Co-authored-by: renato <[email protected]> Co-authored-by: Bruna Santos <[email protected]> Co-authored-by: BrunaCubos <[email protected]> Co-authored-by: Ícaro Oliveira <[email protected]> Co-authored-by: Bruna Santos <[email protected]> Co-authored-by: Everton Ataide <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Otavio Moreira Meirelles <[email protected]> Co-authored-by: Marco Cardoso <[email protected]> Co-authored-by: Gabriel Paladino <[email protected]> Co-authored-by: CodeRabbit <[email protected]> Co-authored-by: dk-portal[bot] <134092483+dk-portal[bot]@users.noreply.github.com> Co-authored-by: Rodrigo Tavares <[email protected]> Co-authored-by: vitorflg <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Válber Laux <[email protected]>
|
Post-merge review note (this already landed and 🟠 components Public export removed in a minor — breaking change for The graduation drops // packages/components/src/hooks/index.ts @ v4.2.0
export { useCSVParser } from './useCSVParser'
export type { CSVData, CSVParserError, CSVParserOptions } from './useCSVParser'CSV parsing moved internal to Realistically low external usage (added recently in #3251), so probably not worth a major reroll. Suggested low-cost mitigations:
Everything else in the release looks clean:
Back-merge #3397 looks correct — the body already reasons through the Verdict: Approved with comments (post-merge)Non-blocking (🟠 already shipped):
|

0 New Issues
0 Fixed Issues
0 Accepted Issues
No data about coverage (21.20% Estimated after merge)
Summary
Graduate the
4.3.0-dev.8prerelease cycle to the stable4.3.0release onlatest.Merging this PR triggers CD on
main, which runslerna version --conventional-graduateand publishes all@faststore/*packages to thelatestdist-tag.Features
Bug Fixes
@builder.io→@[email protected](fix: migrate partytown @builder.io → @[email protected] #3394)Pre-flight (faststore-release skill)
release.ymlhasfetch-depth: 0repository.urlv4.2.0dev → mainmerges cleanly (no CHANGELOG/codegen conflicts)main(accidental4.2.1was fully reverted in chore: revert accidental 4.2.1 release #3375)Test plan
4.3.0underlatestMade with Cursor
Summary by CodeRabbit
New Features
Bug Fixes
Breaking Changes