Files
backstage/plugins/search
Emma Indal af4980fb5d [Search] SearchBar Analytics tracking (#8656)
* test capture search bar events

Signed-off-by: Emma Indal <emmai@spotify.com>

* capture search bar events

Signed-off-by: Emma Indal <emmai@spotify.com>

* only run onChange method if provided, otherwise set term

Signed-off-by: Emma Indal <emmai@spotify.com>

* changeset

Signed-off-by: Emma Indal <emmai@spotify.com>

* unconditionally call analytics API

Signed-off-by: Emma Indal <emmai@spotify.com>

* update changeset to be less specific to GA

Signed-off-by: Emma Indal <emmai@spotify.com>

* move analytics tracking to SearchBarBase

Signed-off-by: Emma Indal <emmai@spotify.com>

* add search to key events

Signed-off-by: Emma Indal <emmai@spotify.com>

* capture types as analytics context attribute, only for SearchBar

Signed-off-by: Emma Indal <emmai@spotify.com>

* move AnalyticsContext to within SearchContextProvider

Signed-off-by: Emma Indal <emmai@spotify.com>

* refactor search tracking out to its own component

Signed-off-by: Emma Indal <emmai@spotify.com>

* captures not only google analytics

Signed-off-by: Emma Indal <emmai@spotify.com>
2021-12-29 14:10:01 +01:00
..
2021-12-23 12:23:34 +00:00
2021-12-23 12:23:34 +00:00

Backstage Search

A flexible, extensible search across your whole Backstage ecosystem.

Development is ongoing. You can follow the progress and contribute at the Backstage Search Project Board or reach out to us in the #search Discord channel.

Getting started

Run yarn dev in the root directory, and then navigate to /search to check out the plugin.

Areas of Responsibility

This search plugin is primarily responsible for the following:

  • Providing a <SearchPage /> routable extension.
  • Exposing various search-related components (like <SearchBar />, <SearchFilter />, etc), which can be composed by a Backstage App or by other Backstage Plugins to power search experiences of all kinds.
  • Exposing a <SearchContextProvider />, which manages search state and API communication with the Backstage backend.

Don't forget, a lot of functionality is available in backend plugins:

  • @backstage/plugin-search-backend-node, which is responsible for the search index management
  • @backstage/plugin-search-backend, which is responsible for query processing