Skip to content

Changes

Started by Mandvi
Started 11 days ago
Took 39 min

Summary

  1. Update BookmarkDataSource and related components to support includeDeleted parameter and fix BookmarkDao query (details)
  2. Update SnackBar implementation to support actions and implement undo functionality for bookmark removal (details)
  3. Implement `UiText.asString()` extension and update `Snack` to support `UiText` actions (details)
Commit 18db69f6981318e6307ddacdd3200827c685133a by mandvi.verma
Update BookmarkDataSource and related components to support includeDeleted parameter and fix BookmarkDao query
The file was modifiedrespect-datalayer-repository/src/commonMain/kotlin/world/respect/datalayer/repository/school/BookmarkDataSourceRepository.kt (diff)
The file was modifiedrespect-datalayer-db/src/commonMain/kotlin/world/respect/datalayer/db/school/BookmarkDataSourceDb.kt (diff)
The file was modifiedrespect-datalayer-http/src/commonMain/kotlin/world/respect/datalayer/http/school/BookmarkDataSourceHttp.kt (diff)
The file was modifiedrespect-datalayer/src/commonMain/kotlin/world/respect/datalayer/school/BookmarkDataSource.kt (diff)
The file was modifiedrespect-datalayer-db/src/commonMain/kotlin/world/respect/datalayer/db/school/daos/BookmarkDao.kt (diff)
Commit 59b3ee0e02b5846196a1b6d6987196fb48b83dc3 by mandvi.verma
Update SnackBar implementation to support actions and implement undo functionality for bookmark removal

*   Modify `App.kt` to handle `SnackbarResult` and trigger the snackbar's `onAction` callback.
*   Update `BookmarkListViewModel` to use `SnackBarDispatcher` and provide an "Undo" action when removing a bookmark.
*   Add `remove_bookmark` and `undo` string resources.
The file was modifiedrespect-lib-shared/src/commonMain/composeResources/values/strings.xml (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/bookmark/BookmarkListViewModel.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/app/App.kt (diff)
Commit 3ac5d631129c8cab14ff2b42d2bb32581fa91f7b by mandvi.verma
Implement `UiText.asString()` extension and update `Snack` to support `UiText` actions
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/app/appstate/Snack.kt (diff)
The file was addedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/ext/UiTextExt.kt
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/app/App.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/bookmark/BookmarkListViewModel.kt (diff)