Skip to content

Refactor delete old composable#717

Merged
AsmaaKhaledGomaa merged 29 commits intodevelopfrom
refactor/delete-old-composable
Aug 20, 2025
Merged

Refactor delete old composable#717
AsmaaKhaledGomaa merged 29 commits intodevelopfrom
refactor/delete-old-composable

Conversation

@AsmaaKhaledGomaa
Copy link
Contributor

@AsmaaKhaledGomaa AsmaaKhaledGomaa commented Aug 20, 2025

PR Description

This PR refactors the navigation parameter names across the app to follow a consistent and standardized naming convention, and removes old/unused composables to clean up the codebase.

Key Changes

  • Replaced old composable usages with the updated standardized versions in mainNavGraph.kt:
    • onNavigateToMovieDetails
    • onNavigateBack
    • onNavigateToTvShowDetails
    • onNavigateToActorDetails
  • Applied these updated callbacks across related screens:
    • TrendingMoviesScreen
    • TrendingTvShowsScreen
    • TrendingActorsScreen
  • Deleted old composables:
    • MediaLazyGrid
    • MediaLazyPagingGrid
    • MoviesLayOut
    • TvShowLayOut
  • Ensures consistency and removes redundant suffixes.

Why

  • Improves readability and maintainability of navigation code.
  • Keeps naming uniform across all screens, reducing confusion.
  • Removes dead/legacy composables (MediaLazyGrid, MediaLazyPagingGrid, MoviesLayOut, TvShowLayOut) to simplify the codebase.
  • Helps developers quickly identify and use navigation callbacks.

…d-composable

# Conflicts:
#	presentation/src/main/java/com/london/presentation/feature/account/rating/MyRatingScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/category/movie/MovieCategoryScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/details/actor/info/topmoviespicks/TopMoviesPicksScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/details/actor/info/toptvshowspicks/TopTvShowsPicksScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/home/continuewatching/ContinueWatchingScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/home/trending/actor/TrendingActorsScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/search/SearchScreen.kt
@AsmaaKhaledGomaa AsmaaKhaledGomaa self-assigned this Aug 20, 2025
@AsmaaKhaledGomaa AsmaaKhaledGomaa added the enhancement New feature or request label Aug 20, 2025
…d-composable

# Conflicts:
#	presentation/src/main/java/com/london/presentation/feature/home/trending/actor/TrendingActorsScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/home/trending/movie/TrendingMoviesScreen.kt
#	presentation/src/main/java/com/london/presentation/feature/home/trending/tvshow/TrendingTvShowsScreen.kt
#	presentation/src/main/java/com/london/presentation/shared/MediaLazyPagingGrid.kt
@london-bot
Copy link
Contributor

london-bot bot commented Aug 20, 2025

[London Bot] Metrics Update Status

📊 PR metrics successfully updated for event: closed.

@london-bot
Copy link
Contributor

london-bot bot commented Aug 20, 2025

[London Bot] Auto-update Status

✅ Branch successfully updated from develop.

@AsmaaKhaledGomaa AsmaaKhaledGomaa enabled auto-merge (squash) August 20, 2025 14:41
@AsmaaKhaledGomaa AsmaaKhaledGomaa requested a review from a team August 20, 2025 14:41
@AsmaaKhaledGomaa AsmaaKhaledGomaa linked an issue Aug 20, 2025 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Aug 20, 2025

@AsmaaKhaledGomaa AsmaaKhaledGomaa merged commit 9fce07c into develop Aug 20, 2025
19 checks passed
@AsmaaKhaledGomaa AsmaaKhaledGomaa deleted the refactor/delete-old-composable branch August 20, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove old shared composable

4 participants