From 88211f8407900579541fee1f00069018ae2a8b72 Mon Sep 17 00:00:00 2001 From: PrinceBashangezi Date: Mon, 9 Nov 2026 11:49:59 -0800 Subject: [PATCH 1/2] adding Thanksgiving 2026 subsidized dates --- frontend/src/config/servicePeriods.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/src/config/servicePeriods.ts b/frontend/src/config/servicePeriods.ts index d8230d2..8b47edc 100644 --- a/frontend/src/config/servicePeriods.ts +++ b/frontend/src/config/servicePeriods.ts @@ -94,4 +94,15 @@ export const SERVICE_PERIODS: ServicePeriod[] = [ buffered: { start: '2026-10-20', end: '2026-10-26' }, deadline: '2026-10-12T23:59:59-07:00', }, + { + id: 'thanksgiving-2026', + name: 'Thanksgiving Break', + allowedDirections: ['outbound', 'inbound'], + subsidized: { + outbound: { start: '2026-11-23', end: '2026-11-30' }, + inbound: { start: '2026-11-23', end: '2026-11-30' }, + }, + buffered: { start: '2026-11-23', end: '2026-11-30' }, + deadline: '2026-11-19T23:59:59-08:00', + } ] From adcb2277619fa7fbc6b7f4b3304ab84444345545 Mon Sep 17 00:00:00 2001 From: PrinceBashangezi Date: Mon, 9 Nov 2026 11:56:17 -0800 Subject: [PATCH 2/2] fix tests --- frontend/src/config/servicePeriodHelpers.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/frontend/src/config/servicePeriodHelpers.ts b/frontend/src/config/servicePeriodHelpers.ts index 08813bc..8edbe72 100644 --- a/frontend/src/config/servicePeriodHelpers.ts +++ b/frontend/src/config/servicePeriodHelpers.ts @@ -64,15 +64,9 @@ export function getDerivedCoveredDates(): { } export function isDateCovered(date: string, toAirport: boolean): boolean { - if (!date) { - return false - } - - const [, month, day] = date.split('-') - const mmdd = `${month}-${day}` - const { outbound, inbound } = getDerivedCoveredDates() - - return toAirport ? outbound.includes(mmdd) : inbound.includes(mmdd) + // Subsidy eligibility is tied to the configured service period year. The + // derived MM-DD lists remain available for legacy year-agnostic consumers. + return isDirectionAllowedForDate(date, toAirport) } function getPeriodForBufferedDate(date: string): ServicePeriod | undefined {