BREAKING CHANGES: - Refactored monolithic manage.astro (7,623 lines) into modular architecture - Original file backed up as manage-old.astro NEW ARCHITECTURE: ✅ 5 Utility Libraries: - event-management.ts: Event data operations & formatting - ticket-management.ts: Ticket CRUD operations & sales data - seating-management.ts: Seating map management & layout generation - sales-analytics.ts: Sales metrics, reporting & data export - marketing-kit.ts: Marketing asset generation & social media ✅ 5 Shared Components: - TicketTypeModal.tsx: Reusable ticket type creation/editing - SeatingMapModal.tsx: Advanced seating map editor with drag-and-drop - EmbedCodeModal.tsx: Widget embedding with customization - OrdersTable.tsx: Comprehensive orders table with sorting/pagination - AttendeesTable.tsx: Attendee management with export capabilities ✅ 11 Tab Components: - TicketsTab.tsx: Ticket management with card/list views - VenueTab.tsx: Seating map management & venue configuration - OrdersTab.tsx: Sales data & order management - AttendeesTab.tsx: Attendee check-in & management - PresaleTab.tsx: Presale code generation & tracking - DiscountTab.tsx: Discount code management - AddonsTab.tsx: Add-on product management - PrintedTab.tsx: Printed ticket barcode management - SettingsTab.tsx: Event configuration & custom fields - MarketingTab.tsx: Marketing kit with social media templates - PromotionsTab.tsx: Campaign & promotion management ✅ 4 Infrastructure Components: - TabNavigation.tsx: Responsive tab navigation system - EventManagement.tsx: Main orchestration component - EventHeader.astro: Event information header - QuickStats.astro: Statistics dashboard BENEFITS: - 98.7% reduction in main file size (7,623 → ~100 lines) - Dramatic improvement in maintainability and team collaboration - Component-level testing now possible - Reusable components across multiple features - Lazy loading support for better performance - Full TypeScript support with proper interfaces - Separation of concerns: business logic separated from UI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "black-canyon-tickets",
|
|
"type": "module",
|
|
"version": "1.0.0",
|
|
"description": "Elegant ticketing for mountain-town events",
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"start": "astro dev",
|
|
"build": "astro check && astro build",
|
|
"preview": "astro preview",
|
|
"astro": "astro",
|
|
"typecheck": "astro check"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/check": "^0.9.4",
|
|
"@astrojs/node": "^9.3.0",
|
|
"@astrojs/react": "^4.3.0",
|
|
"@astrojs/tailwind": "^6.0.2",
|
|
"@sentry/astro": "^9.35.0",
|
|
"@sentry/node": "^9.35.0",
|
|
"@supabase/supabase-js": "^2.50.3",
|
|
"@tailwindcss/vite": "^4.1.11",
|
|
"@types/bcrypt": "^5.0.2",
|
|
"@types/react": "^19.1.8",
|
|
"@types/react-dom": "^19.1.6",
|
|
"astro": "^5.11.0",
|
|
"bcrypt": "^6.0.0",
|
|
"cheerio": "^1.1.0",
|
|
"dotenv": "^17.1.0",
|
|
"node-cron": "^4.2.0",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^19.1.0",
|
|
"react-dom": "^19.1.0",
|
|
"react-easy-crop": "^5.4.2",
|
|
"resend": "^4.6.0",
|
|
"stripe": "^18.3.0",
|
|
"tailwindcss": "^4.1.11",
|
|
"uuid": "^11.1.0",
|
|
"winston": "^3.17.0",
|
|
"zod": "^3.25.75"
|
|
},
|
|
"devDependencies": {
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/uuid": "^10.0.0",
|
|
"typescript": "^5.8.3"
|
|
}
|
|
}
|