diff --git a/openapi.yaml b/openapi.yaml index 923b961..1cfaca3 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -26383,6 +26383,8 @@ components: 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`. + An `icon` block also needs an `icon`: pin, map, calendar, clock, document, chart, people, home, + envelope, phone, star or heart. A chip, card or row shows a tick box only if a `check` step ticks it. - `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`. @@ -26400,7 +26402,7 @@ components: 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, cell, timeline_item, calendar_event] + enum: [top_bar, sidebar_item, table_row, card, button, field, chip, avatar, chart_bar, cell, timeline_item, calendar_event, icon] id: type: string pattern: '^[a-z][a-z0-9_]{0,29}$' @@ -26419,6 +26421,10 @@ components: minimum: 1 maximum: 5 description: One of the five Makerble avatars, so people in the animation are faces, not initials + icon: + type: string + enum: [pin, map, calendar, clock, document, chart, people, home, envelope, phone, star, heart] + description: For an `icon` block (required there, and only there), the icon it shows beside its `text` frame: type: string enum: [register, profile, table, web_page, calendar, compare] diff --git a/server.js b/server.js index 384919e..2801865 100644 --- a/server.js +++ b/server.js @@ -4093,7 +4093,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, 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.

+

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. An icon block shows one of twelve named icons beside its text (its icon is pin, map, calendar, clock, document, chart, people, home, envelope, phone, star or heart), for a concept's metaphor. A chip, card or row shows a tick box only if a check step ticks it. 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, [