diff --git a/openapi.yaml b/openapi.yaml index 6c67d0b..60f4e02 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -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}$' @@ -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: @@ -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 diff --git a/server.js b/server.js index 3935e4b..8eeedf1 100644 --- a/server.js +++ b/server.js @@ -4056,7 +4056,7 @@ function buildDocsPage() {

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 Learn more link to the page's article in the Makerble User Guide, and an optional Vimeo video. Panels are the same for every Organisation.

Who can use these endpoints: only Makerble staff with System Access, with their own X-User-Email and X-User-Token. Anyone else, an API key and a connected app all get 403. 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.

Rules: a headline of at most 80 characters; 2 to 5 points, each with a lead (up to 40 characters) and text (up to 200); a user_guide_url in the Makerble User Guide (https://makerble.atlassian.net/wiki/spaces/MCPD/…); and a vimeo_url that is empty or one of https://vimeo.com/<id>, https://vimeo.com/<id>/<hash> (unlisted) or https://player.vimeo.com/video/<id>?h=<hash>.

-

Animation storyboard: 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 storyboard. A storyboard has an archetype (assemble, flow or concept), loop_seconds (4 to 20), alt (10 to 250 characters describing the animation for screen readers) and 1 to 24 steps. An appear step puts a block on the stage (top_bar, sidebar_item, table_row, card, button, field, chip, avatar or chart_bar, which needs a value from 0 to 100), with an optional id and text (up to 40 characters). move_cursor, click, highlight, check, type (into a field) and swap (new text) act on the block whose id is their target; cut clears the stage for the next scene. People who turn off motion see the last frame. The response's visual is storyboard while one is showing.

+

Animation storyboard: 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 storyboard. A storyboard has an archetype (assemble, flow, journey or concept), loop_seconds (4 to 20), alt (10 to 250 characters describing the animation for screen readers) and 1 to 24 steps. An appear step puts a block on the stage (top_bar, sidebar_item, table_row, card, button, field, chip, avatar, chart_bar, which needs a value from 0 to 100, cell, timeline_item or calendar_event), with an optional id and text (up to 40 characters). move_cursor, click, highlight, check, type (into a field) and swap (new text) act on the block whose id is their target; cut clears the stage for the next scene. For a journey, where one piece of data turns up on page after page by itself: frame, a scene's first step, draws the scene as a simplified page captioned with its text (register, profile, table, web_page, calendar or compare); carry lifts its target and, after the next cut, flies it onto the block whose id is its to; zoom scales in on its target for two beats, then back out. The cell (a tickable Register cell), timeline_item and calendar_event blocks (whose value is the weekday, 1 to 5) belong to those pages, and an avatar, table_row, card or timeline_item can show a face from 1 to 5, one of the Makerble avatars. People who turn off motion see the last frame. The response's visual is storyboard while one is showing.

${endpointCard("GET", "/guidance_panels", "List the Guidance Panels", true, [