diff --git a/components/search/hearings/HearingSearch.tsx b/components/search/hearings/HearingSearch.tsx index 543f1d1ba..762809d42 100644 --- a/components/search/hearings/HearingSearch.tsx +++ b/components/search/hearings/HearingSearch.tsx @@ -83,7 +83,10 @@ export const HearingSearch = () => { currentRefinementsProps={{ excludedAttributes: ["startsAt"] }} initialUiState={{ [sortOptions[0].value]: { - refinementList: { court: [String(CURRENT_COURT_NUMBER)] } + refinementList: { + court: [String(CURRENT_COURT_NUMBER)], + hasVideo: ["true"] + } } }} searchParameters={{ @@ -104,6 +107,14 @@ export const HearingSearch = () => { })) .sort((a, b) => Number(b.value) - Number(a.value)) }, + { + attribute: "hasVideo", + transformItems: items => + items.map(item => ({ + ...item, + label: item.value === "true" ? "Yes" : "No" + })) + }, { attribute: "committeeName" }, { attribute: "month" }, { attribute: "year" }, diff --git a/public/locales/en/search.json b/public/locales/en/search.json index 24b906bf6..91a9140df 100644 --- a/public/locales/en/search.json +++ b/public/locales/en/search.json @@ -21,6 +21,7 @@ }, "hearing": { "court": "Legislative Session", + "hasVideo": "Video Available", "month": "Month", "year": "Year", "chairNames": "Chair",