Add named wall displays: pages, order and speed per screen
An administrator can make named displays (Hall TV, Office monitor) under Settings -> Share links, each with an address of its own (/wall/hall-tv), the pages it rotates through in the board's order, and a rotation speed. The signed-in wall opens one from its address and can switch between them, and a wall share link can open one too. The address still wins over the display's speed, then the browser's choice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
639408c0d0
commit
333146e8e3
24 files changed
+10411
-22
No files matched your search
+13
@@ -1574,6 +1574,7 @@ links): the wall display, or a status page. Only a hash of the secret is stored.
|
||||
| `token_hash` | text NOT NULL, unique | SHA-256 of the secret in the address; the secret itself is shown once and never stored. |
|
||||
| `token_prefix` | text NOT NULL | The first characters of the secret, to tell links apart in the list. |
|
||||
| `detail` | text NOT NULL, default `summary` | For a wall: `summary` (numbers only) or `names` (also the names of what is wrong, in maintenance, and the integrations). Not used by a status page. |
|
||||
| `display_id` | integer | For a wall: the named display it opens (→ `wall_displays.id`); null = the whole board. Cleared in code when the display is removed (the foreign key has no ON DELETE action in SQLite's added column). |
|
||||
| `kind` | text NOT NULL, default `wall` | `wall`, `status` or `calendar` (an iCalendar feed of what is coming up; `detail` says whether it carries names). Each kind's address opens only that kind. |
|
||||
| `title`, `message` | text | A status page's heading and its optional message; null for a wall. |
|
||||
| `created_by` | text | The administrator's name at the time. |
|
||||
@@ -1581,6 +1582,18 @@ links): the wall display, or a status page. Only a hash of the secret is stored.
|
||||
| `expires_at` | text | ISO; null = until removed. |
|
||||
| `last_used_at` | text | ISO; updated at most once a minute. |
|
||||
|
||||
#### `wall_displays`
|
||||
|
||||
Named wall displays (services/wallDisplays.ts): which pages the board rotates through, and how fast.
|
||||
|
||||
| Column | Type | Notes |
|
||||
|---|---|---|
|
||||
| `id`, `name` | | |
|
||||
| `slug` | text NOT NULL, unique | The address: `/wall/<slug>`; lower case letters, digits and single hyphens. Made from the name; kept when the name is changed. |
|
||||
| `pages` | text NOT NULL, default `[]` | JSON: page ids in the order they are shown — `overview`, `alerts`, `group:<id>`; empty = every page the board has. |
|
||||
| `rotate_seconds` | integer | 10–600; null = not set (the address or the browser decides). |
|
||||
| `created_by`, `created_at` | | |
|
||||
|
||||
#### `status_items`
|
||||
|
||||
What a status page shows, in order.
|
||||
|
||||
Reference in new issue
Block a user