Skip to content

CP-9058: Document organisation, workspace and team announcements - #144

Merged
mattkepple merged 1 commit into
mainfrom
CP-9058-announcement-docs
Nov 7, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-9058-announcement-docs

Conversation

@mattkepple

@mattkepple mattkepple commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Jira: https://makerble.atlassian.net/browse/CP-9058
Rails PR: MakerbleDev/makerble#17468, the API v2 change. It is PR 4 of 4 and stacked on MakerbleDev/makerble#17452, MakerbleDev/makerble#17463 and MakerbleDev/makerble#17466.
MCP companion: MakerbleDev/makerble-mcp#139.

What changes

Announcements gain scope_type / scope_id. These are an Organisation's, Workspace's or Team's announcements, written by its Organisation Admins, Workspace editors or Team leaders for the colleagues there, alongside Makerble's own "What's new in Makerble" popups.

  • openapi.yaml:
    • The four Announcements operations say who may see and change what:
      • System Access users: everything.
      • Anyone else: only the places where they hold the role.
      • Someone who can make announcements nowhere: 403.
    • GET /announcements gains scope_type / scope_id query filters.
    • POST /announcements gains a 404 for a place that doesn't exist, and two request examples (Makerble's own, and a Workspace's). These replace the single example, because OpenAPI doesn't allow both.
    • Announcement and AnnouncementInput gain scope_type (enum Charity, Project, Team, nullable on the response) and scope_id. The visual_type, learn_more_url and audience descriptions explain the rules for a place's announcements.
  • server.js: the Announcements section's description and its four endpoint cards, to match.

The diff touches only openapi.yaml and the Announcements endpoint cards in server.js: no styles, <head>, vercel.json, SPEC_PATH or assets/. Branched from the latest main. npm run check passes.

The Rails repo's vendored spec/support/api_schemas/openapi.yaml has the identical Announcements changes, and its contract specs (spec/requests/api/contract/announcements_spec.rb, 45 examples with the Authority specs) pass against them.

Release timing

If the API docs are still pre-launch, this may be merged as soon as it has been reviewed. Once they have launched publicly, don't merge it until the Rails change is live in production, because every push to main deploys.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F1a5xoVQki9f6Eb7obyz99

CP-9058. Announcements gain scope_type and scope_id: an Organisation's,
Workspace's or Team's announcements, written by its Organisation
Admins, Workspace editors or Team leaders for the colleagues there.
Updates the four Announcements operations, the request examples and the
endpoint cards: who may see and change what, the 404 for a place that
doesn't exist, and the list filter.

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

vercel Bot commented Nov 6, 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 6, 2026 5:05pm UTC

@mattkepple
mattkepple marked this pull request as ready for review November 7, 2026 08:20
@mattkepple
mattkepple merged commit 3c2cdfd into main Nov 7, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — b4ded998 Deployed Nov 6, 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