diff --git a/studio/schemas/textSnippets.ts b/studio/schemas/textSnippets.ts index 770703fef..08d635e9b 100644 --- a/studio/schemas/textSnippets.ts +++ b/studio/schemas/textSnippets.ts @@ -1,4 +1,12 @@ -import { HAS_FORMS, HAS_SEARCH, HAS_NEWS, HAS_NEWSROOM, HAS_EVENT, HAS_MAGAZINE } from '../src/lib/datasetHelpers' +import { + HAS_FORMS, + HAS_SEARCH, + HAS_NEWS, + HAS_NEWSROOM, + HAS_EVENT, + HAS_MAGAZINE, + IS_TEST, +} from '../src/lib/datasetHelpers' export const groups = { newsroom: { title: 'Newsroom', hidden: !HAS_NEWSROOM }, @@ -595,6 +603,12 @@ const snippets: textSnippet = { defaultValue: 'Country', group: groups.newsroom, }, + newsroom_local_market_filter: { + title: 'Local market filter heading', + defaultValue: 'Local market', + group: groups.newsroom, + hidden: !IS_TEST, + }, newsroom_year_filter: { title: 'Year filter heading', defaultValue: 'Year', diff --git a/web/pageComponents/newsRoom/Filters.tsx b/web/pageComponents/newsRoom/Filters.tsx index a97d6b4fb..7b6601ce1 100644 --- a/web/pageComponents/newsRoom/Filters.tsx +++ b/web/pageComponents/newsRoom/Filters.tsx @@ -5,6 +5,7 @@ import styled from 'styled-components' import FilterHeader from '././FilterHeader' import { RefinementList } from './RefinementList' import UncontrolledSearchBox from './UncontrolledSearchBox' +import { isGlobalDevelopment } from '../../common/helpers/datasetHelpers' const StyledAccordion = styled(Accordion)` @media (min-width: 800px) { @@ -65,6 +66,16 @@ const Filters = ({ hasFilters, hasSearch, ...rest }: FiltersProps) => { + {isGlobalDevelopment && ( + + + + + + + )}