Skip to content

feat(platform-mock-api): restore the water sports search with restoreState j:KIT-6459 - #8782

Open
fbeaudoincoveo wants to merge 1 commit into
mainfrom
feat/KIT-6459-mock-restore-state
Open

fbeaudoincoveo wants to merge 1 commit into
mainfrom
feat/KIT-6459-mock-restore-state

Conversation

@fbeaudoincoveo

Copy link
Copy Markdown
Contributor

Jira

https://coveord.atlassian.net/browse/KIT-6459

Motivation

restoreState brings a commerce-search surface back to a saved search: query, page, page size, sort and facet selections, including the selected path of a category facet. Agent Gateway handles it, but the mock converse service ignored it, so the demo couldn't exercise a restore in mock mode.

Changes

@coveo/platform-mock-api

  • The water-sports search surface answers restoreState. Like the gateway, a restore replaces the surface's search with the snapshot instead of merging into it.
  • Facets are matched by field, as FacetRestore.facetId names them: ec_brand values, the ec_price range, and the ec_category path.
  • The query summary shows the restored query. The mock's catalog doesn't filter by query, so results are unchanged.

@coveo/mock-converse-api

  • Tests restore the query, page, page size and sort, each facet type, and check that a restore replaces the current search.

Validation

  • @coveo/mock-converse-api tests pass (98).
  • Checked in the demo against this mock: going back and forward through searches restores them, including category paths.

🤖 Generated with Claude Code

…State j:KIT-6459

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 29, 2026 13:30
@changeset-bot

changeset-bot Bot commented Oct 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 72c4b56

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@svcsnykcoveo

svcsnykcoveo commented Oct 29, 2026 •

Copy link
Copy Markdown

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

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

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

This comment was marked as resolved.

@chromatic-com

chromatic-com Bot commented Oct 29, 2026

Copy link
Copy Markdown

Tip

All tests passed and all changes approved!

🟢 UI Tests: 440 tests unchanged
🟢 UI Review: No changes
Storybook icon Storybook Publish: 472 stories published

@chromatic-com

chromatic-com Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Tip

All tests passed and all changes approved!

🟢 UI Tests: 440 tests unchanged
🟢 UI Review: 472 stories published -- no changes
Storybook icon Storybook Publish: 472 stories published

@pkg-pr-new

pkg-pr-new Bot commented Oct 29, 2026

Copy link
Copy Markdown
@coveo/atomic

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic@8782

@coveo/atomic-hosted-page

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-hosted-page@8782

@coveo/atomic-legacy

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-legacy@8782

@coveo/atomic-react

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-react@8782

@coveo/bueno

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/bueno@8782

coveo.analytics

npm i https://pkg.pr.new/coveo/ui-kit/coveo.analytics@8782

@coveo/create-atomic-rollup-plugin

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/create-atomic-rollup-plugin@8782

@coveo/headless

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/headless@8782

@coveo/headless-react

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/headless-react@8782

@coveo/quantic

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/quantic@8782

@coveo/relay

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/relay@8782

@coveo/shopify

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/shopify@8782

@coveo/atomic-angular

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-angular@8782

commit: 72c4b56

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Scratch Orgs ready to test this PR:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the change adding saved-search restoration to the mock search surface.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

This branch was successfully deployed

2 active deployments
PR Artifacts — 72c4b569 Deployed Oct 29, 2026 by fbeaudoincoveo via Merge Quantic Playwright reports #20559
pr-workflows — 72c4b569 Deployed Oct 29, 2026 by fbeaudoincoveo via label #10140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants