Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions android-tv/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ data class CardModel(
val badge: String? = null,
val primary: CardAction = CardAction.Open,
val menu: List<CardAction> = emptyList(),
/** What the title is about, read in its menu. */
val overview: String? = null,
)

@Immutable
Expand Down Expand Up @@ -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 {
Expand All @@ -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(),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)}"
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified android-tv/app/src/test/screenshots/discover_mood_phone800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/discover_mood_phone915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/discover_mood_tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/discover_phone800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/discover_phone915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/discover_tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_card_menu_phone800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_card_menu_phone915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_card_menu_tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_friends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_largest_phone800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_largest_phone915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_largest_tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_long_title_phone800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_long_title_phone915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_long_title_tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_notice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_phone800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_phone915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_release_note_phone800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_release_note_phone915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_release_note_tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android-tv/app/src/test/screenshots/home_tv.png
Binary file modified android-tv/app/src/test/screenshots/home_update_downloading_tv.png
Binary file modified android-tv/app/src/test/screenshots/home_update_failed.png
Binary file modified android-tv/app/src/test/screenshots/home_update_phone800.png
Binary file modified android-tv/app/src/test/screenshots/home_update_phone915.png
Binary file modified android-tv/app/src/test/screenshots/home_update_tv.png
Binary file modified android-tv/app/src/test/screenshots/onboarding_phone800.png
Binary file modified android-tv/app/src/test/screenshots/onboarding_phone915.png
Binary file modified android-tv/app/src/test/screenshots/onboarding_tv.png
6 changes: 3 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/iris-api/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/iris-core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion web/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "1.7.0",
"version": "1.7.1",
"private": true,
"type": "module",
"imports": {
Expand Down
10 changes: 9 additions & 1 deletion web/src/lib/components/PosterCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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();
</script>

<li class="card whole-card {shape}">
<div class="art-wrap">
<Poster src={art} {title} {shape} />
{#if badge}<span class="badge">{badge}</span>{/if}
{#if artAction}<div class="art-action">{@render artAction()}</div>{/if}
</div>
{#if progress !== undefined}
<Meter share={progress} />
Expand Down Expand Up @@ -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 {
Expand Down
Loading
Loading