bbb2d34d90
- Added specific error type differentiation: * Network errors → 'Anslutning misslyckades' * Validation (400) → 'Ogiltiga ändringar' * Auth (401/403) → 'Saknar behörighet' * Server (500+) → 'Serverfel' * Generic fallback messages - Implemented retry tracking: * retryCount state for monitoring attempts * lastSavePayload storage for potential retry (future feature) * Console logging with context for debugging - Enhanced error handling: * getErrorMessage() function for error classification * Comprehensive error logging with workout/exercise context * Draft preserved on all error types (no data loss) - Improved UI/UX: * Error banner with specific, actionable messages * 'Försök igen' button with retry tracking * Sync status feedback (idle/saving/saved/error) * Success checkmark animation (2s duration) * Spinner animation during save - CSS Enhancements: * @keyframes spin for loading spinner * @keyframes slideInCheckmark for success feedback * Mobile-responsive error banner (flex column on <480px) * Smooth animations for state transitions Tests: npm run build ✓ (no syntax errors) Files modified: - frontend/src/pages/WorkoutEditPage.jsx - frontend/src/pages/WorkoutEditPage.css