Skip to content

Release preview version 3.9.0 preview.1 (@W-17589798@)#2255

Merged
vmarta merged 103 commits intorelease-3.9.xfrom
vm/3.9.0-preview.1
Feb 12, 2025
Merged

Release preview version 3.9.0 preview.1 (@W-17589798@)#2255
vmarta merged 103 commits intorelease-3.9.xfrom
vm/3.9.0-preview.1

Conversation

@vmarta
Copy link
Contributor

@vmarta vmarta commented Feb 12, 2025

This PR contains the latest changes from develop branch, which are mainly the social login/passwordless work. We plan to release another preview versions:

@salesforce/commerce-sdk-react v3.2.0-preview.1 packages/commerce-sdk-react
internal-lib-build             v3.9.0-preview.1 packages/internal-lib-build          (PRIVATE)
@salesforce/pwa-kit-create-app v3.9.0-preview.1 packages/pwa-kit-create-app
@salesforce/pwa-kit-dev        v3.9.0-preview.1 packages/pwa-kit-dev
@salesforce/pwa-kit-react-sdk  v3.9.0-preview.1 packages/pwa-kit-react-sdk
@salesforce/pwa-kit-runtime    v3.9.0-preview.1 packages/pwa-kit-runtime
template-express-minimal       v3.9.0-preview.1 packages/template-express-minimal    (PRIVATE)
template-mrt-reference-app     v3.9.0-preview.1 packages/template-mrt-reference-app  (PRIVATE)
@salesforce/retail-react-app   v6.0.0-preview.1 packages/template-retail-react-app
typescript-minimal             v3.9.0-preview.1 packages/template-typescript-minimal (PRIVATE)
test-commerce-sdk-react        v3.9.0-preview.1 packages/test-commerce-sdk-react     (PRIVATE)

bredmond-sf and others added 30 commits September 25, 2024 15:32
…orceCommerceCloud/pwa-kit into W-16544327-social-login-ui
…orceCommerceCloud/pwa-kit into feature-passwordless-social-login
Add wrappers for social login helpers: `authorizeIDP` and `loginIDPUser`
---------
Co-authored-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>
Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
…2075)

* Add `authorizePasswordless` and `getPasswordLessAccessToken` wrappers to `commerce-sdk-react`
* Add `callbackURI` to Auth class and `CommerceApiProvider`

---------

Signed-off-by: Yuna Kim <84923642+yunakim714@users.noreply.github.com>
This PR implements the Social Login redirect page which has a loading state until the user is successfully logged in.
Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
* add StandardLogin, PasswordlessLogin, SocialLogin components
Implement a Check Your Email page that will be used in the passwordless login flow

---------

Signed-off-by: Yuna Kim <84923642+yunakim714@users.noreply.github.com>
…ge (#2105)

Add passwordless/social login UI buttons to the Checkout page if enabled.

---------

Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
Signed-off-by: Yuna Kim <84923642+yunakim714@users.noreply.github.com>
Co-authored-by: Jinsu Ha <j.ha@salesforce.com>
Co-authored-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
…to UI (#2124)

Integrate Social Login UI changes in the PWA Kit to backend SLAS API calls.
---------

Signed-off-by: Yuna Kim <84923642+yunakim714@users.noreply.github.com>
* make passwordless login work by sending an email via a Marketing Cloud integration

* add new check email page

* make passwordless login work in auth-modal

* create use-passwordless-login hook and support passwordless in /login page

* add /passwordless-login-landing page

* add /reset-password-landing page

* call mergeBasket during passwordless login
…r social/passwordless login & reset password (#2198)

Customers can change the callback & redirect uri's for social login, passwordless login, and password reset via env var
yunakim714 and others added 25 commits February 6, 2025 15:19
@W-17682173 Fix E2E Tests To Pass Github Actions
…7775862@) (#2241)

* Babel config: target the 'current' node version

* Revert to Node 18

* empty commit
* Remove initial fetch to improve performance and fix bugs
Add DNT to `loginIDPUser` and `getPasswordLessAccessToken` wrappers. Skip Social Login E2E test for now as Playwright cannot get past Google 2FA.

---------

Signed-off-by: Yuna Kim <84923642+yunakim714@users.noreply.github.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
…ints` (#2250)

* Move applySLASPrivateClientToEndpoints to pwa-kit-runtime

The change will be easier to consume than if it's in the template.

* Authorize endpoint do not need the authorization header

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Vincent Marta <vmarta@gmail.com>

* Minor cleanup

---------

Signed-off-by: Vincent Marta <vmarta@gmail.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
…hadow-in-dnt-banner

Fixing shadow visual issue in DNT banner
…dless-social-login

Feature passwordless social login
@vmarta vmarta requested a review from a team as a code owner February 12, 2025 20:12
matrix:
# Run all matrix env at once because we will not deploy demo app to MRT.
node: [16, 18, 20, 22]
node: [18, 20, 22]
Copy link
Contributor

Choose a reason for hiding this comment

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

Just realized this, we removed Node 16, but still needs npm 8? npm 8 wont run on Node 16+ 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

this is non-blocking comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok we can fix it later after the release.

Cc @joeluong-sfcc

Copy link
Contributor

Choose a reason for hiding this comment

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

npm 8 is compatible with Node 18.
It might continue to work with node 20 and 22 but is not recommended.
While we don't see any failures or misbehaviors so far, it seems to be best to add exclusions for Node 20 + NPM 8 and Node 22 + NPM 8

@vmarta vmarta merged commit a4afa2d into release-3.9.x Feb 12, 2025
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants