Skip to content

feat: Implement Bottom Navigation, Profile Hub, and Watchlist UI

SHAFIZADA SULEYMAN requested to merge feature/app-navigation into main

Summary

This MR implements the core application navigation structure and connects the UI to the backend logic for the Watchlist feature.

Key Changes

1. Navigation Architecture

  • Implemented Bottom Navigation View with 4 main tabs: Home, Search, Quiz, and Profile.
  • Removed "Watchlist" from the bottom bar and moved it into the Profile screen as a sub-destination.
  • Created a placeholder Settings screen.

2. Feature: Profile & Auth Persistence

  • Created ProfileFragment as a user hub.
  • Implemented SharedPreferences in LoginFragment to persist the username.
  • Profile now displays "Welcome, [Username]" dynamically.

3. Feature: Watchlist (MVVM)

  • Connected WatchlistViewModel to UserCollectionsRepository in the ViewModelFactory.
  • Built the WatchlistFragment UI with a RecyclerView Grid and a visual "Empty State".
  • Added logic to remove movies from the watchlist via long-press.

4. Feature: Search UI

  • Implemented the visual layer for the Search screen (Search Bar, Filter Chips, Grid).
  • Connected SearchFragment to the existing SearchViewModel.

Merge request reports