feature/libraries-ui #6

Merged
pesimatik merged 5 commits from feature/libraries-ui into development 2026-11-12 09:38:11 +01:00
Owner

Add forgotten library details card

Add forgotten library details card
Refactor the home feature to utilize standard asynchronous state helpers (`LoadableListState` and `ListResult`) and shared composables from `core:ui`.

- Add `LoadableState`, `LoadableListState`, `LoadableResult`, and `ListResult` to `core:ui` for standardized state handling across UI screens.
- Introduce `ListItemCard` and `ScreenTitleText` reusable components in `core:ui`.
- Remove `PublicationListState` from `HomeViewModel` in favor of `LoadableListState<PublicationViewItem>`.
- Simplify `HomeScreen` sections by replacing explicit state branching with `ListResult` and using `ScreenTitleText`.
- Update `HomeViewModelTest` to reflect the transition to `LoadableListState`.
Replace the placeholder screen in the libraries feature module with a full UI implementation and ViewModel integration.

- Introduce `LibrariesViewModel` and `LibraryViewItem` to handle state and UI representation for network libraries.
- Implement `LibrariesScreen` and supporting composables to render list items using `ListItemCard` and `ListResult`.
- Add `librariesModule` for Koin dependency injection and register it in `GizBookApplication`.
- Update `librariesScreen` navigation graph builder to accept an `onLibraryClick` callback.
- Add `network_libraries` string resource.
Split `ViewModels.kt` into `LoadableState.kt` and `LoadableResult.kt` to better organize UI state interfaces and helper composables.

- Remove `ViewModels.kt`.
- Move `LoadableState` and `LoadableListState` sealed interfaces into `LoadableState.kt`.
- Move `LoadableResult`, `LoadableListResult`, and `ListResult` composables into `LoadableResult.kt`.
- Add a `StateFlow<LoadableListState<T>>` overload for `ListResult` using `@JvmName("ListResultLoadableListState")` to prevent JVM signature clashes.
- Update KDoc documentation across the refactored composable functions and interfaces.
# Conflicts:
#	feature/libraries/src/main/res/values/strings.xml
pesimatik merged commit 262ea0537c into development 2026-11-12 09:38:11 +01:00
pesimatik referenced this pull request from a commit 2026-11-12 09:38:12 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gizmo/gizbook-space!6
No description provided.