From b655cfab28643e642180abd567f002a4489bc74e Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Thu, 29 Feb 2024 13:45:05 -0600 Subject: [PATCH] feat: improve search matching (#800) * offload search to lunr.js * update location search when locations are mutated --- frontend/components/Form/Autocomplete2.vue | 60 +++++++++----------- frontend/components/Location/Selector.vue | 2 +- frontend/composables/use-location-helpers.ts | 24 ++++---- frontend/layouts/default.vue | 1 + frontend/package.json | 2 + frontend/pnpm-lock.yaml | 14 +++++ frontend/stores/locations.ts | 12 +++- 7 files changed, 71 insertions(+), 44 deletions(-) diff --git a/frontend/components/Form/Autocomplete2.vue b/frontend/components/Form/Autocomplete2.vue index 9b20758..f356a37 100644 --- a/frontend/components/Form/Autocomplete2.vue +++ b/frontend/components/Form/Autocomplete2.vue @@ -61,6 +61,7 @@