Skip to content

Conversation

@chadbrokaw
Copy link
Collaborator

@chadbrokaw chadbrokaw commented Sep 18, 2025

This pull request introduces integration with the SF Gov Open Data API to display city events on the homepage, adds a new events calendar section, and updates dependencies to support these features. The most important changes are summarized below:

Integration with SF Gov Open Data API & Event Calendar:

  • Added a new useAllSFGovEvents hook in SFGovAPI.ts to fetch events from the SF Gov Open Data API, including a TypeScript interface for event data.
  • Updated HomePage.tsx to use the new hook for fetching event data and to render an EventCalendar section displaying these events. The featured events section now uses the correct data source. [1] [2]

Homepage and Testing Updates:

  • Updated homepage tests to mock the new SF Gov events API and reflect the addition of the events calendar section, increasing the expected number of homepage sections.

Styling Adjustments:

  • Removed text-transform: capitalize from the h1 style in PageHeader.module.scss for improved heading appearance.

Dependency Upgrades:

  • Added and updated several dependencies to support the new calendar and event features, including react-big-calendar, @heroicons/react, dompurify, and their type definitions, as well as upgrading moment. [1] [2]

Other Notes:

  • Added commented-out code in SearchResultsPage.tsx for potential future eligibility filtering logic.

@chadbrokaw chadbrokaw changed the title Development feat: Event Calendar Sep 18, 2025
@chadbrokaw chadbrokaw merged commit d4be683 into main Sep 18, 2025
2 checks passed
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.

2 participants