Skip to content

hotfix/dot-and-rate-navigation#722

Merged
BassantM merged 7 commits intodevelopfrom
hotfix/dot-and-rate-navigation
Aug 22, 2025
Merged

hotfix/dot-and-rate-navigation#722
BassantM merged 7 commits intodevelopfrom
hotfix/dot-and-rate-navigation

Conversation

@BassantM
Copy link
Contributor

What does this PR do?

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Refactoring
  • 🎨 UI changes

Changes Made

  • Compose UI
  • Data
  • Domain
  • Koin DI
  • Ktor API

Testing

  • Tested locally
  • Unit tests added/updated
  • UI tests added/updated

Screenshots

Checklist

  • Code builds without warnings
  • Self-reviewed
  • Tests pass
  • Ready for review

@BassantM BassantM self-assigned this Aug 21, 2025
@BassantM BassantM enabled auto-merge (squash) August 21, 2025 22:54
This commit refactors the bookmark functionality and navigation logic within the application.

**Key Changes:**

*   **BookmarkSheet:**
    *   Reordered parameters in `BookmarkBottomSheet` for better readability.
    *   Modified `LoginNavigation` effect to pass the source screen (MovieDetails with bookmark sheet visibility) when navigating to Login.
*   **HomeViewModel:**
    *   Reorganized initialization logic into a new `initializeData` function.
    *   Improved loading state management by introducing separate loading flags for popular and top-rated media (`isPopularLoading`, `isTopRatedLoading`).
    *   Refactored retry logic to re-initialize all relevant data sections.
    *   Streamlined function definitions and parameter order.
*   **MovieDetailsViewModel:**
    *   Added logic to update `isBookmarkSheetVisible` in the UI state based on navigation arguments.
*   **Navigation:**
    *   Updated `navigateToLogin` and `navigateToLoginWithPopUp` to correctly pass the source screen.
    *   Adjusted `navigateToMovieDetails` to include `isBookmarkSheetVisible` parameter.
    *   Modified `Login` screen definition in `Screen.kt` to handle source screen passing more effectively.
    *   Updated navigation graphs (`mainNavGraph.kt`, `authNavGraph.kt`) to reflect changes in screen definitions and navigation arguments.
*   **HomeScreenUiState:**
    *   Added `isRecentWatchLoading` flag.
    *   Updated the general `isLoading` property to consider all individual loading states.
*   **HomeScreen:**
    *   Passed `bookmarkedMovieId` to `BookmarkBottomSheet`.
    *   Updated loading state checks for Popular and Continue Watching sections to use specific loading flags.
    *   Renamed `homeScreenContract` to `contract` in `HomeScreenContent` for conciseness.
@Al-Taie Al-Taie self-assigned this Aug 22, 2025
ahmeddsamii
ahmeddsamii previously approved these changes Aug 22, 2025
# Conflicts:
#	presentation/src/main/java/com/london/presentation/feature/details/movie/MovieDetailsViewModel.kt
@london-bot
Copy link
Contributor

london-bot bot commented Aug 22, 2025

[London Bot] Metrics Update Status

📊 PR metrics successfully updated for event: submitted.

@london-bot
Copy link
Contributor

london-bot bot commented Aug 22, 2025

[London Bot] Auto-update Status

✅ Branch successfully updated from develop.

@yusufnasserdev yusufnasserdev self-assigned this Aug 22, 2025
@BassantM BassantM merged commit 369221e into develop Aug 22, 2025
12 checks passed
@BassantM BassantM deleted the hotfix/dot-and-rate-navigation branch August 22, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants