Skip to content

StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.

refactor(live): move Home presentation into feature

David Nashashbd4f2649360f
diff --git a/app/src/main/java/com/streamvault/app/navigation/graph/LiveGraph.kt b/app/src/main/java/com/streamvault/app/navigation/graph/LiveGraph.kt
index e7b7cad2..8b4496d3 100644
--- a/app/src/main/java/com/streamvault/app/navigation/graph/LiveGraph.kt
+++ b/app/src/main/java/com/streamvault/app/navigation/graph/LiveGraph.kt
@@ -7,7 +7,6 @@ import com.streamvault.app.navigation.AppRoutePatterns
import com.streamvault.app.navigation.playerNavigationRequest
import com.streamvault.app.navigation.toLivePlayerRequest
import com.streamvault.app.ui.screens.epg.FullEpgScreen
-import com.streamvault.app.ui.screens.home.HomeScreen
import com.streamvault.app.ui.components.shell.AppNavigationChrome
import com.streamvault.app.ui.components.shell.AppScreenScaffold
import com.streamvault.app.ui.components.dialogs.AddToGroupDialog
@@ -19,6 +18,7 @@ import com.streamvault.domain.playback.isArchivePlayable
import com.streamvault.feature.live.api.LiveArchivePlaybackRequest
import com.streamvault.feature.live.api.LiveChannelPlaybackRequest
import com.streamvault.feature.live.api.LiveAddToGroupDialogRequest
+import com.streamvault.feature.live.home.LiveHomeScreen
import com.streamvault.feature.live.navigation.registerLiveGraph as registerFeatureLiveGraph
internal fun NavGraphBuilder.registerLiveGraph(
@@ -28,7 +28,7 @@ internal fun NavGraphBuilder.registerLiveGraph(
registerFeatureLiveGraph(
liveTvContent = { initialCategoryId, onPlaybackRequested, onNavigate ->
val multiViewViewModel: MultiViewViewModel = hiltViewModel()
- HomeScreen(
+ LiveHomeScreen(
onChannelClick = { channel, category, provider, combinedProfileId, combinedSourceFilterProviderId ->
onPlaybackRequested(
LiveChannelPlaybackRequest(
diff --git a/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.md b/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.md
index 89f66339..3ef9a3dc 100644
--- a/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.md
+++ b/docs/COMPOSE_REDUCTION_PHASE5_TRANSITIONAL_DEPENDENCIES.md
@@ -188,3 +188,10 @@ packages.
`LiveMultiViewPlannerContent` and `LiveAddToGroupContent` ports. The app graph
continues to own the concrete Playback planner and Add-to-Group dialog; the
dialog host itself and its Live strings no longer belong to `:app`.
+
+`LiveHomeScreen` now also lives in `:feature:live`. The app graph invokes it
+with the existing shell, MultiView planner, Add-to-Group dialog, and queue
+adapters, preserving composition-root ownership of platform and route
+navigation. The default Home resource keys were copied into the feature;
+non-default locale parity, behavior tests, golden/runtime checks, and legacy
+resource cleanup remain open.
diff --git a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md b/docs/superpowers/plans/2026-08-28-live-feature-extraction.md
index 84a8763e..5018143b 100644
--- a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md
+++ b/docs/superpowers/plans/2026-08-28-live-feature-extraction.md
@@ -776,8 +776,13 @@ Guide schedule metrics (missing entries, channels with schedules, and upcoming
data) are now feature-owned pure functions; `EpgViewModel` delegates while
retaining data loading and state assembly.
quick-filter key/selection rules are covered by `LiveQuickFiltersTest`. The
-remaining app-owned live cards and shell/dialog composition still require
-compatibility seams before the full Home move.
+mechanical screen move is now complete: `LiveHomeScreen` and
+`LiveHomeDialogsHost` are feature-owned under `:feature:live`, and the app
+graph supplies the shell, MultiView planner, and Add-to-Group dialog ports.
+The runtime Home route was smoke-checked on the emulator after the move. The
+behavior-test, locale-parity, golden-baseline, and performance/acceptance
+gates remain open; do not treat this checkpoint as full Home or Live-slice
+acceptance.
Preserve planner callback order:
@@ -787,7 +792,12 @@ dismiss planner state -> dismiss channel dialog when present -> clear preview ->
- [ ] **Step 7: Move Home resources locale by locale**
-Copy exact values for `home_*`, `live_*`, preview, quick-filter, category/group, and Home-only dialog keys. Duplicate shared keys only when app consumers remain. Run a script comparing each moved locale value before removing any app key.
+The default locale values for the moved Home screen/dialog surface are now
+present in `feature/live/src/main/res/values/strings.xml`, while app resources
+remain intact for other consumers. Copy exact values for every non-default
+`home_*`, `live_*`, preview, quick-filter, category/group, and Home-only dialog
+key, then run a comparison script before removing any app key. Locale parity
+and removal are still open.
- [ ] **Step 8: Run Home feature and app integration checks**
diff --git a/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.kt b/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.kt
index 56c1164d..69ea025f 100644
--- a/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.kt
+++ b/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.kt
@@ -1,4 +1,4 @@
-package com.streamvault.app.ui.screens.home
+package com.streamvault.feature.live.home
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.foundation.layout.*
@@ -49,12 +49,6 @@ import com.streamvault.feature.live.home.LiveHiddenChannelsDialog
import com.streamvault.feature.live.home.LiveHomeDialogsHost
import com.streamvault.feature.live.presentation.components.LiveChannelRowSurface
import com.streamvault.core.ui.components.TvEmptyState
-import com.streamvault.app.ui.components.dialogs.CategoryOptionsDialog
-import com.streamvault.core.ui.components.dialogs.PinDialog
-import com.streamvault.core.ui.components.dialogs.PremiumDialog
-import com.streamvault.core.ui.components.dialogs.PremiumDialogActionButton
-import com.streamvault.core.ui.components.dialogs.PremiumDialogFooterButton
-import com.streamvault.app.ui.components.dialogs.RenameGroupDialog
import com.streamvault.feature.live.presentation.components.LiveReorderTopBar
import com.streamvault.feature.live.presentation.home.liveHomeLayoutMetrics
import com.streamvault.feature.live.presentation.home.isLiveHomeCategoryLocked
@@ -69,7 +63,7 @@ import com.streamvault.domain.model.Channel
import com.streamvault.domain.model.LegacyProvider as Provider
import kotlinx.coroutines.launch
import androidx.compose.ui.res.stringResource
-import com.streamvault.app.R
+import com.streamvault.feature.live.R
import com.streamvault.domain.model.LiveTvChannelMode
import com.streamvault.feature.live.navigation.LiveRoutePatterns
import com.streamvault.feature.live.api.LiveMultiViewPlannerContent
@@ -101,7 +95,7 @@ private sealed interface FocusedRemoteShortcutTarget {
// ׳’ג€ג‚¬׳’ג€ג‚¬ Screen ׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬׳’ג€ג‚¬
@Composable
-fun HomeScreen(
+fun LiveHomeScreen(
onChannelClick: (Channel, Category?, Provider?, Long?, Long?) -> Unit,
onNavigate: (String) -> Unit,
onOpenMultiView: () -> Unit,
diff --git a/feature/live/src/main/res/values/strings.xml b/feature/live/src/main/res/values/strings.xml
index 02dd6be2..5477da8d 100644
--- a/feature/live/src/main/res/values/strings.xml
+++ b/feature/live/src/main/res/values/strings.xml
@@ -71,4 +71,56 @@
<string name="pin_dialog_cancel">Cancel</string>
<string name="pin_dialog_title">Enter PIN</string>
<string name="settings_cancel">Cancel</string>
+ <string name="a11y_catch_up_available">Catch-up available</string>
+ <string name="a11y_channel_with_number">Channel %1$d, %2$s</string>
+ <string name="a11y_favorite">Favorite</string>
+ <string name="a11y_locked">Locked</string>
+ <string name="a11y_now_playing">Now playing %1$s</string>
+ <string name="action_save_order">Save Order</string>
+ <string name="badge_catch_up">CATCH UP</string>
+ <string name="badge_moving">MOVING</string>
+ <string name="badge_saved">SAVED</string>
+ <string name="card_live_badge">LIVE</string>
+ <string name="hidden_categories_dialog_close">Close</string>
+ <string name="hidden_categories_dialog_subtitle">Pick the ones to restore.</string>
+ <string name="hidden_categories_dialog_title">Hidden categories</string>
+ <string name="hidden_categories_dialog_unhide_all">Unhide all</string>
+ <string name="hidden_channels_dialog_close">Close</string>
+ <string name="hidden_channels_dialog_subtitle">Pick the ones to restore.</string>
+ <string name="hidden_channels_dialog_title">Hidden channels</string>
+ <string name="hidden_channels_dialog_unhide_all">Unhide all</string>
+ <string name="home_add_favorites_hint">Add channels to favorites to see them here</string>
+ <string name="home_add_first_provider">Add your first provider</string>
+ <string name="home_add_first_provider_subtitle">Set up a provider to load live channels, movies, series, and guide data.</string>
+ <string name="home_all_channels">All Channels</string>
+ <string name="home_categories_title">Categories</string>
+ <string name="home_loading_categories">Loading categories...</string>
+ <string name="home_loading_channels">Loading channels...</string>
+ <string name="home_no_channels_found">No channels found in this category</string>
+ <string name="home_no_channels_found_subtitle">Try another category or search term.</string>
+ <string name="home_quick_filters_active">Applied filter: %1$s</string>
+ <string name="home_quick_filters_add_chip">+ Add filter</string>
+ <string name="home_quick_filters_all">All</string>
+ <string name="home_quick_filters_button">Quick filters</string>
+ <string name="home_quick_filters_empty">No saved quick filters yet. Add one to keep category searches close at hand.</string>
+ <string name="home_quick_filters_hide">Hide</string>
+ <string name="home_quick_filters_manual_search">Manual search: %1$s</string>
+ <string name="home_quick_filters_show">Show</string>
+ <string name="home_quick_filters_showing_all">Showing all categories</string>
+ <string name="home_quick_filters_title">Quick filters</string>
+ <string name="home_recent_channels_hint">Watch a few live channels to build a recent list here</string>
+ <string name="home_search_categories">Search categories...</string>
+ <string name="home_search_channels">Search channels...</string>
+ <string name="label_colon_value_format">%1$s: %2$s</string>
+ <string name="label_no_schedule">No schedule information</string>
+ <string name="label_reordering">Reordering %1$s</string>
+ <string name="label_selected">Selected</string>
+ <string name="live_channel_results">%1$d channels in view</string>
+ <string name="live_quick_filter_hidden_categories">Hidden categories (%1$d)</string>
+ <string name="live_quick_filter_hidden_channels">Hidden channels (%1$d)</string>
+ <string name="live_reorder_subtitle">D-pad moves the selected channel. Save the order when you are done.</string>
+ <string name="live_shell_last_group">Last group</string>
+ <string name="live_source_unavailable_short">Unavailable</string>
+ <string name="nav_live_tv">Live TV</string>
+ <string name="playlist_no_provider">No Provider</string>
</resources>