Win alert card

A deal-closed celebration that takes over the screen: the closer's picture and name, the deal and a huge amount over confetti, then settles into the latest win, today's tally against the target and the wins before it.

Category: Operations. Tags: Recognition, Alerts and status, Offices and workplaces.

Previews

Win alert
Canvas
Win alert
Corner
Win alert
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Deal closed"maxLength: 30The label on the celebration.
currencystring"$"maxLength: 4The currency symbol shown before amounts.
celebrateSecinteger30minimum: 5; maximum: 600How long a new win holds the celebration before the card settles.

Dynamic properties

NameTypeDefaultValues and limitsDescription
targetnumberminimum: 0Today's target in major units; the settled view shows progress towards it.
winsarray[]maxItems: 50Closed deals, in any order; the newest by at is the win on show. A win less than celebrateSec old takes the card over.
wins[].idstring""maxLength: 40Keys the win, so one already shown does not celebrate again.
wins[].namestringminLength: 1; maxLength: 60; RequiredWho closed the deal.
wins[].teamstring""maxLength: 40
wins[].photostring""maxLength: 120A media reference to the person's picture; empty shows their initials.
wins[].dealstring""maxLength: 100The customer or deal name.
wins[].amountnumber0minimum: 0The deal value in major units.
wins[].atstring""maxLength: 40When the deal closed, an ISO 8601 instant.
wins[].notestring""maxLength: 120A short line under the deal, such as a product or term.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "win-alert",
  "primitive": "card",
  "card": "win-alert",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "win-alert-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/win-alert-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"target":1,"wins":[]}}'