How avoqato2/restyle works
ReStyle is an Ionic/Angular mobile wardrobe and outfit-planning app backed by Supabase. Users enter through routed authentication, then use wardrobe and styling features; the README also describes background removal and personalized outfit suggestions. The graph includes the documented feature branches, but their page-to-service wiring is not established by the excerpts, so those links are left unverified. Sampled source supports the app bootstrap, auth callback flow, and profile/garment data access; unsampled service details are not inferred.
Main entry points: auth.service.ts Auth service · app.routes.ts App routes · supabase.client.ts Supabase client · outfit.service.ts Outfit service
Components 24
App navigation
- App bootstrap
frontend/src/main.ts - App routes
frontend/src/app/app.routes.ts - Root app
frontend/src/app/app.component.ts
Identity
- Login and signup
frontend/src/app/pages/auth/auth-form/auth-form.page.ts - Auth service
frontend/src/app/supabase/services/auth/auth.service.ts - Callback parsing
frontend/src/app/supabase/services/auth/auth-callback.ts - Auth errors
frontend/src/app/supabase/services/auth/auth-errors.ts - Auth URLs
frontend/src/app/supabase/services/auth/auth-urls.ts - Auth guards
frontend/src/app/supabase/services/auth/guards.ts - Email confirmation
frontend/src/app/pages/auth/confirmation-mail/confirmation-mail.page.ts
Wardrobe and outfits
- Home
frontend/src/app/pages/home/home.page.ts - Digital wardrobe
frontend/src/app/pages/garderobe/garderobe.page.ts - Styling
frontend/src/app/pages/styling/styling.page.ts - Looks
frontend/src/app/pages/looks/looks.page.ts - Photo processing
frontend/src/app/services/photo.service.ts
Data access
- Garment service
frontend/src/app/supabase/services/garment.service.ts - Outfit service
frontend/src/app/supabase/services/outfit.service.ts - Profile service
frontend/src/app/supabase/services/profile.service.ts - Supabase client
frontend/src/app/supabase/supabase.client.ts - Database types
frontend/src/app/supabase/supabase.types.ts
Other components
- Mobile user
- Supabase backend
- Background removal
- Outfit suggestions
Connections 30
- Mobile user → App bootstrap: opens app
frontend/src/main.ts - App bootstrap → App routes: registers routes
frontend/src/main.ts - App bootstrap → Root app: starts
frontend/src/main.ts - App routes → Login and signup: routes to
frontend/src/app/app.routes.ts - App routes → Home: routes to
frontend/src/app/app.routes.ts - App routes → Digital wardrobe: routes to
frontend/src/app/app.routes.ts - App routes → Styling: routes to
frontend/src/app/app.routes.ts - App routes → Looks: routes to
frontend/src/app/app.routes.ts - App routes → Email confirmation: routes to
frontend/src/app/app.routes.ts - Login and signup → Auth service: authenticates with
frontend/src/app/pages/auth/auth-form/auth-form.page.ts - Auth guards → Auth service: checks session
frontend/src/app/supabase/services/auth/guards.ts - Root app → Auth service: handles callbacks
frontend/src/app/app.component.ts - Auth service → Callback parsing: parses callback
frontend/src/app/supabase/services/auth/auth.service.ts - Auth service → Auth errors: maps errors
frontend/src/app/supabase/services/auth/auth.service.ts - Auth service → Auth URLs: builds links
frontend/src/app/supabase/services/auth/auth.service.ts - Auth service → Supabase client: uses client
frontend/src/app/supabase/services/auth/auth.service.ts - Home → Profile service: loads profile
frontend/src/app/pages/home/home.page.ts - Garment service → Supabase client: uses client
frontend/src/app/supabase/services/garment.service.ts - Profile service → Supabase client: uses client
frontend/src/app/supabase/services/profile.service.ts - Outfit service → Supabase client: uses client
frontend/src/app/supabase/services/outfit.service.ts - Supabase client → Database types: types client
frontend/src/app/supabase/supabase.client.ts - Auth service → Supabase backend: auth requests
- Garment service → Supabase backend: reads and writes
frontend/src/app/supabase/services/garment.service.ts - Profile service → Supabase backend: reads and writes
frontend/src/app/supabase/services/profile.service.ts - Outfit service → Supabase backend: reads and writes
- Digital wardrobe → Garment service: manages garments
- Styling → Outfit service: uses outfits
- Looks → Outfit service: uses outfits
- Photo processing → Background removal: removes backgrounds
- Styling → Outfit suggestions: shows suggestions