Skip to content

Minimal features - #82

Open
huncijr wants to merge 9 commits into
hackclub:mainfrom
huncijr:minimal_features
Open

Minimal features#82
huncijr wants to merge 9 commits into
hackclub:mainfrom
huncijr:minimal_features

Conversation

@huncijr

@huncijr huncijr commented Jun 19, 2026

Copy link
Copy Markdown

Added 4 features : cancelled event badge, an interest count display showing how many people RSVP'd via Slack,(For the interest count to work with real RSVP data from the website, Isabelle needs a non-read-only REST endpoint I already fixed that on: hackclub/isabelle#25). Add a POST /api/rsvp route in app.py that calls the existing toggle_user_interest() from database.py, accepts { event_id, user_id } in the request body, and returns the updated interest count. The internal logic is already complete .It just needs to be exposed as a public endpoint so the Events website can POST RSVP actions directly instead of relying only on Slack reactions.) and expanded YouTube recording support beyond AMA-only events. The data.js mapping was extended to include cancelled, rawCancellation, and interestCount fields. And also added an icon for light mode :)
Screenshot From 2026-06-19 14-19-50
image
Screenshot From 2026-06-19 14-45-40

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
events Error Error Jun 19, 2026 12:54pm

Request Review

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

The `vercel.json` schema validation failed with the following message: should NOT have additional property `public`

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@huncijr

huncijr commented Jul 12, 2026

Copy link
Copy Markdown
Author

Will this be reviewed?

@v1ctorio

Copy link
Copy Markdown
Member

@huncijr can you resolve the conflicts? The RSVP via web already is implemented.
Also, is this UI change intentional?

old new
image image

imho, I don't see any reason to make the borders wider, but if it's not-intentional, it should be fixed.

I do like the cancellation info banner tho! Cool feature.

@huncijr

huncijr commented Jul 15, 2026

Copy link
Copy Markdown
Author

Hi, I fixed it!

@v1ctorio

Copy link
Copy Markdown
Member

Alright, will look into it

@v1ctorio

Copy link
Copy Markdown
Member

This does not build.

@huncijr

huncijr commented Jul 17, 2026

Copy link
Copy Markdown
Author

I hope everything's okay now, the problem was that I didn't accidentally pull, and it caused the merge conflicts.

@huncijr

huncijr commented Aug 25, 2026

Copy link
Copy Markdown
Author

@v1ctorio can you review this pr?

@v1ctorio

v1ctorio commented Aug 26, 2026 via email

Copy link
Copy Markdown
Member

@huncijr

huncijr commented Aug 26, 2026

Copy link
Copy Markdown
Author

I don't know your Slack name :(

Copilot AI left a comment

Copy link
Copy Markdown

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 Events UI to surface more event metadata (cancelled state + interest/RSVP counts) and to broaden YouTube recording/livestream handling, along with a light-mode icon for the color switcher.

Changes:

  • Display cancellation state in both the event list and event detail page (banner + badge) and suppress certain actions when cancelled.
  • Add “interest count” display in the event list cards and event detail page, backed by new fields in the data mapping.
  • Expand YouTube section rendering beyond AMA-only events and update the nav color-mode toggle icon for light mode.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
pages/[slug].js Adds cancelled banner/badge + interest count display; adjusts calendar/actions and YouTube section rendering; adds notFound guard in getStaticProps.
lib/data.js Extends event mapping with cancelled, rawCancellation, and interestCount.
components/nav.js Adds Sun icon for light mode and mount-guarded rendering in the color mode toggle.
components/event.js Adds cancelled styling/badge and interest count chip to event cards.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/data.js
Comment on lines +91 to 93
interestCount:
typeof e['InterestCount'] === 'number' ? e['InterestCount'] : 0,
interestCount: e['InterestCount'] || 0,
Comment thread pages/[slug].js
Comment on lines +253 to +255
{!past(event.start) && !event.cancelled && (
<Flex sx={{ gap: 2, flexWrap: 'wrap', mb: [3, 4] }}>
<Button
as="a"
target="_blank"
href={event.cal}
sx={{ bg: 'cyan' }}
>
<Button as="a" target="_blank" href={event.cal} sx={{ bg: 'cyan' }}>
Comment thread pages/[slug].js
</Box>
</Container>
{event.ama && (
{(event.youtube || event.ama) && (
Comment thread pages/[slug].js
</Embed>
)}
<Embed>
<ReactPlayer url={event.youtube} />
Comment thread pages/[slug].js
Comment on lines +326 to +328
<Text variant="subtitle">
This event will be livestreamed on Youtube
</Text>
Comment thread components/nav.js
Comment on lines 69 to 84
<NavButton
{...props}
onClick={() => setMode(mode === 'dark' ? 'light' : 'dark')}
title="Reverse color scheme"
sx={{
...props.sx,
transition: 'transform 0.3s ease,box-shadow .125s ease-in-out'
}}
>
<Moon size={24} />
{mounted &&
(mode === 'dark' ? (
<Sun size={24} style={{ transition: 'transform 0.3s ease' }} />
) : (
<Moon size={24} style={{ transition: 'transform 0.3s ease' }} />
))}
</NavButton>
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