Skip to content

Proposal Invite Accept Flow#590

Merged
scazan merged 12 commits intodevfrom
proposal-invite-auto-accept-flow
Feb 13, 2026
Merged

Proposal Invite Accept Flow#590
scazan merged 12 commits intodevfrom
proposal-invite-auto-accept-flow

Conversation

@scazan
Copy link
Collaborator

@scazan scazan commented Feb 12, 2026

Adds a landing screen for invite links to accept an invitation. The link autoaccepts if the invite is valid and redirects to the proposal page.
We use a common /invite link so that users can communicate a single invite link (a la Google) and we lookup a user's invite in the DB.

@scazan scazan changed the base branch from dev to proposal-invite-auto-accept February 12, 2026 11:20
@vercel
Copy link
Contributor

vercel bot commented Feb 12, 2026

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

Project Deployment Actions Updated (UTC)
app Ready Ready Preview Feb 13, 2026 10:06am

Request Review

Base automatically changed from proposal-invite-auto-accept to dev February 12, 2026 13:15
@scazan scazan force-pushed the proposal-invite-auto-accept-flow branch from acd59a8 to b46d97e Compare February 12, 2026 14:46
@scazan scazan marked this pull request as ready for review February 12, 2026 16:31
Copy link
Collaborator

@valentin0h valentin0h left a comment

Choose a reason for hiding this comment

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

cool 😎

},
) => {
const { locale, slug, profileId } = await params;
const proposalUrl = `${OPURLConfig('APP').ENV_URL}/${locale}/decisions/${slug}/proposal/${profileId}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nextjs is so brittle. I wonder if there's a better way than hardcoding a url

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I usually have a util that handles the paths by key getpath('proposals', {...optionsAndSlugs }); and then also allow that to be a prop on a <Link />. Actually realizing I can remove the locale entirely. We can fix it up in a follow-up.

@scazan scazan merged commit ff2cdb0 into dev Feb 13, 2026
10 checks passed
@scazan scazan deleted the proposal-invite-auto-accept-flow branch February 13, 2026 10:11
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.

2 participants