feature/libraries-ui #5

Merged
pesimatik merged 3 commits from feature/libraries-ui into development 2026-11-05 19:26:37 +01:00
Owner

Implements the UI Composables only for the libraries
INtegrate generic Composable for Lists loading-success-error
Migrate some ofthe already implemented ones to the new generic composables

Implements the UI Composables only for the libraries INtegrate generic Composable for Lists loading-success-error Migrate some ofthe already implemented ones to the new generic composables
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.
pesimatik merged commit 9a0aec9a70 into development 2026-11-05 19:26:37 +01:00
pesimatik referenced this pull request from a commit 2026-11-05 19:26:38 +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!5
No description provided.