Commit 14ffa1e
Add per-board layout templates and a pre-sleep lead time
Two Vestaboard features, both configurable from the board editor without
rebuilding the app:
- Custom board layouts. An "Advanced" section takes a sandboxed Jinja
template that replaces the built-in layout: one rendered line per board
row, `LEFT | RIGHT` splits a row, everything else centers. `{% if %}`
works, so the bottom row can show the delay when there is one and the
next ship's name when there isn't. trim_blocks/lstrip_blocks keep a
conditional on its own line from emitting a blank row; a failing template
shows TEMPLATE ERROR on the preview instead of pushing a blank board.
Example templates are per-model so a 6-row flagship layout doesn't lose
its conditional line when truncated onto a 3-row Note. Full variable list
documented in-UI and in the README.
- Pre-sleep lead time. The sleep message now goes out quiet.sleep_lead_min
minutes (default 3) before the quiet window's start, and ferry pushes stop
at that same early moment. A board's own Quiet Hours drop incoming
messages and aren't reachable from the Read/Write API, so pushing at the
exact start can leave the ferry layout up all night. The board editor
links to web2.vestaboard.com for that device-side setting.
Verified against the live data dir via a wip build driven through the real
/api/vestaboard preview endpoint (delay -> "DELAYED 11:30A", no delay ->
next vessel name) on both Note and flagship. 24 tests pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7e4c6e4 commit 14ffa1e
4 files changed
Lines changed: 480 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
110 | 141 | | |
111 | 142 | | |
112 | 143 | | |
| |||
0 commit comments