Skip to content

feat: implement multi-user live workout rooms and real-time sync (#1023)#1033

Merged
Somil450 merged 2 commits into
Somil450:mainfrom
knoxiboy:issue-1023
Jul 9, 2026
Merged

feat: implement multi-user live workout rooms and real-time sync (#1023)#1033
Somil450 merged 2 commits into
Somil450:mainfrom
knoxiboy:issue-1023

Conversation

@knoxiboy

@knoxiboy knoxiboy commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

📌 Related Issue

Fixes #1023


📝 Description

This PR implements Multi-User Live Workout Rooms, real-time stat synchronization via Socket.IO, competitive modes, activity leaderboards, WebRTC voice status indicator, and spectator mode.

🔹 What has been changed?

  • Created MultiplayerRoomScreen.tsx as a premium dashboard lobby allowing room creation/joining, mode selection, live camera grids, and real-time multiplayer workout tracking.
  • Added room handlers (room:create, room:join, room:update-stats, room:start-game) to server/src/socket/handlers.js to manage multi-user synchronization.
  • Added support for game modes: Race Mode (first to 50 reps), Endurance Mode (survival), and Form Battle (highest score).
  • Linked the multiplayer screen route and transitions inside App.tsx and mounted a "Live Battle" action button on the WelcomeScreen.tsx hero.
  • Fixed a missing lucide icon import (ShieldAlert) in WorkoutScreen.tsx.
  • Installed socket.io-client dependency.

🔹 Why are these changes needed?

To gamify and introduce social elements to SpectraX, allowing users to connect, motivate, and compete with friends in real-time.


🛠️ Type of Change

  • 🐛 Bug Fix
  • ✨ New Feature
  • 🎨 UI/UX Improvement
  • 📖 Documentation Update
  • ⚡ Performance Improvement
  • 🔧 Refactoring
  • 💥 Breaking Change

🧪 Testing

✅ Tests Performed

  • Tested locally
  • Build runs successfully
  • No console errors
  • Responsive design checked
  • Existing functionality verified

🌐 Browsers Tested

  • Chrome
  • Firefox

📷 Screenshots / Demo (if applicable)

(Lobby grid showing player status, countdowns, and real-time rep counts)


📋 Checklist

  • I have read the project's CONTRIBUTING guidelines
  • My code follows the project style guidelines
  • I have performed a self-review of my code
  • I have tested my changes locally
  • I have added/updated documentation where necessary
  • My changes do not introduce new warnings or errors
  • This PR is linked to an existing issue

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@knoxiboy is attempting to deploy a commit to the somiljain2024-4175's projects Team on Vercel.

A member of the Team first needs to authorize it.

@knoxiboy

Copy link
Copy Markdown
Contributor Author

@Somil450 Please review and merge the pr

@Somil450 Somil450 self-requested a review July 9, 2026 09:48
@Somil450 Somil450 added gssoc-26 Marks GSSoC issues type:testing Adds or improves unit tests, integration tests, or testing infrastructure gssoc:approved Officially reviewed and approved GSSoC contribution ready for scoring mentor:Somil450 Reviewed and mentored by Somil450 for GSSoC contribution tracking. level:intermediate Moderate complexity requiring good understanding of project structure and implementation. type:feature Adds a new feature or functionality to the project. mentor-approved labels Jul 9, 2026
Copilot AI review requested due to automatic review settings July 9, 2026 09:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@Somil450 Somil450 merged commit d298c34 into Somil450:main Jul 9, 2026
0 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Officially reviewed and approved GSSoC contribution ready for scoring gssoc-26 Marks GSSoC issues level:intermediate Moderate complexity requiring good understanding of project structure and implementation. mentor:Somil450 Reviewed and mentored by Somil450 for GSSoC contribution tracking. mentor-approved type:feature Adds a new feature or functionality to the project. type:testing Adds or improves unit tests, integration tests, or testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Implement Multi-User Live Workout Sessions with Real-Time Sync and Social Features

3 participants