feat: add advanced analytics and territory management system

- Add comprehensive analytics components with export functionality
- Implement territory management with manager performance tracking
- Add seatmap components for venue layout management
- Create customer management features with modal interface
- Add advanced hooks for dashboard flags and territory data
- Implement seat selection and venue management utilities
- Add type definitions for ticketing and seatmap systems

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-08-26 09:25:10 -06:00
parent d5c3953888
commit aa81eb5adb
438 changed files with 90509 additions and 2787 deletions

View File

@@ -0,0 +1,66 @@
// Simple manual auth validation script
const puppeteer = require('puppeteer');
async function testAuth() {
console.log('🧪 Testing Bulletproof Authentication System...');
const browser = await puppeteer.launch({
headless: false,
defaultViewport: null,
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
try {
const page = await browser.newPage();
// Test local deployment
console.log('📍 Testing: http://localhost:5175');
await page.goto('http://localhost:5175', { waitUntil: 'networkidle2', timeout: 10000 });
// Check if login page loads
const title = await page.title();
console.log('📄 Page title:', title);
const h1 = await page.$eval('h1', el => el.textContent).catch(() => 'Not found');
console.log('📝 H1 text:', h1);
if (h1.includes('Sign in')) {
console.log('✅ Login page loaded successfully');
// Test quick login buttons
const adminBtn = await page.$('button:contains("Admin")');
if (adminBtn) {
console.log('✅ Quick login buttons found');
}
// Try logging in
await page.type('input[type="email"]', 'admin@example.com');
await page.type('input[type="password"]', 'password123');
await page.click('[data-testid="loginBtn"]');
// Wait for redirect
await page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 5000 });
const newUrl = page.url();
if (newUrl.includes('/dashboard') || newUrl.includes('/events')) {
console.log('✅ Login successful - redirected to:', newUrl);
} else {
console.log('❌ Login failed - still on:', newUrl);
}
} else {
console.log('❌ Login page not loading correctly');
console.log('📸 Taking screenshot...');
await page.screenshot({ path: 'auth-debug.png', fullPage: true });
}
} catch (error) {
console.error('❌ Test failed:', error.message);
} finally {
await browser.close();
}
console.log('✅ Manual auth test completed');
}
testAuth();