Skip to content

vtex-apps/search-result

Repository files navigation

search-result

VTEX IO Store Framework app (vtex.search-result) that exports the PLP (Product Listing Page) blocks for VTEX storefronts: galleries, filter navigators, sort controls, layout switchers, pagination, and "not found" states.

It is the storefront consumer of the GraphQL surface published by vtex.search-graphql and implemented by vtex.search-resolver. It also coordinates with vtex.delivery-promise-components for pickup-point shipping facets on PLP.

See AGENTS.md for the full architectural walkthrough.


Prerequisites

  • Node.js 12 (managed via .nvmrc — use nvm use). Note: Node 12 is the legacy CI target while this app's dependency tree is migrated. Use a project-local Node manager to avoid affecting other repos.
  • Yarn (v1)
  • VTEX Toolbelt: npm i -g vtex
  • An active VTEX account and development workspace: vtex login <account>

How to run

Install dependencies and refresh VTEX IO typings:

make dev

Link the app to your development workspace:

make link
# or equivalently: make run

Linking publishes the React blocks to the active workspace. Confirm with vtex whoami before linking.

How to test

Run the React unit test suite (via vtex-test-tools):

make test

Run all quality checks (lint + test) before opening a PR:

make check

Run with coverage report:

make coverage

How to publish

⚠️ These commands affect production. Always confirm the target account/workspace first.

vtex publish        # publishes a new app package to the registry
vtex deploy         # promotes a release candidate to stable

Version bumps use vtex release <patch|minor|major> stable. The current default branch for releases is master.

Documentation

About

VTEX Search Result app

Topics

Resources

Security policy

Stars

24 stars

Watchers

51 watching

Forks

Packages

 
 
 

Contributors