feature/home_screen #4

Merged
pesimatik merged 5 commits from feature/home_screen into development 2026-10-31 09:42:03 +01:00
Owner

Implement the home screen UI - Recently added and recently seen

Implement the home screen UI - Recently added and recently seen
Overhaul the home feature with a new layout utilizing horizontal lists
for recently added and recently seen publications, along with support for
loading, error, and empty states.

- Introduce `HomeState` and `PublicationListState` in `HomeViewModel`
  to manage recently added and recently seen sections independently.
- Replace the old scaffold-based `HomeScreen` with a scrollable layout
  containing section components and a fallback button for empty states.
- Make `Availability` public in `core:ui` to display status badges inside
  horizontal publication cards.
- Add localized string resources for home sections and actions, and extract
  "Open Library Network" to strings.
- Update `HomeViewModelTest` to validate the new state structure and
  transitions.
Wire the catalogue navigation callback in `HomeScreen` and implement navigation logic in `GizBookNavHost`.

- Add `navigateToCatalogue` extension function on `NavController` in `CatalogueNavigation.kt`.
- Replace `onSettingsClick` callback parameter with `onCatalogueClick` in `homeScreen`.
- Wire `onCatalogueClick` in `GizBookNavHost` to navigate to the Catalogue destination while preserving navigation state.
- Replace `Column` with `Box` in `HomeScreen`'s `RecentlySeenSection` and center the catalogue action button with updated padding and container color.
- Add check for blank cover URLs in `PublicationCard` to render a tinted fallback `Icon` directly instead of attempting to load via `AsyncImage`.
- Add `Modifier.fillMaxSize()` to `AsyncImage` in `PublicationCard`.
- Update `HomeScreen` preview to display an empty `recentlySeen` state.
- Replace `Column` with `Box` in `HomeScreen`'s `RecentlySeenSection` and center the catalogue action button with updated padding and container color.
- Add check for blank cover URLs in `PublicationCard` to render a tinted fallback `Icon` directly instead of attempting to load via `AsyncImage`.
- Add `Modifier.fillMaxSize()` to `AsyncImage` in `PublicationCard`.
- Update `HomeScreen` preview to display an empty `recentlySeen` state.
pesimatik merged commit bd62931fd1 into development 2026-10-31 09:42:03 +01:00
pesimatik referenced this pull request from a commit 2026-10-31 09:42:03 +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!4
No description provided.