diff --git a/openapi.yaml b/openapi.yaml
index 0ee51c4..3cc538e 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -1133,6 +1133,45 @@ paths:
$ref: '#/components/responses/NotFound'
"422":
$ref: '#/components/responses/UnprocessableEntityList'
+ /whats_new:
+ get:
+ tags: [Announcements]
+ summary: List What's new for the signed-in user
+ description: |
+ Lists the announcements in the signed-in user's Wishlist › What's new: Makerble's own "What's
+ new in Makerble" announcements that have gone live (live now, or ended) for an audience the
+ user is in, newest first. Scheduled ones still to start are listed too, by their start date,
+ when the popup would show them to the user (its audience or roles, and its behaviour rules),
+ so they can be read early; reading one early means the popup skips it on its day. An
+ Organisation's, Workspace's or Team's own announcements are not listed. Each says whether the user has seen it, in the popup or by opening it in What's new,
+ and which section it is in: `new_since_joined` (it started on or after the day the user's
+ account was made) or `before_joined`.
+
+ Listing them records nothing; the user still sees an unseen one in the popup.
+ operationId: listWhatsNew
+ security: [{tokenAuth: []}]
+ parameters:
+ - name: section
+ in: query
+ required: false
+ description: Only this section. Without it, both sections together.
+ schema:
+ type: string
+ enum: [new_since_joined, before_joined]
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/PerPage'
+ - $ref: '#/components/parameters/LastSyncDatetime'
+ responses:
+ "200":
+ description: Paginated What's new announcements
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedWhatsNew'
+ "401":
+ $ref: '#/components/responses/Unauthorized'
+ "422":
+ $ref: '#/components/responses/UnprocessableEntity'
/wishes:
get:
tags: [Wishlist]
@@ -19275,6 +19314,17 @@ components:
seen_count:
type: integer
description: People who have closed it.
+ seen_counts_by_source:
+ type: object
+ description: >-
+ Of those who have seen it, how many first saw it in the popup and how many by opening it in
+ Wishlist › What's new.
+ properties:
+ popup:
+ type: integer
+ whats_new:
+ type: integer
+ required: [popup, whats_new]
learn_more_click_count:
type: integer
description: People who clicked its "Learn more" link.
@@ -20161,6 +20211,74 @@ components:
type: array
items:
$ref: '#/components/schemas/Announcement'
+ WhatsNewItem:
+ type: object
+ description: An announcement in the signed-in user's Wishlist › What's new, with whether they have seen it
+ properties:
+ id:
+ type: integer
+ title:
+ type: string
+ description: The headline.
+ body:
+ type: string
+ starts_on:
+ type: string
+ format: date
+ ends_on:
+ type: string
+ format: date
+ section:
+ type: string
+ enum: [new_since_joined, before_joined]
+ visual_type:
+ type: string
+ enum: [name_change, vimeo, image, intro_animation, storyboard, none]
+ image_url:
+ type: string
+ nullable: true
+ image_alt:
+ type: string
+ nullable: true
+ vimeo_url:
+ type: string
+ nullable: true
+ learn_more_url:
+ type: string
+ nullable: true
+ description: A page in the Makerble User Guide.
+ button_label:
+ type: string
+ includes_tour:
+ type: boolean
+ description: Whether its button starts a feature tour, which it does while the tour is live.
+ feature_tour_id:
+ type: integer
+ nullable: true
+ description: The live feature tour its button starts, or null.
+ asked_for:
+ type: boolean
+ description: Whether it answered one of the user's requests in Wishlist › Your wishlist.
+ seen:
+ type: boolean
+ description: Whether the user has seen it, in the popup or by opening it in What's new.
+ seen_at:
+ type: string
+ format: date-time
+ nullable: true
+ updated_at:
+ type: string
+ format: date-time
+ required: [id, title, body, starts_on, section, visual_type, includes_tour, asked_for, seen, seen_at]
+ PaginatedWhatsNew:
+ allOf:
+ - $ref: '#/components/schemas/PaginationEnvelope'
+ - type: object
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/WhatsNewItem'
Wish:
type: object
description: A feature request or feedback from Wishlist › Your wishlist
diff --git a/server.js b/server.js
index f12fcd6..39eca7c 100644
--- a/server.js
+++ b/server.js
@@ -4620,7 +4620,7 @@ function buildDocsPage() {
{ name: "per_page", type: "integer", required: false, desc: "Records per page (default 10, max 200)" },
{ name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 incremental sync" }
], [
- { code: "200", cls: "response-2xx", desc: "Paginated Announcements the user may see, newest first, each with scope_type, scope_id, seen_count and learn_more_click_count" },
+ { code: "200", cls: "response-2xx", desc: "Paginated Announcements the user may see, newest first, each with scope_type, scope_id, seen_count, seen_counts_by_source (popup and whats_new: where people first saw it) and learn_more_click_count" },
{ code: "403", cls: "response-4xx", desc: "The user can make announcements nowhere" }
])}
${endpointCard("GET", "/announcements/facts", "List Announcement Facts", true, [], [
@@ -4663,13 +4663,22 @@ function buildDocsPage() {
Wishlist is the page behind the gift icon. Your wishlist holds the feature requests and feedback a person has sent, and where each one is; you only ever see your own, never a colleague's. A feature request also goes to Makerble's Helpdesk, and its status follows it: "Received", "We are looking at this", "Estimate sent to your bill payer", "Being built", "Shipped" and so on. Feedback stays in Makerble and reads "Read by the Makerble team".
Coming soon (Roadmap items) is what Makerble has committed to building, under building_now and up_next, with no dates. Everyone can read the published items. Makerble staff (System Access) also see unpublished ones, can create and change them, and see stale on any unchanged for 60 days. Anyone else gets 403 when writing. What's new is Announcements.
Coming soon (Roadmap items) is what Makerble has committed to building, under building_now and up_next, with no dates. Everyone can read the published items. Makerble staff (System Access) also see unpublished ones, can create and change them, and see stale on any unchanged for 60 days. Anyone else gets 403 when writing. What's new lists Makerble's Announcements that have gone live for you, as tiles that open each one; GET /whats_new gives the same list.
new_since_joined or before_joined; leave out for both" },
+ { name: "page", type: "integer", required: false, desc: "Page number" },
+ { name: "per_page", type: "integer", required: false, desc: "Records per page (default 10, max 200)" },
+ { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 incremental sync" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "Paginated What's new announcements for you, newest first: Makerble's own that have gone live for an audience you're in, and scheduled ones still to start that you can read early. Each has its section, includes_tour, asked_for (it answered one of your requests), seen and seen_at" },
+ { code: "422", cls: "response-4xx", desc: "An unknown section" }
+ ], "Listing them doesn't mark them seen: you still get an unseen one in the popup. Opening one in Wishlist › What's new marks it seen there.")}
${endpointCard("GET", "/wishes", "List your Wishlist", true, [
{ name: "page", type: "integer", required: false, desc: "Page number" },
{ name: "per_page", type: "integer", required: false, desc: "Records per page (default 10, max 200)" },