Skip to content

[Teams] Add demo_video_url field + hacker self-serve endpoint#217

Merged
gregv merged 1 commit into
developfrom
team-demo-video-url
May 16, 2026
Merged

[Teams] Add demo_video_url field + hacker self-serve endpoint#217
gregv merged 1 commit into
developfrom
team-demo-video-url

Conversation

@gregv
Copy link
Copy Markdown
Contributor

@gregv gregv commented May 16, 2026

What does the PR do?

Adds a per-team demo_video_url (string) so each team can attach a single demo video link (YouTube, Vimeo, Loom, or Google Drive) that the public event and results pages will render in the team card. Mirrors the existing devpost_link shape, including a companion demo_video_url_submitted ISO timestamp stamped on first set.

Changes:

  • edit_team() field allowlist now accepts demo_video_url. Value is trimmed, capped at 500 chars, and empty strings are coerced to null so admins can clear the field by submitting an empty input.
  • New POST /api/team/<teamid>/demo-video mirrors the existing /devpost endpoint so a logged-in team member can self-serve their team's demo video (same auth model as devpost — no admin permission required). Admin edits continue to flow through PATCH /api/team/edit (volunteer.admin).
  • No new collection, no schema migration — additive field on the existing teams document.

Type of change

  • Breaking Change
  • Bug Fix
  • New Feature

Linked Issue

None.

Make sure you have

  • Pulled from the default branch
  • Documented your changes
  • Linked the Issue
  • Appointed a reviewer (if any)

Frontend companion

Frontend consumers (event-page team cards, winner cards, /manageteam self-serve form, /admin/teams Demo Video column + filter chips) are on a separate branch in opportunity-hack/frontend-ohack.dev.

🤖 Generated with Claude Code

Adds a per-team `demo_video_url` (string) so each team can attach a
single demo video link (YouTube / Vimeo / Loom / Google Drive) that the
event and results pages render in the team card. Mirrors the existing
`devpost_link` shape, including a companion `demo_video_url_submitted`
ISO timestamp stamped on first set.

- `edit_team()` allowlist now accepts `demo_video_url`; value is trimmed,
  capped at 500 chars, and empty strings clear the field.
- New `POST /api/team/<teamid>/demo-video` mirrors the `/devpost`
  endpoint for team-member self-serve (auth-required, no admin
  permission). Admin edits continue to flow through `PATCH /api/team/edit`.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@gregv gregv merged commit 56596e1 into develop May 16, 2026
3 checks passed
@gregv gregv deleted the team-demo-video-url branch May 16, 2026 05:24
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.

1 participant