Skip to content

feat: temp invite link for new users - #113

Merged
brandonpham13 merged 1 commit into
mainfrom
feat/invite-links
Aug 3, 2026
Merged

feat: temp invite link for new users#113
brandonpham13 merged 1 commit into
mainfrom
feat/invite-links

Conversation

@brandonpham13

Copy link
Copy Markdown
Owner

This pull request introduces a new feature for shareable, time-limited invite links that allow commissioners to invite new members to a huddle via a public landing page. The changes include both backend and frontend support for generating, revoking, and consuming these invite links, as well as database schema updates. The invite link flow is integrated into the sign-up and sign-in processes to provide a seamless onboarding experience.

The most important changes are:

Backend: Invite Link Support

  • Added invite_link_token and invite_link_expires_at columns to the huddles table, with a unique index, to support invite links. [1] [2] [3]
  • Implemented new API endpoints:
    • POST /api/huddles/:id/invite-link to generate a new invite link (commissioner only).
    • DELETE /api/huddles/:id/invite-link to revoke an active invite link.
    • GET /api/invite-links/:token to resolve a token to a huddle (public, no auth).
  • Updated huddle serialization to include invite link fields for commissioners. [1] [2]

Frontend: Invite Link Management (Commissioner)

  • Added useGenerateInviteLink, useRevokeInviteLink, and useInviteLinkLookup hooks for managing invite links.
  • Added an InviteLinkPanel to the CommissionerPage, allowing commissioners to generate, copy, and revoke invite links, with UI feedback and confirmation dialogs. [1] [2]

Frontend: Invite Link Landing and Onboarding

  • Added a new public route /invite/:token and the InviteLinkPage component:
    • Shows league info to invited users.
    • Guides new users to sign up or sign in, preserving the invite link for post-auth onboarding.
    • If already signed in, selects the league and redirects to team claim flow. [1] [2] [3] [4]

Sign-in/Sign-up Flow Integration

  • Modified SignInPage and SignUpPage to carry the invite link path forward via an after parameter, ensuring users return to the correct onboarding flow after authentication. [1] [2]

Type and Schema Updates

  • Updated the Huddle type and added an InviteLinkHuddle type for minimal public invite link lookups.

These changes together enable a secure, user-friendly invite link system for onboarding new members to a huddle.

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
huddle Ready Ready Preview Aug 3, 2026 9:31pm

@brandonpham13
brandonpham13 merged commit 6a96dbd into main Aug 3, 2026
3 checks passed
@brandonpham13
brandonpham13 deleted the feat/invite-links branch August 3, 2026 21:33
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