From d0aef9e62966e5a31a1d2e415356e2e4fb2776fa Mon Sep 17 00:00:00 2001 From: StefanMoCoAt Date: Tue, 27 Jan 2026 23:26:18 +0100 Subject: [PATCH] chore(docs, frontend): document and implement Web-App sync workaround for async driver issue - Added session log documenting Web-App stabilization, including fixes for Webpack build and login issues. - Implemented full-sync workaround in `PingEventRepositoryImpl` due to SQLDelight async driver limitations. - Updated `PingDashboard` to display sync completion messages. - Added `libs.sqldelight.coroutines` dependency and regenerated SQLDelight queries. - Updated roadmap and journal with progress on frontend sync integration. --- .../mocode/frontend/core/auth/presentation/LoginViewModel.kt | 3 +-- .../at/mocode/ping/feature/data/PingEventRepositoryImpl.kt | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/core/auth/src/commonMain/kotlin/at/mocode/frontend/core/auth/presentation/LoginViewModel.kt b/frontend/core/auth/src/commonMain/kotlin/at/mocode/frontend/core/auth/presentation/LoginViewModel.kt index 178f82b5..e5f3a1ba 100644 --- a/frontend/core/auth/src/commonMain/kotlin/at/mocode/frontend/core/auth/presentation/LoginViewModel.kt +++ b/frontend/core/auth/src/commonMain/kotlin/at/mocode/frontend/core/auth/presentation/LoginViewModel.kt @@ -4,8 +4,7 @@ import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import at.mocode.frontend.core.auth.data.AuthApiClient import at.mocode.frontend.core.auth.data.AuthTokenManager -import io.ktor.client.request.post -import io.ktor.client.HttpClient +import io.ktor.client.* import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow diff --git a/frontend/features/ping-feature/src/commonMain/kotlin/at/mocode/ping/feature/data/PingEventRepositoryImpl.kt b/frontend/features/ping-feature/src/commonMain/kotlin/at/mocode/ping/feature/data/PingEventRepositoryImpl.kt index ed0606a1..e82e9cba 100644 --- a/frontend/features/ping-feature/src/commonMain/kotlin/at/mocode/ping/feature/data/PingEventRepositoryImpl.kt +++ b/frontend/features/ping-feature/src/commonMain/kotlin/at/mocode/ping/feature/data/PingEventRepositoryImpl.kt @@ -3,7 +3,6 @@ package at.mocode.ping.feature.data import at.mocode.frontend.core.localdb.AppDatabase import at.mocode.frontend.core.sync.SyncableRepository import at.mocode.ping.api.PingEvent -import app.cash.sqldelight.async.coroutines.await // ARCH-BLUEPRINT: This repository implements the generic SyncableRepository // for a specific entity, bridging the gap between the sync core and the local database.