Divinelink / scenepeek-android

ScenePeek is an Android Application that provides information about movies, television shows & persons using the TMDB API.
0 stars 0 forks source link

[Expandable FAB] Introduce Expandable FAB Component on Details Screen #75

Closed Divinelink closed 1 month ago

Divinelink commented 1 month ago

This pull request introduces a new component: an expandable FAB, similar to the one in Google Calendar. When the FAB is clicked, the background is dimmed, and the main actions are displayed with a staggered animation. Additionally, the FAB is now responsive to the Snackbar, automatically animating above it when the Snackbar is shown.

The primary motivation for this is to make the main actions clearer and to enhance the significance of the Jellyseerr's Request action, but it'll also enable us to add more core actions in the future: i.e Add to list etc..

Showcase

https://github.com/user-attachments/assets/b6fff6e5-21f2-4772-9def-a5a3ad4c9157

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 89.55823% with 26 lines in your changes missing coverage. Please review.

Project coverage is 77.72%. Comparing base (227e43c) to head (f79a15b). Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
...inelink/feature/details/media/ui/DetailsContent.kt 66.66% 5 Missing and 3 partials :warning:
...ts/expandablefab/ExpandableFloatingActionButton.kt 94.73% 3 Missing and 3 partials :warning:
...elink/feature/details/media/ui/DetailsViewModel.kt 0.00% 3 Missing and 1 partial :warning:
...re/details/media/usecase/GetMediaDetailsUseCase.kt 62.50% 2 Missing and 1 partial :warning:
...ink/feature/details/media/ui/MediaDetailsResult.kt 0.00% 2 Missing :warning:
...kotlin/com/divinelink/core/commons/ErrorHandler.kt 66.66% 1 Missing :warning:
...e/ui/snackbar/controller/SnackbarControllerImpl.kt 0.00% 0 Missing and 1 partial :warning:
.../media/ui/DetailsExpandableFloatingActionButton.kt 95.23% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #75 +/- ## ========================================== + Coverage 77.48% 77.72% +0.24% ========================================== Files 357 362 +5 Lines 8354 8521 +167 Branches 791 802 +11 ========================================== + Hits 6473 6623 +150 - Misses 1581 1591 +10 - Partials 300 307 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.