Repository navigation
feat(moderation): list and revoke invite links - #3910
Conversation
|
🤖 Gurney: cropped browser evidence at Chromium and WebKit owner journeys, plus a Chromium admin journey, passed finite/permanent mint, list metadata, confirmation cancellation, row revocation and pasted-link revocation. Fresh claimants joined before revocation and received 403 The production browser broker and real relay were used with disposable identities. The sandbox maps secure relay origins to loopback HTTP/WebSocket at the injected transport boundary; this does not establish TLS, native signing/IPC, Keychain, or native-webview acceptance. Native Tauri app acceptance was not run and remains outstanding. These are browser screenshots, not native screenshots or shipping clearance. All links shown below were revoked before publication. No production source was changed. Expiry menu includes Never expires
Permanent link selected and minted
Finite and permanent links with creator, creation time and usage
Row confirmation names the specific link
Wrong-community paste is refused and associated with its field
Revoked status and successful completion
|
|
🤖 Gurney — refreshed light/dark screenshots of #3910 at The mounted Membership → Links UI and production browser broker used a real throwaway local relay at Observed in headless Chromium:
Scope: targeted rendered/browser evidence, not native Tauri/IPC/Keychain acceptance, TLS verification, full race/pagination review, human acceptance or PR approval. No production source was changed. Refused revoke: readable message and Retry stay inside the confirmation
Directly seeded NULL expiry: “Never expires” beside a finite control
Successful row revoke: Revoked status, no row action, completion notice
|
wesbillman
left a comment
There was a problem hiding this comment.
🤖 Star Lord — Changes needed at 82292dd. The inline comments cover revoke recovery and compatibility with the relay’s nullable expiry contract. The reported Chromium/WebKit run covers this head. Native app acceptance is outstanding.
Product scope — #348 established Membership as the owner of community invite controls. Please confirm that the new Links tab belongs in the default-enabled Membership plugin before shipping it.
All four commits lack the Signed-off-by trailer required by AGENTS.md. The hosted DCO check passed.
kalvinnchau
left a comment
There was a problem hiding this comment.
🤖 Two additional UI findings: readable revoke errors and stable focus restoration. Pagination reset is already covered by discussion_r4647650404.
kalvinnchau
left a comment
There was a problem hiding this comment.
🤖 Add UI regression coverage for pagination and failed revoke recovery.
82292dd to
2ea471e
Compare
kalvinnchau
left a comment
There was a problem hiding this comment.
🤖 Three remaining findings concern failed revoke recovery and retained-tab regression coverage.
kalvinnchau
left a comment
There was a problem hiding this comment.
🤖 Approved after re-reviewing the latest fixes at 0e8f671. No actionable findings remain.
The previously reported issues are addressed:
- Failed revokes completed while Links is hidden retain their error and restore the confirmation on return; keyboard Retry succeeds.
- The confirmation action preserves focus while loading and after refusal, while repeated activation does not submit duplicate requests.
- Lifecycle tests now detect regressions in panel hiding, unsent-confirmation dismissal, failure retention, and loading-focus behavior.
Chromium and WebKit checks also confirmed pagination across same-second boundaries, refresh failure/recovery, stale-read receipt handling, and navigation behavior. The targeted component/protocol tests passed (32/32).
Browser checks used modeled invite routes; native-host behavior, a live relay, and runtime demotion were not exercised. Required CI must pass before merge.
…inks Adds a Links tab to community Membership settings for owners and admins: the community's invite links with status, uses and expiry, a Revoke button per row, and a field that revokes a pasted link by its code. The Invite tab gains a Never expires option that mints with never_expires: true, and a never-expiring link reads Never expires. Both hosts gain the relay's new routes: GET /api/invites (signed, with only the relay's opaque before cursor) and POST /api/invites/revoke, through shared request normalizers in admin-protocol.ts. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
- Broker and native tests drive list and revoke through the production dispatch: method, full URL with before, NIP-98 u/method binding, no payload on the GET, payload binding on revoke, rejected paths/queries, and a code-bearing refusal that is not echoed. - Native relay_http's signing decision is a named fn the test exercises. - The list cursor uses the canonical UUID pattern revoke ids use. - Rows and the revoke confirmation show a short id and creation time. - The paste field's error is tied to the input (aria-describedby/invalid). Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
…ord broker method Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Mint UI and request validation match main again; the Links list shows only finite expiries. Signed-off-by: Will Pfleger <wpfleger@block.xyz>
…anges Apply the revoke receipt to the loaded row so a failed follow-up read cannot leave it Active, keep a Refresh/Retry independent of the write that preserves older pages, keep the confirmation open with its error and a retry when revoke fails, keep the Links panel mounted after its first visit so an in-flight revoke lands across Back/Forward, and show listed links without an expiry as never expiring. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Map the relay's revoke refusal codes to plain messages in the confirmation, move focus to the invite list once a revoked row loses its Revoke button, and assert the paging cursor. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Refresh walks the relay's cursors over as many pages as are shown and replaces the list only when every read succeeds, instead of merging page one into older pages by whole-second timestamps. Rows are deduplicated by id and confirmed revoke receipts still win over stale reads. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Leaving the Links tab now drops only a confirmation that was never sent, so a revoke that fails while Members is shown still shows its error and Retry on return. Tests cover the hidden panel, a dismissed unsent confirmation, and a failure that arrives while hidden. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
The confirm action is no longer disabled while loading; loading alone blocks a second submit and keeps it focusable, so Enter can retry after a refusal. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
0e8f671 to
bb43b2f
Compare
* origin/main: (55 commits) feat(moderation): list and revoke invite links (block#3910) Truncate long relayed channel names (block#4130) Show a plugin icon on install links (block#4115) fix(relay): show saved avatars in the restored session before connecting (block#4085) Restore saved channels only after a complete channel list (block#4129) Keep the newest channels when restoring saved heads (block#4119) fix(agents): review fixes for Goose and Pi turns, Goose usage, Solo worktrees, and Trust (block#3903) fix(agents): tell Claude Code, Goose and Pi sessions what they are (block#3901) fix(settings): show default base instruction text (block#3887) feat(plugins): give Pi turns the notes plugins leave, and say which harnesses do (block#3834) feat(plugins): give Goose and Pi conversations their own folder (block#3833) feat(plugins): let a plugin replace base prompt sections for Goose and Pi agents (block#3831) feat(plugins): let a plugin replace base prompt sections in a conversation it manages (block#3816) Scope agent activity updates by channel (block#4033) Reduce work on composer keystrokes (block#4036) Only dot "also sent to channel" replies in your own threads (block#3938) feat(statuses): read bylines' statuses with their profiles (block#4116) feat(statuses): save statuses with profiles so bylines show them at once (block#4114) feat(settings): clear cached data and show its size from Local settings (block#4086) feat(media): save relay images on disk across launches (block#4081) ...
* origin/main: feat(search): send people, mention and membership facts to the rerank (#3989) feat(usage): group cost by the timer or watch that started it (#3522) fix(messages): relayed row follow-ups: avatar padding, screen-reader dates, DM "from" (#4100) feat(design-system): add a popout accordion variant (#4125) Expose invocation subthreads to plugins (#3730) feat(moderation): list and revoke invite links (#3910) Truncate long relayed channel names (#4130) Show a plugin icon on install links (#4115) fix(relay): show saved avatars in the restored session before connecting (#4085) # Conflicts: # src/features/agent-harness/acp/agent-sessions.ts
* origin/main: (39 commits) docs(agents): build new features as directory plugins first (#4022) Reduce frozen tag scans on relay reads (#4162) feat(agents): let a plugin harness show its sessions in the host transcript viewer (#4153) Expose confirmed owner send evidence (#4133) Keep the sidebar steady when a channel disappears (#4000) feat(unread): list a channel's unread messages from evidence (#3996) fix(panels): keep the board still while a profile panel opens (#3130) Keep the sidebar stable during refresh (#3997) Let a region channel group render under its Team sidebar row (#4099) Sign agent invocation intent in thread replies (#3876) feat(search): send people, mention and membership facts to the rerank (#3989) feat(usage): group cost by the timer or watch that started it (#3522) fix(messages): relayed row follow-ups: avatar padding, screen-reader dates, DM "from" (#4100) feat(design-system): add a popout accordion variant (#4125) Expose invocation subthreads to plugins (#3730) feat(moderation): list and revoke invite links (#3910) Truncate long relayed channel names (#4130) Show a plugin icon on install links (#4115) fix(relay): show saved avatars in the restored session before connecting (#4085) Restore saved channels only after a complete channel list (#4129) ... Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> # Conflicts: # docs/unread.md # src/bundled/channels/ChannelSidebarItem.tsx # src/bundled/channels/ChannelSidebarRow.tsx # src/bundled/channels/SidebarUnread.tsx


















Adds invite-link management to community Membership settings.
relay_http) support a signedGET /api/invites, which accepts only the relay's opaquebeforecursor, andPOST /api/invites/revoke. Request shapes are normalized inadmin-protocol.ts.Minting is unchanged from main.
Stack: #3910 → #4120
Related: buzz#9680