Skip to content

Commit f86c2c1

Browse files
@W-21252790: 1cc in Developer Preview mode (#3662)
* alpha tag for one click checkout * alpha tag for one click checkout * error handling * error handling * error handling * responsebuffer * responsebuffer * responsebuffer
1 parent 85a9dfc commit f86c2c1

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

packages/pwa-kit-runtime/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## v3.16.0-preview.1 (Feb 09, 2026)
2+
- Updated the SLAS private client proxy to enable customizing the proxy response body [#3662] https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3662/
23

34
## v3.16.0-preview.0 (Feb 06, 2026)
45
- Migrate AWS SDK from v2 to v3 [#3566](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3566)

packages/pwa-kit-runtime/src/ssr/server/build-remote-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ export const RemoteServerFactory = {
988988
if (typeof options.onSLASPrivateProxyRes === 'function') {
989989
try {
990990
const customBuffer = options.onSLASPrivateProxyRes(
991-
workingBuffer,
991+
responseBuffer,
992992
proxyRes,
993993
req,
994994
res

packages/template-retail-react-app/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
- [Bugfix] 1CC Bug Fixes [#3638](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3638)
33

44
## v9.0.0-preview.0 (Feb 06, 2026)
5-
- [Feature] One Click Checkout [#3552](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3552)
5+
- [Feature] One Click Checkout (in Developer Preview) [#3552](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3552)
66
- [Feature] Add `fuzzyPathMatching` to reduce computational overhead of route generation at time of application load [#3530](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3530)
77
- [Bugfix] Fix Passwordless Login landingPath, Reset Password landingPath, and Social Login redirectUri value in config not being used [#3560](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3560)
88
- [Feature] PWA Integration with OMS

packages/template-retail-react-app/app/components/otp-auth/index.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ describe('OtpAuth', () => {
254254
})
255255
const mockVerify = jest.fn().mockReturnValue(verifyingPromise)
256256

257-
const user = userEvent.setup()
258257
renderWithProviders(
259258
<OtpAuth
260259
isOpen={true}

packages/template-retail-react-app/app/components/passwordless-login/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const PasswordlessLogin = ({
2020
handlePasswordlessLoginClick,
2121
isSocialEnabled = false,
2222
idps = [],
23-
setLoginType = noop
23+
setLoginType: _setLoginType = noop
2424
}) => {
2525
const [showPasswordView, setShowPasswordView] = useState(false)
2626

packages/template-retail-react-app/app/pages/checkout-one-click/partials/one-click-contact-info.jsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,19 @@ const ContactInfo = ({isSocialEnabled = false, idps = [], onRegisteredUserChoseG
245245
lastEmailSentRef.current = normalizedEmail
246246
return {isRegistered: true}
247247
} catch (error) {
248-
const message = formatMessage(getAuthorizePasswordlessErrorMessage(error.message))
249-
setError(message)
250-
// Keep continue button visible if email is valid (for unregistered users)
251-
if (isValidEmail(email)) {
248+
// 404 = email not registered (guest); treat as guest and continue
249+
const isGuestNotFound = String(error?.message || '').includes('404')
250+
if (isGuestNotFound && isValidEmail(email)) {
251+
setError('')
252252
setShowContinueButton(true)
253+
} else {
254+
const message = formatMessage(
255+
getAuthorizePasswordlessErrorMessage(error.message)
256+
)
257+
setError(message)
258+
if (isValidEmail(email)) {
259+
setShowContinueButton(true)
260+
}
253261
}
254262
// Update the last email sent ref even on error to prevent retrying immediately
255263
lastEmailSentRef.current = normalizedEmail

packages/template-retail-react-app/config/default.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ module.exports = {
7474
appSourceId: '7ae070a6-f4ec-4def-a383-d9cacc3f20a1',
7575
tenantId: 'g82wgnrvm-ywk9dggrrw8mtggy.pc-rnd'
7676
},
77+
// Note: this feature is in Developer Preview at this time. To use One Click Checkout,
78+
// enable the oneClickCheckout flag and configure private SLAS client. For more details, please
79+
// check https://github.com/SalesforceCommerceCloud/pwa-kit/releases/tag/v3.16.0
7780
oneClickCheckout: {
7881
enabled: false
7982
},

0 commit comments

Comments
 (0)