From af329d31fb87479277ae3b6d6b43a348fe5f6290 Mon Sep 17 00:00:00 2001 From: Weves Date: Thu, 29 Jun 2023 20:38:34 -0700 Subject: [PATCH] Cancelling searches when submitting a new one, no longer truncating at 7 docs, showing a warning message when no quotes are found --- web/src/components/search/SearchBar.tsx | 1 + .../search/SearchResultsDisplay.tsx | 87 +++++++++++-------- web/src/components/search/SearchSection.tsx | 35 ++++++-- web/src/lib/search/cancellable.ts | 42 +++++++++ 4 files changed, 121 insertions(+), 44 deletions(-) create mode 100644 web/src/lib/search/cancellable.ts diff --git a/web/src/components/search/SearchBar.tsx b/web/src/components/search/SearchBar.tsx index 278c519b2..a2a060fe1 100644 --- a/web/src/components/search/SearchBar.tsx +++ b/web/src/components/search/SearchBar.tsx @@ -34,6 +34,7 @@ export const SearchBar: React.FC = ({