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
27 changes: 27 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22611,6 +22611,23 @@ components:
`checklists`. The button then opens that page in the person's own organisation and closes the popup; give it a
label that says where it goes ("Explore Checklists"). For someone who can't open the page, it only closes the
popup. A live `feature_tour_id` takes priority. Send null to clear it.
placement:
type: string
enum: [popup, during_build]
description: |
Makerble's own only. Where it shows: `popup` (the default), the "What's new in Makerble" popup and What's new;
or `during_build`, the screen a new organisation sees while Makerble builds its first workspaces after the
onboarding journey. "During build" announcements never pop up and aren't listed in What's new: while live,
they take turns on that screen in `priority` order, each for `display_seconds`.
priority:
type: integer
minimum: 1
description: The order "During build" announcements show in, 1 first. Defaults to 1.
display_seconds:
type: integer
minimum: 3
maximum: 120
description: How many seconds a "During build" announcement shows before the next. Defaults to 10.
audience:
type: string
enum: [everyone, colleagues, administrators]
Expand Down Expand Up @@ -22881,6 +22898,16 @@ components:
type: string
nullable: true
description: The deep link the button opens, or null when it only closes the popup.
placement:
type: string
enum: [popup, during_build]
description: Where it shows, the popup or the onboarding journey's building screen ("During build").
priority:
type: integer
description: The order "During build" announcements show in, 1 first.
display_seconds:
type: integer
description: How many seconds a "During build" announcement shows before the next.
button_click_count:
type: integer
description: People who clicked the button through to its page.
Expand Down
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5312,6 +5312,7 @@ function buildDocsPage() {
<p>System Access users can see and change every announcement. Anyone else can see and change only those for places where they hold the role now: an Organisation Admin, for their Organisation and its Workspaces and Teams; a Workspace editor (Project Editor), for that Workspace; a Team leader, for that Team. Someone who can make announcements nowhere gets <code>403</code>.</p>
<p><code>visual_type</code> is <code>name_change</code> (an animation of 1 to 3 <code>name_changes</code>, old name → new name), <code>vimeo</code> (a Vimeo video at <code>vimeo_url</code>), <code>image</code> (an uploaded picture, such as a screenshot, shown whole with its <code>image_alt</code> for screen readers; returned as <code>image_url</code>), <code>intro_animation</code> (the animation of a feature's Intro, by its <code>intro_key</code>; the popup plays the Intro's storyboard as it is when shown, and nothing if the Intro loses it), <code>storyboard</code> (an animation of its own, with the same rules as an Intro's <code>storyboard</code>, for when the Intro's doesn't fit) or <code>none</code>. The two animations are for Makerble's own only. <code>audience</code> is <code>everyone</code>, <code>colleagues</code> (everyone except Contacts with a login) or <code>administrators</code> (Organisation Admins); a place's announcement is always for its colleagues (an Organisation's colleagues, a Workspace's editors, reporters and observers, or a Team's members and leaders), can't use <code>name_change</code>, and its <code>learn_more_url</code> can be any https page. <code>status</code> stores <code>draft</code> or <code>scheduled</code>; <code>current_status</code> also says whether a scheduled one is <code>live</code> or has <code>ended</code>.</p>
<p>Makerble's own can be narrowed further. <code>roles</code> shows it only to people holding at least one of the listed roles, in place of <code>audience</code>: <code>organisation_admin</code>, <code>editor</code> (Workspace editor), <code>reporter</code>, <code>observer</code>, <code>team_leader</code>, <code>active_participant</code> (Contact with a login) and <code>survey_portal_user</code>; Contacts with a login and Survey Portal users are left out unless their own role is listed. <code>audience_rules</code> targets people by behaviour, as JSON over named facts, for example <code>{"all": [{"fact": "distance_travelled_not_set_up"}]}</code> for people whose organisation hasn't set up Distance Travelled. Each rule is exactly one of <code>{fact, params}</code>, <code>{all: [rules]}</code>, <code>{any: [rules]}</code> or <code>{not: rule}</code>, at most 5 deep and 10 facts. List Announcement Facts gives the facts and their params; an unknown fact or param returns <code>422</code> naming the rule. Both are for System Access users only.</p>
<p>Makerble's own can show on the screen a new organisation sees while Makerble builds its first workspaces after the onboarding journey, instead of in the popup: set <code>placement</code> to <code>during_build</code> (the default is <code>popup</code>). "During build" announcements never pop up and aren't listed in What's new. While live, they take turns on that screen in <code>priority</code> order (1 first), each for <code>display_seconds</code> (3 to 120, default 10), until the build finishes.</p>
<p>Makerble's own can also be limited to some pages with <code>page_keys</code>, so a feature is announced where it lives: <code>["contacts"]</code> shows it only when someone opens Manage Contacts, including when they move there from another page without reloading. A page key is the key of the page's Intro (its Show/Hide Guidance panel), such as <code>contacts</code>, <code>events</code>, <code>checklists</code>, <code>surveys</code> or <code>tasks</code>; pages without an Intro can't be chosen. An empty list (the default) means any page. An unknown key returns <code>422</code> listing the keys available. System Access users only.</p>
</div>
<div class="callout callout-tip">
Expand Down Expand Up @@ -5351,7 +5352,7 @@ function buildDocsPage() {
{ code: "403", cls: "response-4xx", desc: "The user doesn't hold the role on that place, or (with no place) doesn't have System Access" },
{ code: "404", cls: "response-4xx", desc: "The Organisation, Workspace or Team doesn't exist" },
{ code: "422", cls: "response-4xx", desc: "Validation failed, e.g. no headline, a headline over 90 characters, a Vimeo visual with a YouTube link, an image without alt text, an <code>intro_key</code> whose Intro has no animation, a storyboard that breaks the rules, a file that isn't a PNG, JPG, GIF or WebP image or is over 5 MB, or the name change animation for a place" }
], "Body: <code>scope_type</code> and <code>scope_id</code> (whose announcement; leave out for one of Makerble's own), <code>title</code> (headline, up to 90), <code>body</code> (message, up to 280), <code>visual_type</code>, <code>name_changes: [{old_name, new_name}]</code> (1 to 3), <code>vimeo_url</code>, <code>image</code> and <code>image_alt</code> (for <code>image</code>: a PNG, JPG, GIF or WebP file of up to 5 MB, sent as a file in a <code>multipart/form-data</code> request or in JSON as <code>{filename, data}</code> with the data in base64, and its alt text, up to 250 characters, both required), <code>intro_key</code> (for <code>intro_animation</code>), <code>storyboard</code> (for <code>storyboard</code>), <code>learn_more_url</code> (a Makerble User Guide page for Makerble's own; any https page for a place's), <code>training_material_id</code> (a place's announcement only: one of its Organisation's Training materials, linked for the colleagues it is shared with), <code>button_label</code> (default \"Got it\"), <code>button_deep_link</code> (Makerble's own only: a deep link name from List Deep Links; the button then opens that page in the person's own organisation and closes the popup), <code>feature_tour_id</code> (Makerble's own only: a feature tour; while it is live the button says \"Take the tour\" and starts it), <code>feature_launch_id</code> (Makerble's own only: the feature launch it announces; wherever <code>body</code>, <code>learn_more_url</code>, <code>button_deep_link</code> or <code>feature_tour_id</code> is empty the launch's own is used, so <code>body</code> may be left empty while the launch has a short description), <code>audience</code>, <code>roles</code>, <code>audience_rules</code> and <code>page_keys</code> (Makerble's own only; see above), <code>starts_on</code>, <code>ends_on</code>, <code>status</code>.")}
], "Body: <code>scope_type</code> and <code>scope_id</code> (whose announcement; leave out for one of Makerble's own), <code>title</code> (headline, up to 90), <code>body</code> (message, up to 280), <code>visual_type</code>, <code>name_changes: [{old_name, new_name}]</code> (1 to 3), <code>vimeo_url</code>, <code>image</code> and <code>image_alt</code> (for <code>image</code>: a PNG, JPG, GIF or WebP file of up to 5 MB, sent as a file in a <code>multipart/form-data</code> request or in JSON as <code>{filename, data}</code> with the data in base64, and its alt text, up to 250 characters, both required), <code>intro_key</code> (for <code>intro_animation</code>), <code>storyboard</code> (for <code>storyboard</code>), <code>learn_more_url</code> (a Makerble User Guide page for Makerble's own; any https page for a place's), <code>training_material_id</code> (a place's announcement only: one of its Organisation's Training materials, linked for the colleagues it is shared with), <code>button_label</code> (default \"Got it\"), <code>button_deep_link</code> (Makerble's own only: a deep link name from List Deep Links; the button then opens that page in the person's own organisation and closes the popup), <code>feature_tour_id</code> (Makerble's own only: a feature tour; while it is live the button says \"Take the tour\" and starts it), <code>feature_launch_id</code> (Makerble's own only: the feature launch it announces; wherever <code>body</code>, <code>learn_more_url</code>, <code>button_deep_link</code> or <code>feature_tour_id</code> is empty the launch's own is used, so <code>body</code> may be left empty while the launch has a short description), <code>audience</code>, <code>roles</code>, <code>audience_rules</code> and <code>page_keys</code> (Makerble's own only; see above), <code>placement</code>, <code>priority</code> and <code>display_seconds</code> (Makerble's own only; see above), <code>starts_on</code>, <code>ends_on</code>, <code>status</code>.")}
${endpointCard("PATCH", "/announcements/{id}", "Update an Announcement", true, [
{ name: "id", in: "path", type: "integer", required: true, desc: "Announcement ID" }
], [
Expand Down
Loading