Skip to content

Allow programs without end dates#2111

Merged
3kh0 merged 2 commits into
hackclub:mainfrom
MntRushmore:support-indefinite-programs
Jul 10, 2026
Merged

Allow programs without end dates#2111
3kh0 merged 2 commits into
hackclub:mainfrom
MntRushmore:support-indefinite-programs

Conversation

@MntRushmore

Copy link
Copy Markdown
Contributor

Programs can now run indefinitely without requiring an end date. These will show 'Ongoing' instead of an end date.

@MntRushmore MntRushmore requested a review from a team as a code owner July 10, 2026 18:39
Copilot AI review requested due to automatic review settings July 10, 2026 18:39
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@MntRushmore is attempting to deploy a commit to the Hack Club Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
site Error Error Jul 10, 2026 9:15pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the programs model and UI to support programs that don’t have an end date (indefinite/ongoing programs), including fetching them from Airtable and displaying “Ongoing” where appropriate.

Changes:

  • Allow endDate to be null in AirtableProgram and treat missing end dates as “never ends” in status logic.
  • Update Airtable fetching/filtering to include programs without an end date and normalize missing end dates to null.
  • Update programs and landing UI badges + deadline sorting to handle null end dates and display “Ongoing”.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lib/programs.ts Makes endDate nullable and updates status computation for indefinite programs
lib/programs-data.ts Adjusts Airtable filtering and normalizes missing End Date to null
components/landing/events.tsx Updates landing event badge label logic to show “Ongoing” when no end date
app/programs/ProgramsPageClient.tsx Updates program card badge + deadline sorting to handle null end dates
app/programs/edit/page.tsx Updates editor preview/list date display to handle missing end dates (“Ongoing”)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/programs-data.ts
Comment thread app/programs/ProgramsPageClient.tsx
Comment thread app/programs/edit/page.tsx Outdated
@3kh0 3kh0 merged commit fa60270 into hackclub:main Jul 10, 2026
6 of 7 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.

3 participants