How redward42/crewmates works
Crewmates is a React app for creating and managing crewmates. The user enters through the home page or navigation, creates a crewmate, browses the newest-first gallery, and can open a crewmate’s details or edit it; editing also supports deletion. Page components issue database operations through a shared Supabase client. The README documents the user-facing capabilities, while the sampled source shows the route wiring and operations. The Supabase service connection is inferred from client configuration, so that external link is marked unverified.
Main entry points: App.tsx App router · supabase-client.ts Supabase client · Sidebar.tsx Sidebar links · Gallery.tsx Crew gallery
Components 11
Navigation and routing
- App router
src/App.tsx - Sidebar links
src/components/Sidebar.tsx
Crewmate pages
- Home page
src/pages/Home.tsx - Create crewmate
src/pages/Create.tsx - Crew gallery
src/pages/Gallery.tsx - Crew details
src/pages/Details.tsx - Edit and delete
src/pages/Edit.tsx
Crew presentation
- Crew card
src/components/Card.tsx
Data access
- Supabase client
src/supabase-client.ts - Supabase service
Other components
- User
Connections 20
- User → App router: uses
- App router → Sidebar links: renders
src/App.tsx - App router → Home page: routes to
src/App.tsx - App router → Create crewmate: routes to
src/App.tsx - App router → Crew gallery: routes to
src/App.tsx - App router → Crew details: routes to
src/App.tsx - App router → Edit and delete: routes to
src/App.tsx - Sidebar links → Home page: links to
src/components/Sidebar.tsx - Sidebar links → Create crewmate: links to
src/components/Sidebar.tsx - Sidebar links → Crew gallery: links to
src/components/Sidebar.tsx - Home page → Create crewmate: links to
src/pages/Home.tsx - Create crewmate → Supabase client: reads and inserts
src/pages/Create.tsx - Crew gallery → Supabase client: reads crew
src/pages/Gallery.tsx - Crew gallery → Crew card: renders
src/pages/Gallery.tsx - Crew card → Crew details: links to
src/components/Card.tsx - Crew card → Edit and delete: links to
src/components/Card.tsx - Crew details → Supabase client: reads crew
src/pages/Details.tsx - Crew details → Edit and delete: links to
src/pages/Details.tsx - Edit and delete → Supabase client: reads and mutates
src/pages/Edit.tsx - Supabase client → Supabase service: connects to