From cf6fabcb2acde1920c21ad44cb6802c7f5371115 Mon Sep 17 00:00:00 2001 From: Sam DeMarrais Date: Tue, 20 Jan 2026 21:05:49 -0500 Subject: [PATCH 1/3] Separated not available and upcoming badges --- components/search/hearings/HearingHit.tsx | 7 +++++++ public/locales/en/search.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/search/hearings/HearingHit.tsx b/components/search/hearings/HearingHit.tsx index 633a9a1bc..84e43a963 100644 --- a/components/search/hearings/HearingHit.tsx +++ b/components/search/hearings/HearingHit.tsx @@ -78,6 +78,9 @@ export const HearingHit = ({ hit }: { hit: HearingHitData }) => { navigateToHearing() } + var yesterday = new Date() + yesterday.setDate(yesterday.getDate()-1) + return ( { {t("video_available", { ns: "search" })} + ) : startsAt > yesterday ? ( + + {t("video_upcoming", { ns: "search" })} + ) : ( {t("video_unavailable", { ns: "search" })} diff --git a/public/locales/en/search.json b/public/locales/en/search.json index 24b906bf6..ab877290b 100644 --- a/public/locales/en/search.json +++ b/public/locales/en/search.json @@ -49,7 +49,8 @@ }, "search_error": "Something went wrong. Please try again. Original message: {{error}}", "video_available": "Video available", - "video_unavailable": "Video and transcript not yet available", + "video_upcoming": "Coming soon: Video and transcript", + "video_unavailable": "Not available: Video and transcript", "location_label": "Location", "agenda_label": "Agenda Topics", "bills_label": "Bills", From 4954215e04afe61d5765fd8936bd05d7888d7f38 Mon Sep 17 00:00:00 2001 From: Sam DeMarrais Date: Tue, 20 Jan 2026 21:25:54 -0500 Subject: [PATCH 2/3] Prettier fix --- components/search/hearings/HearingHit.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/search/hearings/HearingHit.tsx b/components/search/hearings/HearingHit.tsx index 84e43a963..247d28d35 100644 --- a/components/search/hearings/HearingHit.tsx +++ b/components/search/hearings/HearingHit.tsx @@ -79,7 +79,7 @@ export const HearingHit = ({ hit }: { hit: HearingHitData }) => { } var yesterday = new Date() - yesterday.setDate(yesterday.getDate()-1) + yesterday.setDate(yesterday.getDate() - 1) return ( Date: Tue, 27 Jan 2026 19:31:18 -0500 Subject: [PATCH 3/3] Update Video Upcoming Copy Updated the copy for the Video Upcoming state based on feedback --- public/locales/en/search.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/locales/en/search.json b/public/locales/en/search.json index ab877290b..7b81ef7a2 100644 --- a/public/locales/en/search.json +++ b/public/locales/en/search.json @@ -49,7 +49,7 @@ }, "search_error": "Something went wrong. Please try again. Original message: {{error}}", "video_available": "Video available", - "video_upcoming": "Coming soon: Video and transcript", + "video_upcoming": "Video not yet posted by the legislature; transcript will be generated once it is available", "video_unavailable": "Not available: Video and transcript", "location_label": "Location", "agenda_label": "Agenda Topics",