Skip to content

feat(moderation): mint invite links that never expire - #4120

Draft
wpfleger96 wants to merge 1 commit into
mainfrom
hayt/invite-never-expires-ui
Draft

wpfleger96 wants to merge 1 commit into
mainfrom
hayt/invite-never-expires-ui

Conversation

@wpfleger96

@wpfleger96 wpfleger96 commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Lets owners and admins mint invite links that never expire.

  • Never expires option in the Invite tab's expiry menu, which mints with never_expires: true instead of ttl_secs. Both hosts validate the request: never_expires must be true and can't be combined with ttl_secs.

Needs a relay that accepts never_expires.

Screenshots of the Never expires option and list rows: #3910 (comment)

Stack: builds on #3910 (merged)

Related: buzz#9690

@wpfleger96
wpfleger96 force-pushed the hayt/invite-list-revoke branch from 82292dd to 2ea471e Compare November 20, 2026 21:13
@wpfleger96
wpfleger96 force-pushed the hayt/invite-never-expires-ui branch 4 times, most recently from 5925fd3 to a963e0b Compare November 20, 2026 21:48
@wpfleger96
wpfleger96 force-pushed the hayt/invite-list-revoke branch from 0e8f671 to bb43b2f Compare November 20, 2026 22:05
@wpfleger96
wpfleger96 force-pushed the hayt/invite-never-expires-ui branch from a963e0b to 2968832 Compare November 20, 2026 22:06
wpfleger96 added a commit that referenced this pull request Nov 20, 2026
Adds invite-link management to community Membership settings.

- **Links tab** for owners and admins: each invite with its status, uses
and expiry, a **Revoke** button on every row (with confirmation),
paging, and a Refresh that keeps pages already loaded. A **Revoke a
link** field takes a pasted invite link for this community and revokes
it by its code. People who already joined stay in.
- **Revoke results** come from the relay's receipt, so a revoked row
shows Revoked even when a later list read fails. A failed revoke keeps
the confirmation open with a readable error and Retry; after a timeout,
Refresh shows what the relay holds. A revoke still in flight, success or
failure, still shows when the admin goes Back to Members and Forward
again. After a row is revoked, focus moves to the list.
- **Links without an expiry** read "Never expires" in the list.
- **Both hosts** (browser broker and native `relay_http`) support a
signed `GET /api/invites`, which accepts only the relay's opaque
`before` cursor, and `POST /api/invites/revoke`. Request shapes are
normalized in `admin-protocol.ts`.

Minting is unchanged from main.

Stack: #3910 → #4120

Related: [buzz#9680](block/buzz#9680)

---------

Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
Base automatically changed from hayt/invite-list-revoke to main November 20, 2026 22:18
@wpfleger96
wpfleger96 force-pushed the hayt/invite-never-expires-ui branch from 2968832 to 2d07241 Compare November 20, 2026 22:19
Adds a Never expires choice to the invite expiry menu, sends
never_expires to relays that support it, and shows Never expires in
the Links list.

Signed-off-by: Will Pfleger <wpfleger@block.xyz>
@wpfleger96
wpfleger96 force-pushed the hayt/invite-never-expires-ui branch from 2d07241 to 7767022 Compare November 22, 2026 19:24

This branch has not been deployed

No deployments
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