refactor(ping-feature): integrate DI refactor, enhance web build, and update feature workflow

Refactored the `ping-feature` module to adopt centralized `HttpClient` through Koin DI, replacing legacy implementations. Added secure API calls with improved error handling and updated Webpack build scripts to resolve worker path issues. Enhanced `PingScreen` with extended functionality, UI updates, and aligned test cases for the new architecture. Consolidated feature workflows and finalized documentation with a comprehensive feature implementation guide.
This commit is contained in:
2026-01-17 12:05:34 +01:00
parent cc4eade957
commit 59568a42d8
14 changed files with 305 additions and 82 deletions
@@ -146,7 +146,9 @@ val copySqliteWorkerJs by tasks.registering(Copy::class) {
// Root build directory where Kotlin JS packages are assembled.
// Use a concrete path (instead of a Provider) so the Copy task always materializes the directory.
into(rootProject.layout.buildDirectory.asFile.get().resolve("js/packages/${rootProject.name}-frontend-shells-meldestelle-portal/kotlin"))
// The package name is constructed from the project path: Meldestelle-frontend-shells-meldestelle-portal
// Note: We use rootProject.layout.buildDirectory because Kotlin JS plugin puts packages in root build dir.
into(rootProject.layout.buildDirectory.dir("js/packages/${rootProject.name}-frontend-shells-meldestelle-portal/kotlin"))
}
// Ensure the worker is present for the production bundle.
@@ -154,6 +156,11 @@ tasks.named("jsBrowserProductionWebpack") {
dependsOn(copySqliteWorkerJs)
}
// Ensure the worker is present for the development bundle.
tasks.named("jsBrowserDevelopmentWebpack") {
dependsOn(copySqliteWorkerJs)
}
// KMP Compile-Optionen
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {