How oasif-ahmed/gearup-client works
GearUp is a Next.js rental frontend for customers, providers, and administrators. The main customer journey is catalog discovery, gear inspection, rental checkout, payment, order tracking, and post-return reviews; separate branches support account access and provider/admin operations. Server-side service modules connect UI workflows to the backend, while the gear service also uploads images to an external host. Some operational screens and services were not sampled, so their documented capabilities are included but uncertain implementation links are omitted.
Main entry points: customer-cart/page.tsx Customer portal route · provider/page.tsx Provider dashboard route · gear-item.service.ts Gear catalog service · auth.service.ts Authentication
Components 27
Gear discovery
- Home & featured gear
app/(public)/page.tsx - Browse & filter
app/(public)/gear-items/page.tsx - Gear card
components/gear/gearItemCard.tsx - Details & reviews
app/(public)/gear-items/[id]/gearDetails+review.tsx
Customer journeys
- Login form
components/login-form.tsx - Registration form
components/register-form.tsx - Customer portal route
app/customer-cart/page.tsx - Cart & order tracking
app/customer-cart/customerCart.tsx - Payment outcome pages
app/payment/success/page.tsx - Payment cancellation
app/payment/cancel/page.tsx - Profile settings
app/profile/ProfilePageClient.tsx
Platform operations
- Provider dashboard route
app/dashboard/provider/page.tsx - Inventory & order console
app/dashboard/provider/ProviderDashboard-aligned.tsx - Admin dashboard route
app/dashboard/admin/page.tsx - Users & moderation
app/dashboard/admin/adminClient.tsx
Server services
- Authentication
services/auth.service.ts - Payment operations
services/payment.service.ts - Rental orders
services/rental-order.service.ts - Reviews
services/review.service.ts - Provider operations
services/provider.service.ts - Gear catalog service
services/gear-item.service.ts - Admin operations
services/admin.service.ts - Current user lookup
services/getMe.ts
Other components
- Customer
- Payment gateway
- GearUp backend API
- Image upload host
Connections 34
- Customer → Home & featured gear: explores
- Home & featured gear → Gear catalog service: loads featured gear
app/(public)/page.tsx - Customer → Browse & filter: browses
- Browse & filter → Gear catalog service: loads inventory
app/(public)/gear-items/page.tsx - Browse & filter → Gear card: renders listings
app/(public)/gear-items/page.tsx - Customer → Details & reviews: inspects gear
- Gear catalog service → GearUp backend API: fetches gear
services/gear-item.service.ts - Gear catalog service → Image upload host: uploads images
services/gear-item.service.ts - Customer → Login form: signs in
- Customer → Registration form: creates account
- Login form → Authentication: submits credentials
components/login-form.tsx - Registration form → Authentication: submits registration
components/register-form.tsx - Authentication → GearUp backend API: authenticates
services/auth.service.ts - Customer → Customer portal route: opens portal
- Customer portal route → Cart & order tracking: renders portal
app/customer-cart/page.tsx - Customer portal route → Rental orders: loads rentals
app/customer-cart/page.tsx - Customer portal route → Payment operations: loads payments
app/customer-cart/page.tsx - Customer portal route → Reviews: loads reviews
app/customer-cart/page.tsx - Cart & order tracking → Payment operations: starts payment
- Payment operations → Payment gateway: initiates checkout
- Payment gateway → Payment outcome pages: confirms outcome
- Payment gateway → Payment cancellation: returns cancelled
- Customer → Provider dashboard route: manages rentals
- Provider dashboard route → Inventory & order console: renders dashboard
app/dashboard/provider/page.tsx - Provider dashboard route → Provider operations: loads orders
app/dashboard/provider/page.tsx - Provider dashboard route → Gear catalog service: loads inventory
app/dashboard/provider/page.tsx - Provider dashboard route → Current user lookup: loads identity
app/dashboard/provider/page.tsx - Customer → Admin dashboard route: administers platform
- Admin dashboard route → Users & moderation: renders console
app/dashboard/admin/page.tsx - Admin dashboard route → Admin operations: loads admin data
app/dashboard/admin/page.tsx - Customer → Profile settings: updates profile
- Profile settings → Authentication: saves changes
app/profile/ProfilePageClient.tsx - Customer → Details & reviews: submits review
- Reviews → GearUp backend API: reads and writes reviews
services/review.service.ts