Fixed add players for organizations .#82
Open
jishnukeyhack wants to merge 7 commits intoVJLIVE:mainfrom
Open
Conversation
Author
|
@VJLIVE please check |
Owner
|
Good work @jishnukeyhack I will test this and let you know |
VJLIVE
requested changes
Aug 8, 2025
Owner
VJLIVE
left a comment
There was a problem hiding this comment.
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)
Owner
|
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. |
Owner
|
Hey @jishnukeyhack Please check the PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@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
ManagePlayersScreenAdd new players through
AddPlayersScreenSearch and filter athletes by sport
Send connection requests to athletes
Track pending requests and manage existing connections
Athlete Side:
Receive connection requests in
ConnectionRequestsScreenAccept or reject requests from organizations
View connected organizations
Data Structure:
organization_players/{orgId}/connected_players/{playerId}- tracks connectionsconnection_requests- manages pending requestsnotifications - 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.