Skip to content

feat(channels): enable viewer replies and reactions - #3745

Draft
tellaho wants to merge 3 commits into
mainfrom
tho/viewer-thread-permissions
Draft

tellaho wants to merge 3 commits into
mainfrom
tho/viewer-thread-permissions

Conversation

@tellaho

@tellaho tellaho commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Category: new-feature
User Impact: Channel owners and admins can separately let viewers reply in threads or react to messages.

Problem: Channel viewers who want to discuss an announcement had to be given posting access, which also let them start new conversations in the channel feed.

Solution: Add two independent settings in Edit channel details, both off by default. Viewer replies stay in the thread, and viewers can remove their own reactions after additions are disabled. Buzz rechecks permissions before signing and publishing queued actions.

The companion block/buzz #9621 relay change must deploy first. The editor shows the switches when the relay advertises both settings. Existing writers keep their roles until an admin changes them.

File changes

docs/buzz-help.md
Explain viewer participation and the effect of changing existing roles.

src-tauri/src/relay/channel_writes.rs
Validate explicit viewer grant tags in signed settings writes.

src/bundled/channels/ChannelDetailsEditor.tsx
Add the independent switches to the existing editor.

src/bundled/channels/ChannelDetailsEditor.test.tsx
Check that choosing one grant leaves the other switch unchanged when saving.

src/bundled/channels/ChannelGeneralAccess.tsx
Explain what viewers can do with the current settings.

src/features/messages/MessageComposer.tsx
Check the applicable grant for composing and editing threaded replies.

src/features/messages/MessageManagement.tsx
Keep edit and delete actions available for eligible replies.

src/features/messages/MessageReactions.tsx
Keep removal of an owned reaction available when adding reactions is disabled.

src/features/messages/MessageReactions.test.tsx
Exercise removal independently of the add control.

src/features/messages/MessageRow.tsx
Use the channel's action permissions for reply and reaction controls.

src/features/messages/ThreadPanel.tsx
Show a reply composer in eligible threads.

src/features/messages/VideoReviewReactions.tsx
Require posting access for video frame quick reactions, which create timecoded comments.

src/features/messages/MediaReviewViewer.comments.test.tsx
Exercise the frame reaction gate with thread replies enabled for viewers.

src/features/relay/channel-details-protocol.ts
Parse, validate, and encode the two explicit settings.

src/features/relay/channel-details.test.ts
Cover grant serialization, omission, and validation.

src/features/relay/channel-details.ts
Confirm the relay's stored grants after a settings write.

src/features/relay/channel-permissions.ts
Derive viewer permissions for each action.

src/features/relay/contracts.ts
Expose the settings on channel details and summaries.

src/features/relay/discovery.ts
Project the grants from signed channel metadata.

src/features/relay/messages.ts
Gate writes by action and keep viewer reply edits inside the thread.

src/features/relay/session.ts
Recheck grants during delivery and use the canonical reaction target when a legacy event omits its channel.

src/features/relay/session-permissions.test.ts
Exercise independent grants, revocation, publication, and legacy reaction removal.

How to try it

  1. Connect to a relay that supports viewer participation settings and open a stream channel as owner or admin. Open View channel details, then Edit channel name to open the details editor.
  2. Enable Allow viewers to reply in threads and leave reactions off. Save. An account with the Viewer role can reply inside an existing thread. The channel composer, broadcast action, and reaction add controls remain unavailable.
  3. Enable reactions and have the viewer react to a message. Disable additions and confirm the viewer can still remove that reaction.

Validation

The pre-push TypeScript, related unit tests, design checks, and Rust Clippy passed at 1f599df55ce6967f495591f9dd0f6daa6a3d3520. Two headless Chromium checks exercised the production frontend with disposable relay data. They verified independent switches using keyboard and pointer, dark and light themes, narrow layout with enlarged text, and the editor with older relay metadata.

A separate headless Chromium walkthrough at 1f599df55c against a disposable local feature relay at 9ba2f6f6c verified Viewer thread replies, writer-only root and broadcast controls, and reaction addition and removal after revocation. Relay history confirmed the reply and reaction removal. The Viewer session was reloaded after each settings change. Live propagation in an open tab and native walkthroughs remain open. Required CI passed.

Relay without viewer settings Relay with viewer settings
The channel details editor on a relay without viewer settings The channel details editor with viewer replies enabled and reactions off

tellaho and others added 3 commits November 17, 2026 10:35
Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@feedback.communities.buzz.xyz>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@feedback.communities.buzz.xyz>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@feedback.communities.buzz.xyz>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
@tellaho

tellaho commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Ned, a coding agent, reviewed the channel participation changes at 3ef024b8a57a417a6624207b80d8b9db0aa80a1b at source level. The review found two issues. Removing a legacy reaction could infer the wrong channel when the event omitted its channel tag, and enabling viewer replies also enabled the video frame React control, which posts a timecoded comment.

65d697d53aa3901bdf49af615b4a34d3a22d2970 uses the shared reaction target selector for removal and requires posting access for frame reactions. The regression checks cover both paths. The pre-push checks also caught an edit regression in sessions without channel discovery, fixed in 1f599df55ce6967f495591f9dd0f6daa6a3d3520.

The draft head passed TypeScript, related unit tests, design checks, and Rust Clippy. Two headless Chromium checks with disposable relay data covered the settings editor. Native and live relay end-to-end validation remain open.

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