0.108.35: first launch for a new user, on Emby
Paul, 5 November 2026, from the approved design; Emby first, the other servers later. A box that has never been signed in gets, once: Welcome (Ollie rolls in, settles and blinks), Server (Emby; Plex, Jellyfin and Silo marked coming soon, drawn as plain server marks, not their logos), Sign in (Orbit's own form, under the steps), Channels (Orbit's channels, the usual eight ticked; Drift, bobbing and blinking, sets each up as switching it on in Settings does and shows what went where and about how long is left), Who watches (set the Grown-ups PIN, Kids on or off), and You're on air (the cast floating right as stars stream past). Then into Orbit as Grown-ups. All still with Reduce motion on. Settings > Emby account > Welcome tour shows the same steps on a box that's already set up, changing nothing (channel counts are read, not set up; the PIN and Kids switch aren't saved). With Kids off, Orbit no longer asks Who's watching and goes straight in as Grown-ups. Existing boxes never see the flow by themselves. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package tv.orbit.classic
|
||||
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Test
|
||||
|
||||
class OnboardingTest {
|
||||
@Test fun theStepsRunInTheDesignedOrder() {
|
||||
assertEquals(listOf("Welcome", "Server", "Sign in", "Channels", "Who watches", "All set"), OnboardStep.entries.map { it.label })
|
||||
}
|
||||
|
||||
@Test fun theStartingChannelsAreRealAndNeverAfterDark() {
|
||||
val numbers = SmartChannels.map { it.number }.toSet()
|
||||
assertTrue(OnboardStartChannels.all { it in numbers })
|
||||
assertTrue(OnboardStartChannels.none { it in LockedChannels })
|
||||
}
|
||||
|
||||
@Test fun theTimeLeftComesFromHowLongTheChannelsSoFarTook() {
|
||||
ChannelSetup.begin(listOf(101, 106, 201, 107))
|
||||
val start = ChannelSetup.startedAt
|
||||
// Before any are done, a minute each.
|
||||
assertEquals(4, ChannelSetup.minutesLeft(start))
|
||||
// Two done in four minutes: two left at two minutes each.
|
||||
ChannelSetup.found = mapOf(101 to 180, 106 to 90)
|
||||
assertEquals(4, ChannelSetup.minutesLeft(start + 4 * 60_000))
|
||||
assertFalse(ChannelSetup.finished)
|
||||
ChannelSetup.found = ChannelSetup.found + mapOf(201 to 40, 107 to -1)
|
||||
assertTrue(ChannelSetup.finished); assertEquals(0, ChannelSetup.minutesLeft(start + 9 * 60_000))
|
||||
ChannelSetup.begin(emptyList())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user