Wall displays: a night schedule that dims or blanks the board

A named display can dim the board or blank it (so a tablet or computer may
sleep) between two times on the screen's own clock. A critical alert brings the
board back unless told not to, and a touch or key press brings it back for two
minutes. A share link that opens the display follows the same schedule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-13 18:47:53 +01:00
1 parent 168d01dc7b
commit a69d0a611d
17 files changed
+9948 -22

No files matched your search

+5
View File
@@ -857,6 +857,11 @@ export const wallDisplays = sqliteTable("wall_displays", {
slug: text("slug").notNull().unique(), // the address: /wall/<slug>
pages: text("pages").notNull().default("[]"), // JSON: page ids in order ("overview", "alerts", "group:apps" …); empty = every page the board has
rotateSeconds: integer("rotate_seconds"), // how long each page stays; null = not set (the address or the browser decides, else the board does not rotate)
// A night schedule on the screen's own clock: from this time to that (HH:MM, and past midnight when "to" is earlier), the board is dimmed or blanked. All null = none.
nightFrom: text("night_from"),
nightTo: text("night_to"),
nightMode: text("night_mode"), // dim | off
nightWakeCritical: integer("night_wake_critical", { mode: "boolean" }).notNull().default(true), // show the board again while something is critical
createdBy: text("created_by"),
createdAt: text("created_at")
.notNull()