From 9baed7e57983671857f4073b5fbf4a1b09e1666f Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 26 May 2026 15:43:24 -0400 Subject: [PATCH] =?UTF-8?q?fix(android):=20AdminRequestsViewModel=20?= =?UTF-8?q?=E2=80=94=20missing=20imports=20for=20EventsStream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous per-screen SSE wiring (525873f) updated the constructor + init block of AdminRequestsViewModel but the matching imports + RELEVANT_EVENT_KINDS const were silently dropped from the edit, so KSP couldn't resolve the EventsStream type. The other four VMs got the imports correctly. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fabledsword/minstrel/admin/ui/AdminRequestsViewModel.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/app/src/main/java/com/fabledsword/minstrel/admin/ui/AdminRequestsViewModel.kt b/android/app/src/main/java/com/fabledsword/minstrel/admin/ui/AdminRequestsViewModel.kt index 7afdc04d..6e3beb27 100644 --- a/android/app/src/main/java/com/fabledsword/minstrel/admin/ui/AdminRequestsViewModel.kt +++ b/android/app/src/main/java/com/fabledsword/minstrel/admin/ui/AdminRequestsViewModel.kt @@ -3,14 +3,18 @@ package com.fabledsword.minstrel.admin.ui import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.fabledsword.minstrel.admin.data.AdminRequestsRepository +import com.fabledsword.minstrel.events.EventsStream import com.fabledsword.minstrel.models.RequestRef import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow +import kotlinx.coroutines.flow.filter import kotlinx.coroutines.launch import javax.inject.Inject +private val RELEVANT_EVENT_KINDS = setOf("request.status_changed") + sealed interface AdminRequestsUiState { data object Loading : AdminRequestsUiState data object Empty : AdminRequestsUiState