Activity feed card

A live log of what just happened, newest first, with the latest event large and earlier events in a list.

The newest event sits large with its level, source and age, while earlier events follow in a list and the foot counts events and errors in the window, so the latest happenings read clearly from across the room. It fills the screen, sits in the middle, tucks into a corner, runs as one line or as a band along an edge, with earlier events as a list, a rail or compact cells. You set the log's name, the window for the counts, the lowest level shown, whether the card stays or leaves when quiet, and how long an event counts as recent.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Operations. Tags: News and announcements, Numbers and metrics, 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

NameTypeDefaultValues and limitsDescription
titlestring"Activity"maxLength: 30The eyebrow: the log's name.
windowMinutesinteger60minimum: 1; maximum: 10080The window the foot counts events and errors over.
minLevelstring"info""info", "success", "warning", "error"The lowest level shown; lower levels are dropped from the log and its counts. error is errors only.
presencestring"always""always", "recent"recent shows the card only while the latest event is under recentMinutes old; a quiet log leaves.
recentMinutesinteger10minimum: 1; maximum: 1440How long an event keeps the card present with presence: recent.

Dynamic properties

NameTypeDefaultValues and limitsDescription
eventsarray[]maxItems: 100
events[].idstring""maxLength: 40Keys the row, so an event that is already shown does not animate again.
events[].atstring""maxLength: 40ISO 8601 instant the event happened; it orders the log and drives the age.
events[].sourcestring""maxLength: 30Where it came from: a service, an agent or a person.
events[].titlestringminLength: 1; maxLength: 120; Required
events[].detailstring""maxLength: 160
events[].levelstring"""", "info", "success", "warning", "error"Empty counts as info.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type activity-feed --major 1 --file params.json --context-file context.md

Example data

{
  "events": []
}

Layouts

This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.

Layouts: full, free, center, wide, corner, chip, strip. Forms: landscape, portrait, square, strip.

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.