Skip to content

Holidays Tool

The Holidays tool displays Australian public holidays sourced from the Nager.Date API. Holidays are filtered by Australian state based on organisation and user preferences.

  • State filtering — Shows national holidays plus state-specific holidays for the configured state
  • Year navigation — Browse holidays for any year with prev/next buttons
  • Upcoming / Past split — Upcoming holidays shown prominently, past holidays shown muted
  • Summary cards — Next holiday with countdown, total holidays count, remaining holidays count
  • D1 caching — Holiday data cached for 24 hours to minimise external API calls
  • Configurable — Organisation default state in Settings > Preferences, per-user override in Profile

The holiday state is resolved in this order:

  1. Query parameter (?state=AU-VIC) — for direct links
  2. User preference — set in Profile > Regional Preferences
  3. Organisation default — set in Settings > Preferences (default: Victoria)
CodeLabel
AU-ACTACT
AU-NSWNSW
AU-NTNT
AU-QLDQLD
AU-SASA
AU-TASTasmania
AU-VICVictoria
AU-WAWA
Access LevelViewUpdateManage
ExecutiveYesYesYes
HeadYesNoNo
ManagerYesNoNo
LeadYesNoNo
EmployeeYesNoNo
ParameterTypeDescription
yearnumberYear to display (defaults to current year)

Cached holiday data from the Nager.Date API.

ColumnTypeDescription
idTEXT PKUUID
dateTEXTHoliday date (YYYY-MM-DD)
local_nameTEXTHoliday name
nameTEXTInternational name
country_codeTEXTCountry code (AU)
is_globalINTEGER1 = national, 0 = state-specific
countiesTEXTJSON array of state codes, or null for national
yearINTEGERYear
fetched_atTEXTCache timestamp
FilePurpose
src/routes/holidays.tsxRoute definition with year search param
src/components/holidays/holidays-page.tsxMain page with summary cards, year nav, holiday tables
src/hooks/use-holidays.tsTanStack Query hooks
worker/routes/holidays.tsAPI endpoints