How husseizo/garage-management-system works
GMS is a foundation-stage garage management web app: customers can enter public booking, tracking, and portal routes, while staff sign in to a dashboard for garage operations. The README describes booking, scheduling, reminders, notifications, and reporting, but says those business features remain unimplemented; their routes and modules are represented as planned capability areas, not asserted runtime pipelines. Customer and vehicle services, staff authorization, database access, and localization have source evidence. Several other links are omitted or marked unverified because their implementation was not sampled.
Main entry points: customers/service.ts Customer services · vehicles/service.ts Vehicle services · guards.ts Staff access guards · page.tsx Staff dashboard
Components 27
User interfaces
- Public pages
src/app/(public)/page.tsx - Guest booking
src/app/(public)/book/page.tsx - Appointment tracking
src/app/(public)/track/page.tsx - Customer portal
src/app/(public)/portal/page.tsx - Staff sign-in
src/app/(auth)/login/page.tsx - Staff dashboard
src/app/dashboard/page.tsx - Customer records UI
src/app/dashboard/customers/page.tsx - Vehicle records UI
src/app/dashboard/vehicles/page.tsx - Dashboard search
src/app/dashboard/search/page.tsx - Booking operations
src/app/dashboard/bookings/page.tsx - Appointment calendar
src/app/dashboard/calendar/page.tsx - Garage operations pages
src/app/dashboard/technicians/page.tsx - Reminder page
src/app/dashboard/reminders/page.tsx
Staff identity
- Auth session
src/server/auth/auth.ts - Staff access guards
src/server/auth/guards.ts - Role permissions
src/modules/staff/permissions.ts
Garage records
- Customer services
src/modules/customers/service.ts - Vehicle services
src/modules/vehicles/service.ts - Booking module
src/modules/bookings/index.ts - Capacity scheduling
src/modules/scheduling/index.ts - Service reminders
src/modules/reminders/index.ts - Notifications
src/modules/notifications/index.ts
Shared platform
- Neon database access
src/server/db/client.ts - Garage profile
src/server/garage.ts - Localization
src/i18n/server.ts
Other components
- Customer
- Garage staff
Connections 27
- Customer → Public pages: visits
README.md - Customer → Guest booking: requests service
README.md - Customer → Appointment tracking: checks appointment
README.md - Customer → Customer portal: views history
README.md - Garage staff → Staff sign-in: signs in
README.md - Garage staff → Staff dashboard: uses
README.md - Staff sign-in → Auth session: uses redirects
src/app/(auth)/login/page.tsx - Auth session → Staff access guards: validates session
src/server/auth/guards.ts - Staff access guards → Role permissions: checks permissions
src/server/auth/guards.ts - Staff dashboard → Staff access guards: requires staff
src/app/dashboard/page.tsx - Customer records UI → Staff access guards: checks access
src/app/dashboard/customers/page.tsx - Customer records UI → Customer services: reads records
src/app/dashboard/customers/page.tsx - Vehicle records UI → Vehicle services: reads records
src/app/dashboard/vehicles/page.tsx - Dashboard search → Customer services: searches customers
src/app/dashboard/search/page.tsx - Dashboard search → Vehicle services: searches vehicles
src/app/dashboard/search/page.tsx - Customer services → Neon database access: queries and writes
src/modules/customers/service.ts - Vehicle services → Neon database access: queries and writes
src/modules/vehicles/service.ts - Garage profile → Neon database access: reads profile
src/server/garage.ts - Customer services → Garage profile: gets region
src/modules/customers/service.ts - Vehicle services → Garage profile: gets settings
src/modules/vehicles/service.ts - Guest booking → Booking module: submits booking
- Booking operations → Booking module: manages requests
README.md - Appointment calendar → Capacity scheduling: uses capacity scheduling
README.md - Reminder page → Service reminders: manages reminders
README.md - Service reminders → Notifications: dispatches notices
README.md - Garage operations pages → Capacity scheduling: supports bay capacity
README.md - Staff dashboard → Localization: loads translations
src/app/dashboard/page.tsx