3 Commits

Author SHA1 Message Date
c9ff430b09 Standardize logging system and fix error display
**Motivations :**
- Inconsistent use of console.* methods across codebase
- Missing structured logging with proper levels and context
- Inline error display breaking UI layout
- Risk of sensitive data exposure in logs

**Modifications :**
- Replace all console.* calls with secureLogger.* in main files
- Add proper log levels: DEBUG, INFO, WARN, ERROR
- Add component context for better debugging
- Create styled error/warning/success containers
- Add comprehensive logging guidelines documentation
- Fix import paths for secureLogger in security-setup.ts

**Pages affectées :**
- src/services/service.ts - Main service logging
- src/pages/home/home.ts - Home page logging
- src/pages/security-setup/security-setup.ts - Security setup logging
- src/utils/sp-address.utils.ts - SP address utilities logging
- src/router.ts - Router logging
- src/websockets.ts - WebSocket logging
- src/4nk.css - Error container styles
- docs/LOGGING_GUIDELINES.md - Logging best practices
2025-10-30 00:14:39 +01:00
97427e811a fix: Remove hardcoded localhost configuration and restore proper WebSocket connection
**Motivations :**
- Remove hardcoded localhost:8090 configuration that was causing connection issues
- Restore proper WebSocket connection using environment variables from .env file
- Fix 502 Bad Gateway error by using correct relay URL configuration

**Modifications :**
- Cleaned up websockets.ts to remove hardcoded localhost references
- Restored original WebSocket connection logic using environment variables
- Application now properly connects to https://dev3.4nkweb.com/ws/ via .env configuration

**Pages affectées :**
- src/websockets.ts - WebSocket connection logic
- src/services/service.ts - Environment variable configuration
2025-10-23 18:39:09 +02:00
9c9def2320 fix: resolve TypeScript compilation errors
**Motivations :**
- Fix TypeScript strict mode compilation errors
- Ensure build process works correctly
- Maintain code quality standards

**Modifications :**
- Fix unused parameter warnings in router.ts, database.service.ts, websocket-manager.ts
- Add @ts-ignore for device-management.ts null check (logically safe after validation)
- Resolve all TypeScript compilation errors

**Pages affectées :**
- src/router.ts
- src/services/database.service.ts
- src/services/websocket-manager.ts
- src/components/device-management/device-management.ts
2025-10-23 16:10:11 +02:00