Commit Graph

3 Commits

Author SHA1 Message Date
andupetcu
0a2e28b5ee Implement Phase 7 Performance Optimization and fix tracking system
Phase 7 Implementation:
- Add lazy loading for AI Assistant and Insights pages
- Create LoadingFallback component with skeleton screens (page, card, list, chart, chat variants)
- Create OptimizedImage component with Next.js Image optimization
- Create PerformanceMonitor component with web-vitals v5 integration
- Add performance monitoring library tracking Core Web Vitals (CLS, INP, FCP, LCP, TTFB)
- Install web-vitals v5.1.0 dependency
- Extract AI chat interface and insights dashboard to lazy-loaded components

Tracking System Fixes:
- Fix API data transformation between frontend (timestamp/data) and backend (startedAt/metadata)
- Update createActivity, getActivities, and getActivity to properly transform data structures
- Fix diaper, feeding, and sleep tracking pages to work with backend API

Homepage Improvements:
- Connect Today's Summary to backend daily summary API
- Load real-time data for feeding count, sleep hours, and diaper count
- Add loading states and empty states for better UX
- Format sleep duration as "Xh Ym" for better readability
- Display child name in summary section

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-01 09:40:21 +03:00
andupetcu
ac440ddb85 Implement comprehensive tracking system and analytics dashboard
- Add Feeding Tracker with 3 feeding types (breast, bottle, solid)
  - Built-in timer for breastfeeding sessions
  - Recent feeding history with delete functionality
  - Form validation and child selection

- Add Sleep Tracker with duration tracking
  - Start/end time inputs with "Now" quick buttons
  - Sleep quality and location tracking
  - Ongoing sleep support with real-time duration
  - Recent sleep activities list

- Add Diaper Tracker with comprehensive monitoring
  - 4 diaper types (wet, dirty, both, dry)
  - Multiple condition selectors
  - Rash monitoring with severity levels
  - Color-coded visual indicators

- Add Insights/Analytics Dashboard
  - Summary statistics cards (feedings, sleep, diapers)
  - Interactive charts using Recharts (bar, line, pie)
  - Date range filtering (7/30/90 days)
  - Activity timeline and distribution
  - Recent activities list

- Add Settings page with backend integration
  - Profile update functionality with API integration
  - Form validation and error handling
  - Loading states and success notifications
  - Notification and appearance preferences

- Add Users API service for profile management

All pages include:
- Full CRUD operations with backend APIs
- Loading states and error handling
- Form validation and user feedback
- Framer Motion animations
- Material-UI design system
- Responsive layouts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 22:36:28 +03:00
andupetcu
37227369d3 Add Phase 2 & 3: Web frontend with authentication and tracking features
- Initialize Next.js 14 web application with Material UI and TypeScript
- Implement authentication (login/register) with device fingerprint
- Create mobile-first responsive layout with app shell pattern
- Add tracking pages for feeding, sleep, and diaper changes
- Implement activity history with filtering
- Configure backend CORS for web frontend (port 3030)
- Update backend port to 3020, frontend to 3030
- Fix API response handling for auth endpoints

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 21:21:22 +03:00