Skip to content

CI perf workflow: fix the deploy step.. take two (@W-19345469@)#3115

Merged
vmarta merged 7 commits intodevelopfrom
vm/fix-ci-perf-workflow
Aug 18, 2025
Merged

CI perf workflow: fix the deploy step.. take two (@W-19345469@)#3115
vmarta merged 7 commits intodevelopfrom
vm/fix-ci-perf-workflow

Conversation

@vmarta
Copy link
Contributor

@vmarta vmarta commented Aug 15, 2025

This is the 2nd attempt at fixing the deploy step. This time uses the correct API key.

Related PR: #3091

How to test the changes

To simulate running the workflow, here's what I did:

  1. From the root, generate a project with the preset: node e2e/scripts/generate-project.js --project-key retail-react-app-performance-tests
  2. Then deploy: npm run push -- --projectSlug q4-pwa-perf-develop --message "test pushing a bundle" --target production --cloud-origin <cloud origin> --wait

OR actually, you can see this workflow run where it passes and working as expected: https://github.com/SalesforceCommerceCloud/pwa-kit/actions/runs/17002182578/job/48205909926

@vmarta vmarta added the skip changelog Skip the "Changelog Check" GitHub Actions step even if the Changelog.md files are not updated label Aug 15, 2025
@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Aug 15, 2025

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

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

Comment on lines +37 to +38
mobify_user: ${{ secrets.MRT_STG_Q4_PWA_PERF_API_USER }}
mobify_api_key: ${{ secrets.MRT_STG_Q4_PWA_PERF_API_KEY }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct API key this time around. I've verified by pushing and deploying a bundle from my machine.

CLOUD_ORIGIN: ${{ vars.MRT_STG_CLOUD_ORIGIN }}
FLAGS: --wait

notify-slack:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bonus: add Slack notification, similar to what's done in another workflow:

notify-slack-pwa-ext:
needs: [run-generator-retail-app-ext]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Send GitHub Action data to Slack workflow (Generated)
id: slack-success
if: ${{ github.event_name == 'schedule' && needs.run-generator-retail-app-ext.result == 'success' }}
uses: slackapi/slack-github-action@v1.23.0
with:
payload: |
{
"message": "✅ All PWA Kit ext E2E tests passed!"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Send GitHub Action data to Slack workflow (Generated)
id: slack-failure
if: ${{ github.event_name == 'schedule' && needs.run-generator-retail-app-ext.result != 'success' }}
uses: slackapi/slack-github-action@v1.23.0
with:
payload: |
{
"message": "❌ One or more PWA Kit ext E2E tests failed! (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

@vmarta vmarta marked this pull request as ready for review August 15, 2025 23:20
@vmarta vmarta requested a review from a team as a code owner August 15, 2025 23:20
@vmarta vmarta requested review from shethj and vcua-mobify August 15, 2025 23:21
@vmarta vmarta merged commit 4609936 into develop Aug 18, 2025
44 checks passed
@vmarta vmarta deleted the vm/fix-ci-perf-workflow branch August 18, 2025 17:59
sf-deepali-bharmal added a commit that referenced this pull request Aug 19, 2025
* Added cursor rules

* Rules updated

* Rules updated

* Updated Readme document

* Updated rules

* updated rules

* Cursor Rules for generating components

* Added MCP rules for Component creation

* @W-18737391 Add developemnt guidelines and page creation rules

* remove from .cursor/rules folder

* update rule

* condense guideliens

* update changelog

* update rule to help pattern match

* Cursor rules and cleanup of tool

* Deleting from the monorepo

* skip changelog

* Update CHANGELOG.md

* bump versions

* Bump versions in mcp server

* added cursor rules

* Added options for other

* move cursor rules to root

* move cursor rules to root

* revert change log

* Cursor rules for creating new component

* nested cursor rules

* move to nested rules location

* revert create mobify app js

* Initial Commit

Add initGit option
Update readme for create app tool
Always use latest for create app npx package version.

* Change when git init is run

also added basic gitignore for non-extension projects

* Update CHANGELOG.md

* Fix tests

* Rename pwa-kit-mcp project

* Update server.js

* Include bin entry in package.json

* update changelog.md

* update changelog.md

* Fix dependencies etc

* Add example with output dir

* remove duplicated rules under assets

* @W-19065116 fix formating issue

* Punctuation fix in readme

* @W-19054407 BOPIS fix bundle inventory and child pickup selection (#2823)

* @W-19054407 BOPIS fix bundle inventory and child pickup selection

* @W-19054407 BOPIS fix bundle inventory and child pickup selection changlelog

* Revert "@W-19054407 BOPIS fix bundle inventory and child pickup selection changlelog"

This reverts commit f5be70b.

* @W-19054407 BOPIS changelog update

---------

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* Update program.json

PR feedback on description.

Signed-off-by: Ben Chypak <bchypak@mobify.com>

* @W-19053749: Updated changelog to match new accepted style (#2837)

* Updated changelog

* update changelog

* revert development guidelines changes

* revert development guidelines changes

* Rename package to pwa-kit-mcp

* Update server json in readme

* Update readme and bump version

* Ensure the latest version is used in readme example

* Version align the mcp server with the platform version

* Use --initGit flag and test for .git/ creation

* Add flag both commands for template and presets

* Ensure gitignore is created

* Ensure default command includes --initGit

* Update base command

* @W-19045349 Add better error handling for Datacloud (#2811)

* Add better error handling for Datacloud

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update datacloud-mock-data.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Add new dataCloudAPI config

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update datacloud-mock-data.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Refactored to decrease duplicate code

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Fix prettier issues

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Remove comments

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Sync datacloud api values (#2843)

* Update CHANGELOG.md

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

---------

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>

* qa prompt

* update

* encapulate rule copy logic

* update e2e test to verify .cursor folder is generated

* feat: add feature flag to enable/disable partial hydration @W-19082948 (#2846)

* update changelog

* Bump versions

* Clean up changelogs

* Update usid expiry to match refresh_token expiry

* Linting fix

* Update changelog

* Better prompting for cursor and create app program

* Update packages/commerce-sdk-react/src/auth/index.ts

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>

* Add unit tests for usid expiry

* Remove overlapping test cases

* update commerce-sdk-react

* update changelog

* bump version

* bump develop to next dev version

* Update changelogs

* Change version number

* Update readme

* Move tools to tools folder

* Clean up files/folders, create new tool folder.

* Lint

* A11y tests - Handle dynamic aria labels generated by chakra UI (#2864)

* Handle dynamic aria labels generated by chakra UI

* improve sanitization

---------

Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>

* initial implementation of create page mcp tool

* fix

* support open url

* fix the import

* update README and changelog

* Modified create page mcp tool

* Added Image Componentsupport to Create page MCP tool

* Fixed failing tests

* Added new and fixed failing tests and corrected linting issues

* Added new test and minor update to system prompt

* Updated image component functionality

* Updated system prompt

* Fixed routes issue

* Added tests and comments

* Fixed merge conflicts and moved cursor to retail-react-app

* skip changelog

* Removed unused const

* Addressed comments

* Update reading expiry time for usid

* Removed the cursor rule

* Update codeowners file to include ownership for specific features (#2921)

* Update codeowners

* @W-18895609: 🚀 Shopper Agent Experience v3.0 (#2658)

* feat: shopper agent experience v3.0

* fix: enabling streaming (#2911)

* Committing for Rules and cleanup

* skip changelog

* Fixed tests

* Remove reference to claude and clean up readme

* Update CHANGELOG.md

* Lint fix

* Addressed comments

* Make development section more robust.

* Removed the flex hardcode in log message

* Fixing Page Tool

* Fixing Linter

* Updating the Page tool

* Fix eslint discoverability in the monorepo (@W-19068681@) (#2927)

* Attempt at fixing eslint discoverability in the monorepo

* Support other packages

* Another approach: centralize the eslint dependencies

* Add a script to sync eslint stuffs to the root

* Update package lock files

* Move timing of script to preinstall

* Update package lock files

* No need for this documentation

* Empty commit

* Simplify the script's logic

* Reverting changes for Page tool

* Added comment back

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Fix link

* Reverting the test change

* Update package description

* Remove folder structure section

* @W-19179026: disable streaming responses (#2964)

* Explicitly added example of what the path to your project might look like.

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* @W-19248293: logMCPMessage is broken

* @W-19248293: logMCPMessage is broken

* fix lint errors

* Committing for converting the createNewcomponent to use prompts instead of sessions and state

* Committing for server.js

* Committing for server.js

* Committing for server.js

* Review comments

* @W-19251796 MCP a11y performance tool format fix (#3003)

* Committing for unit tests

* @W-19251739 fix create-new-page-tool components import path

* @W-19183433: Add code owners validation to the CI pipeline (#2939)

* Update codeowners

* Update codeowners

* Update codeowners

* Add codeowners validator to the pipeline

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

---------

Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>

* fix import when extensible is on

* update change log

* Initial Commit

* remove bug fix change logs

* add inputs for absoulte path and not rely on env variables

* Normalize path separators to forward slashes for ES6 imports

* Extra check to disallow trusted-system request from proxy

* Added GIT version control MCP tool

* Initial Commit

* Review comments

* Fixing tests

* Review comments

* Review comments

* Update CHANGELOG.md

* Fix test description

* Move the statements around

* Test updates

* Update the string so that we can explicitly catch /trusted-system/token

* Add robots.txt to mrt-reference-app.

* Align versions with develop branch expectations

* Update CHANGELOG.md

* Create agent_checkout_rebase_action.yml (#3027)

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* [CI workflow] automate generating, configurating, and deploying build from `develop` branch (@W-19170135@) (#3058)

* Add new performance metrics workflow

* Add comment

* Disable some steps that are not needed

* Update todos

* Generate the project

* Avoid dirtying workspace and remove unnecessary step

* Tweak parameters

* Allow for internal short codes

* Align with the order of answers to the extensibility question

* Create update-csp-directives.js

* Rename script for clarity

* Schedule it to run before the performance tests

* Move constant into the config file

* Move CSP directives into the config file

* Make sure the corresponding .hbs files are up to date

* Now scripts looks for the config file

* Fix linting errors

* Add auto lint fixing

* For backward compatibility

* New step to add CSP directives

* Log where the file is at

* Add a new script

* Address a few todos

* Allow updating property with the same value

* Finish and clean up the workflow

* Move scripts and remove default value for config path

* No longer assume default value for config path

And no longer preserving comments

* No longer support null, undefined values

* Delete unnecessary comments

* Revert changes in retail-react-app

* Create a new generator preset

* Revert changes to the generator

* Add csp directives to ssr.js.hbs

* Update app/constants.js files to support the new preset

* No longer needing these scripts

* Workflow now uses the new generator preset

* No need to validate app in this case

* Add the preset to more files

* Revert some changes and keep one change

* Delete extra space

* Empty commit

* Simplify the handlebar template logic

* No more hardcoding the `generated-projects` path

* Move feature toggle for partial hydration into the config file

* Remove unnecessary tests

* Update CHANGELOG.md

* Make sure all ssr.js related files are in sync

* Fix linting error

I wanted to preserve the comma at the end of the line because otherwise, I'm worried that it's easy to overlook it later.

---------

Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>

* @W-18905383@ Decouple lint and bundle size GA workflows (#3084)

* Extract lint and bundle size workflows

* test: lower bundle size limit to test CI failure

This is a minimal change to verify the new bundle-size workflow
correctly fails when bundle size exceeds limits. Will be reverted.

* revert: restore original bundle size limit to 62 kB

Reverts the test change that lowered the bundle size limit from 62 kB to 50 kB.
The CI workflow decoupling test was successful.

* test: add unused variable to trigger lint error

Added an unused variable to test that the lint workflow fails correctly
while the test workflow continues to run independently.

* fix: remove test lint error

Removed the unused variable that was added to test lint workflow failure.
The lint workflow decoupling test was successful.

* test: add undefined variable to trigger actual lint error

Added undefined variable reference that causes ESLint 'no-undef' error,
not just a warning. This should cause the lint workflow to fail.

* revert: restore main.jsx to original clean state

Removed both the unused variable and undefined variable that were
added for testing lint workflow failure. File is now back to original state.

* clean: remove unused IS_NOT_FORK env variable from bundle-size workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the bundle-size workflow. Removing it
simplifies the workflow and allows bundle size checks to run on all
PRs including those from forks, which is beneficial for code quality.

* clean: remove unused IS_NOT_FORK env variable from lint workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the lint workflow. Removing it simplifies
the workflow and allows linting checks to run on all PRs including
those from forks, which is beneficial for code quality.

* Make the mcp server indipendent

* CI performance workflow: fix the deploy step (@W-19170135@) (#3091)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Minor Cleanup

* CI perf workflow: fix the deploy step.. take two (@W-19345469@) (#3115)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update credentials

* Add Slack notification

---------

Signed-off-by: yhsieh1 <yhsieh@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>
Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: Yuming Hsieh <yhsieh@salesforce.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>
Co-authored-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Shailesh Zirpe <szirpe+sf@salesforce.com>
Co-authored-by: Steffen Eckardt <3235219+seckardt@users.noreply.github.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: Joel Uong <joel.uong@salesforce.com>
Co-authored-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>
Co-authored-by: Shailesh Zirpe <42553862+szirpesf@users.noreply.github.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: atekur <atekur@salesforce.com>
Co-authored-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com>
Co-authored-by: Ujwala <59447810+unandyala@users.noreply.github.com>
Co-authored-by: Avinash Kasipathy <akasipathy@salesforce.com>
Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>
Co-authored-by: jitendra.bothra <jitendra.bothra@salesforce.com>
Co-authored-by: jbothra-sf <152039392+jbothra-sf@users.noreply.github.com>
Co-authored-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
ddiazccrz added a commit that referenced this pull request Aug 20, 2025
* Include bin entry in package.json

* update changelog.md

* update changelog.md

* Fix dependencies etc

* Add example with output dir

* remove duplicated rules under assets

* @W-19065116 fix formating issue

* Punctuation fix in readme

* @W-19054407 BOPIS fix bundle inventory and child pickup selection (#2823)

* @W-19054407 BOPIS fix bundle inventory and child pickup selection

* @W-19054407 BOPIS fix bundle inventory and child pickup selection changlelog

* Revert "@W-19054407 BOPIS fix bundle inventory and child pickup selection changlelog"

This reverts commit f5be70b.

* @W-19054407 BOPIS changelog update

---------

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* Update program.json

PR feedback on description.

Signed-off-by: Ben Chypak <bchypak@mobify.com>

* @W-19053749: Updated changelog to match new accepted style (#2837)

* Updated changelog

* update changelog

* revert development guidelines changes

* revert development guidelines changes

* Rename package to pwa-kit-mcp

* Update server json in readme

* Update readme and bump version

* Ensure the latest version is used in readme example

* Version align the mcp server with the platform version

* Use --initGit flag and test for .git/ creation

* Add flag both commands for template and presets

* Ensure gitignore is created

* Ensure default command includes --initGit

* Update base command

* @W-19045349 Add better error handling for Datacloud (#2811)

* Add better error handling for Datacloud

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update datacloud-mock-data.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Add new dataCloudAPI config

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update use-datacloud.test.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update datacloud-mock-data.js

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Refactored to decrease duplicate code

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Fix prettier issues

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Remove comments

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Sync datacloud api values (#2843)

* Update CHANGELOG.md

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>

---------

Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>

* qa prompt

* update

* encapulate rule copy logic

* update e2e test to verify .cursor folder is generated

* feat: add feature flag to enable/disable partial hydration @W-19082948 (#2846)

* update changelog

* Bump versions

* Clean up changelogs

* Update usid expiry to match refresh_token expiry

* Linting fix

* Update changelog

* Better prompting for cursor and create app program

* Update packages/commerce-sdk-react/src/auth/index.ts

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>

* Add unit tests for usid expiry

* Remove overlapping test cases

* update commerce-sdk-react

* update changelog

* bump version

* bump develop to next dev version

* Update changelogs

* Change version number

* Update readme

* Move tools to tools folder

* Clean up files/folders, create new tool folder.

* Lint

* A11y tests - Handle dynamic aria labels generated by chakra UI (#2864)

* Handle dynamic aria labels generated by chakra UI

* improve sanitization

---------

Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>

* initial implementation of create page mcp tool

* fix

* support open url

* fix the import

* update README and changelog

* Modified create page mcp tool

* Added Image Componentsupport to Create page MCP tool

* Fixed failing tests

* Added new and fixed failing tests and corrected linting issues

* Added new test and minor update to system prompt

* Updated image component functionality

* Updated system prompt

* Fixed routes issue

* Added tests and comments

* Fixed merge conflicts and moved cursor to retail-react-app

* skip changelog

* Removed unused const

* Addressed comments

* Update reading expiry time for usid

* Removed the cursor rule

* Update codeowners file to include ownership for specific features (#2921)

* Update codeowners

* @W-18895609: 🚀 Shopper Agent Experience v3.0 (#2658)

* feat: shopper agent experience v3.0

* fix: enabling streaming (#2911)

* Committing for Rules and cleanup

* skip changelog

* Fixed tests

* Remove reference to claude and clean up readme

* Update CHANGELOG.md

* Lint fix

* Addressed comments

* Make development section more robust.

* Removed the flex hardcode in log message

* Fixing Page Tool

* Fixing Linter

* Updating the Page tool

* Fix eslint discoverability in the monorepo (@W-19068681@) (#2927)

* Attempt at fixing eslint discoverability in the monorepo

* Support other packages

* Another approach: centralize the eslint dependencies

* Add a script to sync eslint stuffs to the root

* Update package lock files

* Move timing of script to preinstall

* Update package lock files

* No need for this documentation

* Empty commit

* Simplify the script's logic

* Reverting changes for Page tool

* Added comment back

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Fix link

* Reverting the test change

* Update package description

* Remove folder structure section

* @W-19179026: disable streaming responses (#2964)

* Explicitly added example of what the path to your project might look like.

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* @W-19248293: logMCPMessage is broken

* @W-19248293: logMCPMessage is broken

* fix lint errors

* Committing for converting the createNewcomponent to use prompts instead of sessions and state

* Committing for server.js

* Committing for server.js

* Committing for server.js

* Review comments

* @W-19251796 MCP a11y performance tool format fix (#3003)

* Committing for unit tests

* @W-19251739 fix create-new-page-tool components import path

* @W-19183433: Add code owners validation to the CI pipeline (#2939)

* Update codeowners

* Update codeowners

* Update codeowners

* Add codeowners validator to the pipeline

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

---------

Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>

* fix import when extensible is on

* update change log

* Initial Commit

* remove bug fix change logs

* add inputs for absoulte path and not rely on env variables

* Normalize path separators to forward slashes for ES6 imports

* Extra check to disallow trusted-system request from proxy

* Added GIT version control MCP tool

* Initial Commit

* Review comments

* Fixing tests

* Review comments

* Review comments

* Update CHANGELOG.md

* Fix test description

* Move the statements around

* Test updates

* Update the string so that we can explicitly catch /trusted-system/token

* Add robots.txt to mrt-reference-app.

* Align versions with develop branch expectations

* Update CHANGELOG.md

* Move trusted agent exception above the generic case

* Create agent_checkout_rebase_action.yml (#3027)

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* [CI workflow] automate generating, configurating, and deploying build from `develop` branch (@W-19170135@) (#3058)

* Add new performance metrics workflow

* Add comment

* Disable some steps that are not needed

* Update todos

* Generate the project

* Avoid dirtying workspace and remove unnecessary step

* Tweak parameters

* Allow for internal short codes

* Align with the order of answers to the extensibility question

* Create update-csp-directives.js

* Rename script for clarity

* Schedule it to run before the performance tests

* Move constant into the config file

* Move CSP directives into the config file

* Make sure the corresponding .hbs files are up to date

* Now scripts looks for the config file

* Fix linting errors

* Add auto lint fixing

* For backward compatibility

* New step to add CSP directives

* Log where the file is at

* Add a new script

* Address a few todos

* Allow updating property with the same value

* Finish and clean up the workflow

* Move scripts and remove default value for config path

* No longer assume default value for config path

And no longer preserving comments

* No longer support null, undefined values

* Delete unnecessary comments

* Revert changes in retail-react-app

* Create a new generator preset

* Revert changes to the generator

* Add csp directives to ssr.js.hbs

* Update app/constants.js files to support the new preset

* No longer needing these scripts

* Workflow now uses the new generator preset

* No need to validate app in this case

* Add the preset to more files

* Revert some changes and keep one change

* Delete extra space

* Empty commit

* Simplify the handlebar template logic

* No more hardcoding the `generated-projects` path

* Move feature toggle for partial hydration into the config file

* Remove unnecessary tests

* Update CHANGELOG.md

* Make sure all ssr.js related files are in sync

* Fix linting error

I wanted to preserve the comma at the end of the line because otherwise, I'm worried that it's easy to overlook it later.

---------

Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>

* Remove specific user not found message

* @W-18905383@ Decouple lint and bundle size GA workflows (#3084)

* Extract lint and bundle size workflows

* test: lower bundle size limit to test CI failure

This is a minimal change to verify the new bundle-size workflow
correctly fails when bundle size exceeds limits. Will be reverted.

* revert: restore original bundle size limit to 62 kB

Reverts the test change that lowered the bundle size limit from 62 kB to 50 kB.
The CI workflow decoupling test was successful.

* test: add unused variable to trigger lint error

Added an unused variable to test that the lint workflow fails correctly
while the test workflow continues to run independently.

* fix: remove test lint error

Removed the unused variable that was added to test lint workflow failure.
The lint workflow decoupling test was successful.

* test: add undefined variable to trigger actual lint error

Added undefined variable reference that causes ESLint 'no-undef' error,
not just a warning. This should cause the lint workflow to fail.

* revert: restore main.jsx to original clean state

Removed both the unused variable and undefined variable that were
added for testing lint workflow failure. File is now back to original state.

* clean: remove unused IS_NOT_FORK env variable from bundle-size workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the bundle-size workflow. Removing it
simplifies the workflow and allows bundle size checks to run on all
PRs including those from forks, which is beneficial for code quality.

* clean: remove unused IS_NOT_FORK env variable from lint workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the lint workflow. Removing it simplifies
the workflow and allows linting checks to run on all PRs including
those from forks, which is beneficial for code quality.

* Modify user not found responses from SLAS

* Make the mcp server indipendent

* User not found returns 200

* Handling for responses with no body

* CI performance workflow: fix the deploy step (@W-19170135@) (#3091)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Fix how 403s are sent now that selfHandleResponse is true

* Add test

* Remove unused message

* Changelog updates

* Update translations

* Remove test case that is no longer needed

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Minor Cleanup

* CI perf workflow: fix the deploy step.. take two (@W-19345469@) (#3115)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update credentials

* Add Slack notification

* Apply feedback

* lint

* Lockdown chakra-ui version to 2.6.0

* Update changelog

* Pin v2.7.0

* Bump vendor bundle size

* Update CHANGELOG.md

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update config.js

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update program.json

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update create-mobify-app.js

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update package-lock.json

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update package-lock.json

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update index.js

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update index.js

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update utils.js

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update utils.test.js

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update .gitignore

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Delete packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/.gitignore

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update package-lock.json

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>

* Fixed package-lock.json

* Updated package size to 333kb

---------

Signed-off-by: yhsieh1 <yhsieh@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>
Signed-off-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>
Signed-off-by: Daniel Diaz <38542490+ddiazccrz@users.noreply.github.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: Yuming Hsieh <yhsieh@salesforce.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Carson Campbell <170666418+carson-campbell@users.noreply.github.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Shailesh Zirpe <szirpe+sf@salesforce.com>
Co-authored-by: Steffen Eckardt <3235219+seckardt@users.noreply.github.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: Joel Uong <joel.uong@salesforce.com>
Co-authored-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>
Co-authored-by: Shailesh Zirpe <42553862+szirpesf@users.noreply.github.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: atekur <atekur@salesforce.com>
Co-authored-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com>
Co-authored-by: Ujwala <59447810+unandyala@users.noreply.github.com>
Co-authored-by: Avinash Kasipathy <akasipathy@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>
Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>
Co-authored-by: jitendra.bothra <jitendra.bothra@salesforce.com>
Co-authored-by: jbothra-sf <152039392+jbothra-sf@users.noreply.github.com>
Co-authored-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
sf-kyle-wright added a commit that referenced this pull request Aug 22, 2025
* Update CHANGELOG.md

* bump versions

* Bump versions in mcp server

* Initial Commit

Add initGit option
Update readme for create app tool
Always use latest for create app npx package version.

* Change when git init is run

also added basic gitignore for non-extension projects

* Update CHANGELOG.md

* Fix tests

* Rename pwa-kit-mcp project

* Update server.js

* Include bin entry in package.json

* Fix dependencies etc

* Add example with output dir

* Punctuation fix in readme

* Update program.json

PR feedback on description.

Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Rename package to pwa-kit-mcp

* Update server json in readme

* Update readme and bump version

* Ensure the latest version is used in readme example

* Version align the mcp server with the platform version

* Use --initGit flag and test for .git/ creation

* Add flag both commands for template and presets

* Ensure gitignore is created

* Ensure default command includes --initGit

* Update base command

* qa prompt

* update

* Bump versions

* Clean up changelogs

* Update usid expiry to match refresh_token expiry

* Linting fix

* Update changelog

* Better prompting for cursor and create app program

* Update packages/commerce-sdk-react/src/auth/index.ts

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>

* Add unit tests for usid expiry

* Remove overlapping test cases

* bump version

* bump develop to next dev version

* Update changelogs

* Change version number

* Update readme

* Move tools to tools folder

* Clean up files/folders, create new tool folder.

* Lint

* A11y tests - Handle dynamic aria labels generated by chakra UI (#2864)

* Handle dynamic aria labels generated by chakra UI

* improve sanitization

---------

Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>

* initial implementation of create page mcp tool

* fix

* support open url

* fix the import

* update README and changelog

* Modified create page mcp tool

* Added Image Componentsupport to Create page MCP tool

* Fixed failing tests

* Added new and fixed failing tests and corrected linting issues

* Added new test and minor update to system prompt

* Updated image component functionality

* Updated system prompt

* Fixed routes issue

* Added tests and comments

* Fixed merge conflicts and moved cursor to retail-react-app

* skip changelog

* Removed unused const

* Addressed comments

* Update reading expiry time for usid

* Removed the cursor rule

* Update codeowners file to include ownership for specific features (#2921)

* Update codeowners

* @W-18895609: 🚀 Shopper Agent Experience v3.0 (#2658)

* feat: shopper agent experience v3.0

* fix: enabling streaming (#2911)

* Committing for Rules and cleanup

* skip changelog

* Fixed tests

* Remove reference to claude and clean up readme

* Update CHANGELOG.md

* Lint fix

* Addressed comments

* Make development section more robust.

* Removed the flex hardcode in log message

* Fixing Page Tool

* Fixing Linter

* Updating the Page tool

* Fix eslint discoverability in the monorepo (@W-19068681@) (#2927)

* Attempt at fixing eslint discoverability in the monorepo

* Support other packages

* Another approach: centralize the eslint dependencies

* Add a script to sync eslint stuffs to the root

* Update package lock files

* Move timing of script to preinstall

* Update package lock files

* No need for this documentation

* Empty commit

* Simplify the script's logic

* Reverting changes for Page tool

* Added comment back

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Fix link

* Reverting the test change

* Update package description

* Remove folder structure section

* @W-19179026: disable streaming responses (#2964)

* Explicitly added example of what the path to your project might look like.

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* @W-19248293: logMCPMessage is broken

* @W-19248293: logMCPMessage is broken

* fix lint errors

* Committing for converting the createNewcomponent to use prompts instead of sessions and state

* Committing for server.js

* Committing for server.js

* Committing for server.js

* Review comments

* @W-19251796 MCP a11y performance tool format fix (#3003)

* Committing for unit tests

* @W-19251739 fix create-new-page-tool components import path

* @W-19183433: Add code owners validation to the CI pipeline (#2939)

* Update codeowners

* Update codeowners

* Update codeowners

* Add codeowners validator to the pipeline

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

---------

Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>

* fix import when extensible is on

* update change log

* Initial Commit

* remove bug fix change logs

* add inputs for absoulte path and not rely on env variables

* Normalize path separators to forward slashes for ES6 imports

* Extra check to disallow trusted-system request from proxy

* Added GIT version control MCP tool

* Initial Commit

* Review comments

* Fixing tests

* Review comments

* Review comments

* Update CHANGELOG.md

* Fix test description

* Move the statements around

* Test updates

* Update the string so that we can explicitly catch /trusted-system/token

* Add robots.txt to mrt-reference-app.

* Align versions with develop branch expectations

* Update CHANGELOG.md

* Move trusted agent exception above the generic case

* Create agent_checkout_rebase_action.yml (#3027)

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* [CI workflow] automate generating, configurating, and deploying build from `develop` branch (@W-19170135@) (#3058)

* Add new performance metrics workflow

* Add comment

* Disable some steps that are not needed

* Update todos

* Generate the project

* Avoid dirtying workspace and remove unnecessary step

* Tweak parameters

* Allow for internal short codes

* Align with the order of answers to the extensibility question

* Create update-csp-directives.js

* Rename script for clarity

* Schedule it to run before the performance tests

* Move constant into the config file

* Move CSP directives into the config file

* Make sure the corresponding .hbs files are up to date

* Now scripts looks for the config file

* Fix linting errors

* Add auto lint fixing

* For backward compatibility

* New step to add CSP directives

* Log where the file is at

* Add a new script

* Address a few todos

* Allow updating property with the same value

* Finish and clean up the workflow

* Move scripts and remove default value for config path

* No longer assume default value for config path

And no longer preserving comments

* No longer support null, undefined values

* Delete unnecessary comments

* Revert changes in retail-react-app

* Create a new generator preset

* Revert changes to the generator

* Add csp directives to ssr.js.hbs

* Update app/constants.js files to support the new preset

* No longer needing these scripts

* Workflow now uses the new generator preset

* No need to validate app in this case

* Add the preset to more files

* Revert some changes and keep one change

* Delete extra space

* Empty commit

* Simplify the handlebar template logic

* No more hardcoding the `generated-projects` path

* Move feature toggle for partial hydration into the config file

* Remove unnecessary tests

* Update CHANGELOG.md

* Make sure all ssr.js related files are in sync

* Fix linting error

I wanted to preserve the comma at the end of the line because otherwise, I'm worried that it's easy to overlook it later.

---------

Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>

* Remove specific user not found message

* @W-18905383@ Decouple lint and bundle size GA workflows (#3084)

* Extract lint and bundle size workflows

* test: lower bundle size limit to test CI failure

This is a minimal change to verify the new bundle-size workflow
correctly fails when bundle size exceeds limits. Will be reverted.

* revert: restore original bundle size limit to 62 kB

Reverts the test change that lowered the bundle size limit from 62 kB to 50 kB.
The CI workflow decoupling test was successful.

* test: add unused variable to trigger lint error

Added an unused variable to test that the lint workflow fails correctly
while the test workflow continues to run independently.

* fix: remove test lint error

Removed the unused variable that was added to test lint workflow failure.
The lint workflow decoupling test was successful.

* test: add undefined variable to trigger actual lint error

Added undefined variable reference that causes ESLint 'no-undef' error,
not just a warning. This should cause the lint workflow to fail.

* revert: restore main.jsx to original clean state

Removed both the unused variable and undefined variable that were
added for testing lint workflow failure. File is now back to original state.

* clean: remove unused IS_NOT_FORK env variable from bundle-size workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the bundle-size workflow. Removing it
simplifies the workflow and allows bundle size checks to run on all
PRs including those from forks, which is beneficial for code quality.

* clean: remove unused IS_NOT_FORK env variable from lint workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the lint workflow. Removing it simplifies
the workflow and allows linting checks to run on all PRs including
those from forks, which is beneficial for code quality.

* Modify user not found responses from SLAS

* Make the mcp server indipendent

* User not found returns 200

* Handling for responses with no body

* CI performance workflow: fix the deploy step (@W-19170135@) (#3091)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Fix how 403s are sent now that selfHandleResponse is true

* Add test

* Remove unused message

* Changelog updates

* Update translations

* Remove test case that is no longer needed

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Minor Cleanup

* CI perf workflow: fix the deploy step.. take two (@W-19345469@) (#3115)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update credentials

* Add Slack notification

* Apply feedback

* lint

* Lockdown chakra-ui version to 2.6.0

* Update changelog

* Pin v2.7.0

* Bump vendor bundle size

* W-19396339 add back in tests that were accidentally removed in conflict

* W-19396339 lint fix

* W-19396339 package size

---------

Signed-off-by: Ben Chypak <bchypak@mobify.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Shailesh Zirpe <szirpe+sf@salesforce.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>
Co-authored-by: Shailesh Zirpe <42553862+szirpesf@users.noreply.github.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: atekur <atekur@salesforce.com>
Co-authored-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com>
Co-authored-by: Ujwala <59447810+unandyala@users.noreply.github.com>
Co-authored-by: Avinash Kasipathy <akasipathy@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: Yuming Hsieh <yhsieh@salesforce.com>
Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>
Co-authored-by: jitendra.bothra <jitendra.bothra@salesforce.com>
Co-authored-by: jbothra-sf <152039392+jbothra-sf@users.noreply.github.com>
Co-authored-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
sf-kyle-wright added a commit that referenced this pull request Sep 9, 2025
* Modify user not found responses from SLAS

* Update MRT API secret

* Remove stringify from fetch body

* remove unnecessary change

* Fix json formatting for payload

* Handle bash escaping

* Fix command

* FIx args

* Make the mcp server indipendent

* User not found returns 200

* Handling for responses with no body

* CI performance workflow: fix the deploy step (@W-19170135@) (#3091)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Set env vars to dynamic MRT target

* Debug invalid key

* Pass in cloud origin to env-var API

* Pass in cloud origin to e2e-pr workflow

* Added tests for update-mrt-target

* Remove redundant tests

* Remove unused functions

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Fix how 403s are sent now that selfHandleResponse is true

* Add test

* Remove unused message

* Changelog updates

* Update translations

* Remove test case that is no longer needed

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Minor Cleanup

* CI perf workflow: fix the deploy step.. take two (@W-19345469@) (#3115)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update credentials

* Add Slack notification

* make actions description clearer

* Use overwrite for env vars

* Apply feedback

* lint

* Fix duration issue

* Remove changelog from retail app

* Modify changelog

* Lockdown chakra-ui version to 2.6.0

* Update changelog

* Pin v2.7.0

* Bump vendor bundle size

* @W-18760799 - E2E tests for SSR logs with B3-Traceid header (#3028)

* created e2e tests for SSR logs with B3-Traceid header

* reverting a package.json change

* Clean up tests

* Update CHANGELOG.md

* Clean up comments and remove similar test

* Update failing test

---------

Co-authored-by: Jang ho Jung <jangho.jung@salesforce.com>

* A changelog change

* Updates supporting SERVER_TIMING env var, fix x-b3 headers sometimes not showing up, error message included in logging, linting

* Bring back performanceTimer.log

* Skip deleting dwsid on login for if hybrid auth is enabled

* Update changelog

* Fix whitespace linting

* Update implementation and add unit tests

* Remove redundant tests

* Update test description

* Update hbs templates to include hybridAuthEnabled

* CI trigger

* CI trigger

* Update CHANGELOG.md

* Refactor update MRT target

* Fix incorrect project slug

* Fix filename

* Remove console.log

* Update tests and add samples

* FIx linting

* Add dotenv to e2e-scripts package.json

* @W-19265242@ Configurable base paths for /mobify routes (PWA Kit 3.12 version) (#2892)

* Initial restore of base path PR

* Rename path functions

* Update commerce-sdk-react callbacks and slas private proxy endpoint

* Big update

* Replace getAppOrigin calls with useAppOrigin

* WIP - Filter the base path from all incoming requests to the server

* Remove base path from proxied requests + cleanup

* Use functions for proxy pathRewrite

* A bit of PR cleanup

* Lint cleanup

* More cleanup

* Fix tests

* Fix issues found by CI

* Lint for override asset

* Turn off slas private proxy

* Cleanup comments

* Update changelog entries

* Fix config

* Limit base path removal to /mobify or express route

* Adjust express filter

* Lint

* Fix dependency in generated apps

* Comment cleanup

* use envBasePath as a feature toggle for enabling the base path middleware

* Enable basepath removal middlware to handle express routes defined as regexes

* Apply suggestions

* Adjust app config template

* Use pathToRegexp rather than having manual regex interpretation

* escape the base path to not allow regex

* refactor

* Remove ?* from callback url

* Handle ? characters in express route

* Cache express regexes

* Handle properly formatted ()? express groups

* Comment cleanup

* Apply suggestions to reduce use of regex

* Add base path to social login redirectUri

* Lint

* Update comments and test

* Update test with more realistic scenario

* Remove path-to-regexp

* Refine convertExpressRouteToRegex further

* Move express route to regex logic to separate file

* Adjust logger and lock file

* Revert package-lock changes

---------

Signed-off-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* Link test runs to acquired MRT target

* Don't pass cloud origin to create_mrt

* Update project slug

* Restrict test runs to .spec.js files

* Parallelize test runs for e2e and a11y

* Parallelize only the test runs

* Revert parallel runs

* Run playwright tests in parallel

* Optimize test run

* Optimize playwright browser installs

* Optimize test run

* Fix linting

* Rename job

* Clean up test run command

* Document parallel runs

* Add docs for playwright workers

* Update prettier settings

* Clean up comments

* Fix playwright test command

* Fix test run command

* Address some feedback

* linting

* Decrease bundlesize by separating server-side logic

* Remove stack traces

* Update CHANGELOG.md

* Remove unused package

* Update CHANGELOG.md

* commerce-sdk-react v4 - Remove deprecated properties + fix private client proxy endpoint prop name (#3177)

* Clean up useDNT deprecations

* Breaking: remove /mobify path constants from commerce-sdk-react

* Fix private client prop name

* Update changelogs

* Update CHANGELOG.md

* update more places that called updateDNT

* Update a11y snapshots to include unique landmark for toasts

* Revert peridot from a11y snapshot

* Revert MRT flag

* Feat: Consume new OAS Isomorphic SDK (@W-19105545@) (#2879)

* refactor

* fix build issues

* trim uncessarry changes

* remove most usages of

* fix tests

* update test files

* fix unit tests

* Bump commerce-sdk-isomorphic

* Fix tests and lint errors

* Bump commerce-sdk-react major version

* Revert "Bump commerce-sdk-react major version"

This reverts commit a62fcdf.

* Bump bundle size

* Try with larger runner

* Update imports

* Update bootstrap config

* Update tsconfig

* Rename ShopperSeo directory to ShopperSEO & Fix test-commerce-sdk-react

* Clean up

* Major bump commerce-sdk-react

* Create CHANGELOG.md

* Remove changelog file from test-commerce-sdk-react

* PR Feedback

* PR Feedback address TODO

* PR Feedback use `helpers.authorizeIDP` instead of manual URL

* Use `ShopperLoginTypes.getPasswordResetTokenBodyType` in getPasswordResetToken

* Use `ShopperLoginTypes.resetPasswordBodyType` in resetPassword

* Use DATA_MAP token_type

* Use `loginRegisteredUserB2C` in register() and updateCustomerPassword()

* Restore original API interface for `authorizeIDP`, `loginIDPUser` and `authorizePasswordless`

* Restore original type names removing Public

* Restore `privateClient` parameter in `authorizeIDP`

---------

Signed-off-by: Adam Raya <adamraya@users.noreply.github.com>
Co-authored-by: Adam Raya Navarro <arayanavarro@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>

* Exit workflow if app validation fails

* Fix docs

* Fix project key

* [CI workflow] Send Slack notification to multiple channels (@W-19432819@) (#3182)

* Send Slack notification to multiple channels

* Add link to the MRT project

* Make sure to update all webhook url

* Rename job to be more accurate

* Debugging

* Revert "Debugging"

This reverts commit c7f6ef0.

* Inject sfdc_user_agent request header into all SCAPI requests (@W-18404859@) (#3183)

* Inject `sfdc_user_agent` request header

* Update App Generator pwa-kit-create-app hbs files

* Use package name pwa-kit-react-sdk and version in sfdc header

* Include headers in commerce-sdk-react auth request

* lint

* Rename utils file

* lint

* Fix import path in generated project

* Update Changelog.md

* PR Feedback

* PR Feedback

* Bump max bundle size (#3191)

* @W-18891305 MULTISHIP merge to develop (#3056)

* Apply more feedback

* linting

* more linting

* docs: Add missing period to JSDoc comment in page-designer utils

* Pin package version for @testing-library/user-event

* Set retail-react-app-test-project to be non-extensible

* Update changelog

* Update changelog

* Generate project outside the monorepo

* @W-19442561 - Fix Incorrectly Disabled Continue to Shipping Method Button for Multiship (#3199)

* W-19330454 - Release PWA Kit 3.12.0-preview.2 (#3193)

* bump versions and update changelogs

* Add breaking label to multi-ship changelog entry

* snyc to -preview.2

* Comment out problematic job

* Update e2e-pr.yml

* @W-19443375,@W-19350149 MULTISHIP fix address function mismatch and options promotions (#3203)

* @W-19451314 - Add ShipmentId to Create Shipment Body (#3211)

* Update CWD paths for generated tests

* CHeck test files

* [`develop` branch] Bump up the dev versions (#3208)

* Bump up dev versions

The previous dev versions have been "claimed", since they were accidentally published to npm. We need to use unclaimed dev versions for our local generator (create-mobify-app-dev.js) to work properly.

* This e2e package is meant to be private

* Update CHANGELOG.md

* Update package-lock.json

* Enable e2e-PR workflow

* Check retail app home

* Log retail_app_home

* Print MRT target json

* skip browser installs

* Fix retail app home

* Move setting retail app home to run tests step

* Remove node_modules from checks

* Set retail app home to process.env not GITHUB_ENV

* Enable tests

* Remove logging the json

* Uncomment the test run

* Temp reduce retries

* skip telemetry and a11y tests

* Add fallback to validate script

* Rewrite script to propagate errors

* Fix guest shopper checkout

* Fix linting

* Update labels on checkout page

* Restore retry

* Move snapshots to slas client specific dir

* Split a11y snapshots for public/private clients

* Update e2e workflow a11y command

* Fix button label for payment info

* Fix validation script falirue

* Update package lock files

* Make sure that the generated-projects folder is created

* @W-19349040 MULTISHIP fix form default delivery option selection (#3217)

* Further refactoring

* Fix count_deps action so it knows where the generated project is

* Looks like on windows, we can run bash shell with front slashes

* @ W-19450629  feat: remove quantity selector from shipping methods preview cart in multi-ship (#3216)

* remove quantity selector from shipping methods preview cart in multi ship

* update change log

---------

Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>

* Fix non-extensible template to use correct passwordless login callback uri (#3222)

* Debug validation

* Debug validation

* Debug validation

* Remove console.logs

* Flip generator response options

* Update hover link test

* skip failing test

* Lint fix

* Document test skip

* Remove process.exit

* Throw err

* Remove debug step

* Check if monorepo is a dev version before publishing to npm (#3210)

* Check if monorepo is a dev version before publishing to npm

* Check env.IS_DEV_VERSION

* test step

* test

* Apply suggestion

* More test

* test

* test

* test

* use if block

* test

* test

* use quiet mode

* test

* test

* test

* test

* test

* test

* test

* Try this regex that's perhaps more compatible

* Re-enable other steps and clean up verification step

---------

Co-authored-by: Vincent Marta <vmarta@salesforce.com>

* Fix usage for Object.hasOwn

* Fix linting

* update the mcp tool name and readme

* Fix: Don't pass `code_challenge` if its undefined in `getPasswordResetToken` (#3228)

* add fix

* make code challenge optional

* lint

---------

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* resize the images

* update CHANGELOG.md

* @W-19364221 - Handle Removal of Last Address for Registered (#3231)

* @W-19327219: Update in isolation tests in MRT reference app (#3172)

* updated isolation API

* updated isolation testcases

* Cleanup of tool

* Added tests

* updated tool

* Gracefully handle when some config.app.* properties are missing (@W-19453183@) (#3230)

* Don't assume that config.app.* properties exist

* Don't assume that config.app.* properties exist

* Add todos

* Use the default config for Commerce Agent when necessary

* Debugging

* Move utils file to somewhere more upgradable and extensible

* No longer need these .hbs files

* Sync the corresponding .hbs files

* Fix import path

* Fix require path so it can work inside monorepo

* Refactor to make it easier to get commerce agent config

* Fix module error

Turns out that I can't mix both esm and commonjs ways.

* Sync the eslint comments

* Remove commented out code

* Update CHANGELOG.md

---------

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

* @W-19364130 feat: fix shipping costs summary mode pricing (#3240)

* fix shipping costs sumary mode

* update change log

* add clear annotation

* add test coverage

* update basket too

* update

* Handle OS specific filepaths in tests

* @W-19330454@ - Release PWA Kit 3.12.0-preview.3 (#3229)

* bump versions and update changelogs

* Add breaking label to multi-ship changelog entry

* snyc to -preview.2

* @W-19442561 - Fix Incorrectly Disabled Continue to Shipping Method Button for Multiship (#3199)

* @W-19443375,@W-19350149 MULTISHIP fix address function mismatch and options promotions (#3203)

* @W-19451314 - Add ShipmentId to Create Shipment Body (#3211)

* @W-19349040 MULTISHIP fix form default delivery option selection (#3217)

* @ W-19450629  feat: remove quantity selector from shipping methods preview cart in multi-ship (#3216)

* remove quantity selector from shipping methods preview cart in multi ship

* update change log

---------

Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>

* Fix non-extensible template to use correct passwordless login callback uri (#3222)

* Check if monorepo is a dev version before publishing to npm (#3210)

* Check if monorepo is a dev version before publishing to npm

* Check env.IS_DEV_VERSION

* test step

* test

* Apply suggestion

* More test

* test

* test

* test

* use if block

* test

* test

* use quiet mode

* test

* test

* test

* test

* test

* test

* test

* Try this regex that's perhaps more compatible

* Re-enable other steps and clean up verification step

---------

Co-authored-by: Vincent Marta <vmarta@salesforce.com>

* Merge pull request #3204 from SalesforceCommerceCloud/bugfix/pin-testing-library-version

@W-19443536 - [Bugfix] Fix unit test failures in generated projects

* Fix: Don't pass `code_challenge` if its undefined in `getPasswordResetToken` (#3228)

* add fix

* make code challenge optional

* lint

---------

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* @W-19364221 - Handle Removal of Last Address for Registered (#3231)

* Gracefully handle when some config.app.* properties are missing (@W-19453183@) (#3230)

* Don't assume that config.app.* properties exist

* Don't assume that config.app.* properties exist

* Add todos

* Use the default config for Commerce Agent when necessary

* Debugging

* Move utils file to somewhere more upgradable and extensible

* No longer need these .hbs files

* Sync the corresponding .hbs files

* Fix import path

* Fix require path so it can work inside monorepo

* Refactor to make it easier to get commerce agent config

* Fix module error

Turns out that I can't mix both esm and commonjs ways.

* Sync the eslint comments

* Remove commented out code

* Update CHANGELOG.md

---------

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

* @W-19364130 feat: fix shipping costs summary mode pricing (#3240)

* fix shipping costs sumary mode

* update change log

* add clear annotation

* add test coverage

* update basket too

* update

* bump versions to -preview.3

* Merge pull request #3214 from SalesforceCommerceCloud/restore-per-pr-e2e

Restore e2e-PR workflow

* Fix e2e-pr after incorrect merge resolution

* preview.3 not preview-3

---------

Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Signed-off-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: shauryemahajanSF <143645277+shauryemahajanSF@users.noreply.github.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>

* Enable OTEL test

* Bump up to final/stable versions

* Update package-lock.json

* Update changelog files

* Sync the mcp package with develop branch

* Remove this warning message (#3244)

It's not as helpful because it can confuse other people and cause false alarm.

One use of this function is to parse an optional environment variable. So if it is not set, it'll constantly prints out the warning message.

* Bump up to the next dev versions

* Update changelog files

* @W-19560496 merge develop to search feature

* @W-19560496 merge develop to search feature

* @W-19560496 merge develop to search feature

---------

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>
Signed-off-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Signed-off-by: jeremy-jung1 <140001271+jeremy-jung1@users.noreply.github.com>
Signed-off-by: Adam Raya <adamraya@users.noreply.github.com>
Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Signed-off-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jang ho Jung <jangho.jung@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: jeremy-jung1 <140001271+jeremy-jung1@users.noreply.github.com>
Co-authored-by: Larnelle Ankunda <lankunda@salesforce.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>
Co-authored-by: Adam Raya Navarro <arayanavarro@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
Co-authored-by: shauryemahajanSF <143645277+shauryemahajanSF@users.noreply.github.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: sf-xingquan-jin <xingquan.jin@salesforce.com>
Co-authored-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: Rahul Kumawat <rahulkkumawat2002@gmail.com>
sf-kyle-wright added a commit that referenced this pull request Sep 15, 2025
* W-18981837 search enhancements v1 moved branch (#2890)

* W-18981837 search enhancements v1 moved branch

* W-18981837 search enhancements v1 moved branch

* @W-18981744 Feature/search feature partity merge develop 8 1 (#2969)

* Update CHANGELOG.md

* bump versions

* Bump versions in mcp server

* Initial Commit

Add initGit option
Update readme for create app tool
Always use latest for create app npx package version.

* Change when git init is run

also added basic gitignore for non-extension projects

* Update CHANGELOG.md

* Fix tests

* Rename pwa-kit-mcp project

* Update server.js

* Include bin entry in package.json

* Fix dependencies etc

* Add example with output dir

* Punctuation fix in readme

* Update program.json

PR feedback on description.

Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Rename package to pwa-kit-mcp

* Update server json in readme

* Update readme and bump version

* Ensure the latest version is used in readme example

* Version align the mcp server with the platform version

* Use --initGit flag and test for .git/ creation

* Add flag both commands for template and presets

* Ensure gitignore is created

* Ensure default command includes --initGit

* Update base command

* qa prompt

* update

* Bump versions

* Clean up changelogs

* Update usid expiry to match refresh_token expiry

* Linting fix

* Update changelog

* Better prompting for cursor and create app program

* Update packages/commerce-sdk-react/src/auth/index.ts

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>

* Add unit tests for usid expiry

* Remove overlapping test cases

* bump version

* bump develop to next dev version

* Update changelogs

* Change version number

* Update readme

* Move tools to tools folder

* Clean up files/folders, create new tool folder.

* Lint

* A11y tests - Handle dynamic aria labels generated by chakra UI (#2864)

* Handle dynamic aria labels generated by chakra UI

* improve sanitization

---------

Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>

* initial implementation of create page mcp tool

* fix

* support open url

* fix the import

* update README and changelog

* Modified create page mcp tool

* Added Image Componentsupport to Create page MCP tool

* Fixed failing tests

* Added new and fixed failing tests and corrected linting issues

* Added new test and minor update to system prompt

* Updated image component functionality

* Updated system prompt

* Fixed routes issue

* Added tests and comments

* Fixed merge conflicts and moved cursor to retail-react-app

* skip changelog

* Removed unused const

* Addressed comments

* Update reading expiry time for usid

* Removed the cursor rule

* Update codeowners file to include ownership for specific features (#2921)

* Update codeowners

* @W-18895609: 🚀 Shopper Agent Experience v3.0 (#2658)

* feat: shopper agent experience v3.0

* fix: enabling streaming (#2911)

* Committing for Rules and cleanup

* skip changelog

* Fixed tests

* Lint fix

* Addressed comments

* Removed the flex hardcode in log message

* Fixing Page Tool

* Fixing Linter

* Updating the Page tool

* Fix eslint discoverability in the monorepo (@W-19068681@) (#2927)

* Attempt at fixing eslint discoverability in the monorepo

* Support other packages

* Another approach: centralize the eslint dependencies

* Add a script to sync eslint stuffs to the root

* Update package lock files

* Move timing of script to preinstall

* Update package lock files

* No need for this documentation

* Empty commit

* Simplify the script's logic

* Reverting changes for Page tool

* Added comment back

* Reverting the test change

* @W-19179026: disable streaming responses (#2964)

* @W-18981744 increase packages size CI build failing

---------

Signed-off-by: Ben Chypak <bchypak@mobify.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Shailesh Zirpe <szirpe+sf@salesforce.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>
Co-authored-by: Shailesh Zirpe <42553862+szirpesf@users.noreply.github.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: atekur <atekur@salesforce.com>
Co-authored-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com>
Co-authored-by: Ujwala <59447810+unandyala@users.noreply.github.com>
Co-authored-by: Avinash Kasipathy <akasipathy@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>

* @18981837 search suggestions enhancements v2 (#2901)

* @W-18981837 UX search changes

* @W-18981837 search suggestion

* @W-18981837 view all button

* W-18981837 search suggestions badges impl

* W-18981837 new tests and lint

* W-18981837 changelog

* @W-18981837 translations

* W-18981837 bundlesize ci error

* @W-18981837 only support string and boolean

* W-18981837 remove badges

* W-18981837 dynamic image

* @W-18981744 adjust widths

* @W-18981837 lint fix

* @W-18981837 expand required for images

* W-18981858 add tests and fix image/desc spacing issue (#3049)

* W-18981858 add tests and fix image/desc spacing issue

* W-18981858 fix linting

* W-18981858 chakra for widths

* W-18981858 chakra for widths

* @W-19396339 merge develop to feature (#3153)

* Update CHANGELOG.md

* bump versions

* Bump versions in mcp server

* Initial Commit

Add initGit option
Update readme for create app tool
Always use latest for create app npx package version.

* Change when git init is run

also added basic gitignore for non-extension projects

* Update CHANGELOG.md

* Fix tests

* Rename pwa-kit-mcp project

* Update server.js

* Include bin entry in package.json

* Fix dependencies etc

* Add example with output dir

* Punctuation fix in readme

* Update program.json

PR feedback on description.

Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Rename package to pwa-kit-mcp

* Update server json in readme

* Update readme and bump version

* Ensure the latest version is used in readme example

* Version align the mcp server with the platform version

* Use --initGit flag and test for .git/ creation

* Add flag both commands for template and presets

* Ensure gitignore is created

* Ensure default command includes --initGit

* Update base command

* qa prompt

* update

* Bump versions

* Clean up changelogs

* Update usid expiry to match refresh_token expiry

* Linting fix

* Update changelog

* Better prompting for cursor and create app program

* Update packages/commerce-sdk-react/src/auth/index.ts

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>

* Add unit tests for usid expiry

* Remove overlapping test cases

* bump version

* bump develop to next dev version

* Update changelogs

* Change version number

* Update readme

* Move tools to tools folder

* Clean up files/folders, create new tool folder.

* Lint

* A11y tests - Handle dynamic aria labels generated by chakra UI (#2864)

* Handle dynamic aria labels generated by chakra UI

* improve sanitization

---------

Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>

* initial implementation of create page mcp tool

* fix

* support open url

* fix the import

* update README and changelog

* Modified create page mcp tool

* Added Image Componentsupport to Create page MCP tool

* Fixed failing tests

* Added new and fixed failing tests and corrected linting issues

* Added new test and minor update to system prompt

* Updated image component functionality

* Updated system prompt

* Fixed routes issue

* Added tests and comments

* Fixed merge conflicts and moved cursor to retail-react-app

* skip changelog

* Removed unused const

* Addressed comments

* Update reading expiry time for usid

* Removed the cursor rule

* Update codeowners file to include ownership for specific features (#2921)

* Update codeowners

* @W-18895609: 🚀 Shopper Agent Experience v3.0 (#2658)

* feat: shopper agent experience v3.0

* fix: enabling streaming (#2911)

* Committing for Rules and cleanup

* skip changelog

* Fixed tests

* Remove reference to claude and clean up readme

* Update CHANGELOG.md

* Lint fix

* Addressed comments

* Make development section more robust.

* Removed the flex hardcode in log message

* Fixing Page Tool

* Fixing Linter

* Updating the Page tool

* Fix eslint discoverability in the monorepo (@W-19068681@) (#2927)

* Attempt at fixing eslint discoverability in the monorepo

* Support other packages

* Another approach: centralize the eslint dependencies

* Add a script to sync eslint stuffs to the root

* Update package lock files

* Move timing of script to preinstall

* Update package lock files

* No need for this documentation

* Empty commit

* Simplify the script's logic

* Reverting changes for Page tool

* Added comment back

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* Fix link

* Reverting the test change

* Update package description

* Remove folder structure section

* @W-19179026: disable streaming responses (#2964)

* Explicitly added example of what the path to your project might look like.

* Update packages/pwa-kit-mcp/README.md

Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Signed-off-by: Ben Chypak <bchypak@mobify.com>

* @W-19248293: logMCPMessage is broken

* @W-19248293: logMCPMessage is broken

* fix lint errors

* Committing for converting the createNewcomponent to use prompts instead of sessions and state

* Committing for server.js

* Committing for server.js

* Committing for server.js

* Review comments

* @W-19251796 MCP a11y performance tool format fix (#3003)

* Committing for unit tests

* @W-19251739 fix create-new-page-tool components import path

* @W-19183433: Add code owners validation to the CI pipeline (#2939)

* Update codeowners

* Update codeowners

* Update codeowners

* Add codeowners validator to the pipeline

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

* codeowners validator

---------

Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>

* fix import when extensible is on

* update change log

* Initial Commit

* remove bug fix change logs

* add inputs for absoulte path and not rely on env variables

* Normalize path separators to forward slashes for ES6 imports

* Extra check to disallow trusted-system request from proxy

* Added GIT version control MCP tool

* Initial Commit

* Review comments

* Fixing tests

* Review comments

* Review comments

* Update CHANGELOG.md

* Fix test description

* Move the statements around

* Test updates

* Update the string so that we can explicitly catch /trusted-system/token

* Add robots.txt to mrt-reference-app.

* Align versions with develop branch expectations

* Update CHANGELOG.md

* Move trusted agent exception above the generic case

* Create agent_checkout_rebase_action.yml (#3027)

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* [CI workflow] automate generating, configurating, and deploying build from `develop` branch (@W-19170135@) (#3058)

* Add new performance metrics workflow

* Add comment

* Disable some steps that are not needed

* Update todos

* Generate the project

* Avoid dirtying workspace and remove unnecessary step

* Tweak parameters

* Allow for internal short codes

* Align with the order of answers to the extensibility question

* Create update-csp-directives.js

* Rename script for clarity

* Schedule it to run before the performance tests

* Move constant into the config file

* Move CSP directives into the config file

* Make sure the corresponding .hbs files are up to date

* Now scripts looks for the config file

* Fix linting errors

* Add auto lint fixing

* For backward compatibility

* New step to add CSP directives

* Log where the file is at

* Add a new script

* Address a few todos

* Allow updating property with the same value

* Finish and clean up the workflow

* Move scripts and remove default value for config path

* No longer assume default value for config path

And no longer preserving comments

* No longer support null, undefined values

* Delete unnecessary comments

* Revert changes in retail-react-app

* Create a new generator preset

* Revert changes to the generator

* Add csp directives to ssr.js.hbs

* Update app/constants.js files to support the new preset

* No longer needing these scripts

* Workflow now uses the new generator preset

* No need to validate app in this case

* Add the preset to more files

* Revert some changes and keep one change

* Delete extra space

* Empty commit

* Simplify the handlebar template logic

* No more hardcoding the `generated-projects` path

* Move feature toggle for partial hydration into the config file

* Remove unnecessary tests

* Update CHANGELOG.md

* Make sure all ssr.js related files are in sync

* Fix linting error

I wanted to preserve the comma at the end of the line because otherwise, I'm worried that it's easy to overlook it later.

---------

Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>

* Remove specific user not found message

* @W-18905383@ Decouple lint and bundle size GA workflows (#3084)

* Extract lint and bundle size workflows

* test: lower bundle size limit to test CI failure

This is a minimal change to verify the new bundle-size workflow
correctly fails when bundle size exceeds limits. Will be reverted.

* revert: restore original bundle size limit to 62 kB

Reverts the test change that lowered the bundle size limit from 62 kB to 50 kB.
The CI workflow decoupling test was successful.

* test: add unused variable to trigger lint error

Added an unused variable to test that the lint workflow fails correctly
while the test workflow continues to run independently.

* fix: remove test lint error

Removed the unused variable that was added to test lint workflow failure.
The lint workflow decoupling test was successful.

* test: add undefined variable to trigger actual lint error

Added undefined variable reference that causes ESLint 'no-undef' error,
not just a warning. This should cause the lint workflow to fail.

* revert: restore main.jsx to original clean state

Removed both the unused variable and undefined variable that were
added for testing lint workflow failure. File is now back to original state.

* clean: remove unused IS_NOT_FORK env variable from bundle-size workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the bundle-size workflow. Removing it
simplifies the workflow and allows bundle size checks to run on all
PRs including those from forks, which is beneficial for code quality.

* clean: remove unused IS_NOT_FORK env variable from lint workflow

The IS_NOT_FORK environment variable was defined but never used in any
conditional statements within the lint workflow. Removing it simplifies
the workflow and allows linting checks to run on all PRs including
those from forks, which is beneficial for code quality.

* Modify user not found responses from SLAS

* Make the mcp server indipendent

* User not found returns 200

* Handling for responses with no body

* CI performance workflow: fix the deploy step (@W-19170135@) (#3091)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Fix how 403s are sent now that selfHandleResponse is true

* Add test

* Remove unused message

* Changelog updates

* Update translations

* Remove test case that is no longer needed

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Minor Cleanup

* CI perf workflow: fix the deploy step.. take two (@W-19345469@) (#3115)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update credentials

* Add Slack notification

* Apply feedback

* lint

* Lockdown chakra-ui version to 2.6.0

* Update changelog

* Pin v2.7.0

* Bump vendor bundle size

* W-19396339 add back in tests that were accidentally removed in conflict

* W-19396339 lint fix

* W-19396339 package size

---------

Signed-off-by: Ben Chypak <bchypak@mobify.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Shailesh Zirpe <szirpe+sf@salesforce.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>
Co-authored-by: Shailesh Zirpe <42553862+szirpesf@users.noreply.github.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: atekur <atekur@salesforce.com>
Co-authored-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com>
Co-authored-by: Ujwala <59447810+unandyala@users.noreply.github.com>
Co-authored-by: Avinash Kasipathy <akasipathy@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: Yuming Hsieh <yhsieh@salesforce.com>
Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>
Co-authored-by: jitendra.bothra <jitendra.bothra@salesforce.com>
Co-authored-by: jbothra-sf <152039392+jbothra-sf@users.noreply.github.com>
Co-authored-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>

* @W-19560496 sync feature with develop (#3257)

* Modify user not found responses from SLAS

* Update MRT API secret

* Remove stringify from fetch body

* remove unnecessary change

* Fix json formatting for payload

* Handle bash escaping

* Fix command

* FIx args

* Make the mcp server indipendent

* User not found returns 200

* Handling for responses with no body

* CI performance workflow: fix the deploy step (@W-19170135@) (#3091)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Set env vars to dynamic MRT target

* Debug invalid key

* Pass in cloud origin to env-var API

* Pass in cloud origin to e2e-pr workflow

* Added tests for update-mrt-target

* Remove redundant tests

* Remove unused functions

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Fix how 403s are sent now that selfHandleResponse is true

* Add test

* Remove unused message

* Changelog updates

* Update translations

* Remove test case that is no longer needed

* Update agent_checkout_rebase_action.yml

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>

* Minor Cleanup

* CI perf workflow: fix the deploy step.. take two (@W-19345469@) (#3115)

* CI perf workflow: fix the deploy step

Override the location of the .mobify credential file

* More robust fix

* Refactor the flags

* Add whitespace

* Update credentials

* Add Slack notification

* make actions description clearer

* Use overwrite for env vars

* Apply feedback

* lint

* Fix duration issue

* Remove changelog from retail app

* Modify changelog

* Lockdown chakra-ui version to 2.6.0

* Update changelog

* Pin v2.7.0

* Bump vendor bundle size

* @W-18760799 - E2E tests for SSR logs with B3-Traceid header (#3028)

* created e2e tests for SSR logs with B3-Traceid header

* reverting a package.json change

* Clean up tests

* Update CHANGELOG.md

* Clean up comments and remove similar test

* Update failing test

---------

Co-authored-by: Jang ho Jung <jangho.jung@salesforce.com>

* A changelog change

* Updates supporting SERVER_TIMING env var, fix x-b3 headers sometimes not showing up, error message included in logging, linting

* Bring back performanceTimer.log

* Skip deleting dwsid on login for if hybrid auth is enabled

* Update changelog

* Fix whitespace linting

* Update implementation and add unit tests

* Remove redundant tests

* Update test description

* Update hbs templates to include hybridAuthEnabled

* CI trigger

* CI trigger

* Update CHANGELOG.md

* Refactor update MRT target

* Fix incorrect project slug

* Fix filename

* Remove console.log

* Update tests and add samples

* FIx linting

* Add dotenv to e2e-scripts package.json

* @W-19265242@ Configurable base paths for /mobify routes (PWA Kit 3.12 version) (#2892)

* Initial restore of base path PR

* Rename path functions

* Update commerce-sdk-react callbacks and slas private proxy endpoint

* Big update

* Replace getAppOrigin calls with useAppOrigin

* WIP - Filter the base path from all incoming requests to the server

* Remove base path from proxied requests + cleanup

* Use functions for proxy pathRewrite

* A bit of PR cleanup

* Lint cleanup

* More cleanup

* Fix tests

* Fix issues found by CI

* Lint for override asset

* Turn off slas private proxy

* Cleanup comments

* Update changelog entries

* Fix config

* Limit base path removal to /mobify or express route

* Adjust express filter

* Lint

* Fix dependency in generated apps

* Comment cleanup

* use envBasePath as a feature toggle for enabling the base path middleware

* Enable basepath removal middlware to handle express routes defined as regexes

* Apply suggestions

* Adjust app config template

* Use pathToRegexp rather than having manual regex interpretation

* escape the base path to not allow regex

* refactor

* Remove ?* from callback url

* Handle ? characters in express route

* Cache express regexes

* Handle properly formatted ()? express groups

* Comment cleanup

* Apply suggestions to reduce use of regex

* Add base path to social login redirectUri

* Lint

* Update comments and test

* Update test with more realistic scenario

* Remove path-to-regexp

* Refine convertExpressRouteToRegex further

* Move express route to regex logic to separate file

* Adjust logger and lock file

* Revert package-lock changes

---------

Signed-off-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* Link test runs to acquired MRT target

* Don't pass cloud origin to create_mrt

* Update project slug

* Restrict test runs to .spec.js files

* Parallelize test runs for e2e and a11y

* Parallelize only the test runs

* Revert parallel runs

* Run playwright tests in parallel

* Optimize test run

* Optimize playwright browser installs

* Optimize test run

* Fix linting

* Rename job

* Clean up test run command

* Document parallel runs

* Add docs for playwright workers

* Update prettier settings

* Clean up comments

* Fix playwright test command

* Fix test run command

* Address some feedback

* linting

* Decrease bundlesize by separating server-side logic

* Remove stack traces

* Update CHANGELOG.md

* Remove unused package

* Update CHANGELOG.md

* commerce-sdk-react v4 - Remove deprecated properties + fix private client proxy endpoint prop name (#3177)

* Clean up useDNT deprecations

* Breaking: remove /mobify path constants from commerce-sdk-react

* Fix private client prop name

* Update changelogs

* Update CHANGELOG.md

* update more places that called updateDNT

* Update a11y snapshots to include unique landmark for toasts

* Revert peridot from a11y snapshot

* Revert MRT flag

* Feat: Consume new OAS Isomorphic SDK (@W-19105545@) (#2879)

* refactor

* fix build issues

* trim uncessarry changes

* remove most usages of

* fix tests

* update test files

* fix unit tests

* Bump commerce-sdk-isomorphic

* Fix tests and lint errors

* Bump commerce-sdk-react major version

* Revert "Bump commerce-sdk-react major version"

This reverts commit a62fcdf.

* Bump bundle size

* Try with larger runner

* Update imports

* Update bootstrap config

* Update tsconfig

* Rename ShopperSeo directory to ShopperSEO & Fix test-commerce-sdk-react

* Clean up

* Major bump commerce-sdk-react

* Create CHANGELOG.md

* Remove changelog file from test-commerce-sdk-react

* PR Feedback

* PR Feedback address TODO

* PR Feedback use `helpers.authorizeIDP` instead of manual URL

* Use `ShopperLoginTypes.getPasswordResetTokenBodyType` in getPasswordResetToken

* Use `ShopperLoginTypes.resetPasswordBodyType` in resetPassword

* Use DATA_MAP token_type

* Use `loginRegisteredUserB2C` in register() and updateCustomerPassword()

* Restore original API interface for `authorizeIDP`, `loginIDPUser` and `authorizePasswordless`

* Restore original type names removing Public

* Restore `privateClient` parameter in `authorizeIDP`

---------

Signed-off-by: Adam Raya <adamraya@users.noreply.github.com>
Co-authored-by: Adam Raya Navarro <arayanavarro@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>

* Exit workflow if app validation fails

* Fix docs

* Fix project key

* [CI workflow] Send Slack notification to multiple channels (@W-19432819@) (#3182)

* Send Slack notification to multiple channels

* Add link to the MRT project

* Make sure to update all webhook url

* Rename job to be more accurate

* Debugging

* Revert "Debugging"

This reverts commit c7f6ef0.

* Inject sfdc_user_agent request header into all SCAPI requests (@W-18404859@) (#3183)

* Inject `sfdc_user_agent` request header

* Update App Generator pwa-kit-create-app hbs files

* Use package name pwa-kit-react-sdk and version in sfdc header

* Include headers in commerce-sdk-react auth request

* lint

* Rename utils file

* lint

* Fix import path in generated project

* Update Changelog.md

* PR Feedback

* PR Feedback

* Bump max bundle size (#3191)

* @W-18891305 MULTISHIP merge to develop (#3056)

* Apply more feedback

* linting

* more linting

* docs: Add missing period to JSDoc comment in page-designer utils

* Pin package version for @testing-library/user-event

* Set retail-react-app-test-project to be non-extensible

* Update changelog

* Update changelog

* Generate project outside the monorepo

* @W-19442561 - Fix Incorrectly Disabled Continue to Shipping Method Button for Multiship (#3199)

* W-19330454 - Release PWA Kit 3.12.0-preview.2 (#3193)

* bump versions and update changelogs

* Add breaking label to multi-ship changelog entry

* snyc to -preview.2

* Comment out problematic job

* Update e2e-pr.yml

* @W-19443375,@W-19350149 MULTISHIP fix address function mismatch and options promotions (#3203)

* @W-19451314 - Add ShipmentId to Create Shipment Body (#3211)

* Update CWD paths for generated tests

* CHeck test files

* [`develop` branch] Bump up the dev versions (#3208)

* Bump up dev versions

The previous dev versions have been "claimed", since they were accidentally published to npm. We need to use unclaimed dev versions for our local generator (create-mobify-app-dev.js) to work properly.

* This e2e package is meant to be private

* Update CHANGELOG.md

* Update package-lock.json

* Enable e2e-PR workflow

* Check retail app home

* Log retail_app_home

* Print MRT target json

* skip browser installs

* Fix retail app home

* Move setting retail app home to run tests step

* Remove node_modules from checks

* Set retail app home to process.env not GITHUB_ENV

* Enable tests

* Remove logging the json

* Uncomment the test run

* Temp reduce retries

* skip telemetry and a11y tests

* Add fallback to validate script

* Rewrite script to propagate errors

* Fix guest shopper checkout

* Fix linting

* Update labels on checkout page

* Restore retry

* Move snapshots to slas client specific dir

* Split a11y snapshots for public/private clients

* Update e2e workflow a11y command

* Fix button label for payment info

* Fix validation script falirue

* Update package lock files

* Make sure that the generated-projects folder is created

* @W-19349040 MULTISHIP fix form default delivery option selection (#3217)

* Further refactoring

* Fix count_deps action so it knows where the generated project is

* Looks like on windows, we can run bash shell with front slashes

* @ W-19450629  feat: remove quantity selector from shipping methods preview cart in multi-ship (#3216)

* remove quantity selector from shipping methods preview cart in multi ship

* update change log

---------

Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>

* Fix non-extensible template to use correct passwordless login callback uri (#3222)

* Debug validation

* Debug validation

* Debug validation

* Remove console.logs

* Flip generator response options

* Update hover link test

* skip failing test

* Lint fix

* Document test skip

* Remove process.exit

* Throw err

* Remove debug step

* Check if monorepo is a dev version before publishing to npm (#3210)

* Check if monorepo is a dev version before publishing to npm

* Check env.IS_DEV_VERSION

* test step

* test

* Apply suggestion

* More test

* test

* test

* test

* use if block

* test

* test

* use quiet mode

* test

* test

* test

* test

* test

* test

* test

* Try this regex that's perhaps more compatible

* Re-enable other steps and clean up verification step

---------

Co-authored-by: Vincent Marta <vmarta@salesforce.com>

* Fix usage for Object.hasOwn

* Fix linting

* update the mcp tool name and readme

* Fix: Don't pass `code_challenge` if its undefined in `getPasswordResetToken` (#3228)

* add fix

* make code challenge optional

* lint

---------

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* resize the images

* update CHANGELOG.md

* @W-19364221 - Handle Removal of Last Address for Registered (#3231)

* @W-19327219: Update in isolation tests in MRT reference app (#3172)

* updated isolation API

* updated isolation testcases

* Cleanup of tool

* Added tests

* updated tool

* Gracefully handle when some config.app.* properties are missing (@W-19453183@) (#3230)

* Don't assume that config.app.* properties exist

* Don't assume that config.app.* properties exist

* Add todos

* Use the default config for Commerce Agent when necessary

* Debugging

* Move utils file to somewhere more upgradable and extensible

* No longer need these .hbs files

* Sync the corresponding .hbs files

* Fix import path

* Fix require path so it can work inside monorepo

* Refactor to make it easier to get commerce agent config

* Fix module error

Turns out that I can't mix both esm and commonjs ways.

* Sync the eslint comments

* Remove commented out code

* Update CHANGELOG.md

---------

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

* @W-19364130 feat: fix shipping costs summary mode pricing (#3240)

* fix shipping costs sumary mode

* update change log

* add clear annotation

* add test coverage

* update basket too

* update

* Handle OS specific filepaths in tests

* @W-19330454@ - Release PWA Kit 3.12.0-preview.3 (#3229)

* bump versions and update changelogs

* Add breaking label to multi-ship changelog entry

* snyc to -preview.2

* @W-19442561 - Fix Incorrectly Disabled Continue to Shipping Method Button for Multiship (#3199)

* @W-19443375,@W-19350149 MULTISHIP fix address function mismatch and options promotions (#3203)

* @W-19451314 - Add ShipmentId to Create Shipment Body (#3211)

* @W-19349040 MULTISHIP fix form default delivery option selection (#3217)

* @ W-19450629  feat: remove quantity selector from shipping methods preview cart in multi-ship (#3216)

* remove quantity selector from shipping methods preview cart in multi ship

* update change log

---------

Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>

* Fix non-extensible template to use correct passwordless login callback uri (#3222)

* Check if monorepo is a dev version before publishing to npm (#3210)

* Check if monorepo is a dev version before publishing to npm

* Check env.IS_DEV_VERSION

* test step

* test

* Apply suggestion

* More test

* test

* test

* test

* use if block

* test

* test

* use quiet mode

* test

* test

* test

* test

* test

* test

* test

* Try this regex that's perhaps more compatible

* Re-enable other steps and clean up verification step

---------

Co-authored-by: Vincent Marta <vmarta@salesforce.com>

* Merge pull request #3204 from SalesforceCommerceCloud/bugfix/pin-testing-library-version

@W-19443536 - [Bugfix] Fix unit test failures in generated projects

* Fix: Don't pass `code_challenge` if its undefined in `getPasswordResetToken` (#3228)

* add fix

* make code challenge optional

* lint

---------

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>

* @W-19364221 - Handle Removal of Last Address for Registered (#3231)

* Gracefully handle when some config.app.* properties are missing (@W-19453183@) (#3230)

* Don't assume that config.app.* properties exist

* Don't assume that config.app.* properties exist

* Add todos

* Use the default config for Commerce Agent when necessary

* Debugging

* Move utils file to somewhere more upgradable and extensible

* No longer need these .hbs files

* Sync the corresponding .hbs files

* Fix import path

* Fix require path so it can work inside monorepo

* Refactor to make it easier to get commerce agent config

* Fix module error

Turns out that I can't mix both esm and commonjs ways.

* Sync the eslint comments

* Remove commented out code

* Update CHANGELOG.md

---------

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

* @W-19364130 feat: fix shipping costs summary mode pricing (#3240)

* fix shipping costs sumary mode

* update change log

* add clear annotation

* add test coverage

* update basket too

* update

* bump versions to -preview.3

* Merge pull request #3214 from SalesforceCommerceCloud/restore-per-pr-e2e

Restore e2e-PR workflow

* Fix e2e-pr after incorrect merge resolution

* preview.3 not preview-3

---------

Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Signed-off-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: shauryemahajanSF <143645277+shauryemahajanSF@users.noreply.github.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>

* Enable OTEL test

* Bump up to final/stable versions

* Update package-lock.json

* Update changelog files

* Sync the mcp package with develop branch

* Remove this warning message (#3244)

It's not as helpful because it can confuse other people and cause false alarm.

One use of this function is to parse an optional environment variable. So if it is not set, it'll constantly prints out the warning message.

* Bump up to the next dev versions

* Update changelog files

* @W-19560496 merge develop to search feature

* @W-19560496 merge develop to search feature

* @W-19560496 merge develop to search feature

---------

Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>
Signed-off-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Signed-off-by: jeremy-jung1 <140001271+jeremy-jung1@users.noreply.github.com>
Signed-off-by: Adam Raya <adamraya@users.noreply.github.com>
Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Signed-off-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jang ho Jung <jangho.jung@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: jeremy-jung1 <140001271+jeremy-jung1@users.noreply.github.com>
Co-authored-by: Larnelle Ankunda <lankunda@salesforce.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>
Co-authored-by: Adam Raya Navarro <arayanavarro@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
Co-authored-by: shauryemahajanSF <143645277+shauryemahajanSF@users.noreply.github.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: sf-xingquan-jin <xingquan.jin@salesforce.com>
Co-authored-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: Rahul Kumawat <rahulkkumawat2002@gmail.com>

* @W-19593698 Search enhancements

* @W-19593698 Search enhancements

* @W-19593698 Search enhancements

* @W-19593698 Search enhancements

* @W-19593698 Search enhancements

* @W-19593698 Search enhancements address pr comments

* W-19396339 fix e2e test

---------

Signed-off-by: Ben Chypak <bchypak@mobify.com>
Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Signed-off-by: Nishant Sethunath <nsethunath+@salesforce.com>
Signed-off-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Signed-off-by: jeremy-jung1 <140001271+jeremy-jung1@users.noreply.github.com>
Signed-off-by: Adam Raya <adamraya@users.noreply.github.com>
Signed-off-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Signed-off-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@salesforce.com>
Co-authored-by: Ben Chypak <bchypak@mobify.com>
Co-authored-by: Shailesh Zirpe <szirpe+sf@salesforce.com>
Co-authored-by: Jainam Sheth <j.sheth@salesforce.com>
Co-authored-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: Alex Vuong <alex.vuong@salesforce.com>
Co-authored-by: Shailesh Zirpe <42553862+szirpesf@users.noreply.github.com>
Co-authored-by: wei-liu <wei.liu@salesforce.com>
Co-authored-by: atekur <atekur@salesforce.com>
Co-authored-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com>
Co-authored-by: Ujwala <59447810+unandyala@users.noreply.github.com>
Co-authored-by: Avinash Kasipathy <akasipathy@salesforce.com>
Co-authored-by: snilakandan <snilakandan@salesforce.com>
Co-authored-by: Vincent Marta <vmarta@salesforce.com>
Co-authored-by: snilakandan13 <119348013+snilakandan13@users.noreply.github.com>
Co-authored-by: Katia Hage <k.n.hage@salesforce.com>
Co-authored-by: patricksullivansf <100441292+patricksullivansf@users.noreply.github.com>
Co-authored-by: Yuming Hsieh <yhsieh@salesforce.com>
Co-authored-by: Brian Feister <47546998+bfeister@users.noreply.github.com>
Co-authored-by: jitendra.bothra <jitendra.bothra@salesforce.com>
Co-authored-by: jbothra-sf <152039392+jbothra-sf@users.noreply.github.com>
Co-authored-by: Nishant Sethunath <nsethunath+@salesforce.com>
Co-authored-by: Adam Raya <adamraya@users.noreply.github.com>
Co-authored-by: Jang ho Jung <jangho.jung@salesforce.com>
Co-authored-by: jeremy-jung1 <140001271+jeremy-jung1@users.noreply.github.com>
Co-authored-by: Larnelle Ankunda <lankunda@salesforce.com>
Co-authored-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>
Co-authored-by: Adam Raya Navarro <arayanavarro@salesforce.com>
Co-authored-by: shauryemahajanSF <143645277+shauryemahajanSF@users.noreply.github.com>
Co-authored-by: sf-xingquan-jin <xingquan.jin@salesforce.com>
Co-authored-by: sf-henry-semaganda <henry.semaganda@salesforce.com>
Co-authored-by: Rahul Kumawat <rahulkkumawat2002@gmail.com>
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.

4 participants