Skip to content

Channel point rewards on the mod page (0.11.0) - #48

Merged
Finesssee merged 2 commits into
mainfrom
points-admin-section
Oct 20, 2026
Merged

Finesssee merged 2 commits into
mainfrom
points-admin-section

Conversation

@Finesssee

Copy link
Copy Markdown
Collaborator

What

  • New Channel point rewards that add PixFray dollars section on the mod page's Stream setup tab.
    • Broadcaster or owner: Allow channel point rewards (points sign-in) until the stored token has channel:manage:redemptions, then a form to add a reward (name, cost, dollars) and Delete per row. Add is disabled at 5 rewards.
    • Moderators: rewards and redemptions, no controls, a note that only the broadcaster can change them.
    • Recent redemptions: when, viewer, reward, outcome (flags a refund or completion Twitch didn't accept), dollars.
  • GET /api/admin/:channel adds pointsReady.
  • Phone layout: both tables fit at 390 px (detail columns drop, like #duels).
  • Docs: STREAMER_SETUP §6, CONTRACTS §2, DUELS. Version 0.11.0.

Tests

  • bun run check: 432 pass (new hardening test for pointsReady).
  • tests/ui.ts step 7d (not in CI): not-allowed broadcaster, allowed broadcaster (validation, Twitch rejection, add to 5, limit, delete), moderator; both widths, no overflow. Run on its own locally: pass.

The broadcaster or owner allows the points permission, then adds and deletes up to 5 rewards on the Stream setup
tab; mods see the rewards and the latest redemptions. GET /api/admin returns pointsReady from the stored token's
scopes.
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: nesszer/pixfray/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a0352366-d97a-48a8-8b80-7dd055cf5200
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Twitch grants the points scope only to the broadcaster's own account, so the site owner on another channel gets a
note instead of a sign-in that ends in wrong_account.
@Finesssee
Finesssee merged commit e4b73f4 into main Oct 20, 2026
3 checks passed
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