Skip to content

CP-9154: document announcement roles, audience rules and facts - #159

Merged
mattkepple merged 1 commit into
mainfrom
CP-9154-announcement-audience
Nov 14, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-9154-announcement-audience

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Companion to the Rails work for https://makerble.atlassian.net/browse/CP-9154. The API v2 changes are in https://github.com/MakerbleDev/makerble/pull/17693 (stacked on #17690 and #17684).

What

  • openapi.yaml:

    • roles and audience_rules on AnnouncementInput and Announcement;
    • new GET /announcements/facts (listAnnouncementFacts, tag Announcements, tokenAuth, 401/403);
    • AnnouncementFact and PaginatedAnnouncementFacts schemas.

    The text matches the vendored copy in the Rails repo (spec/support/api_schemas/openapi.yaml), which the Rails contract specs validate responses against.

  • server.js: a paragraph on roles and behaviour rules in the Announcements section, the new "List Announcement Facts" endpoint card, and roles / audience_rules added to the create body.

npm run check passes. Only openapi.yaml and the Announcements cards in server.js change.

Release timing

This deploys the moment it reaches main. While the API docs are pre-launch it may be merged once reviewed, without waiting for the Rails change to reach production. Once they have launched publicly, hold it until https://github.com/MakerbleDev/makerble/pull/17693 is live in production.


Generated by Claude Code

CP-9154. Announcements gain roles and audience_rules (Makerble's own
only), and GET /announcements/facts lists the facts the rules can use.
Both openapi.yaml and the hand-written endpoint cards in server.js.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xqXsty21P7u9MUD9KH
@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 14, 2026 9:08am UTC

@mattkepple
mattkepple marked this pull request as ready for review November 14, 2026 10:07
@mattkepple
mattkepple merged commit 4beab09 into main Nov 14, 2026
3 checks passed

Copy link
Copy Markdown
Contributor Author

Merged on Matt's instruction. The Rails side (MakerbleDev/makerble#17684, #17690, #17693) is merged into develop, so these docs describe endpoints that reach production at the next release.

The branch CP-9154-announcement-audience needs deleting by hand; the session's git proxy refuses branch deletes.


Generated by Claude Code

This branch was successfully deployed

1 active deployment
Preview — e3dbf0a0 Deployed Nov 14, 2026 by vercel[bot]
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.

2 participants