diff --git a/openapi.yaml b/openapi.yaml index ac8b034..ba5bac9 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -260,10 +260,11 @@ tags: description: | Impact Celebrations announce good news for a Workspace (Project) or Portfolio (Album, Bundle in the code) automatically. Its editors switch them on and tick the metrics worth celebrating. Every - hour Makerble checks: when a ticked metric reaches its target, or when 80% of Contacts judged on + hour Makerble checks: when a ticked metric reaches its target, when a ticked Engagement Tracker + (a participation Change) reaches 10, 100, 1,000 and so on, or when 80% of Contacts judged on a ticked Choice tracker (a Scale Indicator with a success direction) have improved, its - colleagues see a popup announcement for 7 days. Each target, and each Choice tracker, celebrates - once; anything already reached when first checked is recorded without a popup. Only whoever may + colleagues see a popup announcement for 7 days. Each target, each milestone, and each Choice tracker, + celebrates once; anything already reached when first checked is recorded without a popup. Only whoever may edit the Workspace's or Portfolio's targets can read or change its Impact Celebrations. - name: Snapshot description: | @@ -36956,6 +36957,13 @@ components: enabled: type: boolean description: Whether Impact Celebrations are switched on. Off until someone switches them on. + improvement_animation: + type: string + enum: [random, people, ring, shift] + description: >- + The animation a popup plays when 80% of Contacts improve on a Choice tracker: people (People + rising), ring (Ring passes 80%), shift (Answers shift up), or random (a different one each time, + the default). A target reached always fills a progress bar. changed_by_id: type: integer nullable: true @@ -36973,6 +36981,7 @@ components: resource_type: project resource_id: 619 enabled: true + improvement_animation: random changed_by_id: 42 updated_at: "2026-11-30T09:15:00Z" metrics: @@ -37002,8 +37011,11 @@ components: example: Attendance kind: type: string - enum: [target, improvement] - description: target celebrates reaching a target; improvement (Choice trackers) celebrates 80% of Contacts improving + enum: [target, improvement, milestone] + description: >- + target celebrates reaching a target (and, for an Engagement Tracker, its milestones too); milestone + (an Engagement Tracker with no target) celebrates reaching 10, 100, 1,000 and so on; improvement + (Choice trackers) celebrates 80% of Contacts improving celebrates_when: type: string example: 200 by 31 Dec 2026 @@ -37025,6 +37037,10 @@ components: items: type: string description: The `key`s of the metrics to tick; any not sent are unticked + improvement_animation: + type: string + enum: [random, people, ring, shift] + description: Which animation plays when Contacts improve; leave it out to keep it as it is Celebration: type: object properties: @@ -37032,7 +37048,7 @@ components: type: integer kind: type: string - enum: [target, improvement] + enum: [target, improvement, milestone] metric_type: type: string enum: [Change, Indicator] @@ -37043,7 +37059,7 @@ components: nullable: true target_number: type: integer - description: The target reached, or for an improvement the percentage of Contacts (80) + description: The target or milestone reached, or for an improvement the percentage of Contacts (80) target_date: type: string format: date @@ -37059,6 +37075,13 @@ components: type: integer nullable: true description: How many days before its date a dated target was reached + animation: + type: string + nullable: true + enum: [bar, people, ring, shift, null] + description: >- + The animation its popup plays: bar for a target reached, or the improvement animation picked when it + was announced. Null for an improvement recorded silently or announced before animations. announcement: type: object nullable: true diff --git a/server.js b/server.js index 12f65d0..28e51e8 100644 --- a/server.js +++ b/server.js @@ -6657,27 +6657,29 @@ function buildDocsPage() {
Impact Celebrations announce good news for a Workspace (Project) or Portfolio (Album) automatically. Its editors switch them on and tick the metrics worth celebrating, on the Impact Celebrations tab of its Preferences. Every hour Makerble checks: when a ticked metric reaches its target (a dated target, or the one-off target when there are no dated ones), or when at least 80% of the Contacts judged on a ticked Choice tracker have improved between their first and latest answers, its colleagues see a popup announcement for 7 days.
-Each target, and each Choice tracker, celebrates once. Anything already reached when first checked (just ticked, or a target just set or lowered) is recorded without a popup, with recorded_silently: true. GET lists every metric that can celebrate, each with a key such as Change-12 that PATCH takes in metric_keys.
Impact Celebrations announce good news for a Workspace (Project) or Portfolio (Album) automatically. Its editors switch them on and tick the metrics worth celebrating, on the Impact Celebrations tab of its Preferences. Every hour Makerble checks: when a ticked metric reaches its target (a dated target, or the one-off target when there are no dated ones), when a ticked Engagement Tracker reaches 10, 100, 1,000 and every tenfold after (whether or not it also has a target), or when at least 80% of the Contacts judged on a ticked Choice tracker have improved between their first and latest answers, its colleagues see a popup announcement for 7 days, with an animation and confetti.
+Each target, each milestone and each Choice tracker celebrates once. Anything already reached when first checked (just ticked, or a target just set or lowered) is recorded without a popup, with recorded_silently: true. GET lists every metric that can celebrate, each with a key such as Change-12 that PATCH takes in metric_keys.
A target or milestone fills a progress bar. When Contacts improve, the popup plays the animation in improvement_animation: people (People rising), ring (Ring passes 80%), shift (Answers shift up), or random, a different one each time (the default). Each celebration says which one it played in animation.
Only whoever may edit the Workspace's or Portfolio's targets can read or change its Impact Celebrations; anyone else gets 403. A Workspace or Portfolio that doesn't exist answers 404.