Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 118 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>scope_type</code>, <code>scope_id</code>, <code>seen_count</code> and <code>learn_more_click_count</code>" },
{ code: "200", cls: "response-2xx", desc: "Paginated Announcements the user may see, newest first, each with <code>scope_type</code>, <code>scope_id</code>, <code>seen_count</code>, <code>seen_counts_by_source</code> (<code>popup</code> and <code>whats_new</code>: where people first saw it) and <code>learn_more_click_count</code>" },
{ code: "403", cls: "response-4xx", desc: "The user can make announcements nowhere" }
])}
${endpointCard("GET", "/announcements/facts", "List Announcement Facts", true, [], [
Expand Down Expand Up @@ -4663,13 +4663,22 @@ function buildDocsPage() {
<h2 class="section-title">Wishlist</h2>
<div class="section-desc">
<p>Wishlist is the page behind the gift icon. <strong>Your wishlist</strong> 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 <code>status</code> 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".</p>
<p><strong>Coming soon</strong> (Roadmap items) is what Makerble has committed to building, under <code>building_now</code> and <code>up_next</code>, with no dates. Everyone can read the published items. Makerble staff (System Access) also see unpublished ones, can create and change them, and see <code>stale</code> on any unchanged for 60 days. Anyone else gets <code>403</code> when writing. What's new is <a href="#announcements">Announcements</a>.</p>
<p><strong>Coming soon</strong> (Roadmap items) is what Makerble has committed to building, under <code>building_now</code> and <code>up_next</code>, with no dates. Everyone can read the published items. Makerble staff (System Access) also see unpublished ones, can create and change them, and see <code>stale</code> on any unchanged for 60 days. Anyone else gets <code>403</code> when writing. <strong>What's new</strong> lists Makerble's <a href="#announcements">Announcements</a> that have gone live for you, as tiles that open each one; <code>GET /whats_new</code> gives the same list.</p>
</div>
<div class="callout callout-tip">
<span class="callout-icon">✓</span>
<span><strong>Before you send a request:</strong> don't include details of people you support. If a feature request needs custom work, Makerble sends an estimate to the organisation's bill payer, not to the person who asked.</span>
</div>
<div class="endpoint-list">
${endpointCard("GET", "/whats_new", "List your What's new", true, [
{ name: "section", type: "string", required: false, desc: "Only <code>new_since_joined</code> or <code>before_joined</code>; 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 <code>section</code>, <code>includes_tour</code>, <code>asked_for</code> (it answered one of your requests), <code>seen</code> and <code>seen_at</code>" },
{ code: "422", cls: "response-4xx", desc: "An unknown <code>section</code>" }
], "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)" },
Expand Down
Loading