Tellyboard campaigns
Campaigns plan what plays, when, on which screens and why. They live under TELLY.BOARD → Operations → Campaigns (route /campaigns).
Where the code is
tellyboard-frontend/src/components/campaign/ (Campaign.jsx, CreateCampaignSheet.jsx, CampaignDetailSheet.jsx,
ScheduleRuleSheet.jsx, PlaylistPickerSheet.jsx, campaignLifecycle.js, actionExperience.js).
The backend is the advertising domain (/campaigns in CoreAPI).
The campaigns page¶
A list with status tabs and counts: Active (live), Scheduled, Paused, Drafts, Completed, Archived.
The table has the columns Campaign, Source, Schedule & playlist, Targets & screens and Delivery. Select a row to use the toolbar: Activate (drafts only), Pause / Resume (live or paused campaigns) and delete.
Lifecycle and the "Standby" label¶
| Status (stored) | Meaning |
|---|---|
draft |
created, not launched |
scheduled |
launched, its start date is in the future |
live |
launched and its date range has started |
paused |
a person turned it off |
completed, archived |
finished / put away |
Standby is a display label, not a stored status. A live campaign whose schedule rule only opens part of each day
(for example 06:00–10:00 and 14:00–17:00) is not playing outside those windows. CoreAPI evaluates the same rule the scheduler uses and
returns inWindowNow; the page shows Standby when status = live and inWindowNow = false. The frontend never recomputes the schedule
(campaignLifecycle.js). Standby campaigns stay in the Active tab and count.
Creating a campaign (CreateCampaignSheet)¶
A step-by-step side sheet. The steps depend on the campaign source:
| Source | Steps |
|---|---|
| House campaign (default): internal promotion that fills the inventory left after advertiser delivery | Basics & type, Objective, Schedule & playlist, Audience & inventory, Delivery & measurement, Review |
| Advertiser campaign: paid, with priority in advertiser-eligible slots | Basics & type, Advertiser, Objective, Schedule & playlist, Audience & inventory, Delivery & measurement, Review |
- Objective: Target reach (default), or Drive actions: Traffic, Leads, Sales. The choice decides the action experience fields below.
- Schedule & playlist: start and end date, the approved playlist (from
GET /api/v1/playlists, see the Catalogue API), and the schedule rule (next section). - Audience & inventory: one Target Group (from the screen target groups). Availability is resolved against the period and schedule.
- Review: the campaign is created as a draft. Use Activate in the list toolbar to launch it.
Action experience (per objective)¶
Defined in actionExperience.js. Target reach has none: it only reports verified plays.
| Objective | What the operator configures | What it is measured by |
|---|---|---|
| Traffic | destination type and URL, QR mode, CTA, QR placement and label | QR scans and destination visits (separate from plays) |
| Leads | lead destination, form fields, consent mode, CTA, QR, lead delivery (email, CRM/webhook, download) | completed forms; qualified leads when a CRM is connected |
| Sales | product, offer, destination, tracking | purchases, revenue, units or redemptions (needs an eligible commerce source) |
What is built and what is not
The sheet stores what the operator intends. Issuing QR codes, hosting action pages and receiving CRM/POS events are separate projects that do not exist yet. The UI never invents a number it cannot measure.
Schedule rule (ScheduleRuleSheet)¶
One recurring or specific-date pattern per campaign, stored as JSON in schedule_rule.
| Pattern | Options |
|---|---|
| Daily | time windows |
| Weekly | days of the week + windows |
| Monthly | day of month / occurrence (first day, last day, day N) + windows |
| Annual | fixed month and day + windows |
| Specific dates | a list of dates + windows |
- Up to 4 time windows per rule: All day, Morning 06:00–10:00, Lunch 11:00–14:00, Afternoon 14:00–17:00, Evening 17:00–22:00, or Custom HH:MM–HH:MM.
- The backend parses the
HH:MM–HH:MMout of the window string, so a custom window works with or without theCustom ·prefix. - There is no annual "employee birthday" mode: it would need a people directory that does not exist.
Campaign detail (CampaignDetailSheet)¶
Tabs: Campaign, Source & delivery, Objective, Schedule & playlist, Audience & inventory, Delivery & PoP (proof of play).
Edits are saved with PUT /campaigns/:id (api.updateCampaign); the same call changes the status (Activate, Pause, Resume).
API calls used by the UI¶
api.getCampaigns, api.getCampaignById, api.createCampaign, api.updateCampaign, api.deleteCampaign, plus api.getPlaylists and
api.getScreenTargetGroups for the pickers (all in src/utils/api.js).
UI pieces used¶
Styles come from @playtelly/tellyboard-theme (C colours, st detail-page styles) and the design tokens.
Fonts: Hanken Grotesk (text) and IBM Plex Mono (ids such as CMP-ABC123).