Skip to content

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

docs: record settings view model extraction

David Nashashbb78d942b8fa
diff --git a/docs/COMPOSE_REDUCTION_PHASE5_SETTINGS_REPORT.md b/docs/COMPOSE_REDUCTION_PHASE5_SETTINGS_REPORT.md
index 5694acd5..85592577 100644
--- a/docs/COMPOSE_REDUCTION_PHASE5_SETTINGS_REPORT.md
+++ b/docs/COMPOSE_REDUCTION_PHASE5_SETTINGS_REPORT.md
@@ -7,13 +7,13 @@ Date: 2026-08-27
The settings slice is **in progress**. A compilable, independently checked
`:feature:settings` module now owns the first behavior-preserving presentation
layers: shared settings contracts, backup-preview rendering, parental controls,
-settings state models, preference mapping, backup/restore and EPG actions, and
-the related feature tests. `:app` remains the composition root and continues to
-own the platform adapters and the portions of the Settings screen that have
-not yet moved.
+settings state/models/actions/observers, preference mapping, backup/restore and
+EPG actions, the Hilt `SettingsViewModel`, and the related feature tests.
+`:app` remains the composition root and continues to own the platform adapters
+and the portions of the Settings screen that have not yet moved.
-This is not Phase 5 completion. Settings ViewModel orchestration, the remaining
-screen/dialog/resource extraction, app adapter cleanup, full graph registration,
+This is not Phase 5 completion. The remaining screen/dialog/resource
+extraction, app adapter cleanup, full graph registration,
and runtime/manual acceptance are still open. The existing playback and
provider runtime gates remain open under their respective reports.
@@ -26,8 +26,8 @@ provider runtime gates remain open under their respective reports.
- The feature source has no `com.streamvault.app`, `NavController`,
`NavHostController`, `MainActivity`, `:feature:provider`, or
`:feature:playback` references.
-- Feature-defined ports cover backup/restore, diagnostics, sync, pairing,
- update checks/downloads, and external settings actions. App adapters remain
+- Feature-defined ports cover backup/restore, diagnostics, TV-surface refresh,
+ sync, pairing, update checks/downloads, and external settings actions. App adapters remain
responsible for Android intents, workers, installers, and other platform
operations.
- `ProviderBackupPreviewRequest` and `ProviderBackupPreviewContent` remain
@@ -48,9 +48,10 @@ provider runtime gates remain open under their respective reports.
- `0441d1e6` — parental controls extraction
- `20a3f3f5` — settings state and actions extraction
- `3090ad75` — feature lint fixes (network permission and Compose resource lookup)
+- `3a9dda13` — settings ViewModel and operational observer/action ownership
-The design/spec and detailed implementation plan are intentionally kept as
-working-tree documentation for the ongoing slice:
+The design/spec and detailed implementation plan are tracked documentation for
+the ongoing slice:
- `docs/superpowers/specs/2026-08-27-phase-5-settings-feature-extraction-design.md`
- `docs/superpowers/plans/2026-08-27-settings-feature-extraction.md`
@@ -82,9 +83,9 @@ device claim is implied by these commands.
## Open work and gates
-- Move the remaining Settings presentation and ViewModel orchestration while
- keeping routes, focus restoration, semantics, callbacks, persistence,
- launcher ordering, and error text unchanged.
+- Move the remaining Settings presentation and resources while keeping routes,
+ focus restoration, semantics, callbacks, persistence, launcher ordering, and
+ error text unchanged.
- Finish feature resource/locale ownership and the settings graph registration;
remove transitional app wildcard imports once all consumers move.
- Complete the DAO/concrete dependency audit and remove each ledger entry only
@@ -94,4 +95,3 @@ device claim is implied by these commands.
restoration when the required emulator/accounts/files are available.
- Do not treat the still-open playback/provider acceptance and performance
gates as closed by this settings report.
-
diff --git a/validation/phase5_settings/task7-viewmodel-report.md b/validation/phase5_settings/task7-viewmodel-report.md
new file mode 100644
index 00000000..ea3c484d
--- /dev/null
+++ b/validation/phase5_settings/task7-viewmodel-report.md
@@ -0,0 +1,37 @@
+# Settings extraction — Task 7 evidence
+
+Date: 2026-08-27
+
+## Scope
+
+`SettingsViewModel`, its settings action/observer helpers, and the focused
+action/observer tests now live in `:feature:settings`. App-only implementations
+are reached through `SettingsDiagnosticsPort`, `SettingsSurfaceRefreshPort`,
+and `SettingsAppUpdatePort`; domain repositories, managers, and the explicitly
+ledgered `:data` types remain unchanged.
+
+## Verification
+
+The following checks completed successfully with exit code 0:
+
+```text
+gradlew.bat :feature:settings:compileDebugKotlin --console=plain --warning-mode=none
+gradlew.bat :feature:settings:compileDebugUnitTestKotlin --console=plain --warning-mode=none
+gradlew.bat :feature:settings:testDebugUnitTest --console=plain --warning-mode=none
+gradlew.bat :feature:settings:verifyFeatureSettingsBoundary --console=plain --warning-mode=none
+gradlew.bat :app:compileDebugKotlin --console=plain --warning-mode=none
+gradlew.bat :app:compileDebugUnitTestKotlin --console=plain --warning-mode=none
+gradlew.bat :feature:settings:check --console=plain --warning-mode=none
+```
+
+The feature boundary scan reports approved project dependencies, zero forbidden
+source references, and detected Kotlin/Java fixtures. Feature tests include the
+ViewModel source-boundary test and the moved action/observer tests.
+
+## Evidence interpretation
+
+The checks establish compile, unit-test, lint, Kover, and structural boundary
+evidence. They do not close connected-TV, manual focus, backup chooser/Drive,
+update-install, or paired performance gates. Remaining Settings UI/resources,
+graph ownership, and runtime acceptance are still open.
+