algolia / autocomplete

🔮 Fast and full-featured autocomplete library
https://alg.li/autocomplete
MIT License
5.03k stars 329 forks source link

feat: support Insights opt-in from the Dashboard #1205

Closed sarahdayan closed 11 months ago

sarahdayan commented 11 months ago

Summary

This enables Insights opt-in from the Dashboard.

Algolia customers can now opt-in to Automatic Insights directly from the Dashboard instead of having to pass the insights option to true in the code.

FX-2644

codesandbox-ci[bot] commented 11 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2b3bc8d7de8bc6f6bd2ae39c748fce47f4c968b1:

Sandbox Source
@algolia/autocomplete-example-github-repositories-custom-plugin Configuration
@algolia/autocomplete-example-instantsearch Configuration
@algolia/autocomplete-example-playground Configuration
@algolia/autocomplete-example-preview-panel-in-modal Configuration
@algolia/autocomplete-example-react-renderer Configuration
@algolia/autocomplete-example-starter-algolia Configuration
@algolia/autocomplete-example-starter Configuration
@algolia/autocomplete-example-reshape Configuration
@algolia/autocomplete-example-vue Configuration
sarahdayan commented 11 months ago

Thanks for the review @dhayab! I took your feedback into account and also made a small change to never send clickAnalytics=false but rather not send it when the plugin is initialized not to pass it. This will avoid disabling Dashboard opt-in by forcing clickAnalytics to false in the request (e0a2c3b).