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 { 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', + } ]