diff --git a/CHANGELOG.md b/CHANGELOG.md index 56d324a7..aa174a01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.7.1] - 2026-10-31 + +> See what a suggested title is about before you go looking for it. + +### Added + +- **Synopsis on suggestions**: a suggested title (home shelves, Discover, moods) + shows what it is about before you look for releases, from the info button on + its poster on the web and hold OK on the TV. + ## [1.7.0] - 2026-10-31 > Profiles for shared accounts, friends, and a little mascot for everyone. @@ -1461,7 +1471,8 @@ inside]` over `[type icons (all/movie/series) | one cycling sort pill - Initial prototype line (`alpha` … `alpha4`): the first end-to-end Iris builds. -[Unreleased]: https://github.com/uplg/iris/compare/1.7.0...HEAD +[Unreleased]: https://github.com/uplg/iris/compare/1.7.1...HEAD +[1.7.1]: https://github.com/uplg/iris/compare/1.7.0...1.7.1 [1.7.0]: https://github.com/uplg/iris/compare/1.6.4...1.7.0 [1.6.4]: https://github.com/uplg/iris/compare/1.6.3...1.6.4 [1.6.3]: https://github.com/uplg/iris/compare/1.6.2...1.6.3 diff --git a/Cargo.lock b/Cargo.lock index 0aa1e08c..caed4bc8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2389,7 +2389,7 @@ checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" [[package]] name = "iris-api" -version = "1.7.0" +version = "1.7.1" dependencies = [ "anyhow", "async-trait", @@ -2441,7 +2441,7 @@ dependencies = [ [[package]] name = "iris-auth" -version = "1.7.0" +version = "1.7.1" dependencies = [ "argon2 0.6.0", "base64 0.23.1", @@ -2458,7 +2458,7 @@ dependencies = [ [[package]] name = "iris-caps" -version = "1.7.0" +version = "1.7.1" dependencies = [ "serde", "serde_json", @@ -2466,7 +2466,7 @@ dependencies = [ [[package]] name = "iris-config" -version = "1.7.0" +version = "1.7.1" dependencies = [ "figment", "iris-core", @@ -2478,7 +2478,7 @@ dependencies = [ [[package]] name = "iris-core" -version = "1.7.0" +version = "1.7.1" dependencies = [ "chrono", "serde", @@ -2490,7 +2490,7 @@ dependencies = [ [[package]] name = "iris-db" -version = "1.7.0" +version = "1.7.1" dependencies = [ "chrono", "iris-core", @@ -2505,7 +2505,7 @@ dependencies = [ [[package]] name = "iris-media" -version = "1.7.0" +version = "1.7.1" dependencies = [ "anyhow", "bytes", @@ -2524,7 +2524,7 @@ dependencies = [ [[package]] name = "iris-providers" -version = "1.7.0" +version = "1.7.1" dependencies = [ "async-trait", "bytes", @@ -2549,7 +2549,7 @@ dependencies = [ [[package]] name = "iris-torrent" -version = "1.7.0" +version = "1.7.1" dependencies = [ "anyhow", "bytes", diff --git a/Cargo.toml b/Cargo.toml index 5c295875..2a174905 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ ] [workspace.package] -version = "1.7.0" +version = "1.7.1" edition = "2024" rust-version = "1.99.1" license = "MIT OR Apache-2.0" diff --git a/android-tv/app/build.gradle.kts b/android-tv/app/build.gradle.kts index 5027e88c..0abf441f 100644 --- a/android-tv/app/build.gradle.kts +++ b/android-tv/app/build.gradle.kts @@ -31,8 +31,8 @@ android { applicationId = "studio.kahn.iris.tv" minSdk = 24 // navigation 2.10 floor; no Android TV box is left on 6.0 targetSdk = 37 - versionCode = 39 - versionName = "1.7.0" + versionCode = 40 + versionName = "1.7.1" // Build stamp surfaced in Settings: versionName/versionCode stay equal // across pre-release iterations, so without this there's no way to tell // WHICH build actually runs on the device. Via BuildStampSource — see diff --git a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/DiscoverScreen.kt b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/DiscoverScreen.kt index e5bf0a5b..c1437ea7 100644 --- a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/DiscoverScreen.kt +++ b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/DiscoverScreen.kt @@ -135,7 +135,7 @@ fun DiscoverContent( listOfNotNull( KeyHint(Keys.OK, if (mood == null) "Open, find releases" else "Find releases"), // Mood tiles have no menu: the hold only means something on titles. - if (mood != null || !state.forYou.valueOrNull.isNullOrEmpty()) KeyHint(Keys.HOLD_OK, "Not interested") else null, + if (mood != null || !state.forYou.valueOrNull.isNullOrEmpty()) KeyHint(Keys.HOLD_OK, "Synopsis, not interested") else null, KeyHint(Keys.BACK, if (mood == null) "To the menu" else "To all moods"), ), ) { NoticeLine(state.notice) } diff --git a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/HomeScreen.kt b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/HomeScreen.kt index efbb25df..d19cc69f 100644 --- a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/HomeScreen.kt +++ b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/HomeScreen.kt @@ -568,6 +568,6 @@ private fun Footer(notice: Notice?) { private val HOME_HINTS = listOf( KeyHint(Keys.OK, "Play"), - KeyHint(Keys.HOLD_OK, "Remove, mark watched"), + KeyHint(Keys.HOLD_OK, "Synopsis, remove, mark watched"), KeyHint(Keys.BACK, "To the menu"), ) diff --git a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeModels.kt b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeModels.kt index 56b27aa1..6a85d079 100644 --- a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeModels.kt +++ b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeModels.kt @@ -55,6 +55,8 @@ data class CardModel( val badge: String? = null, val primary: CardAction = CardAction.Open, val menu: List = emptyList(), + /** What the title is about, read in its menu. */ + val overview: String? = null, ) @Immutable @@ -167,7 +169,7 @@ fun libraryCard(item: CollectionListItem, downloading: Double?): CardModel { ) } -/** A suggested title names a title, not a release: it leads to a search for it. */ +/** A suggested title names a title, not a release: it leads to a search for it. Its synopsis is in its menu. */ fun catalogCard(card: CatalogCard, prefix: String): CardModel { val kind = kindLabel(card.kind, card.isAnime) val (status, tone) = when { @@ -185,6 +187,7 @@ fun catalogCard(card: CatalogCard, prefix: String): CardModel { tone = tone, primary = CardAction.FindReleases, menu = listOf(CardAction.FindReleases, CardAction.NotInterested), + overview = card.overview?.takeIf { it.isNotBlank() }?.trim(), ) } diff --git a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeRows.kt b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeRows.kt index 01863a19..b1c0d1a6 100644 --- a/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeRows.kt +++ b/android-tv/app/src/main/java/studio/kahn/iris/tv/ui/screens/home/HomeRows.kt @@ -22,6 +22,7 @@ import androidx.compose.ui.focus.focusRequester import androidx.compose.ui.semantics.LiveRegionMode import androidx.compose.ui.semantics.liveRegion import androidx.compose.ui.semantics.semantics +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.tv.material3.Text import studio.kahn.iris.tv.ui.components.ActionButton @@ -95,6 +96,9 @@ val SERVER_ACTIONS = setOf( CardAction.NotInterested, ) +/** Focus sits on the first action: any longer, on a small panel, that would scroll the synopsis's start away. */ +private const val SYNOPSIS_LINES = 10 + /** The screen's busy key while [action] of the card [key] travels: what `act` of the home and discover models set. */ fun busyKeyOf(key: String, action: CardAction): String = when (action) { CardAction.GetAndPlay -> "get:${key.removePrefix(CW_PREFIX)}" @@ -125,10 +129,19 @@ fun CardMenuHost( blocked = busy != null && menu.card.menu.none { busyKeyOf(menu.card.key, it) == busy }, onAction = { onCardAction(menu.card.key, it) }, onDismiss = focus::dismiss, + details = { CardSynopsis(menu.card) }, ) } } +/** What a suggested title is about, above its actions; nothing for a card without a synopsis. */ +@Composable +fun CardSynopsis(card: CardModel) { + val overview = card.overview ?: return + card.meta?.let { Text(it, style = IrisType.meta, color = IrisColor.inkMuted) } + Text(overview, style = IrisType.reading, color = IrisColor.ink, maxLines = SYNOPSIS_LINES, overflow = TextOverflow.Ellipsis) +} + /** One card: a 16:9 still ([still]) or a 2:3 poster ([fillCell] in a grid), OK = its primary action, hold OK = its menu. */ @Composable fun HomeCard( diff --git a/android-tv/app/src/test/java/studio/kahn/iris/tv/screenshot/HomeScreenshots.kt b/android-tv/app/src/test/java/studio/kahn/iris/tv/screenshot/HomeScreenshots.kt index 5328df0d..126aa4b1 100644 --- a/android-tv/app/src/test/java/studio/kahn/iris/tv/screenshot/HomeScreenshots.kt +++ b/android-tv/app/src/test/java/studio/kahn/iris/tv/screenshot/HomeScreenshots.kt @@ -25,6 +25,7 @@ import studio.kahn.iris.tv.ui.screens.DiscoverContent import studio.kahn.iris.tv.ui.screens.HomeContent import studio.kahn.iris.tv.ui.screens.OnboardingContent import studio.kahn.iris.tv.ui.screens.home.CardAction +import studio.kahn.iris.tv.ui.screens.home.CardSynopsis import studio.kahn.iris.tv.ui.components.ActionSheet import studio.kahn.iris.tv.ui.screens.home.CardModel import studio.kahn.iris.tv.ui.screens.home.DiscoverUiState @@ -242,6 +243,28 @@ class HomeScreenshots { } } + @Test + fun suggestionMenu() = shots.snapEverySize("home_suggestion_menu") { + val card = CardModel( + key = "fy:trending:1", + title = "Severance", + art = null, + meta = "Series · 2022", + overview = "Mark leads a team of office workers whose memories have been surgically divided between their work and personal lives. ".repeat(6), + ) + Home(home) { + ActionSheet( + title = card.title, + eyebrow = "Trending this week", + actions = listOf(CardAction.FindReleases, CardAction.NotInterested), + label = { it.label }, + onAction = {}, + onDismiss = {}, + details = { CardSynopsis(card) }, + ) + } + } + @Test fun onboarding() = shots.snapEverySize("onboarding") { Home(home) { diff --git a/android-tv/app/src/test/java/studio/kahn/iris/tv/ui/screens/home/HomeModelsTest.kt b/android-tv/app/src/test/java/studio/kahn/iris/tv/ui/screens/home/HomeModelsTest.kt index 6b7d5fce..cc8fb474 100644 --- a/android-tv/app/src/test/java/studio/kahn/iris/tv/ui/screens/home/HomeModelsTest.kt +++ b/android-tv/app/src/test/java/studio/kahn/iris/tv/ui/screens/home/HomeModelsTest.kt @@ -105,6 +105,8 @@ class HomeModelsTest { assertEquals("Because you like Fantasy", m.status) assertEquals(CardAction.FindReleases, m.primary) assertEquals("In your library", catalogCard(card.copy(alreadyInLibrary = true), "x").status) + assertEquals("A mage outlives her friends.", catalogCard(card.copy(overview = " A mage outlives her friends. "), "x").overview) + assertEquals(null, catalogCard(card.copy(overview = " "), "x").overview) } @Test diff --git a/android-tv/app/src/test/screenshots/discover_mood_phone800.png b/android-tv/app/src/test/screenshots/discover_mood_phone800.png index a14cb234..fc68b0f5 100644 Binary files a/android-tv/app/src/test/screenshots/discover_mood_phone800.png and b/android-tv/app/src/test/screenshots/discover_mood_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/discover_mood_phone915.png b/android-tv/app/src/test/screenshots/discover_mood_phone915.png index c518cc62..ee293439 100644 Binary files a/android-tv/app/src/test/screenshots/discover_mood_phone915.png and b/android-tv/app/src/test/screenshots/discover_mood_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/discover_mood_tv.png b/android-tv/app/src/test/screenshots/discover_mood_tv.png index 68f122e2..d3c8fb52 100644 Binary files a/android-tv/app/src/test/screenshots/discover_mood_tv.png and b/android-tv/app/src/test/screenshots/discover_mood_tv.png differ diff --git a/android-tv/app/src/test/screenshots/discover_phone800.png b/android-tv/app/src/test/screenshots/discover_phone800.png index 30eb86ee..834af4b0 100644 Binary files a/android-tv/app/src/test/screenshots/discover_phone800.png and b/android-tv/app/src/test/screenshots/discover_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/discover_phone915.png b/android-tv/app/src/test/screenshots/discover_phone915.png index f56e386b..e747ee28 100644 Binary files a/android-tv/app/src/test/screenshots/discover_phone915.png and b/android-tv/app/src/test/screenshots/discover_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/discover_tv.png b/android-tv/app/src/test/screenshots/discover_tv.png index fdd9237f..a4a8fbef 100644 Binary files a/android-tv/app/src/test/screenshots/discover_tv.png and b/android-tv/app/src/test/screenshots/discover_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_card_menu_phone800.png b/android-tv/app/src/test/screenshots/home_card_menu_phone800.png index 9f2910e1..c8402885 100644 Binary files a/android-tv/app/src/test/screenshots/home_card_menu_phone800.png and b/android-tv/app/src/test/screenshots/home_card_menu_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_card_menu_phone915.png b/android-tv/app/src/test/screenshots/home_card_menu_phone915.png index 457a5d8e..f0ab41da 100644 Binary files a/android-tv/app/src/test/screenshots/home_card_menu_phone915.png and b/android-tv/app/src/test/screenshots/home_card_menu_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_card_menu_tv.png b/android-tv/app/src/test/screenshots/home_card_menu_tv.png index 1ceea7f3..9eaba740 100644 Binary files a/android-tv/app/src/test/screenshots/home_card_menu_tv.png and b/android-tv/app/src/test/screenshots/home_card_menu_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_empty.png b/android-tv/app/src/test/screenshots/home_empty.png index 6e638616..a4417f95 100644 Binary files a/android-tv/app/src/test/screenshots/home_empty.png and b/android-tv/app/src/test/screenshots/home_empty.png differ diff --git a/android-tv/app/src/test/screenshots/home_friends.png b/android-tv/app/src/test/screenshots/home_friends.png index 10db026f..5de029af 100644 Binary files a/android-tv/app/src/test/screenshots/home_friends.png and b/android-tv/app/src/test/screenshots/home_friends.png differ diff --git a/android-tv/app/src/test/screenshots/home_largest_phone800.png b/android-tv/app/src/test/screenshots/home_largest_phone800.png index 4c1811f4..e3ab838a 100644 Binary files a/android-tv/app/src/test/screenshots/home_largest_phone800.png and b/android-tv/app/src/test/screenshots/home_largest_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_largest_phone915.png b/android-tv/app/src/test/screenshots/home_largest_phone915.png index 4d6169f6..d587be9a 100644 Binary files a/android-tv/app/src/test/screenshots/home_largest_phone915.png and b/android-tv/app/src/test/screenshots/home_largest_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_largest_tv.png b/android-tv/app/src/test/screenshots/home_largest_tv.png index ff977e30..5a07b0bc 100644 Binary files a/android-tv/app/src/test/screenshots/home_largest_tv.png and b/android-tv/app/src/test/screenshots/home_largest_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_long_title_phone800.png b/android-tv/app/src/test/screenshots/home_long_title_phone800.png index b621be6b..75c807c7 100644 Binary files a/android-tv/app/src/test/screenshots/home_long_title_phone800.png and b/android-tv/app/src/test/screenshots/home_long_title_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_long_title_phone915.png b/android-tv/app/src/test/screenshots/home_long_title_phone915.png index e1bb33d6..395f038d 100644 Binary files a/android-tv/app/src/test/screenshots/home_long_title_phone915.png and b/android-tv/app/src/test/screenshots/home_long_title_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_long_title_tv.png b/android-tv/app/src/test/screenshots/home_long_title_tv.png index 0d3b8ddd..de0c3de5 100644 Binary files a/android-tv/app/src/test/screenshots/home_long_title_tv.png and b/android-tv/app/src/test/screenshots/home_long_title_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_notice.png b/android-tv/app/src/test/screenshots/home_notice.png index d4d34680..4f46731f 100644 Binary files a/android-tv/app/src/test/screenshots/home_notice.png and b/android-tv/app/src/test/screenshots/home_notice.png differ diff --git a/android-tv/app/src/test/screenshots/home_phone800.png b/android-tv/app/src/test/screenshots/home_phone800.png index 0683f4a5..44a9236b 100644 Binary files a/android-tv/app/src/test/screenshots/home_phone800.png and b/android-tv/app/src/test/screenshots/home_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_phone915.png b/android-tv/app/src/test/screenshots/home_phone915.png index 7365611e..c30aa42c 100644 Binary files a/android-tv/app/src/test/screenshots/home_phone915.png and b/android-tv/app/src/test/screenshots/home_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_release_note_phone800.png b/android-tv/app/src/test/screenshots/home_release_note_phone800.png index 51cc9105..a44ff8e9 100644 Binary files a/android-tv/app/src/test/screenshots/home_release_note_phone800.png and b/android-tv/app/src/test/screenshots/home_release_note_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_release_note_phone915.png b/android-tv/app/src/test/screenshots/home_release_note_phone915.png index 76e68ae2..bc5a1f65 100644 Binary files a/android-tv/app/src/test/screenshots/home_release_note_phone915.png and b/android-tv/app/src/test/screenshots/home_release_note_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_release_note_tv.png b/android-tv/app/src/test/screenshots/home_release_note_tv.png index 0a244d8f..eba3eaeb 100644 Binary files a/android-tv/app/src/test/screenshots/home_release_note_tv.png and b/android-tv/app/src/test/screenshots/home_release_note_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_suggestion_menu_phone800.png b/android-tv/app/src/test/screenshots/home_suggestion_menu_phone800.png new file mode 100644 index 00000000..84201c01 Binary files /dev/null and b/android-tv/app/src/test/screenshots/home_suggestion_menu_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_suggestion_menu_phone915.png b/android-tv/app/src/test/screenshots/home_suggestion_menu_phone915.png new file mode 100644 index 00000000..84015ed8 Binary files /dev/null and b/android-tv/app/src/test/screenshots/home_suggestion_menu_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_suggestion_menu_tv.png b/android-tv/app/src/test/screenshots/home_suggestion_menu_tv.png new file mode 100644 index 00000000..642853e7 Binary files /dev/null and b/android-tv/app/src/test/screenshots/home_suggestion_menu_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_tv.png b/android-tv/app/src/test/screenshots/home_tv.png index 99093eb9..0b522699 100644 Binary files a/android-tv/app/src/test/screenshots/home_tv.png and b/android-tv/app/src/test/screenshots/home_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_update_downloading_phone800.png b/android-tv/app/src/test/screenshots/home_update_downloading_phone800.png index 22d2972b..633b0c14 100644 Binary files a/android-tv/app/src/test/screenshots/home_update_downloading_phone800.png and b/android-tv/app/src/test/screenshots/home_update_downloading_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_update_downloading_phone915.png b/android-tv/app/src/test/screenshots/home_update_downloading_phone915.png index 15ab63c5..6f53fb53 100644 Binary files a/android-tv/app/src/test/screenshots/home_update_downloading_phone915.png and b/android-tv/app/src/test/screenshots/home_update_downloading_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_update_downloading_tv.png b/android-tv/app/src/test/screenshots/home_update_downloading_tv.png index e9d95680..5f407fd1 100644 Binary files a/android-tv/app/src/test/screenshots/home_update_downloading_tv.png and b/android-tv/app/src/test/screenshots/home_update_downloading_tv.png differ diff --git a/android-tv/app/src/test/screenshots/home_update_failed.png b/android-tv/app/src/test/screenshots/home_update_failed.png index 8c226046..23cfe8b9 100644 Binary files a/android-tv/app/src/test/screenshots/home_update_failed.png and b/android-tv/app/src/test/screenshots/home_update_failed.png differ diff --git a/android-tv/app/src/test/screenshots/home_update_phone800.png b/android-tv/app/src/test/screenshots/home_update_phone800.png index 8f30f188..d0b8eaa5 100644 Binary files a/android-tv/app/src/test/screenshots/home_update_phone800.png and b/android-tv/app/src/test/screenshots/home_update_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/home_update_phone915.png b/android-tv/app/src/test/screenshots/home_update_phone915.png index d6a12612..58bc8403 100644 Binary files a/android-tv/app/src/test/screenshots/home_update_phone915.png and b/android-tv/app/src/test/screenshots/home_update_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/home_update_tv.png b/android-tv/app/src/test/screenshots/home_update_tv.png index f439fbd0..e0cfab5e 100644 Binary files a/android-tv/app/src/test/screenshots/home_update_tv.png and b/android-tv/app/src/test/screenshots/home_update_tv.png differ diff --git a/android-tv/app/src/test/screenshots/onboarding_phone800.png b/android-tv/app/src/test/screenshots/onboarding_phone800.png index fd97be04..87106f4c 100644 Binary files a/android-tv/app/src/test/screenshots/onboarding_phone800.png and b/android-tv/app/src/test/screenshots/onboarding_phone800.png differ diff --git a/android-tv/app/src/test/screenshots/onboarding_phone915.png b/android-tv/app/src/test/screenshots/onboarding_phone915.png index 0d705e22..cf3683bb 100644 Binary files a/android-tv/app/src/test/screenshots/onboarding_phone915.png and b/android-tv/app/src/test/screenshots/onboarding_phone915.png differ diff --git a/android-tv/app/src/test/screenshots/onboarding_tv.png b/android-tv/app/src/test/screenshots/onboarding_tv.png index 568a3ffb..bb9eded8 100644 Binary files a/android-tv/app/src/test/screenshots/onboarding_tv.png and b/android-tv/app/src/test/screenshots/onboarding_tv.png differ diff --git a/bun.lock b/bun.lock index 164f0f52..ae0ca07e 100644 --- a/bun.lock +++ b/bun.lock @@ -7,11 +7,11 @@ }, "packages/iris-api": { "name": "@iris/api", - "version": "1.7.0", + "version": "1.7.1", }, "packages/iris-core": { "name": "@iris/core", - "version": "1.7.0", + "version": "1.7.1", "dependencies": { "@hevcjs/core": "^1.6.0", "@iris/api": "workspace:*", @@ -24,7 +24,7 @@ }, "web": { "name": "web", - "version": "1.7.0", + "version": "1.7.1", "dependencies": { "@iris/api": "workspace:*", "@iris/core": "workspace:*", diff --git a/packages/iris-api/package.json b/packages/iris-api/package.json index f5546636..6455a14c 100644 --- a/packages/iris-api/package.json +++ b/packages/iris-api/package.json @@ -1,6 +1,6 @@ { "name": "@iris/api", - "version": "1.7.0", + "version": "1.7.1", "private": true, "description": "Iris API contract for the web apps: types generated from web/openapi.json, the fetch client, and the one set of display formatters.", "type": "module", diff --git a/packages/iris-core/package.json b/packages/iris-core/package.json index 1de12bf3..3b52605d 100644 --- a/packages/iris-core/package.json +++ b/packages/iris-core/package.json @@ -1,6 +1,6 @@ { "name": "@iris/core", - "version": "1.7.0", + "version": "1.7.1", "private": true, "description": "Iris player engine: decode tiers, MSE/WebCodecs pipelines, subtitle renderers. Framework-free TypeScript, consumed as source by the web apps.", "type": "module", diff --git a/web/openapi.json b/web/openapi.json index 2c44773f..da858538 100644 --- a/web/openapi.json +++ b/web/openapi.json @@ -7,7 +7,7 @@ "name": "MIT OR Apache-2.0", "identifier": "MIT OR Apache-2.0" }, - "version": "1.7.0" + "version": "1.7.1" }, "paths": { "/api/admin/active-sessions": { diff --git a/web/package.json b/web/package.json index 2ff99f85..b70c8f17 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "1.7.0", + "version": "1.7.1", "private": true, "type": "module", "imports": { diff --git a/web/src/lib/components/PosterCard.svelte b/web/src/lib/components/PosterCard.svelte index 5103ab16..9b069155 100644 --- a/web/src/lib/components/PosterCard.svelte +++ b/web/src/lib/components/PosterCard.svelte @@ -21,14 +21,17 @@ actions?: Snippet; /** A short fact on the art's corner ("3 new"), read with the card. */ badge?: string; + /** A control on the art's other corner (read the synopsis). */ + artAction?: Snippet; } - let { href, title, art, shape = 'poster', meta, status, progress, actions, badge }: Props = $props(); + let { href, title, art, shape = 'poster', meta, status, progress, actions, badge, artAction }: Props = $props();
  • {#if badge}{badge}{/if} + {#if artAction}
    {@render artAction()}
    {/if}
    {#if progress !== undefined} @@ -59,6 +62,11 @@ font-weight: 600; font-variant-numeric: tabular-nums; } + .art-action { + position: absolute; + top: var(--s-2); + right: var(--s-2); + } /* one column no wider than the card: a title that is one long word (a release name) would otherwise widen it to the word, the art with it */ .card { diff --git a/web/src/lib/home/CatalogCard.svelte b/web/src/lib/home/CatalogCard.svelte index 42ffe05d..b1771103 100644 --- a/web/src/lib/home/CatalogCard.svelte +++ b/web/src/lib/home/CatalogCard.svelte @@ -1,9 +1,11 @@ - + + {#snippet artAction()} + {#if overview} + + {/if} + {/snippet} {#snippet actions()} + + + diff --git a/web/src/routes/discover/discover.svelte.test.ts b/web/src/routes/discover/discover.svelte.test.ts index 5454d0e0..4ee474c8 100644 --- a/web/src/routes/discover/discover.svelte.test.ts +++ b/web/src/routes/discover/discover.svelte.test.ts @@ -97,6 +97,30 @@ describe('discover', () => { expect(api.sent('POST', '/me/for-you/dismiss')[0].body).toEqual({ catalog_id: 'm1' }); }); + it("a title's synopsis opens beside the page, with the way to its releases", async () => { + at('/discover?mood=chills&kind=movie'); + backend({ + '/me/moods/chills?kind=movie': { + mood: 'chills', + kind: 'movie', + items: [{ ...card('m1', 'Alien'), overview: 'A crew answers a distress call.' }] + } + }); + await show(); + await page.getByRole('button', { name: 'Read the synopsis of Alien' }).click(); + const sheet = page.getByRole('dialog', { name: 'Alien' }); + await expect.element(sheet.getByText('A crew answers a distress call.')).toBeVisible(); + await expect.element(sheet.getByRole('link', { name: 'Find releases' })).toHaveAttribute('href', '/search?q=Alien'); + }); + + it('no synopsis, no button', async () => { + at('/discover?mood=chills&kind=movie'); + backend({ '/me/moods/chills?kind=movie': { mood: 'chills', kind: 'movie', items: [{ ...card('m1', 'Alien'), overview: ' ' }] } }); + await show(); + await expect.element(page.getByRole('button', { name: 'Not interested in Alien' })).toBeVisible(); + await expect.element(page.getByRole('button', { name: 'Read the synopsis of Alien' })).not.toBeInTheDocument(); + }); + it('no suggestion yet: why, in words', async () => { backend({ '/me/for-you/page': { shelves: [] } }); await show();