StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
refactor(live): wire Home to live-owned controls
David Nashash5506c9bcd976
diff --git a/app/src/main/java/com/streamvault/app/ui/screens/home/HomeScreen.kt b/app/src/main/java/com/streamvault/app/ui/screens/home/HomeScreen.ktindex 4076e7cc..ee9e1fd3 100644--- a/app/src/main/java/com/streamvault/app/ui/screens/home/HomeScreen.kt+++ b/app/src/main/java/com/streamvault/app/ui/screens/home/HomeScreen.kt@@ -20,8 +20,8 @@ import androidx.compose.runtime.saveable.rememberSaveableimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport com.streamvault.core.ui.components.SearchInput-import com.streamvault.app.ui.components.SelectionChip-import com.streamvault.app.ui.components.SelectionChipRow+import com.streamvault.feature.live.presentation.components.LiveSelectionChip+import com.streamvault.feature.live.presentation.components.LiveSelectionChipRowimport androidx.compose.ui.focus.onFocusChangedimport androidx.compose.ui.focus.focusRequesterimport androidx.compose.ui.focus.FocusRequester@@ -50,11 +50,11 @@ import androidx.lifecycle.compose.LifecycleEventEffectimport com.streamvault.app.ui.components.CategoryRowimport com.streamvault.app.ui.components.ChannelCardimport com.streamvault.feature.live.presentation.components.LiveChannelProgressTicker+import com.streamvault.feature.live.presentation.components.LiveSourceSwitcherimport com.streamvault.feature.live.home.HomeViewModelimport com.streamvault.feature.live.home.CategoryItemimport com.streamvault.feature.live.home.CompactSplitLauncherButtonimport com.streamvault.feature.live.home.LivePreviewPane-import com.streamvault.app.ui.components.LiveSourceSwitcherimport com.streamvault.core.ui.components.shell.ContentMetadataStripimport com.streamvault.app.ui.components.shell.LiveChannelRowSurfaceimport com.streamvault.core.ui.components.shell.StatusPill@@ -771,7 +771,10 @@ fun HomeScreen(currentSource = uiState.activeLiveSource,options = uiState.liveSourceOptions,onSourceSelected = viewModel::switchLiveSource,- compact = true+ compact = true,+ noSourceLabel = stringResource(R.string.playlist_no_provider),+ selectedLabel = stringResource(R.string.label_selected),+ unavailableLabel = stringResource(R.string.live_source_unavailable_short))}}@@ -907,18 +910,18 @@ fun HomeScreen(}}if (uiState.savedCategoryFilters.isNotEmpty() || uiState.categorySearchQuery.isNotBlank()) {- SelectionChipRow(+ LiveSelectionChipRow(title = stringResource(R.string.home_quick_filters_title),chips = buildList {add(- SelectionChip(+ LiveSelectionChip(key = HOME_ALL_FILTER_KEY,label = stringResource(R.string.home_quick_filters_all)))addAll(uiState.savedCategoryFilters.map { filter ->- SelectionChip(key = filter, label = filter)+ LiveSelectionChip(key = filter, label = filter)})},diff --git a/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.md b/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.mdindex 4907c59a..ec418c95 100644--- a/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.md+++ b/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.md@@ -127,9 +127,11 @@ These are transitional adapters, not new policy owners:The `:feature:live` module itself depends only on `:core:navigation`, `:core:ui`,`:domain`, `:data`, and `:player`; its boundary verifier rejects app andfeature-to-feature imports. Home and Guide ViewModels are being moved behind-the live boundary incrementally: `HomeViewModel` and the sidebar/preview-surface components are now feature-owned while the Home screen/dialog-composition remains in `:app`. Live-owned+the live boundary incrementally: `HomeViewModel`, the sidebar/preview surface,+the live source switcher, and the Home quick-filter chip row are now+feature-owned while the Home screen/dialog composition remains in `:app`.+The source switcher receives localized labels from the app at the current+composition boundary. Live-ownedpresentation primitives, `HomeUiState`, `HomePreviewUiState`, and Guidemode/density/reminder presentation models are independent of app code;screen/resource moves, golden/runtime/performance gates, and legacy app cleanupdiff --git a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md b/docs/superpowers/plans/2026-08-28-live-feature-extraction.mdindex fd7436e2..12512586 100644--- a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md+++ b/docs/superpowers/plans/2026-08-28-live-feature-extraction.md@@ -17,9 +17,10 @@ Home/Guide screen and ViewModel ownership, feature-owned resource migration,golden/runtime/performance gates, and legacy app cleanup remain open; this plan does notclaim the Live slice or Phase 5 complete.-Status update (2026-08-29): `HomeViewModel` and the sidebar/preview surface-components are now feature-owned and their feature checks are green. Home-screen/dialog composition, complete locale resource migration, and acceptance+Status update (2026-08-29): `HomeViewModel`, the sidebar/preview surface, the+live source switcher, and the Home quick-filter chip row are now feature-owned+and their feature checks are green. Home screen/dialog composition, the+remaining live cards/rows, complete locale resource migration, and acceptancegates remain open.Route patterns were subsequently moved behind `LiveRoutePatterns`; the app@@ -651,6 +652,12 @@ Run `HomeScreenBehaviorTest`; expected missing-screen failure.Move `HomeScreen.kt`, `HomeScreenDialogs.kt`, and `HomeSidebarComponents.kt`. Replace app navigation strings with typed `AppDestination`, app shell with `CoreAppScreenScaffold`/`UiDestination`, device/time helpers with Core UI, and direct MultiView composables with `LiveMultiViewPlannerContent`.+The first screen wiring checkpoint is complete: Home now calls the+feature-owned `LiveSourceSwitcher` and `LiveSelectionChipRow`, passing the+app-localized labels through explicit presentation parameters. The remaining+app-owned live cards/rows and shell/dialog composition still require+compatibility seams before the full Home move.+Preserve planner callback order:```text