Skip to content

feat(notifications): Discord embed for proposal.reviewed - #5

Merged
smmariquit merged 2 commits into
mainfrom
feat/proposal-reviewed-notify
Jul 3, 2026
Merged

feat(notifications): Discord embed for proposal.reviewed#5
smmariquit merged 2 commits into
mainfrom
feat/proposal-reviewed-notify

Conversation

@smmariquit

@smmariquit smmariquit commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Handle proposal.reviewed in Discord delivery → #contributors
  • Green approve / red reject / amber needs-changes embeds
  • Schema test + docs

Test plan

  • bun test src/notifications/notifications.test.ts
  • Deploy to Heroku after merge
  • curl sample proposal.reviewed → embed in #contributors

Closes #4
Pairs with uplbtools/room-tba#222


Note

Low Risk
Additive notification path with no auth or ingress changes; low blast radius beyond new Discord messages in #contributors.

Overview
Adds proposal.reviewed handling so room-tba admin approve/reject/request-changes events post to #contributors, alongside existing proposal.submitted notifications.

Discord delivery builds outcome-colored embeds (green approved, red rejected, amber needs-changes) with entity, submitter, reviewer, proposal ID, and an optional truncated editor note. Types add ProposalReviewOutcome and ProposalReviewedPayload; docs/notifications.md documents the payload and routing.

Coverage includes schema acceptance and POST /notifications for proposal.reviewed. Remaining diff is mostly formatting/import reordering.

Reviewed by Cursor Bugbot for commit 7a1f783. Bugbot is set up for automated code reviews on this repo. Configure here.

Post approve/reject/needs-changes updates to #contributors when room-tba
emits proposal.reviewed on admin review routes.

Closes #4
Copilot AI review requested due to automatic review settings July 3, 2026 08:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cursor

cursor Bot commented Jul 3, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_e5866809-b58c-4982-83a4-b5752f3cb9f1)

@smmariquit
smmariquit merged commit 379435d into main Jul 3, 2026
2 checks passed
@smmariquit
smmariquit deleted the feat/proposal-reviewed-notify branch July 3, 2026 09: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.

feat(notifications): Discord embed for proposal.reviewed (approve/reject/needs_changes)

2 participants