How enrique-diazv/pik works
PIK is a Next.js demo with two independent user-to-result flows: business registration and appointment booking. The landing page links to each; registration collects business details, categories, location and hours, services, and staff before a review and simulated confirmation. Booking presents a mock business profile, then guides the user through staff, date/time, summary, and confirmation. The README describes in-memory mock reservations and no backend or external runtime services. Edges reflect the README and visible import/call references in the source index; unsampled implementation details are not assumed.
Main entry points: business-onboarding.tsx Registration flow · business-profile-tabs.tsx Business profile · app/page.tsx Landing page · booking/page.tsx Booking route
Components 24
App entry
- Landing page
src/app/page.tsx - Registration route
src/app/business/onboarding/page.tsx - Booking route
src/app/booking/page.tsx
Business onboarding
- Registration flow
src/components/business/business-onboarding.tsx - Business details
src/components/business/business-details-form.tsx - Business categories
src/components/business/business-categories-form.tsx - Location and hours
src/components/business/business-location-form.tsx - Hours editor
src/components/business/opening-hours-editor.tsx - Time range fields
src/components/business/time-range-fields.tsx - Services form
src/components/business/business-services-form.tsx - Staff form
src/components/business/business-staff-form.tsx - Review and confirm
src/components/business/business-summary.tsx
Appointment booking
- Business profile
src/components/booking/business-profile-tabs.tsx - Photo gallery
src/components/booking/business-gallery.tsx - Date and availability
src/components/booking/booking-date-picker.tsx - Time selection
src/components/booking/booking-time-picker.tsx
Domain rules and data
- Demo business
src/data/mocks/business.ts - Slot calculation
src/lib/booking-availability.ts - Opening-hours rules
src/lib/opening-hours.ts - Time utilities
src/lib/time-picker.ts - Service validation
src/lib/service-validation.ts - Reservation mock
src/data/mocks/booking-reservations.ts - Registration mock
src/data/mocks/business-registration.ts
Other components
- Visitor
Connections 25
- Visitor → Landing page: opens
README.md - Landing page → Registration route: links to
README.md - Landing page → Booking route: links to
README.md - Registration route → Registration flow: renders
src/app/business/onboarding/page.tsx - Registration flow → Business details: collects
src/components/business/business-onboarding.tsx - Registration flow → Business categories: collects
src/components/business/business-onboarding.tsx - Registration flow → Location and hours: collects
src/components/business/business-onboarding.tsx - Registration flow → Services form: collects
src/components/business/business-onboarding.tsx - Registration flow → Staff form: collects
src/components/business/business-onboarding.tsx - Registration flow → Review and confirm: reviews
src/components/business/business-onboarding.tsx - Location and hours → Hours editor: renders
src/components/business/business-location-form.tsx - Hours editor → Time range fields: renders
src/components/business/opening-hours-editor.tsx - Time range fields → Time utilities: uses
src/components/business/time-range-fields.tsx - Hours editor → Opening-hours rules: uses
src/components/business/opening-hours-editor.tsx - Services form → Service validation: validates with
src/components/business/business-services-form.tsx - Review and confirm → Registration mock: confirms through
src/components/business/business-summary.tsx - Booking route → Demo business: loads
src/app/booking/page.tsx - Booking route → Business profile: renders
src/app/booking/page.tsx - Business profile → Photo gallery: renders
src/components/booking/business-profile-tabs.tsx - Business profile → Date and availability: renders
src/components/booking/business-profile-tabs.tsx - Date and availability → Time selection: renders
src/components/booking/booking-date-picker.tsx - Date and availability → Slot calculation: gets slots
src/components/booking/booking-date-picker.tsx - Time selection → Slot calculation: gets slots
src/components/booking/booking-time-picker.tsx - Slot calculation → Time utilities: converts times
src/lib/booking-availability.ts - Business profile → Reservation mock: confirms reservation
src/components/booking/business-profile-tabs.tsx