How aofkungz/washthis-webshop works
WashThis! is a laundry-machine booking dashboard. A user opens the dashboard, reviews machine availability, configures a washer or dryer booking, and submits it; the page updates in-memory machine, account, queue, and booking-history state. Users can also manage their profile, view queues and notifications, and use chat. Google sign-in supplies a session, while a separate product-management server-action branch uses a temporary in-memory product store. The README is only the default Next.js template; unsampled widget internals and persistence behavior are not inferred.
Main entry points: page.tsx Dashboard state · auth.ts Auth configuration · types.ts Booking history · BookingModal.tsx Booking form
Components 20
Laundry Dashboard
- Dashboard state
src/app/page.tsx - Machine dashboard UI
src/components/DashboardUI.tsx - Booking form
src/components/BookingModal.tsx - Queue view
src/components/QueueModal.tsx - Profile and wallet
src/components/ProfileModal.tsx - Confirmation dialog
src/components/ConfirmDialog.tsx - Notification menu
src/components/NotificationDropdown.tsx - Chat widget
src/components/ChatWidget.tsx - Booking history
src/lib/types.ts
Identity
- Auth configuration
src/auth.ts - Auth API route
src/app/api/auth/[...nextauth]/route.ts - Session provider
src/components/AuthProvider.tsx - App layout
src/app/layout.tsx - Auth button
src/app/auth-button.tsx
Product Actions
- Product server actions
src/app/action.tsx - Temporary product store
src/lib/products.ts
Shared Logic
- Input schemas
src/lib/schemas.ts - Time calculations
src/lib/time.ts
Other components
- Laundry user
- Google identity
Connections 24
- Laundry user → Dashboard state: opens
src/app/page.tsx - Dashboard state → Machine dashboard UI: renders
src/app/page.tsx - Dashboard state → Booking form: opens and submits
src/app/page.tsx - Dashboard state → Queue view: renders
src/app/page.tsx - Dashboard state → Profile and wallet: renders
src/app/page.tsx - Dashboard state → Confirmation dialog: renders
src/app/page.tsx - Dashboard state → Notification menu: renders
src/app/page.tsx - Dashboard state → Chat widget: renders
src/app/page.tsx - Dashboard state → Booking history: tracks
src/app/page.tsx - Machine dashboard UI → Time calculations: formats wait
src/components/DashboardUI.tsx - Booking form → Input schemas: validates with
src/components/BookingModal.tsx - Booking form → Booking history: uses types
src/components/BookingModal.tsx - Profile and wallet → Input schemas: validates with
src/components/ProfileModal.tsx - Profile and wallet → Booking history: displays
src/components/ProfileModal.tsx - Queue view → Time calculations: calculates wait
src/components/QueueModal.tsx - Queue view → Booking history: uses types
src/components/QueueModal.tsx - Chat widget → Input schemas: uses validation
src/components/ChatWidget.tsx - App layout → Session provider: wraps app
src/app/layout.tsx - App layout → Auth configuration: loads session
src/app/layout.tsx - Session provider → Auth configuration: provides session
- Auth API route → Auth configuration: routes handlers
src/app/api/auth/[...nextauth]/route.ts - Auth button → Auth configuration: starts sign-in
src/app/auth-button.tsx - Google identity → Auth configuration: authenticates
src/auth.ts - Product server actions → Temporary product store: updates and deletes
src/app/action.tsx