Krisenvorrat Inventar-App – Android-App (Kotlin) zur Verwaltung eines Krisenvorrats-Inventars
ui/item/ItemUiModel.kt: - UI data class combining entity data with resolved category/location names - Computed properties isExpired and isExpiringSoon for MHD color coding ui/item/ItemListViewModel.kt: - Combines ItemRepository, CategoryRepository, LocationRepository via Flow.combine - Groups items by category name (sorted alphabetically) - Delete flow with confirmation dialog state management ui/item/ItemListScreen.kt: - LazyColumn with category headers and Material 3 Cards per item - Shows name, quantity+unit, location, and color-coded expiry date - Delete via IconButton with AlertDialog confirmation - Empty state when no items exist - FAB with onAddItem navigation callback ui/item/ItemListViewModelTest.kt: - 9 unit tests covering init, grouping, name resolution, delete dialog flow, and alphabetical sorting Closes #26 |
||
|---|---|---|
| .github | ||
| .vscode | ||
| Anforderungen | ||
| app | ||
| gradle | ||
| memories/repo | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| settings.gradle.kts | ||