Smaller switches, N/A for unplayed games, Paul's 3x40s drift test; settings-for-everyone mock-ups
release-gate / verify (push) Failing after 12m5s
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 3m45s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 5m13s

- OnOff is 50 x 28 dp (was 64 x 34), same focus ring.
- High scores: a game not played yet shows N/A in each column.
- ProgrammeLengthsTest: three programmes 40 s over all play in full at
  exactly 2 minutes' drift; a fourth squeezes the next film's credits.
- design/settings: five plain sections, presets, one Other TVs list (approved).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 22:12:11 +00:00
co-authored by Claude Opus 5.5
parent c65ba8be8f
commit 111c4db7ee
20 changed files with 661 additions and 6 deletions
@@ -79,6 +79,19 @@ class ProgrammeLengthsTest {
assertTrue(back.entries.zipWithNext().all { (x, y) -> x.endMs <= y.startMs })
}
@Test
fun threeProgrammesFortySecondsOverAllPlayInFull() {
// Paul's question: three in a row, each 40 seconds long. Two minutes of drift, and nothing is cut.
var p = plan(*(0 until 6).map { entry("f$it", it * 100 * min, 100 * min) }.toTypedArray())
for (i in 0 until 3) p = retimedPlan(p, p.entries[i].startMs, 100 * min + 40_000)!!
assertTrue(p.entries.none { (it.fileMs ?: it.media.durationMs) > it.media.durationMs })
assertEquals(listOf(120_000L, 120_000L, 120_000L), p.entries.drop(3).map { it.startMs - it.bookedStartMs })
// A fourth: it plays in full too, and the fifth film's closing credits give up 40 seconds to hold the channel at two minutes.
p = retimedPlan(p, p.entries[3].startMs, 100 * min + 40_000)!!
assertEquals(40_000L, p.entries[4].fileMs!! - p.entries[4].media.durationMs)
assertEquals(120_000L, p.entries[5].startMs - p.entries[5].bookedStartMs)
}
@Test
fun tinyOverrunsNeverDriftAChannelMoreThanTwoMinutes() {
// Thirty back-to-back episodes, each found 20 seconds longer than booked as the evening goes on.