How mohammedjaasir/upl works
Miella Super League is a player-registration web app. A player enters personal details, completes a cricket profile and kit selection (including a photo), reviews the entries, and submits. The page coordinates step navigation, validation, and submission; the service uploads the photo and inserts the registration details into Supabase. The README documents the private photo bucket, insert-only table policies, and no readback. The graph reflects documented behavior and shown imports/calls; some component internals and backend wiring are not excerpted.
Main entry points: RegistrationPage.tsx Registration Page · ProfileStep.tsx Profile Step · registrationService.ts Registration Service · validation.ts Validation & Normalize
Components 22
Registration Flow
- Registration Page
src/features/registration/RegistrationPage.tsx - Personal Info Step
src/features/registration/components/PersonalInfoStep.tsx - Profile Step
src/features/registration/components/ProfileStep.tsx - Review Step
src/features/registration/components/ReviewStep.tsx - Success Screen
src/features/registration/components/SuccessScreen.tsx - Step Indicator
src/features/registration/components/StepIndicator.tsx
Form Domain
- Form State
src/features/registration/useRegistrationForm.ts - Validation & Normalize
src/features/registration/validation.ts - Step Definitions
src/features/registration/steps.ts - Field Controls
src/features/registration/components/Field.tsx - Choice Group
src/features/registration/components/ChoiceGroup.tsx - Kit Fields
src/features/registration/components/KitFields.tsx - Photo Upload
src/features/registration/components/PhotoUpload.tsx - Jersey Preview
src/features/registration/components/JerseyPreview.tsx - Photo Preview
src/features/registration/usePhotoPreview.ts - Session Draft
Submission Backend
- Registration Service
src/services/registrationService.ts - Supabase Client
src/lib/supabase.ts - Photo Bucket
- Registration Table
Persistence Setup
- Schema & Policies
supabase/migrations/20261001000000_player_registrations.sql
Other components
- Player
Connections 26
- Player → Registration Page: enters details
README.md - Registration Page → Personal Info Step: renders
src/features/registration/RegistrationPage.tsx - Registration Page → Profile Step: renders
src/features/registration/RegistrationPage.tsx - Registration Page → Review Step: renders
src/features/registration/RegistrationPage.tsx - Registration Page → Success Screen: renders
src/features/registration/RegistrationPage.tsx - Registration Page → Step Indicator: renders
src/features/registration/RegistrationPage.tsx - Registration Page → Form State: uses state
src/features/registration/RegistrationPage.tsx - Registration Page → Photo Preview: creates preview
src/features/registration/RegistrationPage.tsx - Registration Page → Step Definitions: routes fields
src/features/registration/RegistrationPage.tsx - Registration Page → Validation & Normalize: builds payload
src/features/registration/RegistrationPage.tsx - Registration Page → Registration Service: submits registration
src/features/registration/RegistrationPage.tsx - Form State → Validation & Normalize: validates fields
src/features/registration/useRegistrationForm.ts - Form State → Session Draft: saves text draft
src/features/registration/useRegistrationForm.ts - Personal Info Step → Choice Group: renders choices
src/features/registration/components/PersonalInfoStep.tsx - Personal Info Step → Field Controls: renders fields
src/features/registration/components/PersonalInfoStep.tsx - Profile Step → Choice Group: renders choices
src/features/registration/components/ProfileStep.tsx - Profile Step → Kit Fields: renders kit inputs
src/features/registration/components/ProfileStep.tsx - Profile Step → Photo Upload: renders photo input
src/features/registration/components/ProfileStep.tsx - Profile Step → Jersey Preview: renders preview
src/features/registration/components/ProfileStep.tsx - Review Step → Validation & Normalize: formats review
src/features/registration/components/ReviewStep.tsx - Photo Upload → Validation & Normalize: checks photo
src/features/registration/components/PhotoUpload.tsx - Registration Service → Supabase Client: gets client
src/services/registrationService.ts - Registration Service → Photo Bucket: uploads photo
README.md - Registration Service → Registration Table: inserts details
README.md - Schema & Policies → Photo Bucket: creates bucket
README.md - Schema & Policies → Registration Table: creates table
README.md