Commit graph

5 commits

Author SHA1 Message Date
Randall Stillwell
02c83fb52f Add simple camera test component for debugging
🔬 Camera Debug Test:
- Create minimal camera component to isolate UI issues
- Always shows video element (no conditional rendering)
- Detailed status and error reporting
- Shows video properties and ready state
- Tests basic camera stream assignment and playback

This will help determine if the issue is:
 Video element not rendering at all
 Stream not being assigned properly
 CSS/styling hiding the video
 Video element exists but shows black screen
2025-07-22 09:17:00 -05:00
Randall Stillwell
331911cd2b Add debug component to troubleshoot scanner issues
🔧 Debug Component:
- Add DebugInfo component to Scanner page
- Tests camera support and permissions
- Tests API connectivity and token validation
- Shows detailed error information
- Helps diagnose both collection API and camera issues

This will help identify:
 Why collections API fails in browser but works in curl
 Why camera UI doesn't appear after starting camera
 Token/authentication issues
 Browser permissions and support
2025-07-22 08:27:11 -05:00
Randall Stillwell
e9b2da09a5 Implement complete card scanning and collection flow - ready for local testing 2025-07-22 08:01:20 -05:00
Randall Stillwell
dc95d0d76d Implement complete user authentication and admin panel system
 Features Added:
- User registration and login with JWT authentication
- Role-based access control (user/admin)
- Comprehensive admin panel with user management
- Password hashing with bcrypt
- Session management and token storage
- Protected routes and public routes
- Modern login/register forms with validation

🗄️ Database Schema:
- Users table with profile information
- Roles and permissions system
- User-role junction tables
- Session management tables
- Database triggers and indexes

🎨 UI/UX Improvements:
- Updated navigation with user menu
- Admin badge and access controls
- Responsive authentication forms
- Loading states and error handling
- Role-based UI elements

🔧 API Endpoints:
- /api/auth/login - User authentication
- /api/auth/register - User registration
- /api/admin/users - User management (admin only)
- /api/setup-auth - Database schema setup

🚀 Admin Panel Features:
- User listing with search and pagination
- Role assignment (user/admin)
- User activation/deactivation
- System dashboard with stats
- Card management placeholder
- Real-time user management
2025-07-21 21:06:38 -05:00
Randall Stillwell
6b81ed38b0 🚀 TCG Vault - Complete All-Vercel Setup
 Features:
- Camera OCR card scanning with Tesseract.js
- Beautiful glowing card effects and animations
- Intelligent card matching and recognition
- Mobile-responsive design with Tailwind CSS

🏗️ Architecture:
- Frontend: React TypeScript application
- Backend: Vercel Functions (replacing FastAPI)
- Database: JSON file with exported card data
- Deployment: Single Vercel project

📁 Structure:
- api/ - Vercel Functions backend endpoints
- src/ - React frontend components and logic
- src/data/cards.json - Card database (12 cards)
- vercel.json - Optimized Vercel configuration

💰 Cost: /bin/zsh additional (uses existing Vercel Pro)
🚀 Ready for immediate Vercel deployment
2025-07-21 13:53:06 -05:00