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
30 changes: 25 additions & 5 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25952,20 +25952,27 @@ components:
One step of an Intro animation. Steps play in order, evenly spread across the loop.

- `appear` puts a building block on the stage: `block` (required), and optionally an `id` that later
steps target, a `text` label and, for a `chart_bar` only, a `value` from 0 to 100 (required for it).
steps target, a `text` label, a `value` (required for a `chart_bar`, from 0 to 100, and for a
`calendar_event`, the weekday from 1 for Monday to 5 for Friday) and a `face`, one of the five
Makerble avatars (1 to 5), for an `avatar`, `table_row`, `card` or `timeline_item`.
- `move_cursor`, `click`, `highlight` and `check` act on the block whose `id` is `target`.
- `type` types `text` into the `field` whose `id` is `target`.
- `swap` replaces the label of the block whose `id` is `target` with `text`.
- `cut` clears the stage and starts a new scene; blocks from before it can't be targeted after it.
- `frame` makes the scene a simplified page, captioned with `text` (or the page's usual name):
`register`, `profile`, `table`, `web_page`, `calendar` or `compare`. It must be the scene's first step.
- `carry` lifts the block whose `id` is `target`; at the next `cut` it travels onto the block whose
`id` is `to` in the next scene. It is the only way a block outlives a cut.
- `zoom` scales the stage in on the block whose `id` is `target` for two beats, then back out.
required: [type]
additionalProperties: false
properties:
type:
type: string
enum: [appear, move_cursor, click, type, highlight, check, swap, cut]
enum: [appear, move_cursor, click, type, highlight, check, swap, cut, frame, carry, zoom]
block:
type: string
enum: [top_bar, sidebar_item, table_row, card, button, field, chip, avatar, chart_bar]
enum: [top_bar, sidebar_item, table_row, card, button, field, chip, avatar, chart_bar, cell, timeline_item, calendar_event]
id:
type: string
pattern: '^[a-z][a-z0-9_]{0,29}$'
Expand All @@ -25979,6 +25986,18 @@ components:
type: integer
minimum: 0
maximum: 100
face:
type: integer
minimum: 1
maximum: 5
description: One of the five Makerble avatars, so people in the animation are faces, not initials
frame:
type: string
enum: [register, profile, table, web_page, calendar, compare]
to:
type: string
pattern: '^[a-z][a-z0-9_]{0,29}$'
description: For `carry`, the `id` of the block the carried block lands on, which appears after the next `cut`


GuidancePanelStoryboard:
Expand All @@ -25992,10 +26011,11 @@ components:
properties:
archetype:
type: string
enum: [assemble, flow, concept]
enum: [assemble, flow, journey, concept]
description: >-
`assemble`: the parts of a page of the feature come together. `flow`: a short walkthrough of using
the feature. `concept`: an animated metaphor for the idea behind it.
the feature. `journey`: one piece of data travels from page to page by itself (with `frame`, `carry`
and `zoom` steps). `concept`: an animated metaphor for the idea behind it.
loop_seconds:
type: integer
minimum: 4
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4056,7 +4056,7 @@ function buildDocsPage() {
<p>A Guidance Panel is the Show/Hide Guidance introduction at the top of a Manage page, such as Manage Events or Manage Contact Groups: an eyebrow, a one-line headline, 2 to 5 points that each start with a short bold lead, the sentence shown to people who can't use the page's main button, a <strong>Learn more</strong> link to the page's article in the Makerble User Guide, and an optional Vimeo video. Panels are the same for every Organisation.</p>
<p><strong>Who can use these endpoints:</strong> only Makerble staff with System Access, with their own <code>X-User-Email</code> and <code>X-User-Token</code>. Anyone else, an API key and a connected app all get <code>403</code>. The same changes can be made in Site Overview › Guidance Panels, and every change, wherever it is made, is kept as a version that can be seen and restored.</p>
<p><strong>Rules:</strong> a headline of at most 80 characters; 2 to 5 points, each with a <code>lead</code> (up to 40 characters) and <code>text</code> (up to 200); a <code>user_guide_url</code> in the Makerble User Guide (<code>https://makerble.atlassian.net/wiki/spaces/MCPD/…</code>); and a <code>vimeo_url</code> that is empty or one of <code>https://vimeo.com/&lt;id&gt;</code>, <code>https://vimeo.com/&lt;id&gt;/&lt;hash&gt;</code> (unlisted) or <code>https://player.vimeo.com/video/&lt;id&gt;?h=&lt;hash&gt;</code>.</p>
<p><strong>Animation storyboard:</strong> when there is no Vimeo link, a panel can show a looping animation of Makerble building blocks, drawn in the page's module colour from its <code>storyboard</code>. A storyboard has an <code>archetype</code> (<code>assemble</code>, <code>flow</code> or <code>concept</code>), <code>loop_seconds</code> (4 to 20), <code>alt</code> (10 to 250 characters describing the animation for screen readers) and 1 to 24 <code>steps</code>. An <code>appear</code> step puts a <code>block</code> on the stage (<code>top_bar</code>, <code>sidebar_item</code>, <code>table_row</code>, <code>card</code>, <code>button</code>, <code>field</code>, <code>chip</code>, <code>avatar</code> or <code>chart_bar</code>, which needs a <code>value</code> from 0 to 100), with an optional <code>id</code> and <code>text</code> (up to 40 characters). <code>move_cursor</code>, <code>click</code>, <code>highlight</code>, <code>check</code>, <code>type</code> (into a <code>field</code>) and <code>swap</code> (new <code>text</code>) act on the block whose <code>id</code> is their <code>target</code>; <code>cut</code> clears the stage for the next scene. People who turn off motion see the last frame. The response's <code>visual</code> is <code>storyboard</code> while one is showing.</p>
<p><strong>Animation storyboard:</strong> when there is no Vimeo link, a panel can show a looping animation of Makerble building blocks, drawn in the page's module colour from its <code>storyboard</code>. A storyboard has an <code>archetype</code> (<code>assemble</code>, <code>flow</code>, <code>journey</code> or <code>concept</code>), <code>loop_seconds</code> (4 to 20), <code>alt</code> (10 to 250 characters describing the animation for screen readers) and 1 to 24 <code>steps</code>. An <code>appear</code> step puts a <code>block</code> on the stage (<code>top_bar</code>, <code>sidebar_item</code>, <code>table_row</code>, <code>card</code>, <code>button</code>, <code>field</code>, <code>chip</code>, <code>avatar</code>, <code>chart_bar</code>, which needs a <code>value</code> from 0 to 100, <code>cell</code>, <code>timeline_item</code> or <code>calendar_event</code>), with an optional <code>id</code> and <code>text</code> (up to 40 characters). <code>move_cursor</code>, <code>click</code>, <code>highlight</code>, <code>check</code>, <code>type</code> (into a <code>field</code>) and <code>swap</code> (new <code>text</code>) act on the block whose <code>id</code> is their <code>target</code>; <code>cut</code> clears the stage for the next scene. For a <code>journey</code>, where one piece of data turns up on page after page by itself: <code>frame</code>, a scene's first step, draws the scene as a simplified page captioned with its <code>text</code> (<code>register</code>, <code>profile</code>, <code>table</code>, <code>web_page</code>, <code>calendar</code> or <code>compare</code>); <code>carry</code> lifts its <code>target</code> and, after the next <code>cut</code>, flies it onto the block whose <code>id</code> is its <code>to</code>; <code>zoom</code> scales in on its <code>target</code> for two beats, then back out. The <code>cell</code> (a tickable Register cell), <code>timeline_item</code> and <code>calendar_event</code> blocks (whose <code>value</code> is the weekday, 1 to 5) belong to those pages, and an <code>avatar</code>, <code>table_row</code>, <code>card</code> or <code>timeline_item</code> can show a <code>face</code> from 1 to 5, one of the Makerble avatars. People who turn off motion see the last frame. The response's <code>visual</code> is <code>storyboard</code> while one is showing.</p>
</div>
<div class="endpoint-list">
${endpointCard("GET", "/guidance_panels", "List the Guidance Panels", true, [
Expand Down
Loading