diff --git a/assets/controllers/elements/part_livesearch_controller.js b/assets/controllers/elements/part_search_controller.js similarity index 97% rename from assets/controllers/elements/part_livesearch_controller.js rename to assets/controllers/elements/part_search_controller.js index 1bd00e9f..f4817ea5 100644 --- a/assets/controllers/elements/part_livesearch_controller.js +++ b/assets/controllers/elements/part_search_controller.js @@ -31,6 +31,11 @@ import { STATISTICS_PARTS } from '../../translator'; + +/** + * This controller is responsible for the search fields in the navbar and the homepage. + * It uses the Algolia Autocomplete library to provide a fast and responsive search. + */ export default class extends Controller { static targets = ["input"]; diff --git a/templates/components/search.macro.html.twig b/templates/components/search.macro.html.twig index f85b133c..5086d7a1 100644 --- a/templates/components/search.macro.html.twig +++ b/templates/components/search.macro.html.twig @@ -84,7 +84,7 @@ {{ _self.settings_drodown(is_navbar) }} {% endif %} -