From 20abef3e1d9ee73b02ca10d22e3773c25c2896f9 Mon Sep 17 00:00:00 2001 From: Okeino McGowan Date: Thu, 26 Oct 2023 11:33:22 -0400 Subject: [PATCH] added section for Ellen G, White in search results and updated search query --- public/compiled-lang/en.json | 12 +++++ public/lang/en.json | 6 +++ .../organisms/searchResults.filters.tsx | 16 +++++++ .../organisms/searchResults.graphql | 48 ++++++++++++++++++- .../organisms/searchResults.useResults.tsx | 1 + 5 files changed, 82 insertions(+), 1 deletion(-) diff --git a/public/compiled-lang/en.json b/public/compiled-lang/en.json index 4681cb1a9..7a474cf5e 100644 --- a/public/compiled-lang/en.json +++ b/public/compiled-lang/en.json @@ -4795,6 +4795,18 @@ "value": "See All Matching Conferences" } ], + "search__egwbooksHeading": [ + { + "type": 0, + "value": "Ellen G. White" + } + ], + "search__egwbooksSeeAll": [ + { + "type": 0, + "value": "See All Matching Ellen G. White Audiobooks" + } + ], "search__emptyStateMessage": [ { "type": 0, diff --git a/public/lang/en.json b/public/lang/en.json index 69556a558..ea4ee971d 100644 --- a/public/lang/en.json +++ b/public/lang/en.json @@ -2292,6 +2292,12 @@ "search__conferencesSeeAll": { "string": "See All Matching Conferences" }, + "search__egwbooksHeading": { + "string": "Ellen G. White" + }, + "search__egwbooksSeeAll": { + "string": "See All Matching Ellen G. White Audiobooks" + }, "search__emptyStateMessage": { "string": "Try searching for something else" }, diff --git a/src/components/organisms/searchResults.filters.tsx b/src/components/organisms/searchResults.filters.tsx index 63a6f93c1..eab815d01 100644 --- a/src/components/organisms/searchResults.filters.tsx +++ b/src/components/organisms/searchResults.filters.tsx @@ -5,6 +5,7 @@ import { FormattedMessage } from 'react-intl'; import { GetSearchAudiobooksDocument, GetSearchConferencesDocument, + GetSearchEgwAudiobooksDocument, GetSearchMusicTracksDocument, GetSearchPersonsDocument, GetSearchRecordingsDocument, @@ -89,6 +90,21 @@ export const filters: Record = { ), document: GetSearchAudiobooksDocument, }, + egwbooks: { + heading: ( + + ), + seeAll: ( + + ), + document: GetSearchEgwAudiobooksDocument, + }, sponsors: { heading: (