How shafin-ahmed-201/fixmate-client works
FixMate is a repair-services marketplace frontend. Customers browse services, submit booking requests, track bookings, and pay; technicians publish services and manage requests; administrators oversee users, services, bookings, and transactions. BetterAuth sessions supply JWTs to the separate FixMate API, while Stripe handles checkout. The README documents these flows and state transitions; sampled pages and the source index support the shown API/auth relationships. Some role pages and integrations were not sampled, so those links are documented rather than inferred from filenames.
Main entry points: api.ts Typed API Client · bookings/page.tsx Booking Management · (public)/page.tsx Marketplace Home · services/page.tsx Service Browse
Components 34
Service Discovery
- Marketplace Home
app/(public)/page.tsx - Service Browse
app/(public)/services/page.tsx - Service Detail
app/(public)/services/[id]/service-detail.tsx - Voice Booking
components/voice-booking-assistant.tsx - Service Card
components/service-card.tsx
Identity and API
- Sign In
app/(auth)/sign-in/page.tsx - Sign Up
app/(auth)/sign-up/page.tsx - Auth Client
lib/auth-client.ts - Auth Route
app/api/auth/[...all]/route.ts - Auth Server
lib/auth.ts - Typed API Client
lib/api.ts
Marketplace Operations
- Customer Dashboard
app/dashboard/customer/page.tsx - Booking Management
app/dashboard/customer/bookings/page.tsx - Payment History
app/dashboard/customer/payments/page.tsx - Technician Dashboard
app/dashboard/technician/page.tsx - Technician Services
app/dashboard/technician/my-services/page.tsx - Technician Requests
app/dashboard/technician/requests/page.tsx - Admin Overview
app/dashboard/admin/page.tsx - Service Approval
app/dashboard/admin/services/page.tsx - Admin Bookings
app/dashboard/admin/bookings/page.tsx - User Management
app/dashboard/admin/users/page.tsx - Transactions
app/dashboard/admin/transactions/page.tsx - Profile Editor
app/dashboard/profile/page.tsx - Payment Verification
app/payment/success/page.tsx
Shared UI
- Formatting Helpers
lib/format.ts - Status Badges
components/badges.tsx - Empty State
components/empty-state.tsx - Dashboard Stats
components/stat-card.tsx - Confirmation Dialog
components/confirm-dialog.tsx
Other components
- Customer
- Technician
- Administrator
- FixMate API
- Stripe Checkout
Connections 46
- Customer → Marketplace Home: browses
README.md - Customer → Service Browse: searches services
README.md - Service Browse → Typed API Client: loads listings
app/(public)/services/page.tsx - Marketplace Home → Typed API Client: loads services
app/(public)/page.tsx - Service Browse → Service Card: renders
app/(public)/services/page.tsx - Marketplace Home → Service Card: renders
app/(public)/page.tsx - Customer → Service Detail: requests booking
README.md - Service Detail → Typed API Client: submits request
app/(public)/services/[id]/service-detail.tsx - Service Detail → Voice Booking: uses assistant
app/(public)/services/[id]/service-detail.tsx - Customer → Sign In: authenticates
README.md - Customer → Sign Up: registers
README.md - Technician → Sign Up: registers
README.md - Sign In → Auth Client: signs in
app/(auth)/sign-in/page.tsx - Sign Up → Auth Client: creates account
app/(auth)/sign-up/page.tsx - Auth Client → Auth Route: uses auth routes
- Auth Route → Auth Server: dispatches
app/api/auth/[...all]/route.ts - Typed API Client → Auth Route: fetches JWT
lib/api.ts - Typed API Client → FixMate API: sends API requests
README.md - Customer → Customer Dashboard: views activity
README.md - Customer Dashboard → Typed API Client: loads dashboard data
app/dashboard/customer/page.tsx - Customer → Booking Management: manages bookings
README.md - Booking Management → Typed API Client: updates bookings
app/dashboard/customer/bookings/page.tsx - Customer → Payment History: views payments
README.md - Technician → Technician Dashboard: views activity
README.md - Technician Dashboard → Typed API Client: loads dashboard data
app/dashboard/technician/page.tsx - Technician → Technician Services: manages services
README.md - Technician Services → Typed API Client: updates services
app/dashboard/technician/my-services/page.tsx - Technician → Technician Requests: handles requests
README.md - Technician Requests → Typed API Client: changes status
app/dashboard/technician/requests/page.tsx - Administrator → Admin Overview: oversees marketplace
README.md - Admin Overview → Typed API Client: loads statistics
app/dashboard/admin/page.tsx - Administrator → Service Approval: approves services
README.md - Administrator → Admin Bookings: reviews bookings
README.md - Administrator → User Management: manages users
README.md - Administrator → Transactions: reviews transactions
README.md - Customer → Profile Editor: edits profile
README.md - Profile Editor → Typed API Client: saves profile
app/dashboard/profile/page.tsx - Customer → Stripe Checkout: starts checkout
README.md - Stripe Checkout → Payment Verification: returns session
README.md - Payment Verification → Typed API Client: verifies payment
app/payment/success/page.tsx - Typed API Client → Formatting Helpers: uses helpers
- Booking Management → Status Badges: renders status
app/dashboard/customer/bookings/page.tsx - Booking Management → Confirmation Dialog: confirms cancellation
app/dashboard/customer/bookings/page.tsx - Booking Management → Empty State: renders empty state
app/dashboard/customer/bookings/page.tsx - Customer Dashboard → Dashboard Stats: renders metrics
app/dashboard/customer/page.tsx - Admin Overview → Dashboard Stats: renders metrics
app/dashboard/admin/page.tsx