Skip to content

Dev#86

Merged
plasma-gith merged 113 commits intomainfrom
dev
Sep 20, 2025
Merged

Dev#86
plasma-gith merged 113 commits intomainfrom
dev

Conversation

@plasma-gith
Copy link
Copy Markdown
Collaborator

Merge dev branch to main branch

sakibul-shovon and others added 30 commits August 21, 2025 01:39
Integrated Laravel Passport for API authentication, added role and ban fields to the User model, created admin and role middleware, and implemented controllers for user registration, login, logout, and role management. Updated migrations, seeders, and config to support new authentication and authorization features.
Introduces a new endpoint and controller method for banning or unbanning users. When a user is banned, all their tokens are revoked. The route is protected by admin middleware.
#12 login system
#12 Login System

- Integrated Laravel Passport for API authentication.
- Added role (admin/user) and banned fields to the users table.
- Implemented AuthController: register, login, logout endpoints.
- Implemented AdminController: change role, ban/unban users.
- Created middleware for admin-only routes and banned users.
- Updated migrations and seeders for default admin.
Integrates react-router-dom for client-side routing and sets up authentication flow with protected and public routes. Adds pages for Register, Login, Dashboard, and Landing, along with utility functions for token management and an API wrapper using axios. Refactors App.jsx and main.jsx to support routing and authentication logic.
Added a check in the banUser method to block banning users with the admin role, returning a 403 response if attempted.
- Added UserFilmController APIs for marking watched, unmarking, watchlist management, and rating movies
- Implemented movie search API with filters for title, cast/crew, genre, and sorting
- Created RecommendationService for dynamic, point-based movie recommendations
- Updated pivot table logic to prevent watched & watchlist overlap
- Allowed unmarking of watched movies
- Created ImportTopRatedMoviesSeeder for bulk importing movies from TMDB
- Fixed rating to support floating-point values
- Seeders handle genres, cast/crew, and videos
…er-Interaction-Search-Recommendation-System

#25 implement movie model user interaction search recommendation system
Integrated Tailwind CSS into the frontend by adding tailwindcss, postcss, and autoprefixer dependencies. Created tailwind.config.js and postcss.config.js configuration files. Updated index.css to include Tailwind directives and modified Landing.jsx to utilize Tailwind classes. Adjusted vite.config.js for compatibility.
Updated the Login and Register pages to use Tailwind CSS for improved styling and user experience. Enhanced layout, added modern form elements, and included navigation links for account actions. Removed inline styles and replaced them with utility classes for consistency.
Implemented review, comment, and like models, controllers, and migrations. Updated user registration to require a unique username and allow login via username or email. Added endpoints and frontend API for reviews, comments, likes, genres, trending, and top-rated films. Refactored landing page to display recommended, trending, and top-rated movies, genres, and recent reviews. Updated user and film models and removed film-user rating in favor of review-based ratings.
Implemented review, comment, and like models, controllers, and migrations. Updated user registration to require a unique username and allow login via username or email. Added endpoints and frontend API for reviews, comments, likes, genres, trending, and top-rated films. Refactored landing page to display recommended, trending, and top-rated movies, genres, and recent reviews. Updated user and film models and removed film-user rating in favor of review-based ratings.
Changed the getTrendingFilms function to use the '/films/trending' endpoint instead of '/films/search' for fetching trending films.
Implemented MovieDetails and ReviewDetails pages in the frontend, including routes and UI for displaying film and review information. Updated backend controllers and routes to support fetching single films and reviews with related data, and improved like/unlike review endpoints to return like status and count. Adjusted trending films API endpoint and made recent reviews on the landing page link to their details.
…ils-page-with-review-section

32 feat implement movie details page with review section
…ils-page-with-review-section

32 feat implement movie details page with review section
…ils-page-with-review-section

32 feat implement movie details page with review section
This commit introduces a new AI-powered chatbot to the application. The chatbot, named RedPill Assistant, provides users with information about the platform's features, movie recommendations, and other movie-related queries.

The chatbot is integrated as a floating button in the bottom-right corner of the screen.

Key changes:

Chatbot Component: A new Chatbot.tsx component handles the UI and logic for the chat window, including state management for messages and user input.

Gemini API Integration: The chatbot uses the Google Gemini API to generate dynamic responses to user questions.

FAQ System: A fallback system is implemented to handle common questions with predefined answers, reducing API calls and providing quick responses to simple queries.

Rate Limiting: Added client-side rate limiting and a cooldown period to manage API usage and prevent excessive requests.

UI/UX: The chat window is designed to be user-friendly, with smooth animations, clear message formatting, and a responsive input field.
…sed-chatbot

35 feat implement context based chatbot
- Integrated backend endpoints for trending, top-rated, recommended films, genres, reviews, and comments
- Updated frontend to fetch all movie and review data from Laravel API routes
- Ensured all dynamic content is loaded from backend, improving
sakibul-shovon and others added 23 commits September 19, 2025 20:41
Introduces a 'Recent Reviews' section on the landing page, fetching and displaying the latest reviews. The ReviewDetails page is fully redesigned with improved layout, movie and user info, and enhanced error/loading handling. Also reorders the recent reviews route in the backend API routes for clarity.
Implemented comment editing and deletion in ReviewComments, with supporting API methods and user checks. Enhanced ReviewDetails with like, edit, and delete actions for reviews, and integrated the comments section. Refactored Watchlist to include responsive grid, improved card UI, and added pagination for both watchlist and watched movies. Added getCurrentUser utility for consistent user info retrieval.
…o-homepage-link-to-full-review-page

78 feat add recent reviews to homepage link to full review page
Redesign the Movie Details page to highlight key information at the top, including poster, title, year, runtime, genres, rating, and release date. Add Edit ✏️ and Delete 🗑️ icons that are only visible to admins/editors, with a confirmation modal before deletion. Keep overview, cast/crew, and reviews below the hero section for clarity. Ensure the layout is responsive and looks good on both mobile and desktop. Admins should see full controls while regular users only view details without edit/delete options.
Implemented backend and frontend support for visiting other users' profiles, including friend-only access, and displaying their watchlist, watched movies, reviews, and forum posts. Updated UserController with visitProfile, adjusted User model relationships, and added new API routes. Refactored frontend UserProfile, Friends, and Watchlist pages to support viewing other users' profiles and improved data handling. Removed unnecessary console logs and improved code clarity.
Introduced UserReviewsSection and UserForumPostsSection components to display a user's reviews and forum posts on their profile page. Updated UserProfile.jsx to include these new sections, enhancing the user's profile with more detailed activity information.
Introduces a friend activity feed with backend API and frontend page, allowing users to view friends' recent reviews and forum posts. Refactors forum post and comment APIs to include like counts and user-like status, and updates the frontend to support editing, liking, and paginated forum posts and reviews. Improves friend list normalization, search, and UI consistency. Adds pagination to user forum posts and reviews sections, and updates navigation to include the activity feed.
Updated backend FriendshipController endpoints to return friend objects consistently as 'friend' for accepted, pending, and outgoing requests. Adjusted frontend Friends.jsx to consume the new normalized structure, removed redundant normalization logic, and improved search and friend request handling. Also enhanced FriendActivityController to ensure safer data fetching and consistent formatting.
Eliminated unnecessary console.log statements from the Friends.jsx component to clean up the code and prevent debug output in production.
Refactored backend controllers to optimize forum post and friend activity queries, including improved pagination and response structure. Updated frontend ForumFeed and FriendActivityFeed pages for consistent theming, pagination, and UI improvements. Replaced the admin dashboard with a community forum feed, moved admin management code, and enhanced post card and form components for better UX and engagement stats.
…ends-and-user

66 feat activity log for friends and user
Relocated the /watched route to a later position in api.php for improved organization and readability. No functional changes were made.
Deleted the outdated backend API documentation and a backup of the Watchlist page component from the frontend. These files are no longer needed and have been removed to clean up the repository.
Improved code structure and readability in ReviewDetails and ReviewComments components. Simplified state management, clarified conditional rendering, and enhanced comment author checks. Updated like, edit, and delete logic for reviews and comments, and improved UI consistency for review and comment actions.

bug: edit and delete button does not show up for author
Temporarily disables the display of user rating and the RatingWidget in the MovieDetails page by commenting out their respective JSX blocks. This may be for debugging, redesign, or pending feature updates.
Replaces the IMDb URL fallback for missing backdrop images with a generic placeholder image to ensure consistent appearance when no image is available.
Updated the img.poster and img.backdrop functions to always return the constructed image URL, removing the fallback to a placeholder image.
Introduces controllers and models for OTP-based email verification and password reset, including SendOtpController, PasswordResetController, VerificationController, and UserVerification model. Adds PHPMailer for SMTP email delivery, updates User model with verification relation, creates user_verifications table migration, and exposes new API routes for sending OTP and resetting password via email. Frontend changes support forgot password flow.
Add OTP email verification and password reset
Changed file by mistake
@vercel
Copy link
Copy Markdown

vercel bot commented Sep 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
redpill Ready Ready Preview Comment Sep 20, 2025 11:07am

@plasma-gith plasma-gith merged commit a6fcbcf into main Sep 20, 2025
4 checks passed
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.

4 participants