Live card
Category: Operations. Tags: Recognition, Alerts and status, Offices and workplaces.
Data and privacy
This card uses its configured properties and live card data.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Deal closed" | maxLength: 30 | The label on the celebration. |
currency | string | "$" | maxLength: 4 | The currency symbol shown before amounts. |
celebrateSec | integer | 30 | minimum: 5; maximum: 600 | How long a new win holds the celebration before the card settles. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
target | number | minimum: 0 | Today's target in major units; the settled view shows progress towards it. | |
wins | array | [] | maxItems: 50 | Closed deals, in any order; the newest by at is the win on show. A win less than celebrateSec old takes the card over. |
wins[].id | string | "" | maxLength: 40 | Keys the win, so one already shown does not celebrate again. |
wins[].name | string | minLength: 1; maxLength: 60; Required | Who closed the deal. | |
wins[].team | string | "" | maxLength: 40 | |
wins[].photo | string | "" | maxLength: 120 | A media reference to the person's picture; empty shows their initials. |
wins[].deal | string | "" | maxLength: 100 | The customer or deal name. |
wins[].amount | number | 0 | minimum: 0 | The deal value in major units. |
wins[].at | string | "" | maxLength: 40 | When the deal closed, an ISO 8601 instant. |
wins[].note | string | "" | maxLength: 120 | A short line under the deal, such as a product or term. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type win-alert --major 1 --file params.json --context-file context.md
Example data
{
"target": 1,
"wins": []
}
Layouts
This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.
Layouts: full. Forms: landscape, portrait.
Use this card
Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.