From ef3c7081632db7ccb9ac9e7192cb345a9f25895f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 16:21:46 +0000 Subject: [PATCH] Document workspace colours and extras' icons for onboarding set-up POST and GET onboarding_journeys gain workspace_colours, and GET onboarding_extras returns each extra's icon (CP-9324). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xppHqUrg9goQSbszXs --- openapi.yaml | 23 +++++++++++++++++++++-- server.js | 3 ++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index a2a94a1..ed96eb2 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -19283,7 +19283,8 @@ paths: `spacing` says how the area is split into workspaces: `facilitator` (one per coach, mentor or practitioner), `site` (one per location), `cohort` (one per intake of a group or class) or `single` (one workspace, named after the area of work when `workspace_names` is empty). Up to - 50 workspace names of up to 100 characters each. `toolkit_id` must be a listed Toolkit. + 50 workspace names of up to 100 characters each. `workspace_colours` optionally gives each + workspace its colour, in the same order. `toolkit_id` must be a listed Toolkit. The workspaces are made in the background, so this answers 202 with `status: building`. Ask GET /onboarding_journeys/{id} until `status` is `completed` (then `workspace_ids` and @@ -19313,6 +19314,14 @@ paths: items: type: string maxLength: 100 + workspace_colours: + type: array + description: >- + The colour of each workspace, in the same order as `workspace_names`, as a six-digit hex + colour. A missing or invalid colour is replaced with the next Makerble brand colour. + items: + type: string + pattern: '^#[0-9A-Fa-f]{6}$' extra_ids: type: array items: @@ -19322,6 +19331,7 @@ paths: toolkit_id: 62 spacing: site workspace_names: [Leeds, York] + workspace_colours: ['#22B573', '#7E6CB0'] extra_ids: [1, 4] responses: "202": @@ -19337,6 +19347,7 @@ paths: toolkit_id: 62 spacing: site workspace_names: [Leeds, York] + workspace_colours: ['#22B573', '#7E6CB0'] extra_ids: [1, 4] status: building workspace_ids: [] @@ -19382,6 +19393,7 @@ paths: toolkit_id: 62 spacing: site workspace_names: [Leeds, York] + workspace_colours: ['#22B573', '#7E6CB0'] extra_ids: [1, 4] status: completed workspace_ids: [901, 902, 903, 904] @@ -19399,7 +19411,8 @@ paths: description: | The extras offered on the onboarding journey's Add extras step, in order: Referrals, Parents, Referees, Volunteers, Fundraising and any others Makerble offers. Each one makes a workspace - with its own Project Type. Pass their ids as `extra_ids` when setting up an area of work. + with its own Project Type, and `icon` names the icon it is shown with (chosen by Makerble from a + fixed set, or null). Pass their ids as `extra_ids` when setting up an area of work. operationId: listOnboardingExtras security: [{tokenAuth: []}] parameters: @@ -19421,11 +19434,13 @@ paths: description: Take in referrals from other organisations and professionals. project_type_id: 12 project_type_name: Referrals + icon: referrals - id: 4 name: Volunteers description: Recruit, support and keep track of your volunteers. project_type_id: null project_type_name: null + icon: volunteers "401": $ref: '#/components/responses/Unauthorized' /organisations/{organisation_id}/setup_guide: @@ -22039,6 +22054,10 @@ components: toolkit_id: {type: integer, nullable: true} spacing: {type: string, enum: [facilitator, site, cohort, single], nullable: true} workspace_names: {type: array, items: {type: string}} + workspace_colours: + type: array + description: The colour each workspace is made in, in the same order as workspace_names. + items: {type: string} extra_ids: {type: array, items: {type: integer}} status: {type: string, enum: [in_progress, exited, building, failed, completed]} workspace_ids: {type: array, items: {type: integer}} diff --git a/server.js b/server.js index 1434156..31a4c76 100644 --- a/server.js +++ b/server.js @@ -5201,6 +5201,7 @@ function buildDocsPage() { { name: "toolkit_id", in: "body", type: "integer", required: true, desc: "A listed Toolkit, installed into each of the area's workspaces" }, { name: "spacing", in: "body", type: "string", required: true, desc: "facilitator, site, cohort or single" }, { name: "workspace_names", in: "body", type: "array", required: false, desc: "One name per workspace, up to 50. For single, the area of work's name when empty" }, + { name: "workspace_colours", in: "body", type: "array", required: false, desc: "Each workspace's colour as a six-digit hex colour, in the same order as workspace_names; a missing or invalid one gets the next Makerble brand colour" }, { name: "extra_ids", in: "body", type: "array", required: false, desc: "Extras from GET /onboarding_extras" } ], [ { code: "202", cls: "response-2xx", desc: "The set-up, with status building" }, @@ -5218,7 +5219,7 @@ function buildDocsPage() { { name: "page", in: "query", type: "integer", required: false, desc: "Page number (default 1)" }, { name: "per_page", in: "query", type: "integer", required: false, desc: "Records per page (default 10, max 200)" } ], [ - { code: "200", cls: "response-2xx", desc: "page, page_size, page_count, total_count and data: each extra's id, name, description, project_type_id and project_type_name" } + { code: "200", cls: "response-2xx", desc: "page, page_size, page_count, total_count and data: each extra's id, name, description, project_type_id, project_type_name and icon" } ])}