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
8 changes: 7 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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}$'
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4093,7 +4093,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>, <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>
<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. An <code>icon</code> block shows one of twelve named icons beside its <code>text</code> (its <code>icon</code> is <code>pin</code>, <code>map</code>, <code>calendar</code>, <code>clock</code>, <code>document</code>, <code>chart</code>, <code>people</code>, <code>home</code>, <code>envelope</code>, <code>phone</code>, <code>star</code> or <code>heart</code>), for a concept's metaphor. A chip, card or row shows a tick box only if a <code>check</code> step ticks it. 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