20 Commits

Author SHA1 Message Date
Ivan
a882c8698d feat: update sidebar nav, add open play toggle, mark courts 5-6 as open play
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 03:55:13 +00:00
Ivan
4127485dea fix: support 6-column grid layout in booking calendar
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 00:38:58 +00:00
Ivan
407744d00f feat: translate memberships page and components to English
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 21:24:48 +00:00
Ivan
3e65974727 feat: translate bookings page and components to English
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 21:22:55 +00:00
Ivan
0fb27b1825 feat: translate dashboard page and components to English
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 21:22:53 +00:00
Ivan
55676f59bd feat: translate auth and layout components to English
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 21:22:40 +00:00
Ivan
ec48ff8405 feat: rebrand to Cabo Pickleball Club with English UI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 21:13:08 +00:00
Ivan
45ceeba9e3 feat: rebrand application from Padel Pro to SmashPoint
Complete rename across all layers: UI branding, package names
(@smashpoint/web, @smashpoint/shared), infrastructure (Docker,
DB config), seed data, documentation, and logo/favicon.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 02:46:29 +00:00
Ivan
242b8bad3d fix: dashboard updates when switching sites
- Added SiteContext for global site selection state
- Updated admin layout with SiteProvider
- Updated SiteSwitcher to use shared context
- Dashboard now refetches data when site changes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 08:41:02 +00:00
Ivan
51ecb1b231 feat: add settings and reports pages
- Add settings page with organization, sites, courts, and users tabs
- Add reports page with revenue charts and statistics
- Add users API endpoint
- Add sites/[id] API endpoint for CRUD operations
- Add tabs UI component
- Fix sites API to return isActive field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 08:27:32 +00:00
Ivan
88c6a7084a feat(clients): add clients management page
Add comprehensive clients management interface including:
- Client table with search, filtering, and pagination
- Client form for creating and editing clients
- Client detail dialog showing profile, membership, and stats
- API endpoint for individual client operations (GET, PUT, DELETE)
- Stats cards showing total clients, with membership, and new this month
- Integration with membership assignment dialog

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:38:40 +00:00
Ivan
11eb3a5438 feat(auth): add login page
- Create professional login page with two-column desktop layout
- Add reusable LoginForm component with validation
- Implement show/hide password toggle
- Add loading state and error handling with next-auth
- Create auth layout with gradient background and decorative patterns
- Include branding with Padel Pro logo and feature highlights
- Responsive design: stacked layout on mobile

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:34:06 +00:00
Ivan
83fc48d7df feat(dashboard): add dashboard with statistics
- Add dashboard stats API endpoint with key metrics
- Add stat-card component for displaying metrics
- Add occupancy-chart component for court occupancy visualization
- Add recent-bookings component for today's bookings list
- Add quick-actions component for common admin actions
- Update dashboard page with full implementation

Stats include: today's bookings, revenue, occupancy rate,
active members, pending bookings, and upcoming tournaments.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:31:23 +00:00
Ivan
973588e861 feat(memberships): add membership management UI
- Add PlanCard component to display plan details with benefits
- Add PlanForm for creating/editing membership plans
- Add MembershipTable with status badges and actions
- Add AssignMembershipDialog for assigning memberships to clients
- Add memberships admin page with plans and memberships sections
- Include stats cards for active memberships and expiring soon
- Support renewal and cancellation workflows

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:26:24 +00:00
Ivan
23ee47fe47 feat(tournaments): add tournament management UI
Add complete tournament management interface including:
- Tournament card component with status badges and info display
- Tournament form for creating/editing tournaments
- Bracket view for single elimination visualization
- Inscriptions list with payment tracking
- Match score dialog for entering results
- Tournaments list page with filtering and search
- Tournament detail page with tabs (Overview, Inscriptions, Bracket)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:15:04 +00:00
Ivan
422f5c4f29 feat(pos): add point of sale UI
- Add ProductGrid component with category filters and search
- Add Cart component with quantity controls and totals
- Add PaymentDialog with cash/card/transfer payment methods
- Add CashRegisterStatus for opening/closing register
- Add POS page with 70/30 layout (products/cart)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:03:59 +00:00
Ivan
cdf6e8ebe6 feat(bookings): add calendar UI with booking creation
- Add TimeSlot component with available/booked visual states
- Add BookingCalendar component with date navigation and court columns
- Add BookingDialog for creating bookings and viewing/cancelling existing ones
- Add bookings page with calendar integration
- Fix sidebar navigation paths for route group structure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 06:50:22 +00:00
Ivan
fd28bf67d8 feat(layout): add admin panel layout with sidebar and header
- Add Sidebar component with navigation items (dashboard, bookings, tournaments, pos, clients, memberships, reports, settings)
- Add Header component with SiteSwitcher and user info/logout
- Add SiteSwitcher component for SUPER_ADMIN multi-site selection
- Add admin layout wrapper with AuthProvider
- Add placeholder Dashboard page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 06:30:25 +00:00
Ivan
d1cc0c0b58 feat(ui): add shadcn/ui base components
- Add clsx, tailwind-merge, class-variance-authority dependencies
- Add Radix UI primitives (dialog, dropdown-menu, label, select, tabs, toast, slot)
- Add lucide-react for icons
- Create components.json for shadcn/ui configuration
- Create lib/utils.ts with cn(), formatCurrency(), formatDate(), formatTime()
- Create Button component with variants (default, destructive, outline, secondary, ghost, link, accent)
- Create Input component with focus ring styling
- Create Card components (Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 06:26:25 +00:00
Ivan
a7284925e6 feat(auth): add NextAuth.js with credentials provider
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 06:24:07 +00:00