Skip to content

feat: Add invalid quantity toast message to hCMS - #3102

Merged
lariciamota merged 4 commits into
feat/multilanguagefrom
feat/product-item-toast-cms
Nov 11, 2025
Merged

lariciamota merged 4 commits into
feat/multilanguagefrom
feat/product-item-toast-cms

Conversation

@lariciamota

@lariciamota lariciamota commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

Add the invalid quantity toast to hCMS so it can be editable. We need it there so it can be translated through the CMS.

⚠️ Breaking change: there is no more a hardcoded message, it necessarily has to come through CMS.
This PR will be merged in the feat/multilanguage feature branch, which will be available only in the next faststore major version.

How it works?

It was hardcoded, so adding it to the hCMS schema allows it to be editable.
There are 3 places where it's being used: SKUMatrixSidebar, SearchProductItem and ProductDetailsSettings, those are related to 2 sections: Navbar and ProductDetails. So I've updated the schema of both sections.

How to test it?

In the brandless account I've configured through hCMS those messages and I've enabled the quick order feature so we could test the change in the Navbar (this feature allows adding products directly to the cart through search terms).
Screenshot 2025-11-06 at 14 01 25

Navbar PDP
Screenshot 2025-11-06 at 13 57 31 Screenshot 2025-11-06 at 13 57 11
Screenshot 2025-11-06 at 14 17 37 Screenshot 2025-11-06 at 13 58 35
The following SKU Matrix Sidebar is displayed after clicking in "select multiple" in the search suggestions: Screenshot 2025-11-06 at 15 20 38

Starters Deploy Preview

References

@lariciamota lariciamota self-assigned this Nov 5, 2025
@lariciamota lariciamota added the enhancement New feature or request label Nov 5, 2025
@codesandbox-ci

codesandbox-ci Bot commented Nov 5, 2025 •

Copy link
Copy Markdown

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.

@lariciamota
lariciamota force-pushed the feat/product-item-toast-cms branch from 8339c11 to 78690b2 Compare November 6, 2025 16:47
@lariciamota
lariciamota marked this pull request as ready for review November 6, 2025 18:38
@lariciamota
lariciamota requested a review from a team as a code owner November 6, 2025 18:38
@lariciamota
lariciamota requested review from ommeirelles and renatamottam and removed request for a team November 6, 2025 18:38
@lariciamota
lariciamota force-pushed the chore/sort-options-cms branch from b2237bd to 08b5527 Compare November 7, 2025 13:26
Base automatically changed from chore/sort-options-cms to feat/multilanguage November 7, 2025 13:34
@lariciamota
lariciamota force-pushed the feat/product-item-toast-cms branch from 8151061 to 5e5e7fc Compare November 7, 2025 15:06

@hellofanny hellofanny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🚀

@lariciamota
lariciamota merged commit 7d73f84 into feat/multilanguage Nov 11, 2025
@lariciamota
lariciamota deleted the feat/product-item-toast-cms branch November 11, 2025 14:06
lemagnetic pushed a commit that referenced this pull request Nov 20, 2025
Add the invalid quantity toast to hCMS so it can be editable. We need it
there so it can be translated through the CMS.

⚠️ Breaking change: there is no more a hardcoded message, it necessarily
has to come through CMS.
This PR will be merged in the `feat/multilanguage` feature branch, which
will be available only in the next faststore major version.

It was hardcoded, so adding it to the hCMS schema allows it to be
editable.
There are 3 places where it's being used: `SKUMatrixSidebar`,
`SearchProductItem` and `ProductDetailsSettings`, those are related to 2
sections: `Navbar` and `ProductDetails`. So I've updated the schema of
both sections.

In the `brandless` account I've configured through hCMS those messages
and I've enabled the quick order feature so we could test the change in
the Navbar (this feature allows adding products directly to the cart
through search terms).
<img width="250" alt="Screenshot 2025-11-06 at 14 01 25"
src="https://github.com/user-attachments/assets/a890c6d9-5fc7-4b45-b0c9-c0c47afe1f0e"
/>

| Navbar | PDP |
| ---- | ---- |
| <img width="1333" height="376" alt="Screenshot 2025-11-06 at 13 57 31"
src="https://github.com/user-attachments/assets/0c07957a-8075-446f-9921-c112eaabb585"
/> | <img width="1333" height="457" alt="Screenshot 2025-11-06 at 13 57
11"
src="https://github.com/user-attachments/assets/750f7214-313d-4f46-a02c-a0d71b17d39c"
/> |
| <img width="1509" height="577" alt="Screenshot 2025-11-06 at 14 17 37"
src="https://github.com/user-attachments/assets/f93be95e-a0a0-4119-9632-5dbd0e74a215"
/> | <img width="1508" height="501" alt="Screenshot 2025-11-06 at 13 58
35"
src="https://github.com/user-attachments/assets/af49ef79-c80f-491f-8ef9-78a32f30c436"
/> |
| The following SKU Matrix Sidebar is displayed after clicking in
"select multiple" in the search suggestions: <img width="1505"
height="585" alt="Screenshot 2025-11-06 at 15 20 38"
src="https://github.com/user-attachments/assets/66afaae0-6615-4801-b296-5d5e68ab7cf1"
/> | |

- https://brandless-cma5xay4001f6dn4xjwato8b4-95qmbq4tq.b.vtex.app/
([PR](vtex-sites/brandless.store#114))

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2917)
lemagnetic pushed a commit that referenced this pull request Nov 20, 2025
Add the invalid quantity toast to hCMS so it can be editable. We need it
there so it can be translated through the CMS.

⚠️ Breaking change: there is no more a hardcoded message, it necessarily
has to come through CMS.
This PR will be merged in the `feat/multilanguage` feature branch, which
will be available only in the next faststore major version.

It was hardcoded, so adding it to the hCMS schema allows it to be
editable.
There are 3 places where it's being used: `SKUMatrixSidebar`,
`SearchProductItem` and `ProductDetailsSettings`, those are related to 2
sections: `Navbar` and `ProductDetails`. So I've updated the schema of
both sections.

In the `brandless` account I've configured through hCMS those messages
and I've enabled the quick order feature so we could test the change in
the Navbar (this feature allows adding products directly to the cart
through search terms).
<img width="250" alt="Screenshot 2025-11-06 at 14 01 25"
src="https://github.com/user-attachments/assets/a890c6d9-5fc7-4b45-b0c9-c0c47afe1f0e"
/>

| Navbar | PDP |
| ---- | ---- |
| <img width="1333" height="376" alt="Screenshot 2025-11-06 at 13 57 31"
src="https://github.com/user-attachments/assets/0c07957a-8075-446f-9921-c112eaabb585"
/> | <img width="1333" height="457" alt="Screenshot 2025-11-06 at 13 57
11"
src="https://github.com/user-attachments/assets/750f7214-313d-4f46-a02c-a0d71b17d39c"
/> |
| <img width="1509" height="577" alt="Screenshot 2025-11-06 at 14 17 37"
src="https://github.com/user-attachments/assets/f93be95e-a0a0-4119-9632-5dbd0e74a215"
/> | <img width="1508" height="501" alt="Screenshot 2025-11-06 at 13 58
35"
src="https://github.com/user-attachments/assets/af49ef79-c80f-491f-8ef9-78a32f30c436"
/> |
| The following SKU Matrix Sidebar is displayed after clicking in
"select multiple" in the search suggestions: <img width="1505"
height="585" alt="Screenshot 2025-11-06 at 15 20 38"
src="https://github.com/user-attachments/assets/66afaae0-6615-4801-b296-5d5e68ab7cf1"
/> | |

- https://brandless-cma5xay4001f6dn4xjwato8b4-95qmbq4tq.b.vtex.app/
([PR](vtex-sites/brandless.store#114))

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2917)
lariciamota added a commit that referenced this pull request Nov 25, 2025
Add the invalid quantity toast to hCMS so it can be editable. We need it
there so it can be translated through the CMS.

⚠️ Breaking change: there is no more a hardcoded message, it necessarily
has to come through CMS.
This PR will be merged in the `feat/multilanguage` feature branch, which
will be available only in the next faststore major version.

It was hardcoded, so adding it to the hCMS schema allows it to be
editable.
There are 3 places where it's being used: `SKUMatrixSidebar`,
`SearchProductItem` and `ProductDetailsSettings`, those are related to 2
sections: `Navbar` and `ProductDetails`. So I've updated the schema of
both sections.

In the `brandless` account I've configured through hCMS those messages
and I've enabled the quick order feature so we could test the change in
the Navbar (this feature allows adding products directly to the cart
through search terms).
<img width="250" alt="Screenshot 2025-11-06 at 14 01 25"
src="https://github.com/user-attachments/assets/a890c6d9-5fc7-4b45-b0c9-c0c47afe1f0e"
/>

| Navbar | PDP |
| ---- | ---- |
| <img width="1333" height="376" alt="Screenshot 2025-11-06 at 13 57 31"
src="https://github.com/user-attachments/assets/0c07957a-8075-446f-9921-c112eaabb585"
/> | <img width="1333" height="457" alt="Screenshot 2025-11-06 at 13 57
11"
src="https://github.com/user-attachments/assets/750f7214-313d-4f46-a02c-a0d71b17d39c"
/> |
| <img width="1509" height="577" alt="Screenshot 2025-11-06 at 14 17 37"
src="https://github.com/user-attachments/assets/f93be95e-a0a0-4119-9632-5dbd0e74a215"
/> | <img width="1508" height="501" alt="Screenshot 2025-11-06 at 13 58
35"
src="https://github.com/user-attachments/assets/af49ef79-c80f-491f-8ef9-78a32f30c436"
/> |
| The following SKU Matrix Sidebar is displayed after clicking in
"select multiple" in the search suggestions: <img width="1505"
height="585" alt="Screenshot 2025-11-06 at 15 20 38"
src="https://github.com/user-attachments/assets/66afaae0-6615-4801-b296-5d5e68ab7cf1"
/> | |

- https://brandless-cma5xay4001f6dn4xjwato8b4-95qmbq4tq.b.vtex.app/
([PR](vtex-sites/brandless.store#114))

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2917)
lemagnetic pushed a commit that referenced this pull request Nov 28, 2025
Add the invalid quantity toast to hCMS so it can be editable. We need it
there so it can be translated through the CMS.

⚠️ Breaking change: there is no more a hardcoded message, it necessarily
has to come through CMS.
This PR will be merged in the `feat/multilanguage` feature branch, which
will be available only in the next faststore major version.

It was hardcoded, so adding it to the hCMS schema allows it to be
editable.
There are 3 places where it's being used: `SKUMatrixSidebar`,
`SearchProductItem` and `ProductDetailsSettings`, those are related to 2
sections: `Navbar` and `ProductDetails`. So I've updated the schema of
both sections.

In the `brandless` account I've configured through hCMS those messages
and I've enabled the quick order feature so we could test the change in
the Navbar (this feature allows adding products directly to the cart
through search terms).
<img width="250" alt="Screenshot 2025-11-06 at 14 01 25"
src="https://github.com/user-attachments/assets/a890c6d9-5fc7-4b45-b0c9-c0c47afe1f0e"
/>

| Navbar | PDP |
| ---- | ---- |
| <img width="1333" height="376" alt="Screenshot 2025-11-06 at 13 57 31"
src="https://github.com/user-attachments/assets/0c07957a-8075-446f-9921-c112eaabb585"
/> | <img width="1333" height="457" alt="Screenshot 2025-11-06 at 13 57
11"
src="https://github.com/user-attachments/assets/750f7214-313d-4f46-a02c-a0d71b17d39c"
/> |
| <img width="1509" height="577" alt="Screenshot 2025-11-06 at 14 17 37"
src="https://github.com/user-attachments/assets/f93be95e-a0a0-4119-9632-5dbd0e74a215"
/> | <img width="1508" height="501" alt="Screenshot 2025-11-06 at 13 58
35"
src="https://github.com/user-attachments/assets/af49ef79-c80f-491f-8ef9-78a32f30c436"
/> |
| The following SKU Matrix Sidebar is displayed after clicking in
"select multiple" in the search suggestions: <img width="1505"
height="585" alt="Screenshot 2025-11-06 at 15 20 38"
src="https://github.com/user-attachments/assets/66afaae0-6615-4801-b296-5d5e68ab7cf1"
/> | |

- https://brandless-cma5xay4001f6dn4xjwato8b4-95qmbq4tq.b.vtex.app/
([PR](vtex-sites/brandless.store#114))

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2917)
lemagnetic added a commit that referenced this pull request Mar 5, 2026
## What's the purpose of this pull request?

Removing hardcoded labels:
- #3099
- #3102 
- #3107 
- #3104 
- #3103 
- #3125
- #3131
- #3116
- #3142
- #3192

Setting Up locales
- #3141
- #3143
- #3147
- #3156
- #3162
- #3145
- #3164
- #3169
- #3171
- #3176
- #3180
- #3169
 custom path
- #3185
- #3162
- #3156
- #3170

Components
- #3093
- #3175

Fetching content 

- #3165

Others
- #3176
- #3171
- #3181
- #3189
- #3205


## How to test locally?
- Run `pnpm I` (install all the new dependencies and needed packages)
- If you want to try localization feature, go
to`/discovery.config.default.js`:
Enable localization:
```
localization: {
  enabled: true
}
```
- Run `node packages/cli/bin/run.js generate-i18n ./packages/core` to
fetch the bindings

If the contentSource is not set to content platform yet, you will see a
message to update to it.
>   contentSource: {
>     type: 'CP',
>   },

⚠️ Note: Ensure the url is set to localhost for local testing. These
locale bindings are generated in `discovery.config` after running the
generate-i18n command.

```diff
localization: {
  enabled: true,
  defaultLocale: 'en-US',
   regions: {...},
    locales: {
      'pt-BR': {
           ...
        bindings: [
          {
            currencyCode: 'BRL',
-           url: 'https://brandless.fast.store/pt-BR',
+           url: 'http://localhost:3000/pt-BR',
            salesChannel: '2',
            isDefault: true,
            locales: [
              {
                code: 'pt-BR',
                isDefault: true,
              },
            ],
          },
        ],
      },
      'it-IT': {
        ...
        bindings: [
          {
            currencyCode: 'EUR',
-           url: 'https://brandless.fast.store/it-IT',
+           url: 'http://localhost:3000/it-IT',
            salesChannel: '3',
            isDefault: true,
            locales: [
              {
                code: 'it-IT',
                isDefault: true,
              },
            ],
          },
          {
            currencyCode: 'EUR',
-           url: 'https://brandless.fast.store/europe/it',
+           url: 'http://localhost:3000/europe/it',
            salesChannel: '3',
            isDefault: false,
            locales: [
              {
                code: 'it-IT',
                isDefault: true,
              },
            ],
          },
        ],
      },
      'en-US': {
        code: 'en-US',
        name: 'English',
        languageCode: 'en',
        languageName: 'English',
        script: 'Latn',
        textDirection: 'ltr',
        regionCode: 'US',
        bindings: [
          {
            currencyCode: 'USD',
-           url: 'https://brandless.fast.store',
+           url: 'http://localhost:3000,
            salesChannel: '1',
            isDefault: true,
            locales: [
              {
                code: 'en-US',
                isDefault: true,
              },
            ],
          },
        ],
      },
    ...
}
```

- Go to /packages/core and run `npmn dev`

---------

Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Leandro Rodrigues <[email protected]>
Co-authored-by: Otavio Moreira Meirelles <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants