Commit Graph

8 Commits

Author SHA1 Message Date
Claude
a1d2e13bc9 revert: Remove debugging infrastructure while keeping bug fixes
Removed:
- ErrorBoundary component and all error boundary wrapping
- Debug console.log statements from useReasoningTranslation
- Debug useEffect in DashboardPage
- Dev mode Dockerfile (Dockerfile.kubernetes.dev)
- Dev mode Tilt configuration
- Enhanced vite watcher config (depth, awaitWriteFinish, HMR overlay)

Kept actual bug fixes:
- String() coercion in translation functions
- useMemo/useCallback for formatters
- Null guards in components
- Basic vite ignored patterns (node_modules, dist, .git)
- Conditional rendering in DashboardPage
2025-11-07 21:23:06 +00:00
Claude
54ceaac0e4 fix: Prevent Vite file watcher from crashing in Kubernetes
Fixed the crash loop issue caused by Vite trying to watch too many
files (including node_modules) in Kubernetes environment.

Problem:
- Vite dev server was starting successfully
- But then container would crash with "too many open files"
- This caused infinite restart loop (CrashLoopBackOff)
- Error: "failed to create fsnotify watcher: too many open files"

Root Cause:
- Vite's file watcher was monitoring ALL files including node_modules
- In Kubernetes, this exceeded inotify limits
- Each restart would hit the same limit

Solution:
- Added 'ignored' patterns to vite.config.ts server.watch
- Excluded: node_modules, dist, .git, coverage, .cache
- Vite will only watch actual source files in src/
- Dramatically reduces number of watched files

Changes:
- frontend/vite.config.ts: Added server.watch.ignored array

Benefits:
- Container stays running without crashes
- Faster hot reload (fewer files to watch)
- Lower resource usage
- Dev server remains stable in Kubernetes

Testing:
- Tilt will auto-rebuild container with new config
- Container should start and stay running
- Vite dev server will be accessible
- Hot reload will still work for src/ files
2025-11-07 21:08:52 +00:00
Urtzi Alfaro
07c33fa578 Improve the frontend and repository layer 2025-10-23 07:44:54 +02:00
Urtzi Alfaro
b2c988b416 Add base kubernetes support 3 2025-09-27 14:51:06 +02:00
Urtzi Alfaro
222f945466 Add base kubernetes support 2 2025-09-27 12:10:43 +02:00
Urtzi Alfaro
63a3f9c77a Add base kubernetes support 2025-09-27 11:18:13 +02:00
Urtzi Alfaro
069954981a Start integrating the onboarding flow with backend 6 2025-09-05 17:49:48 +02:00
Urtzi Alfaro
0fd273cfce ADD new frontend 2025-08-28 10:41:04 +02:00