Skip to content

@W-21252790: 1cc in Developer Preview mode #3662

Merged
kumaravinashcommercecloud merged 8 commits intorelease-3.16.xfrom
avinash.1cc_notesUpdate
Feb 12, 2026
Merged

@W-21252790: 1cc in Developer Preview mode #3662
kumaravinashcommercecloud merged 8 commits intorelease-3.16.xfrom
avinash.1cc_notesUpdate

Conversation

@kumaravinashcommercecloud
Copy link
Contributor

@kumaravinashcommercecloud kumaravinashcommercecloud commented Feb 12, 2026

Description

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

  • (change1)

How to Test-Drive This PR

  • (step1)

Checklists

General

  • Changes are covered by test cases
  • CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

@kumaravinashcommercecloud kumaravinashcommercecloud requested a review from a team as a code owner February 12, 2026 20:03
@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Feb 12, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

if (res && res.status !== 200) {
const errorData = await res.json()
throw new Error(`${res.status} ${String(errorData.message)}`)
await throwIfResponseNotOk(res)
Copy link
Contributor

@kevinxh kevinxh Feb 12, 2026

Choose a reason for hiding this comment

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

An alternative, without touching the commerce-sdk-react package, we could update the slas proxy override suggested by @clavery (on Slack) to be able to return JSON responses. I don't know if that is more closer to the actual SCAPI response, but I feel like it's worth a check?

@kumaravinashcommercecloud kumaravinashcommercecloud added the skip changelog Skip the "Changelog Check" GitHub Actions step even if the Changelog.md files are not updated label Feb 12, 2026
@kumaravinashcommercecloud kumaravinashcommercecloud changed the title @W-21252790: Alpha tag for 1cc @W-21252790: 1cc in Developer Preview mode Feb 12, 2026
@kevinxh
Copy link
Contributor

kevinxh commented Feb 12, 2026

lint is failing

@salesforce/retail-react-app: /home/runner/work/pwa-kit/pwa-kit/packages/template-retail-react-app/app/ssr.js
@salesforce/retail-react-app:   63:1  error  Delete `⏎`  prettier/prettier

// Keep continue button visible if email is valid (for unregistered users)
if (isValidEmail(email)) {
// 404 = email not registered (guest); treat as guest and continue
const isGuestNotFound = String(error?.message || '').includes('404')
Copy link
Contributor

@kevinxh kevinxh Feb 12, 2026

Choose a reason for hiding this comment

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

non-blocking, this could be flaky to base on the error message instead of status code, but seems like it's working, we can improve it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the sdk throws error like this: throw new Error(${res.status} ${message}) so here we are looking for 404 in the error, not the error message itself.

@kumaravinashcommercecloud kumaravinashcommercecloud merged commit f86c2c1 into release-3.16.x Feb 12, 2026
42 checks passed
@kumaravinashcommercecloud kumaravinashcommercecloud deleted the avinash.1cc_notesUpdate branch February 12, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog Skip the "Changelog Check" GitHub Actions step even if the Changelog.md files are not updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants