How kannadasanb1969/smashpointmobile works
SmashPoint is a React Native badminton app for players, organizers, and administrators. Its main workflow is role-based sign-in, then discovering or managing tournaments, registering players, and following fixtures through live scoring and results. Separate branches cover Friendly Matches, player profiles and achievements, notifications, and administrator tournament review. The app’s feature APIs use a shared authenticated HTTP client; session state persists tokens and workspace selection in SecureStore. Connections reflect the README and SOURCE INDEX references; unsampled screens and feature implementations are represented only where their paths and capabilities are documented.
Main entry points: apiClient.ts Authenticated API client · organizer/api.ts Organizer operations API · MatchScreen.tsx Live match screen · admin/api.ts Admin API
Components 25
Identity and API
- Sign-in and workspace
app/(auth)/login.tsx - Session state
src/store/authStore.ts - Secure session storage
src/services/secureStorage.ts - Authenticated API client
src/api/apiClient.ts
Player workflows
- Tournament discovery and registration
app/(player)/tournaments.tsx - Player data API
src/features/player/api.ts - Player profile and achievements
app/(player)/profile.tsx - Tournament results
src/features/player/tournamentResults.ts - Friendly Matches
app/(player)/friendly.tsx - Friendly match operations
src/features/player/friendly.ts - Live match screen
src/features/matches/MatchScreen.tsx - Match scoring
src/features/player/scoring.ts - Match realtime updates
src/api/realtime/useMatchRealtime.ts - Realtime subscription
src/api/realtime/matchRealtime.ts - Player notifications
app/(player)/notifications.tsx
Tournament operations
- Organizer dashboard
app/(organizer)/index.tsx - Tournament creation
app/(organizer)/create.tsx - Fixture management
app/(organizer)/fixtures.tsx - Registration management
app/(organizer)/registrations.tsx - Organizer operations API
src/features/organizer/api.ts
Administration
- Tournament review
app/(admin)/review.tsx - Admin API
src/features/admin/api.ts - Admin workspace
app/(admin)/index.tsx
Other components
- Player or staff
- SmashPoint API
Connections 31
- Player or staff → Sign-in and workspace: signs in
README.md - Sign-in and workspace → Authenticated API client: requests auth
app/(auth)/login.tsx - Sign-in and workspace → Session state: sets session
app/(auth)/login.tsx - Session state → Secure session storage: persists tokens
src/store/authStore.ts - Authenticated API client → Secure session storage: reads tokens
src/api/apiClient.ts - Authenticated API client → Session state: refreshes session
src/api/apiClient.ts - Authenticated API client → SmashPoint API: sends requests
README.md - Tournament discovery and registration → Player data API: loads player data
app/(player)/tournaments.tsx - Player data API → Authenticated API client: uses client
src/features/player/api.ts - Tournament discovery and registration → Tournament results: shows results
app/(player)/tournaments.tsx - Player or staff → Player profile and achievements: manages profile
README.md - Player or staff → Friendly Matches: plays friendly matches
README.md - Friendly Matches → Friendly match operations: uses match operations
app/(player)/friendly.tsx - Friendly match operations → Authenticated API client: uses client
src/features/player/friendly.ts - Live match screen → Match scoring: uses scoring
src/features/matches/MatchScreen.tsx - Live match screen → Friendly match operations: uses match operations
src/features/matches/MatchScreen.tsx - Live match screen → Organizer operations API: uses match API
src/features/matches/MatchScreen.tsx - Live match screen → Match realtime updates: subscribes to updates
src/features/matches/MatchScreen.tsx - Match realtime updates → Realtime subscription: subscribes to match
src/api/realtime/useMatchRealtime.ts - Player or staff → Live match screen: follows live match
README.md - Player or staff → Player notifications: views notifications
README.md - Organizer dashboard → Organizer operations API: loads tournaments
app/(organizer)/index.tsx - Tournament creation → Organizer operations API: creates tournament
app/(organizer)/create.tsx - Fixture management → Organizer operations API: manages fixtures
- Registration management → Organizer operations API: manages registrations
- Organizer operations API → Authenticated API client: uses client
src/features/organizer/api.ts - Player or staff → Admin workspace: opens admin workspace
README.md - Admin workspace → Admin API: loads admin data
app/(admin)/index.tsx - Tournament review → Admin API: reviews tournament
app/(admin)/review.tsx - Admin API → Authenticated API client: uses client
src/features/admin/api.ts - Admin API → SmashPoint API: sends admin requests