feat: temp invite link for new users - #113
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
invite_link_tokenandinvite_link_expires_atcolumns to thehuddlestable, with a unique index, to support invite links. [1] [2] [3]POST /api/huddles/:id/invite-linkto generate a new invite link (commissioner only).DELETE /api/huddles/:id/invite-linkto revoke an active invite link.GET /api/invite-links/:tokento resolve a token to a huddle (public, no auth).Frontend: Invite Link Management (Commissioner)
useGenerateInviteLink,useRevokeInviteLink, anduseInviteLinkLookuphooks for managing invite links.InviteLinkPanelto theCommissionerPage, allowing commissioners to generate, copy, and revoke invite links, with UI feedback and confirmation dialogs. [1] [2]Frontend: Invite Link Landing and Onboarding
/invite/:tokenand theInviteLinkPagecomponent:Sign-in/Sign-up Flow Integration
SignInPageandSignUpPageto carry the invite link path forward via anafterparameter, ensuring users return to the correct onboarding flow after authentication. [1] [2]Type and Schema Updates
Huddletype and added anInviteLinkHuddletype for minimal public invite link lookups.These changes together enable a secure, user-friendly invite link system for onboarding new members to a huddle.