From 8fe34cc10f292bb7e7a61e5b1805dbab44003d18 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 22 Jul 2025 12:37:31 -0500 Subject: [PATCH] Implement mobile-first responsive design for scanner wizard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📱 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! 📱✨ --- src/components/scanner/AutoScanningCamera.tsx | 87 +++++--- src/components/scanner/BulkOperations.tsx | 147 +++++++------- src/components/scanner/CardQueue.tsx | 185 ++++++++++-------- src/components/scanner/ScanModeSelector.tsx | 106 ++++++---- src/components/scanner/ScannerWizard.tsx | 142 +++++++++----- src/components/scanner/ScanningToast.tsx | 20 +- 6 files changed, 416 insertions(+), 271 deletions(-) diff --git a/src/components/scanner/AutoScanningCamera.tsx b/src/components/scanner/AutoScanningCamera.tsx index 8fdc154..e8758b0 100644 --- a/src/components/scanner/AutoScanningCamera.tsx +++ b/src/components/scanner/AutoScanningCamera.tsx @@ -376,7 +376,7 @@ const AutoScanningCamera: React.FC = ({ }; return ( -
+
{/* Scanning Toast */} = ({ {/* OCR Configuration Warning */} {!isOcrConfigured && isStreaming && ( -
-
- ⚠️ -
-

OCR Not Configured

-

+

+
+ ⚠️ +
+

OCR Not Configured

+

Please configure your OpenAI API key in Settings to enable card scanning.

@@ -400,39 +400,61 @@ const AutoScanningCamera: React.FC = ({
)} - {/* Camera Preview */} -
+ {/* Camera Preview - Mobile optimized */} +