8000 fix(groups): describe combined invitations accurately by mwoods79 · Pull Request #764 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

Skip to content

fix(groups): describe combined invitations accurately - #764

Merged
mwoods79 merged 4 commits into
mainfrom
t3/invitation-states
Dec 2, 2026
Merged

mwoods79 merged 4 commits into
mainfrom
t3/invitation-states

Conversation

@mwoods79
@mwoods79 mwoods79 commented Dec 1, 2026
Copy link
Copy Markdown
Contributor

Summary

Organizers see when two invitations were combined. Opening the retired email link takes the recipient to Invites with the reason and the remaining offer. If that offer changes from member to organizer, the recipient gets one inbox update linked to the original invitation.

Delivery quietly closes offers already covered by the recipient’s membership. A member can still review and accept an organizer offer for the group.

Evidence

Before: The original email link said the organizer revoked the invitation. The inbox showed only the original member offer, and confirming an address could invite someone to a group they had already joined.

After: The address-change scenario follows the old link and accepts the organizer offer. Separate PostgreSQL sessions exercised a signed-link claim waiting on delivery, two workers applying an upgrade, and delivery waiting on acceptance. Each observed the expected lock wait with pg_blocking_pids. The database deadlock count held steady.

Merge Danger

Door: Forward deployment. Rolling back after new terminal states are written requires code that can read them.

Blast Radius: Invitations

  • The new statuses apply to future deliveries. Past revocations retain their recorded status.
  • The original invitation ID remains the action target. A role upgrade produces an inbox notice without another email.
  • Membership is checked under the existing account, group, and invitation locks. Accepting an organizer offer is still an explicit choice.

@mwoods79
mwoods79 commented Dec 1, 2026
Copy link
Copy Markdown
Contributor Author

The same generated accounts and private group appear in each pair.

Page Before After
Organizer’s invitation history History showing Revoked History identifying the combined invitation
Recipient opening the original email link Link attributing the revocation to the organizer Invites tab with the combined offer and explanation
Recipient’s inbox Inbox with the original invitation Inbox with the organizer offer update
Current member reviewing an organizer offer Review page describing how to join Review page offering to make the member an organizer

* origin/main:
  fix(storage): strip camera metadata from uploaded pictures (#738)
  fix(series): generate dates from the current schedule (#757)
  fix(storage): enforce current access on picture requests (#755)
  fix(huddl): keep pages working when a huddl's group is hidden (#747)
  fix(auth): enforce resend cooldowns and stabilize timing tests (#748)
…belong

An invitation retired because its recipient already belonged to the group
is now bound to that account, as a combined invitation is, so opening the
email link after delivery shows the already-a-member page instead of
asking the signed-in member to sign in with the address they are using.
The invitation page also names the combined status.
* origin/main:
  test: let the shared test storage read pictures (#767)
  fix(live): keep pages open through a transient refresh error (#766)
@mwoods79
mwoods79 merged commit 94174ff into main Dec 2, 2026
5 checks passed
@mwoods79
mwoods79 deleted the t3/invitation-states branch December 2, 2026 00:00
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

0