From 5aa4350ecad9510051c748f73141c8588ccdf2fa Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 08:43:23 +0000 Subject: [PATCH 1/5] Document Explore Report Templates (CP-8870) Add GET /explore/report_templates and /{id} to openapi.yaml and the docs page, and let the shared facet group schema hold any Explore page's filter keys. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JuVKwFwaXyvHMwANXhuKae --- openapi.yaml | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++- server.js | 31 +++++++ 2 files changed, 259 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 0d811cd..dac3897 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5154,6 +5154,156 @@ paths: "404": $ref: '#/components/responses/NotFound' + /explore/report_templates: + get: + tags: [Explore] + summary: Explore Report Templates + operationId: listExploreReportTemplates + description: | + Lists the Report Templates in the Makerble® ImpactStore™, with the same search, filters, + counts and sort as the Explore Report Templates page. Every caller sees the same Report + Templates; `yours` and `in_your_library` depend on the caller's organisations. + + - `query` matches the Report Template's name or description, or the label of who it's for + or its theme. + - The filters take option keys, as arrays (`theme[]=community`) or comma-separated + (`theme=community,governance`). Options in one filter combine with OR and filters + combine with AND: + - `recipient` (Who it's for): `funder`, `trustees`, `local_authority` (Commissioner or + contract), `corporate_partner`, `internal` + - `theme`: `children_and_young_people`, `community`, `employment`, `governance`, + `health_and_wellbeing`, `volunteering` + - `output` (Answer formats): `narrative`, `number`, `chart`. A Report Template matches + when any of its questions asks for that format. + - `facets` gives each filter's options with how many Report Templates each would return, + given the other filters already chosen. + - `sort` is `added` (in the most organisations' libraries first, the default), `new` or `az`. + - Add a Report Template to your organisation's library in the app with **Add to your + library** on Explore Report Templates. + security: [{tokenAuth: []}] + parameters: + - name: query + in: query + required: false + schema: + type: string + example: end of grant + description: Words to look for in the Report Template's name, description, recipient or theme + - name: recipient + in: query + required: false + schema: + type: string + example: funder,trustees + description: Who it's for option keys, comma-separated or repeated as recipient[] + - name: theme + in: query + required: false + schema: + type: string + example: community + description: Theme option keys, comma-separated or repeated as theme[] + - name: output + in: query + required: false + schema: + type: string + example: chart + description: Answer format option keys, comma-separated or repeated as output[] + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: The listed Report Templates that match, and each filter's option counts + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExploreReportTemplates' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 18 + slug: annual-grant-report-to-a-funder + name: Annual Grant Report to a Funder + description: The yearly report most grant funders ask for. + recipient: funder + theme: community + question_count: 5 + answer_formats: [narrative, number, chart] + shared_by: Makerble® ImpactStore™ + libraries_count: 31 + yours: false + in_your_library: false + facets: + - key: recipient + label: Who it's for + options: + - value: funder + label: Funder + count: 1 + selected: true + "401": + $ref: '#/components/responses/Unauthorized' + + /explore/report_templates/{id}: + get: + tags: [Explore] + summary: Preview an Explore Report Template + operationId: getExploreReportTemplate + description: | + One Report Template listed on Explore Report Templates, as its Preview shows it: the fields + of **Explore Report Templates** plus `questions`, each with its `title` and the + `answer_formats` it asks for, in order. A Report Template that isn't in the ImpactStore is a 404. + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: + type: integer + example: 18 + responses: + "200": + description: The Report Template's preview + content: + application/json: + schema: + $ref: '#/components/schemas/ExploreReportTemplatePreview' + example: + id: 18 + slug: annual-grant-report-to-a-funder + name: Annual Grant Report to a Funder + description: The yearly report most grant funders ask for. + recipient: funder + theme: community + question_count: 2 + answer_formats: [narrative, number] + shared_by: Makerble® ImpactStore™ + libraries_count: 31 + yours: false + in_your_library: false + questions: + - title: What did you set out to achieve? + answer_formats: [narrative] + - title: Who did you reach? + answer_formats: [number] + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + /library/search: get: tags: [Library] @@ -10104,7 +10254,7 @@ components: properties: key: type: string - enum: [theme, audience, time, feature] + description: The filter's query parameter, e.g. theme. Each Explore endpoint lists its own. label: type: string options: @@ -10118,7 +10268,7 @@ components: type: string count: type: integer - description: How many Surveys this option would return, given the other filters already chosen + description: How many items this option would return, given the other filters already chosen selected: type: boolean @@ -10160,6 +10310,82 @@ components: items: type: string + ExploreReportTemplate: + type: object + properties: + id: + type: integer + slug: + type: string + name: + type: string + description: + type: string + nullable: true + recipient: + type: string + nullable: true + enum: [funder, trustees, local_authority, corporate_partner, internal, null] + theme: + type: string + nullable: true + question_count: + type: integer + answer_formats: + type: array + items: + type: string + enum: [narrative, number, chart] + shared_by: + type: string + libraries_count: + type: integer + description: How many organisations have it in their library + yours: + type: boolean + description: Whether one of the caller's organisations owns it + in_your_library: + type: boolean + description: Whether it is in the library of one of the caller's organisations + + PaginatedExploreReportTemplates: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExploreReportTemplate' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreReportTemplatePreview: + allOf: + - $ref: '#/components/schemas/ExploreReportTemplate' + - type: object + properties: + questions: + type: array + items: + type: object + properties: + title: + type: string + answer_formats: + type: array + items: + type: string + enum: [narrative, number, chart] + PaginatedLibrarySearch: type: object properties: diff --git a/server.js b/server.js index 367e07e..bf78a94 100644 --- a/server.js +++ b/server.js @@ -900,6 +900,7 @@ function buildDocsPage() { GETOutcomes GETLibrary GETExplore Surveys + GETExplore Report Templates GETImpactStore POSTFramework Sets POSTChecklists @@ -2048,6 +2049,36 @@ function buildDocsPage() { + +
+
Reporting
+

Explore Report Templates

+
+

Explore Report Templates lists the Report Templates in the Makerble® ImpactStore™: funder reports, trustee updates, contract monitoring returns and other reports, each set out as the questions to answer. The API gives the same search, filters, counts and sort as the Explore Report Templates page. Every caller sees the same Report Templates; only yours and in_your_library depend on your organisations.

+

Filters take option keys, as arrays (theme[]=community) or comma-separated (theme=community,governance). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/report_templates", "Explore Report Templates", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Report Template's name or description, or who it's for or its theme" }, + { name: "recipient", type: "string", required: false, desc: "Who it's for: funder, trustees, local_authority (Commissioner or contract), corporate_partner, internal" }, + { name: "theme", type: "string", required: false, desc: "children_and_young_people, community, employment, governance, health_and_wellbeing, volunteering" }, + { name: "output", type: "string", required: false, desc: "Answer formats any of its questions ask for: narrative, number, chart" }, + { name: "sort", type: "string", required: false, desc: "added (in the most organisations' libraries first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Report Templates per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Report Templates updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Report Templates with id, slug, name, description, recipient, theme, question_count, answer_formats, shared_by, libraries_count (organisations with it in their library), yours and in_your_library, plus facets: each filter's options with how many Report Templates each would return given the other filters" } + ])} + ${endpointCard("GET", "/explore/report_templates/{id}", "Preview an Explore Report Template", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Report Template's id from Explore Report Templates" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Report Template's fields as above plus questions, each with its title and the answer_formats it asks for, in order" }, + { code: "404", cls: "response-4xx", desc: "Not in the ImpactStore" } + ], "To use a Report Template, add it to your organisation's library in Makerble with Add to your library on Explore Report Templates.")} +
+
+
Impact framework
From 64add2c5aa158b042628dbc514faae9f41214f3a Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 08:56:18 +0000 Subject: [PATCH 2/5] Document Explore Dropdowns (CP-8870) Add GET /explore/dropdowns and /{id} to openapi.yaml and the docs page. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JuVKwFwaXyvHMwANXhuKae --- openapi.yaml | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 32 ++++++++ 2 files changed, 234 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index dac3897..ef6035a 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5304,6 +5304,149 @@ paths: "404": $ref: '#/components/responses/NotFound' + /explore/dropdowns: + get: + tags: [Explore] + summary: Explore Dropdowns + operationId: listExploreDropdowns + description: | + Lists the Dropdowns (answer-choice lists, Ratio Sets) shared to the Makerble® ImpactStore™ + and approved, with the same search, filters, counts and sort as the Explore Dropdowns page. + Every caller sees the same Dropdowns; `yours` depends on the caller's organisations. + + - `query` matches the Dropdown's title or any of its answer choices. + - The filters take option keys, as arrays (`theme[]=scales`) or comma-separated + (`theme=scales,demographics`). Options in one filter combine with OR and filters + combine with AND: + - `designed_for`: `surveys_and_trackers`, `forms` (bio, event and project forms) + - `choices` (Number of choices): `up_to_10`, `11_to_100`, `over_100` + - `theme`: `scales`, `demographics` + - `chip` is one of the page's Popular chips: `Scales`, `Demographics`, `Equality monitoring`. + - `facets` gives each filter's options with how many Dropdowns each would return, given the + other filters already chosen. + - `sort` is `added` (used in the most surveys, trackers and forms first, the default), `new` + or `az`. + - Copy a Dropdown into your organisation in the app with **Add to organisation** on Explore + Dropdowns. + security: [{tokenAuth: []}] + parameters: + - name: query + in: query + required: false + schema: + type: string + example: ethnicity + description: Words to look for in the Dropdown's title or answer choices + - name: designed_for + in: query + required: false + schema: + type: string + example: surveys_and_trackers + description: Designed for option keys, comma-separated or repeated as designed_for[] + - name: choices + in: query + required: false + schema: + type: string + example: up_to_10 + description: Number of choices option keys, comma-separated or repeated as choices[] + - name: theme + in: query + required: false + schema: + type: string + example: scales + description: Theme option keys, comma-separated or repeated as theme[] + - name: chip + in: query + required: false + schema: + type: string + enum: [Scales, Demographics, Equality monitoring] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: The listed Dropdowns that match, and each filter's option counts + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExploreDropdowns' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 87 + title: Agreement scale + choice_count: 5 + designed_for: [surveys_and_trackers] + themes: [scales] + shared_by: Makerble Templates + used_in_count: 42 + yours: false + facets: + - key: theme + label: Theme + options: + - value: scales + label: Scales + count: 1 + selected: true + "401": + $ref: '#/components/responses/Unauthorized' + + /explore/dropdowns/{id}: + get: + tags: [Explore] + summary: Preview an Explore Dropdown + operationId: getExploreDropdown + description: | + One Dropdown listed on Explore Dropdowns: the fields of **Explore Dropdowns** plus every + one of its answer `choices`, in order. A Dropdown that isn't listed on Explore (not shared + or not approved) is a 404. + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: + type: integer + example: 87 + responses: + "200": + description: The Dropdown and its answer choices + content: + application/json: + schema: + $ref: '#/components/schemas/ExploreDropdownPreview' + example: + id: 87 + title: Agreement scale + choice_count: 5 + designed_for: [surveys_and_trackers] + themes: [scales] + shared_by: Makerble Templates + used_in_count: 42 + yours: false + choices: [Strongly disagree, Disagree, Not sure, Agree, Strongly agree] + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + /library/search: get: tags: [Library] @@ -10386,6 +10529,65 @@ components: type: string enum: [narrative, number, chart] + ExploreDropdown: + type: object + properties: + id: + type: integer + title: + type: string + choice_count: + type: integer + designed_for: + type: array + items: + type: string + enum: [surveys_and_trackers, forms] + themes: + type: array + items: + type: string + enum: [scales, demographics] + shared_by: + type: string + nullable: true + used_in_count: + type: integer + description: How many surveys, trackers and forms use it + yours: + type: boolean + description: Whether the caller or one of the caller's organisations owns it + + PaginatedExploreDropdowns: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExploreDropdown' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreDropdownPreview: + allOf: + - $ref: '#/components/schemas/ExploreDropdown' + - type: object + properties: + choices: + type: array + items: + type: string + PaginatedLibrarySearch: type: object properties: diff --git a/server.js b/server.js index bf78a94..b3ae424 100644 --- a/server.js +++ b/server.js @@ -901,6 +901,7 @@ function buildDocsPage() { GETLibrary GETExplore Surveys GETExplore Report Templates + GETExplore Dropdowns GETImpactStore POSTFramework Sets POSTChecklists @@ -2079,6 +2080,37 @@ function buildDocsPage() {
+ +
+
Forms and surveys
+

Explore Dropdowns

+
+

Explore Dropdowns lists the Dropdowns (answer-choice lists, Ratio Sets) shared to the Makerble® ImpactStore™ and approved: standard scales and category lists that make results compare cleanly across organisations. The API gives the same search, filters, counts and sort as the Explore Dropdowns page. Every caller sees the same Dropdowns; only yours depends on your organisations.

+

Filters take option keys, as arrays (theme[]=scales) or comma-separated (choices=up_to_10,11_to_100). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/dropdowns", "Explore Dropdowns", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Dropdown's title or any of its answer choices" }, + { name: "designed_for", type: "string", required: false, desc: "surveys_and_trackers, forms (bio, event and project forms)" }, + { name: "choices", type: "string", required: false, desc: "Number of answer choices: up_to_10, 11_to_100, over_100" }, + { name: "theme", type: "string", required: false, desc: "scales, demographics" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: Scales, Demographics, Equality monitoring" }, + { name: "sort", type: "string", required: false, desc: "added (used in the most surveys, trackers and forms first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Dropdowns per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Dropdowns updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Dropdowns with id, title, choice_count, designed_for, themes, shared_by, used_in_count (surveys, trackers and forms using it) and yours, plus facets: each filter's options with how many Dropdowns each would return given the other filters" } + ])} + ${endpointCard("GET", "/explore/dropdowns/{id}", "Preview an Explore Dropdown", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Dropdown's id from Explore Dropdowns" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Dropdown's fields as above plus every one of its answer choices, in order" }, + { code: "404", cls: "response-4xx", desc: "Not listed on Explore Dropdowns (not shared or not approved)" } + ], "To use a Dropdown, copy it into your organisation in Makerble with Add to organisation on Explore Dropdowns.")} +
+
+
Impact framework
From 078121c3bb09e025b06d6b34be0d0c4475584deb Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 09:13:34 +0000 Subject: [PATCH 3/5] Document Explore Impact Frameworks (CP-8870) Add GET /explore/impact_frameworks and /{id} to openapi.yaml and the docs page. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JuVKwFwaXyvHMwANXhuKae --- openapi.yaml | 233 +++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 32 +++++++ 2 files changed, 265 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index ef6035a..a485c22 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5447,6 +5447,161 @@ paths: "404": $ref: '#/components/responses/NotFound' + /explore/impact_frameworks: + get: + tags: [Explore] + summary: Explore Impact Frameworks + operationId: listExploreImpactFrameworks + description: | + Lists the public, approved Impact Frameworks (Templates) in the Makerble® ImpactStore™, with + the same search, filters, counts and sort as the Explore Impact Frameworks page. Every caller + sees the same Impact Frameworks; `yours` depends on the caller's organisations. + + - `query` matches the Impact Framework's name or description. + - The filters take option keys, as arrays (`theme[]=inclusion`) or comma-separated + (`theme=inclusion,leadership`). Options in one filter combine with OR and filters + combine with AND: + - `theme`: `mental_health_and_wellbeing`, `children_and_young_people`, `employment_and_skills`, `community_and_culture`, `health`, `organisational`, `global_goals`, `inclusion`, `education_and_training`, `leadership` + - `set` (Part of a Framework Set): a platform-wide Framework Set's id, or `none` for + frameworks in no set. `facets` lists the sets. + - `size`: `up_to_5`, `6_to_10`, `over_10` outcomes + - `chip` is one of the page's Popular chips: `SDGs`, `Inclusion`, `Employment`, `Wellbeing`. + - `facets` gives each filter's options with how many Impact Frameworks each would return, + given the other filters already chosen. + - `sort` is `added` (on the most organisations' projects first, the default), `new` or `az`. + - Add an Impact Framework to projects in the app with **Add to projects** on Explore Impact + Frameworks. + security: [{tokenAuth: []}] + parameters: + - name: query + in: query + required: false + schema: + type: string + example: inclusion + description: Words to look for in the Impact Framework's name or description + - name: theme + in: query + required: false + schema: + type: string + example: global_goals + description: Theme option keys, comma-separated or repeated as theme[] + - name: set + in: query + required: false + schema: + type: string + example: none + description: Framework Set ids or none, comma-separated or repeated as set[] + - name: size + in: query + required: false + schema: + type: string + example: up_to_5 + description: Size option keys, comma-separated or repeated as size[] + - name: chip + in: query + required: false + schema: + type: string + enum: [SDGs, Inclusion, Employment, Wellbeing] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: The listed Impact Frameworks that match, and each filter's option counts + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExploreImpactFrameworks' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 301 + name: Quality Education + description: Outcomes for SDG 4. + themes: [global_goals, children_and_young_people] + framework_sets: + - id: 2 + name: UN Sustainable Development Goals + short_code: SDG 4 + outcome_count: 10 + progress_tracker_count: 3 + shared_by: Makerble Templates + libraries_count: 15 + yours: false + facets: + - key: size + label: Size + options: + - value: 6_to_10 + label: 6 to 10 outcomes + count: 1 + selected: true + "401": + $ref: '#/components/responses/Unauthorized' + + /explore/impact_frameworks/{id}: + get: + tags: [Explore] + summary: Preview an Explore Impact Framework + operationId: getExploreImpactFramework + description: | + One Impact Framework listed on Explore Impact Frameworks, as its Preview shows it: the fields + of **Explore Impact Frameworks** plus `stages`, each stage of change with its `title` + (Activities, Engagement, Ability, Behaviour or Effect) and the outcomes and progress trackers + in it as `items`. An Impact Framework that isn't public and approved is a 404. + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: + type: integer + example: 301 + responses: + "200": + description: The Impact Framework's preview + content: + application/json: + schema: + $ref: '#/components/schemas/ExploreImpactFrameworkPreview' + example: + id: 301 + name: Quality Education + description: Outcomes for SDG 4. + themes: [global_goals] + framework_sets: [] + outcome_count: 1 + progress_tracker_count: 1 + shared_by: Makerble Templates + libraries_count: 15 + yours: false + stages: + - title: Activities + items: [Sessions delivered] + - title: Behaviour (mid-term outcomes) + items: [Stays in school] + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + /library/search: get: tags: [Library] @@ -10588,6 +10743,84 @@ components: items: type: string + ExploreImpactFramework: + type: object + properties: + id: + type: integer + name: + type: string + description: + type: string + nullable: true + themes: + type: array + items: + type: string + framework_sets: + type: array + description: The platform-wide Framework Sets it belongs to + items: + type: object + properties: + id: + type: integer + name: + type: string + short_code: + type: string + nullable: true + outcome_count: + type: integer + progress_tracker_count: + type: integer + shared_by: + type: string + nullable: true + libraries_count: + type: integer + description: How many organisations use it on a project + yours: + type: boolean + description: Whether the caller or one of the caller's organisations owns it + + PaginatedExploreImpactFrameworks: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExploreImpactFramework' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreImpactFrameworkPreview: + allOf: + - $ref: '#/components/schemas/ExploreImpactFramework' + - type: object + properties: + stages: + type: array + items: + type: object + properties: + title: + type: string + items: + type: array + items: + type: string + PaginatedLibrarySearch: type: object properties: diff --git a/server.js b/server.js index b3ae424..48ff8a2 100644 --- a/server.js +++ b/server.js @@ -902,6 +902,7 @@ function buildDocsPage() { GETExplore Surveys GETExplore Report Templates GETExplore Dropdowns + GETExplore Impact Frameworks GETImpactStore POSTFramework Sets POSTChecklists @@ -2111,6 +2112,37 @@ function buildDocsPage() {
+ +
+
Impact framework
+

Explore Impact Frameworks

+
+

Explore Impact Frameworks lists the public, approved Impact Frameworks (Templates) in the Makerble® ImpactStore™: sets of outcomes and progress trackers across the stages of change. The API gives the same search, filters, counts and sort as the Explore Impact Frameworks page. Every caller sees the same Impact Frameworks; only yours depends on your organisations.

+

Filters take option keys, as arrays (theme[]=inclusion) or comma-separated (size=up_to_5,6_to_10). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/impact_frameworks", "Explore Impact Frameworks", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Impact Framework's name or description" }, + { name: "theme", type: "string", required: false, desc: "mental_health_and_wellbeing, children_and_young_people, employment_and_skills, community_and_culture, health, organisational, global_goals, inclusion, education_and_training, leadership" }, + { name: "set", type: "string", required: false, desc: "Part of a Framework Set: a platform-wide Framework Set's id (listed in facets), or none" }, + { name: "size", type: "string", required: false, desc: "Number of outcomes: up_to_5, 6_to_10, over_10" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: SDGs, Inclusion, Employment, Wellbeing" }, + { name: "sort", type: "string", required: false, desc: "added (on the most organisations' projects first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Impact Frameworks per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Impact Frameworks updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Impact Frameworks with id, name, description, themes, framework_sets (each with id, name and short_code), outcome_count, progress_tracker_count, shared_by, libraries_count (organisations using it on a project) and yours, plus facets" } + ])} + ${endpointCard("GET", "/explore/impact_frameworks/{id}", "Preview an Explore Impact Framework", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Impact Framework's id from Explore Impact Frameworks" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Impact Framework's fields as above plus stages, each stage of change with its title (Activities, Engagement, Ability, Behaviour or Effect) and its outcomes and progress trackers as items" }, + { code: "404", cls: "response-4xx", desc: "Not public and approved" } + ], "To use an Impact Framework, add it to projects in Makerble with Add to projects on Explore Impact Frameworks.")} +
+
+
Impact framework
From bd4dcc4f8e9677903181ccaa592ddeecd205c0f9 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 09:35:23 +0000 Subject: [PATCH 4/5] Document Explore Ideas (CP-8870) Add GET /explore/ideas and /{id} to openapi.yaml and the docs page. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JuVKwFwaXyvHMwANXhuKae --- openapi.yaml | 201 +++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 33 +++++++++ 2 files changed, 234 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index a485c22..e9d6000 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5602,6 +5602,156 @@ paths: "404": $ref: '#/components/responses/NotFound' + /explore/ideas: + get: + tags: [Explore] + summary: Explore Ideas + operationId: listExploreIdeas + description: | + Lists the approved Ideas (Tips) shared with everyone in the Makerble® ImpactStore™, with the + same search, filters, counts and sort as the Explore Ideas page. `shared_by`, `person` and + `yours` depend on the caller. + + - `query` matches the Idea's title or text. + - The filters take option keys, as arrays (`theme[]=leadership`) or comma-separated + (`theme=leadership,inclusion`). Options in one filter combine with OR and filters + combine with AND: + - `shared_by`: `anyone`, `colleagues` (colleagues in the caller's organisations and + projects, or the organisations themselves), `following` (people the caller follows), + `me` + - `theme`: `mental_health_and_wellbeing`, `children_and_young_people`, `employment_and_skills`, `community_and_culture`, `health`, `organisational`, `global_goals`, `inclusion`, `education_and_training`, `leadership` + - `audience`: `public_impact`, `personal`, `professional`, from the Idea's causes + - `person`: user ids of people who shared Ideas. Only the caller's colleagues, people + they follow and the caller count; any other id is ignored. + - `chip` is one of the page's Popular chips: `Community`, `Young people`, `Training`, + `Leadership`. + - `facets` gives each filter's options with how many Ideas each would return, given the + other filters already chosen. + - `sort` is `added` (saved to the most collections first, the default), `new` or `az`. + - Save an Idea to a collection in the app with **Save idea** on Explore Ideas. + security: [{tokenAuth: []}] + parameters: + - name: query + in: query + required: false + schema: + type: string + example: cohesion + description: Words to look for in the Idea's title or text + - name: shared_by + in: query + required: false + schema: + type: string + example: colleagues,following + description: Shared by option keys, comma-separated or repeated as shared_by[] + - name: theme + in: query + required: false + schema: + type: string + example: leadership + description: Theme option keys, comma-separated or repeated as theme[] + - name: audience + in: query + required: false + schema: + type: string + example: public_impact + description: Audience option keys, comma-separated or repeated as audience[] + - name: person + in: query + required: false + schema: + type: string + example: "1204" + description: User ids of people who shared Ideas, comma-separated or repeated as person[] + - name: chip + in: query + required: false + schema: + type: string + enum: [Community, Young people, Training, Leadership] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: The listed Ideas that match, and each filter's option counts + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExploreIdeas' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 77 + title: The Resident Leadership Pipeline + themes: [leadership, community_and_culture] + reading_minutes: 4 + shared_by: Northside Housing + saved_count: 14 + yours: false + facets: + - key: theme + label: Theme + options: + - value: leadership + label: Leadership + count: 1 + selected: true + "401": + $ref: '#/components/responses/Unauthorized' + + /explore/ideas/{id}: + get: + tags: [Explore] + summary: Read an Explore Idea + operationId: getExploreIdea + description: | + One Idea listed on Explore Ideas: the fields of **Explore Ideas** plus its `text`, without + formatting. An Idea that isn't approved and shared with everyone is a 404. + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: + type: integer + example: 77 + responses: + "200": + description: The Idea and its text + content: + application/json: + schema: + $ref: '#/components/schemas/ExploreIdeaPreview' + example: + id: 77 + title: The Resident Leadership Pipeline + themes: [leadership] + reading_minutes: 1 + shared_by: Northside Housing + saved_count: 14 + yours: false + text: We grew resident leaders who now run three local groups. + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + /library/search: get: tags: [Library] @@ -10821,6 +10971,57 @@ components: items: type: string + ExploreIdea: + type: object + properties: + id: + type: integer + title: + type: string + themes: + type: array + items: + type: string + reading_minutes: + type: integer + shared_by: + type: string + nullable: true + saved_count: + type: integer + description: How many collections it has been saved to + yours: + type: boolean + description: Whether the caller or one of the caller's organisations owns it + + PaginatedExploreIdeas: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExploreIdea' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreIdeaPreview: + allOf: + - $ref: '#/components/schemas/ExploreIdea' + - type: object + properties: + text: + type: string + PaginatedLibrarySearch: type: object properties: diff --git a/server.js b/server.js index 48ff8a2..b65410a 100644 --- a/server.js +++ b/server.js @@ -903,6 +903,7 @@ function buildDocsPage() { GETExplore Report Templates GETExplore Dropdowns GETExplore Impact Frameworks + GETExplore Ideas GETImpactStore POSTFramework Sets POSTChecklists @@ -2143,6 +2144,38 @@ function buildDocsPage() {
+ +
+
Learning
+

Explore Ideas

+
+

Explore Ideas lists the approved Ideas (Tips) shared with everyone in the Makerble® ImpactStore™: what other organisations tried, how it went and what they would change. The API gives the same search, filters, counts and sort as the Explore Ideas page. shared_by, person and yours depend on you: your colleagues, the people you follow and you.

+

Filters take option keys, as arrays (theme[]=leadership) or comma-separated (shared_by=colleagues,following). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/ideas", "Explore Ideas", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Idea's title or text" }, + { name: "shared_by", type: "string", required: false, desc: "anyone, colleagues, following, me" }, + { name: "theme", type: "string", required: false, desc: "mental_health_and_wellbeing, children_and_young_people, employment_and_skills, community_and_culture, health, organisational, global_goals, inclusion, education_and_training, leadership" }, + { name: "audience", type: "string", required: false, desc: "public_impact, personal, professional" }, + { name: "person", type: "string", required: false, desc: "User ids of colleagues or people you follow; any other id is ignored" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: Community, Young people, Training, Leadership" }, + { name: "sort", type: "string", required: false, desc: "added (saved to the most collections first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Ideas per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Ideas updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Ideas with id, title, themes, reading_minutes, shared_by, saved_count (collections it is saved to) and yours, plus facets" } + ])} + ${endpointCard("GET", "/explore/ideas/{id}", "Read an Explore Idea", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Idea's id from Explore Ideas" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Idea's fields as above plus its text, without formatting" }, + { code: "404", cls: "response-4xx", desc: "Not approved and shared with everyone" } + ], "To keep an Idea, save it to a collection in Makerble with Save idea on Explore Ideas.")} +
+
+
Impact framework
From 145b53a3be7ba3fa12953a60f59c51776311d448 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 10:00:04 +0000 Subject: [PATCH 5/5] Document Explore Metrics (CP-8870) Add GET /explore/metrics and /{kind}/{id} to openapi.yaml and the docs page. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JuVKwFwaXyvHMwANXhuKae --- openapi.yaml | 234 +++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 34 ++++++++ 2 files changed, 268 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index e9d6000..085cece 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5752,6 +5752,176 @@ paths: "404": $ref: '#/components/responses/NotFound' + /explore/metrics: + get: + tags: [Explore] + summary: Explore Metrics + operationId: listExploreMetrics + description: | + Lists the published, approved metrics of the Makerble® ImpactStore™ across the stages of + change, with the same search, filters, counts and sort as the Explore Metrics page: + progress trackers (`kind` `change`: Activities and Engagement), outcome indicators (`kind` + `indicator`: Ability, Behaviour and Effect, taking the stage of the Outcome they sit under + when they have none of their own) and Financial Values (`kind` `financial_value`). Every + caller sees the same metrics; `yours` depends on the caller's organisations. + + - `query` matches the metric's name or description. + - The filters take option keys, as arrays (`stage[]=ability`) or comma-separated + (`stage=ability,behaviour`). Options in one filter combine with OR and filters + combine with AND: + - `stage` (Stage of change): `activities`, `engagement`, `ability`, `behaviour`, + `effect`, `financial_values` + - `answer_format`: `count` (progress tracker), `scale` (Choice tracker), `yes_no` + (Achievement tracker), `value` (Numerical tracker, and Financial Values) + - `audience`: `public_impact`, `personal`, `professional` + - `shared_by`: `makerble`, `others` + - `chip` is one of the page's Popular chips: `Wellbeing`, `Employment`, `Housing`, + `Attendance`, `SDGs`. + - `facets` gives each filter's options with how many metrics each would return, given the + other filters already chosen. + - `sort` is `added` (on the most organisations' projects first, the default), `new` or `az`. + - Add a tracker or indicator to a project in the app with **Add to a project** on Explore + Metrics; a Financial Value from Explore Financial Values. + security: [{tokenAuth: []}] + parameters: + - name: query + in: query + required: false + schema: + type: string + example: confidence + description: Words to look for in the metric's name or description + - name: stage + in: query + required: false + schema: + type: string + example: ability,behaviour + description: Stage of change option keys, comma-separated or repeated as stage[] + - name: answer_format + in: query + required: false + schema: + type: string + example: scale + description: Answer format option keys, comma-separated or repeated as answer_format[] + - name: audience + in: query + required: false + schema: + type: string + example: personal + description: Audience option keys, comma-separated or repeated as audience[] + - name: shared_by + in: query + required: false + schema: + type: string + example: makerble + description: Shared by option keys, comma-separated or repeated as shared_by[] + - name: chip + in: query + required: false + schema: + type: string + enum: [Wellbeing, Employment, Housing, Attendance, SDGs] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: The listed metrics that match, and each filter's option counts + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExploreMetrics' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - kind: indicator + id: 5310 + name: Job satisfaction + stage: ability + whats_inside: 5-level scale + shared_by: Makerble + libraries_count: 21 + yours: false + facets: + - key: answer_format + label: Answer format + options: + - value: scale + label: Scale (Choice tracker) + count: 1 + selected: true + "401": + $ref: '#/components/responses/Unauthorized' + + /explore/metrics/{kind}/{id}: + get: + tags: [Explore] + summary: Preview an Explore Metric + operationId: getExploreMetric + description: | + One metric listed on Explore Metrics, as its Preview shows it: the fields of **Explore + Metrics** plus its `description`, `details` (its key facts by label, such as the Outcomes an + indicator sits under or a Financial Value's amount and source) and the `choices` of a scale + or yes-or-no indicator, in order. A metric that isn't published and approved is a 404. + security: [{tokenAuth: []}] + parameters: + - name: kind + in: path + required: true + schema: + type: string + enum: [change, indicator, financial_value] + example: indicator + - name: id + in: path + required: true + schema: + type: integer + example: 5310 + responses: + "200": + description: The metric's preview + content: + application/json: + schema: + $ref: '#/components/schemas/ExploreMetricPreview' + example: + kind: indicator + id: 5310 + name: Job satisfaction + stage: ability + whats_inside: 5-level scale + shared_by: Makerble + libraries_count: 21 + yours: false + description: How satisfied someone is with their job. + details: + Answer format: 5-level scale + Stage of change: Ability (short-term outcomes) + Sits under: Job satisfaction at follow-up + Shared by: Makerble + choices: [Very dissatisfied, Dissatisfied, Neither, Satisfied, Very satisfied] + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + /library/search: get: tags: [Library] @@ -11022,6 +11192,70 @@ components: text: type: string + ExploreMetric: + type: object + properties: + kind: + type: string + enum: [change, indicator, financial_value] + id: + type: integer + name: + type: string + stage: + type: string + enum: [activities, engagement, ability, behaviour, effect, financial_values] + whats_inside: + type: string + description: The tracker type or scale, e.g. "5-level scale" or "Activity tracker · count" + shared_by: + type: string + nullable: true + libraries_count: + type: integer + description: How many organisations use it on a project + yours: + type: boolean + description: Whether the caller or one of the caller's organisations owns it + + PaginatedExploreMetrics: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExploreMetric' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreMetricPreview: + allOf: + - $ref: '#/components/schemas/ExploreMetric' + - type: object + properties: + description: + type: string + nullable: true + details: + type: object + description: The metric's key facts, by label + additionalProperties: + type: string + choices: + type: array + items: + type: string + PaginatedLibrarySearch: type: object properties: diff --git a/server.js b/server.js index b65410a..6c469fc 100644 --- a/server.js +++ b/server.js @@ -904,6 +904,7 @@ function buildDocsPage() { GETExplore Dropdowns GETExplore Impact Frameworks GETExplore Ideas + GETExplore Metrics GETImpactStore POSTFramework Sets POSTChecklists @@ -2176,6 +2177,39 @@ function buildDocsPage() {
+ +
+
Impact framework
+

Explore Metrics

+
+

Explore Metrics lists the published, approved metrics of the Makerble® ImpactStore™ across the stages of change: progress trackers (kind change: Activities and Engagement), outcome indicators (indicator: Ability, Behaviour and Effect) and Financial Values (financial_value). The API gives the same search, filters, counts and sort as the Explore Metrics page. Every caller sees the same metrics; only yours depends on your organisations.

+

Filters take option keys, as arrays (stage[]=ability) or comma-separated (answer_format=scale,yes_no). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/metrics", "Explore Metrics", true, [ + { name: "query", type: "string", required: false, desc: "Words in the metric's name or description" }, + { name: "stage", type: "string", required: false, desc: "activities, engagement, ability, behaviour, effect, financial_values" }, + { name: "answer_format", type: "string", required: false, desc: "count, scale, yes_no, value" }, + { name: "audience", type: "string", required: false, desc: "public_impact, personal, professional" }, + { name: "shared_by", type: "string", required: false, desc: "makerble, others" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: Wellbeing, Employment, Housing, Attendance, SDGs" }, + { name: "sort", type: "string", required: false, desc: "added (on the most organisations' projects first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Metrics per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only metrics updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Metrics with kind, id, name, stage, whats_inside (e.g. 5-level scale), shared_by, libraries_count and yours, plus facets" } + ])} + ${endpointCard("GET", "/explore/metrics/{kind}/{id}", "Preview an Explore Metric", true, [ + { name: "kind", in: "path", type: "string", required: true, desc: "change, indicator or financial_value" }, + { name: "id", in: "path", type: "integer", required: true, desc: "The metric's id from Explore Metrics" } + ], [ + { code: "200", cls: "response-2xx", desc: "The metric's fields as above plus description, details (its key facts by label) and the choices of a scale or yes-or-no indicator" }, + { code: "404", cls: "response-4xx", desc: "Not published and approved" } + ], "To use a tracker or indicator, add it to a project in Makerble with Add to a project on Explore Metrics.")} +
+
+
Impact framework