Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions frontend/src/config/servicePeriodHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/config/servicePeriods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
]
Loading