-
Notifications
You must be signed in to change notification settings - Fork 59
Added Google Login for better user experience #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
FE Refactoring
git ignore in main folder
Merge pull request AOSSIE-Org#1 from AOSSIE-Org/main
Refactored backend
Project Setup Documentation
…-Hide-Password-Functionality-46 password hide-visible feature added ( issue AOSSIE-Org#46 )
…DebateAI - Added seamless post-sign-in user flow with navigation logic in React - Implemented profile UI and /user backend routes with edit functionality - Built leaderboard UI and /leaderboard API, sorting users by EloRating - Created user and debate schemas in MongoDB with Go integration - Seeded test data; updated config, auth, and dependencies for full stack support
…d AI-driven judgment.
…es and AI judgment using WebSocket and WebRTC
…is, and voting for live debates
…nput (1-5) and on-page feedback display
…tice, enabling dynamic skill improvement.
Caution Review failedFailed to post review comments. WalkthroughThis update introduces a comprehensive real-time debate platform with both backend and frontend enhancements. Major changes include a complete backend rewrite for authentication (moving from AWS Cognito to MongoDB/JWT), new debate room and transcript management, debate-vs-bot and coaching features, extensive WebSocket and WebRTC integration, and a fully redesigned frontend with new pages, components, and real-time debate flows. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Frontend
participant Backend
participant MongoDB
participant GeminiAI
User->>Frontend: Initiates login/signup (email/password or Google)
Frontend->>Backend: Sends credentials or Google ID token
Backend->>MongoDB: Verifies/creates user, hashes password, manages JWT
Backend-->>Frontend: Returns JWT token
Frontend-->>User: Stores token, navigates to app
User->>Frontend: Starts or joins debate (vs bot or online)
Frontend->>Backend: Requests debate creation/join (with JWT)
Backend->>MongoDB: Creates/updates debate room/session
Backend-->>Frontend: Returns debate/session details
User->>Frontend: Sends/receives debate messages
Frontend->>Backend: Submits message via WebSocket or HTTP
Backend->>GeminiAI: (If vs bot) Generates bot response
Backend-->>Frontend: Broadcasts messages/responses
User->>Frontend: Completes debate, requests judgment
Frontend->>Backend: Sends transcripts/history for judgment
Backend->>GeminiAI: Judges debate, returns scores/verdict
Backend-->>Frontend: Returns judgment results
User->>Frontend: Views leaderboard/profile
Frontend->>Backend: Fetches data (with JWT)
Backend->>MongoDB: Retrieves user/debate/leaderboard data
Backend-->>Frontend: Returns profile/leaderboard
Possibly related issues
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
In this PR I have added Google Oauth option for authentication
Summary by CodeRabbit
New Features
Bug Fixes
Chores