Repository navigation
feat(console): invite colleagues to a project by link and accept or decline an invitation - #2978
Conversation
…ecline an invitation Adds an Invitations tab to the project page (create, regenerate, cancel), the invitation page a link opens (/invitations/accept), and the invitation_created, invitation_accepted and invitation_rejected events. The token moves from the link's fragment into sessionStorage before the app boots, and the cloud add-on leaves the invitation page out of its page views. Refs #2855, #2856, #2859. Follows ADR 086. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Resolves conflicts with the project page's General tab, the Empty component main added, and the generated route tree. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 9a9b770 The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
main split the project page into a Settings list, so Invitations is now the page /project/invitations beside General and Admins. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The lookup resolves the inviter as a user-ref, since the invited person cannot read the project's users. The page shows it as it arrives. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e Members page Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… and remove a declined one Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…w screen Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
@peintnermax, the list of actions per invitation status should be:
|
# Conflicts: # docs/product-analytics-events.yaml
…ancelled link Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
@vitorbari Pending and Declined now match your list: a pending row offers Regenerate link and Cancel invitation, a declined row only Remove invitation. Expired still has Regenerate link only. Remove can't work yet: Could the server delete an expired invitation too? Once it does, Remove on an expired row is a one-line addition here. Or, if expired rows should stay until the cleanup job, should the expired row keep Regenerate link only? |
|
sure. I will update |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…le and the row menu in its own file Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…and size an invitation's name like a member's Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s catalog Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t is shown Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Context
Summary
/project/members, beside General): the former Admins page with two tabs, Members and Invitations (?tab=invitations), and Invite member on the tabs' row. Invitations is a table of the project's pending, expired and declined invitations (name, role, inviter, status), newest first with Load more, and an empty state. Accepted ones are left out, as ADR 086 has it: the person is a row of the Members tab.replaces_invitation_id, then the new link) and Cancel invitation; an expired row Regenerate link and Remove invitation; a declined row Remove invitation only. Each sits behind a confirmation in its own words. A declined row keeps its name and shows the day it was declined (responded_at)./invitations/accept, outside the_authedguard: who invited you, the role and the expiry, with Join project and Decline invitation, plus the declined and unavailable states. A signed-out visitor goes to/login?next=/invitations/accept.inv.not_foundandinv.inviter_not_adminboth end in Invitation unavailable and clear the token; other refusals (inv.self_accept,inv.self_reject) show the API's message and keep it.expand=inviter) show theinviteruser-ref the server resolves (display, thenidentifier, thenuser_id) and never read a user by id; a link a project secret made shows none.sessionStoragebefore the app boots (the entry's first import), also when the link is reopened in a tab already on the page. It is cleared on accept, decline, an unknown token and sign-out, and never reaches a query string.invitation_created,invitation_accepted,invitation_rejectedand, for a pending link that is cancelled,invitation_cancelled, each withroleandinvitation_journey_id, listed inproduct-analytics-events.yaml. The cloud add-on leaves the invitation page out of its page views and Speed Insights.InputGroupfrom the shadcn registry (new-york track), andcancel/variantprops onConfirmDialog.Validation
turbo run typecheck test lint build --filter=@zitadel/console(1062 tests), after mergingmainnode scripts/check-pr-title.mjs --title "…"turbo run dev:claim --filter=@zitadel/console, a registered user, the seeded project claimed): two named links created; the list request carriesstatus=pending&status=expired&status=rejected&expand=inviterand each row names the inviter; a second user signs up through a link (sent to/login?next=/invitations/acceptwith no token in the address), declines one and accepts the other; the list then shows the declined row with its name and date and no accepted row; Remove invitation answers 204 and the table is empty.main: the real-server pass (the row-menu change is covered by the spec) and the cloud-console tests (unchanged files).Release notes / changeset
.changeset/console-invitations.md—@zitadel/serverminor — project invitations in the consoleNotes
main(feat(api): look up, accept and decline invitations by link, and filter and expand the invitation list #3073), so the invitation page works without a stacked backend branch. feat(console): give project access by invitation only and remove Add admin #3066 is stacked on this and removes Add admin.console:dev-realhas neither, so create is refused there; useconsole:dev-claimto try it locally.Invitation already acceptedis not built: every finished token gets the same opaque404.emittedto[vercel, mixpanel]rather thanplanned; say if they should stay unsent until the console has a Mixpanel sink. The CLI's half of Analytics: invitation events #2859 is feat: CLI - send invitation analytics events from zitadel invitation create and cancel #2932, which also edits the catalog.🤖 Generated with Claude Code