Skip to content

Add telemetry to "Tips and Tricks / More search features" link

Created by: erzhtor

Closes https://github.com/sourcegraph/sourcegraph/issues/34516.

Description

This PR:

  • Add telemetry to the "Tips and Tricks / More search features" link
  • Add unit tests to the TipsAndTricks component

Test plan

  • SOURCEGRAPH_API_URL=https://sourcegraph.com SOURCEGRAPHDOTCOM_MODE=true sg start web-standalone
  • Open https://sourcegraph.test:3443/search as non signed-in user
  • Enabled event log debug mode in console: localStorage.setItem('eventLogDebug', 'true')
  • Click "More search features" link and check that HomepageExampleMoreSearchFeaturesClicked event is logged in console

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading