Settings for everyone: six plain choices, Watching styles, Comfort and accessibility
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 4m19s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m56s
release-gate / verify (push) Successful in 11m58s

From Paul's approved design (design/settings) and his three refinements:
- Settings opens on Watching, Channels, Family, Other TVs and phones, Help and
  account, and Back to TV; Back from a section returns there.
- Watching: everyday choices first; between programmes as Full TV feel, A little
  or Just the programmes, each explained, Custom once a switch is set by hand;
  every switch under Choose each one, grouped.
- Comfort and accessibility: reduce motion, soft sounds, quiet nights, Wind Down.
- Other TVs and phones as one list; backups and the technical bits in Help and account.
- Switches say On or Off; long pages scroll to their foot on Down at the last item.
- Old section names in on-screen text updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 22:43:30 +00:00
co-authored by Claude Opus 5.5
parent 111c4db7ee
commit b8ced6768d
10 changed files with 447 additions and 155 deletions
@@ -0,0 +1,32 @@
package tv.orbit.classic
import org.junit.Assert.*
import org.junit.Test
/** Paul, 12 November 2026: three styles for what plays between programmes, and Custom once a switch is set by hand. */
class BetweenStyleTest {
@Test
fun aNewBoxStartsOnFullTvFeel() {
// Orbit's defaults: idents, sounds, what's next, special idents, the squeeze, the cast and the curtains all on.
assertEquals(BetweenStyle.Full, BetweenStyle.of(BetweenSwitches(idents = true, identSound = true, upNext = true, specialIdents = true, squeezeBack = true, castOn = true, curtains = true)))
}
@Test
fun eachStyleIsItselfAndTheyAllDiffer() {
BetweenStyle.entries.forEach { assertEquals(it, BetweenStyle.of(it.switches)) }
assertEquals(3, BetweenStyle.entries.map { it.switches }.distinct().size)
}
@Test
fun changingOneSwitchByHandIsCustom() {
val full = BetweenStyle.Full.switches
assertNull(BetweenStyle.of(full.copy(identSound = false)))
assertNull(BetweenStyle.of(BetweenStyle.Plain.switches.copy(idents = true)))
}
@Test
fun everyStyleSaysWhatItChanges() {
BetweenStyle.entries.forEach { assertTrue(it.explains.length > 40); assertTrue(it.title.isNotBlank()) }
assertTrue(BetweenStyle.CUSTOM_EXPLAINS.contains("Choose each one"))
}
}