Commit graph

246 commits

Author SHA1 Message Date
Randall Stillwell
e75a4a6649 Major redesign: Enhanced card display with particle effects, improved filters, and search functionality
- Redesigned card display with 2.5:3.5 aspect ratio and image-only view
- Added infinite scroll to replace pagination
- Implemented authentic card back placeholders for MTG, Pokemon, and Lorcana
- Added rarity-based particle effects with tiered intensity (mythic/enchanted/rare/uncommon)
- Enhanced hover details panel with structured card information
- Fixed search functionality with debouncing and Enter key support
- Improved filter system with working TCG, rarity, set, and price filters
- Added favorite system for cards in both hover and detail views
- Updated card detail page with comprehensive metadata and actions
- Fixed API filtering with proper Vercel Postgres implementation
- Added particle animations and rarity glow effects
- Improved overall UX with better visual hierarchy and interactions
2025-07-23 21:26:54 -05:00
Randall Stillwell
c218dd53ac Add simple API test without dependencies 2025-07-23 09:42:30 -05:00
Randall Stillwell
dc419f681b Add database connection test API 2025-07-23 09:41:38 -05:00
Randall Stillwell
373f103810 Fix bcryptjs imports to use dynamic imports 2025-07-23 09:40:50 -05:00
Randall Stillwell
20c2439ff4 Add database setup API to create tables 2025-07-23 09:39:22 -05:00
Randall Stillwell
83776bc6be Add authentication system and admin API endpoints 2025-07-23 09:38:16 -05:00
Randall Stillwell
2f94044832 Remove broken migration script that references deleted files 2025-07-23 09:34:37 -05:00
Randall Stillwell
f7e65bc21d Fix TypeScript moduleResolution for build compatibility 2025-07-23 09:33:36 -05:00
Randall Stillwell
7be41b4490 Clean slate: Remove React traces and create pure Next.js setup 2025-07-23 09:32:31 -05:00
Randall Stillwell
2d4c4963b8 Simplify Vercel config to resolve API routing issues 2025-07-23 09:22:14 -05:00
Randall Stillwell
b4e011e8fa Add minimal health check API 2025-07-23 09:21:29 -05:00
Randall Stillwell
b5e547df7b Force fresh deployment to resolve configuration mismatch 2025-07-23 09:19:11 -05:00
Randall Stillwell
a528676f37 Add require() postgres test and update Vercel config 2025-07-23 08:53:08 -05:00
Randall Stillwell
dda057c1d6 Add basic test API without external dependencies 2025-07-23 08:51:59 -05:00
Randall Stillwell
07f8e49924 Add dynamic postgres import test and clean npm install 2025-07-23 08:50:51 -05:00
Randall Stillwell
339fb6f910 Update @vercel/postgres to latest version and add test APIs 2025-07-23 08:49:05 -05:00
Randall Stillwell
41a7eeef12 Fix API import paths and convert to Next.js Pages API format 2025-07-23 08:40:30 -05:00
Randall Stillwell
df48fd784d Add simple Next.js API route 2025-07-23 08:32:03 -05:00
Randall Stillwell
9a86a5a834 Remove conflicting React app files to ensure Next.js deployment 2025-07-23 08:31:15 -05:00
Randall Stillwell
26dd9bea50 Add explicit Next.js framework configuration to vercel.json 2025-07-23 08:30:44 -05:00
Randall Stillwell
4f9575dc49 Force rebuild by removing .next directory 2025-07-23 08:30:03 -05:00
Randall Stillwell
3c9388a56e Update Vercel config for Next.js app 2025-07-23 08:29:39 -05:00
Randall Stillwell
5737c6e1f0 Add simple test API 2025-07-23 08:29:09 -05:00
Randall Stillwell
e49ada09ba Convert admin API to Next.js Pages API format 2025-07-23 08:28:42 -05:00
Randall Stillwell
2cc332e0a0 Move API routes to pages/api/ for proper Next.js structure 2025-07-23 08:27:14 -05:00
Randall Stillwell
873f4592c2 Convert from React to Next.js for proper API route support 2025-07-23 08:25:58 -05:00
Randall Stillwell
09bb380da6 Add simple test API to isolate the issue 2025-07-23 08:22:39 -05:00
Randall Stillwell
16228f8fa0 Add test endpoint and better error handling for database issues 2025-07-23 08:22:16 -05:00
Randall Stillwell
df5b3bfc44 Temporarily bypass auth for testing admin API 2025-07-23 08:21:46 -05:00
Randall Stillwell
8d7eb67a97 Fix auth imports and add proper admin access control - create auth-utils.js with verifyToken function 2025-07-23 07:05:14 -05:00
Randall Stillwell
49cfa31253 Consolidate API functions to stay within Vercel Hobby plan limits - reduce from 12+ to 8 functions 2025-07-23 06:57:22 -05:00
Randall Stillwell
7057417a89 Implement database-based card loading system - add card loader API, database search, and admin interface 2025-07-23 06:50:44 -05:00
Randall Stillwell
ee67b05e28 Improve Lorcana card data parsing - add comprehensive field mapping and debugging 2025-07-23 06:40:02 -05:00
Randall Stillwell
dbb0353def Fix Lorcana API search syntax - use correct endpoints and search parameters 2025-07-23 06:34:21 -05:00
Randall Stillwell
0a09b333c4 Fix Lorcana API endpoints based on official documentation - update to correct API URLs 2025-07-23 06:28:22 -05:00
Randall Stillwell
5aa168bd24 Add CORS proxy for Lorcana APIs and improve error handling - fix CORS issues and 500 errors 2025-07-23 06:13:49 -05:00
Randall Stillwell
d27a04e460 Fix Lorcana API integration and user-cards 500 error - add dual API support and database table checks 2025-07-22 21:54:42 -05:00
Randall Stillwell
29e935b680 Fix API connection and Lorcana API issues - update API base URL to Vercel deployment and improve Lorcana API resilience 2025-07-22 21:48:45 -05:00
Randall Stillwell
40928bbbda Add user cards API endpoints - fix Cards page error by implementing missing /api/user-cards endpoints 2025-07-22 21:43:53 -05:00
Randall Stillwell
d9ed0e911e Add card view and table view toggle to CardDatabaseBrowser - enhanced browsing experience with dual view modes 2025-07-22 20:58:49 -05:00
Randall Stillwell
0c65919b02 Fix CardDatabaseBrowser issues - prevent drawer closing, add event handling, and improve debugging 2025-07-22 20:31:36 -05:00
Randall Stillwell
d9e7d856f0 Add responsive layout with side navigation for desktop and bottom navigation for mobile 2025-07-22 20:24:02 -05:00
Randall Stillwell
e29728e2be Add Disney Lorcana support via Lorcast API - Complete integration with search, browse, and database population 2025-07-22 20:17:47 -05:00
Randall Stillwell
2f215da3ca Fix TypeScript errors in card data sources - change null to undefined for price fields 2025-07-22 20:07:28 -05:00
Randall Stillwell
d21394d579 Add comprehensive card data sources integration with external APIs and database browser component 2025-07-22 20:00:10 -05:00
Randall Stillwell
4e71e29922 Complete CRUD implementation for Cards, Collections, and Decks with comprehensive data modeling and API services 2025-07-22 19:51:38 -05:00
Randall Stillwell
708c68fb07 Update bottom navigation with raised scanner button
- Change Dashboard to Home in navigation
- Add raised purple scanner button in center
- Implement new nav layout: Home | Cards | Scanner | Collections | More
- Scanner button features elevated design with purple gradient
- Add proper active/inactive states for all nav items
- Remove unused navigationItems array to fix linting warning
- Perfect spacing with justify-around layout
2025-07-22 19:08:04 -05:00
Randall Stillwell
0a03f0ed14 🚀 Convert to mobile-first PWA with purple theme
- Add PWA configuration (manifest.json, service worker)
- Implement light/dark theme system with purple accents
- Replace desktop navbar with mobile-first bottom navigation
- Redesign auth forms with mobile-optimized UI
- Update Dashboard with gradient cards and touch-friendly actions
- Add safe area support for iOS devices
- Implement theme context with system preference detection
- Optimize touch targets and mobile interactions
- Add offline functionality through service worker
2025-07-22 18:52:39 -05:00
Randall Stillwell
8fe34cc10f Implement mobile-first responsive design for scanner wizard
📱 Mobile-First Design Overhaul:
- Complete responsive redesign prioritizing mobile experience
- Touch-friendly interface with larger tap targets (48px minimum)
- Optimized layouts that work seamlessly from mobile to desktop

🎨 ScanModeSelector Mobile Updates:
- Full-screen mobile layout with proper spacing
- Touch-friendly mode selection cards with active states
- Responsive grid (1 column mobile, 2 columns tablet+)
- Enhanced pro tips section with better mobile typography

📷 AutoScanningCamera Mobile Optimizations:
- Mobile-optimized camera preview with proper aspect ratios
- Touch-friendly manual scan button (full-width on mobile)
- Better positioned queue counter and scanning indicators
- Mobile-specific camera controls overlay with live indicators
- Improved error messaging and OCR configuration warnings

🗂️ CardQueue Mobile Experience:
- Responsive card grid (1 col mobile → 4 cols desktop)
- Larger touch targets for selection and removal
- Mobile-optimized card thumbnails with better info layout
- Touch-friendly bulk selection controls
- Improved empty state with better mobile spacing

 BulkOperations Mobile Interface:
- Responsive 3-column layout (stacked on mobile)
- Touch-optimized form controls and buttons
- Better mobile typography and spacing
- Enhanced tag suggestions with touch-friendly buttons
- Mobile-optimized creation workflows

🎯 ScanningToast Mobile Positioning:
- Full-width on mobile, centered on desktop
- Better mobile positioning (top-left-right)
- Responsive text sizing and icon scaling
- Improved progress bar visibility on mobile

🚀 Mobile UX Enhancements:
- Active states for all interactive elements
- Proper focus rings for accessibility
- Mobile-optimized border radius (rounded-xl)
- Better visual hierarchy with responsive typography
- Consistent spacing system across all components

Perfect for mobile card scanning experience! 📱
2025-07-22 12:37:31 -05:00
Randall Stillwell
e720ffdc70 Fix OCR configuration and error handling in scanner
🔧 Scanner OCR Fixes:
- AutoScanningCamera now properly initializes OCR with saved API keys
- Checks both localStorage and user preferences for OpenAI API key
- Prevents auto-scanning when OCR is not configured
- Better error messages for different failure scenarios:
  • 'OCR not configured' when no API key found
  • 'Invalid OpenAI API key' for 401 errors
  • 'API rate limit exceeded' for 429 errors
  • 'OCR service unavailable' for general failures

🎯 User Experience Improvements:
- Yellow warning banner when OCR not configured
- Manual scan button disabled until OCR configured
- Clear instructions to configure API key in Settings
- Fallback from OpenAI to Ollama if available
- Extended error message display time (4 seconds)

 This should resolve the 'Scan failed, try again' issue
Users now get clear guidance on what to do when OCR isn't working
2025-07-22 12:19:08 -05:00