Skip to content

Public Calendar: Finance Hearing Timeslots Not Shown#180

Merged
calebyhan merged 1 commit into
mainfrom
167/finance-hearings-calendar
Jul 4, 2026
Merged

Public Calendar: Finance Hearing Timeslots Not Shown#180
calebyhan merged 1 commit into
mainfrom
167/finance-hearings-calendar

Conversation

@calebyhan

Copy link
Copy Markdown
Contributor

Finance hearing dates are managed through a dedicated admin panel and stored as FinanceHearingDate records, separate from the CalendarEvent model. The public meetings/calendar page only fetches CalendarEvent records, so scheduled finance hearing timeslots never appeared on the public-facing calendar.

Changes:

  • Added a shared mapper (financeHearingsToCalendarEvents) that transforms FinanceHearingDate records into synthetic CalendarEvent-shaped objects (id offset to avoid collisions, 30-minute slot, title suffixed " (Full)" when is_full is true)
  • Fetched finance hearings on the meetings page (tolerating failure, same as the homepage already does) and merged them into the events passed to CalendarWidget
  • Applied the same merge on the homepage, which already fetched finance hearings for the FinanceHearingButton but never passed them to the calendar

Closes #167

Finance hearings fetched via getFinanceHearings() were never passed to
CalendarWidget on the meetings page or homepage, so they never
appeared on the public calendar. Add a shared mapper
(financeHearingsToCalendarEvents) that converts FinanceHearingDate
entries into synthetic CalendarEvent objects (assuming a 30-minute
slot, titled "Finance Hearing (Full)" when is_full is true) and merge
them into the events passed to CalendarWidget on both pages.
@github-actions

Copy link
Copy Markdown

Test Results

570 tests  ±0   570 ✅ ±0   50s ⏱️ +2s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit a28827c. ± Comparison against base commit bc11881.

@MasonMines2006 MasonMines2006 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@calebyhan calebyhan merged commit d1efe45 into main Jul 4, 2026
3 checks passed
@calebyhan calebyhan deleted the 167/finance-hearings-calendar branch July 4, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Public Calendar: Finance Hearing Timeslots Not Shown

2 participants