Files
maternal-app/maternal-web/locales/en/insights.json
Andrei 19e50a3b75
Some checks failed
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
feat: Add enhanced analytics dashboard with advanced visualizations
- Created EnhancedInsightsDashboard with multiple chart types:
  - Area charts with gradients for activity trends
  - Radar chart for weekly activity patterns
  - 24-hour heatmap visualization
  - Bubble/scatter chart for correlations
  - Time of day distribution bar chart
- Added toggle between basic and enhanced chart views
- Implemented chart export functionality (PNG/PDF)
- Fixed API endpoint URLs (circadian-rhythm, query params)
- Fixed component library conflicts (shadcn/ui → MUI)
- Added comprehensive null safety for timestamp handling
- Added alert type translations in all 5 languages
- Installed html2canvas and jspdf for export features
- Applied consistent minimum width styling to all charts

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 13:17:20 +00:00

89 lines
2.3 KiB
JSON

{
"title": "Insights & Analytics",
"subtitle": "Track patterns and get insights about your child's activities",
"filters": {
"child": "Child",
"dateRange": {
"7days": "7 Days",
"30days": "30 Days",
"3months": "3 Months"
}
},
"stats": {
"feedings": {
"title": "Feedings",
"subtitle": "Total count"
},
"sleep": {
"title": "Sleep",
"subtitle": "Average per day"
},
"diapers": {
"title": "Diapers",
"subtitle": "Total changes"
},
"topActivity": {
"title": "Top Activity",
"subtitle": "Most frequent"
}
},
"charts": {
"feedingFrequency": "Feeding Frequency",
"sleepDuration": "Sleep Duration (Hours)",
"diaperChangesByType": "Diaper Changes by Type",
"activityTimeline": "Activity Timeline",
"activityDistribution": "Activity Distribution",
"chartLabels": {
"feedings": "Feedings",
"diapers": "Diapers",
"sleepHours": "Sleep (hrs)"
}
},
"recentActivities": {
"title": "Recent Activities (Last 20)"
},
"emptyStates": {
"noChildren": {
"title": "No Children Added",
"message": "Add a child to view insights and analytics",
"action": "Add Child"
},
"noActivities": "No activities found for the selected date range. Start tracking activities to see insights!"
},
"errors": {
"loadChildren": "Failed to load children",
"loadActivities": "Failed to load activities"
},
"activityTypes": {
"feeding": "Feeding",
"sleep": "Sleep",
"diaper": "Diaper",
"growth": "Growth",
"medication": "Medication",
"medicine": "Medicine",
"temperature": "Temperature",
"milestone": "Milestone",
"activity": "Activity",
"note": "Note",
"none": "None"
},
"diaperTypes": {
"wet": "Wet",
"dirty": "Dirty",
"both": "Both",
"dry": "Dry",
"unknown": "Unknown"
},
"alertTypes": {
"feeding_concern": "Feeding Concern",
"sleep_concern": "Sleep Concern",
"diaper_concern": "Diaper Concern",
"growth_concern": "Growth Concern",
"health_concern": "Health Concern",
"milestone_delay": "Milestone Delay",
"temperature_abnormal": "Abnormal Temperature",
"dehydration_risk": "Dehydration Risk",
"nutrition_concern": "Nutrition Concern"
}
}