feat(invitations): add team_key_pubkey and invited_by_email to preview#31
Merged
alejandro-runner merged 1 commit intosynvya-stagingfrom Apr 17, 2026
Merged
Conversation
Lets the invitation landing page render the team's kind-0 profile (display name + avatar) by pubkey and show the inviter's email instead of a truncated pubkey. Closes #29. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
team_key_pubkey(primary stored_keys pubkey, deterministic byid ASC) andinvited_by_email(inviter's Keycast email) toGET /api/invitations/preview.Option<String>/ nullable — shape stays stable when data is missing.Closes #29.
Why
Lets the
/accept-invitepage render the team's kind-0 display name + avatar (via relays) and show the inviter asalejandro@synvya.cominstead off7ebfcf1….Privacy note
invited_by_emailexposes the inviter's email to whoever holds the 256-bit invite token. Acceptable because the inviter explicitly chose to invite this person, and the token is only delivered by email. Called out in the docs' Security section.Test plan
cargo check -p keycast_api -p keycast_corepassescargo test --libinapi/— 57 passedGET /api/invitations/preview?token=...against a staging invite and confirm both new fields appear with expected valuesteam_key_pubkey: nullrather than a 500🤖 Generated with Claude Code