Skip to content

Fixed add players for organizations .#82

Open
jishnukeyhack wants to merge 7 commits intoVJLIVE:mainfrom
jishnukeyhack:players-organization-fix
Open

Fixed add players for organizations .#82
jishnukeyhack wants to merge 7 commits intoVJLIVE:mainfrom
jishnukeyhack:players-organization-fix

Conversation

@jishnukeyhack
Copy link

@VJLIVE This is a new and latest changes pull request that resolves #41
I have implemented a comprehensive player management system for your Athletix app that solves the organization's need to track and manage players. Here's what the new solution provides:

Key Features:

Sport-Based Player Discovery: Organizations can only see athletes in their specific sport
Connection Request System: Organizations send requests to athletes who can accept/reject
Real-time Updates: All data updates in real-time using Firestore streams
Player Management: View connected players, remove players, and track relationships
Search Functionality: Search for players by name or email
Detailed Player Profiles: View player information before sending requests
How it Works:

Organization Side:

View all connected players in ManagePlayersScreen
Add new players through AddPlayersScreen
Search and filter athletes by sport
Send connection requests to athletes
Track pending requests and manage existing connections

Athlete Side:

Receive connection requests in ConnectionRequestsScreen
Accept or reject requests from organizations
View connected organizations

Data Structure:

organization_players/{orgId}/connected_players/{playerId} - tracks connections
connection_requests - manages pending requests
notifications - handles real-time notifications
The system ensures that organizations can only see and connect with athletes in their sport, maintains proper request/approval workflow, and provides a smooth user experience for both organizations and athletes. Once connected, organizations can track the athlete's injuries and performance data as intended.

@jishnukeyhack jishnukeyhack changed the base branch from main to fix/clear_unused_imports August 6, 2025 19:32
@jishnukeyhack
Copy link
Author

@VJLIVE please check

@jishnukeyhack jishnukeyhack changed the base branch from fix/clear_unused_imports to main August 6, 2025 19:38
@VJLIVE
Copy link
Owner

VJLIVE commented Aug 6, 2025

Good work @jishnukeyhack I will test this and let you know

Copy link
Owner

@VJLIVE VJLIVE left a comment

Choose a reason for hiding this comment

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

Hey @jishnukeyhack You've done a good job till now.
There's still some small issues, which needs to be figured out.
Hint: Don't use routes for this flutter app, go with Navigator.push
Error logs:

error: Target of URI doesn't exist: 'screens/splash_screen.dart'. (uri_does_not_exist at [athletix] lib\main.dart:3)
error: Target of URI doesn't exist: 'package:Athletix/features/performance_tracking/performance_log_screen.dart'. (uri_does_not_exist at [athletix] lib\main.dart:4)
error: The name 'PerformanceLogScreen' isn't a class. (creation_with_non_type at [athletix] lib\main.dart:28)
error: Target of URI doesn't exist: 'package:Athletix/features/performance_tracking/performance_chart.dart'. (uri_does_not_exist at [athletix] lib\screens\athlete\performance_logs_screen.dart:4)
error: The method 'PerformanceChart' isn't defined for the type '_PerformanceLogScreenState'. (undefined_method at [athletix] lib\screens\athlete\performance_logs_screen.dart:178)
error: The named parameter 'children' isn't defined. (undefined_named_parameter at [athletix] lib\views\screens\athlete\athlete_dashboard.dart:334)
error: The method '_buildActionCard' isn't defined for the type '_DashboardScreenState'. (undefined_method at [athletix] lib\views\screens\athlete\athlete_dashboard.dart:335)
error: The method '_buildActionCard' isn't defined for the type '_DashboardScreenState'. (undefined_method at [athletix] lib\views\screens\athlete\athlete_dashboard.dart:349)
error: The method '_buildActionCard' isn't defined for the type '_DashboardScreenState'. (undefined_method at [athletix] lib\views\screens\athlete\athlete_dashboard.dart:358)

@jishnukeyhack jishnukeyhack requested a review from VJLIVE August 8, 2025 20:52
@VJLIVE
Copy link
Owner

VJLIVE commented Aug 8, 2025

Hey @jishnukeyhack You asked for my review 10 min ago, but I don't see any commits between ur review request and my request changes.
You solved those issues?

@VJLIVE
Copy link
Owner

VJLIVE commented Aug 11, 2025

Hey @jishnukeyhack Please check the PR

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.

[Feature]: Add players for organizations

2 participants