Skip to content

feat: add AI intelligence layer (coach, nudges, scheduling, NL routine, overload detection)#1430

Open
weiwei-gitch wants to merge 1 commit into
aryandas2911:mainfrom
weiwei-gitch:feature/ai-intelligence-layer
Open

feat: add AI intelligence layer (coach, nudges, scheduling, NL routine, overload detection)#1430
weiwei-gitch wants to merge 1 commit into
aryandas2911:mainfrom
weiwei-gitch:feature/ai-intelligence-layer

Conversation

@weiwei-gitch

Copy link
Copy Markdown

Summary

Closes #1178

This PR implements the AI intelligence layer for DailyForge as described in the issue.

Changes

Backend

  • backend/controllers/aiController.js — 5 new AI endpoints
  • backend/routes/aiRoutes.js — AI routes protected by authMiddleware
  • backend/src/server.js — registered /api/ai router

Frontend

  • frontend/src/context/AISettingsContext.jsx — global AI settings with Pro flag, persisted to localStorage
  • frontend/src/components/AI/aiCoachPanel.jsx — weekly AI coach summary on Analytics page
  • frontend/src/components/AI/overloadWarningBanner.jsx — burnout/overload warning on Dashboard
  • frontend/src/components/AI/adaptiveNudge.jsx — time-aware nudge on Dashboard
  • frontend/src/components/AI/nlRoutineInput.jsx — natural language routine generator in Routine Builder
  • frontend/src/components/AI/smartSchedulingSuggestions.jsx — peak productivity time slots in Routine Builder

Acceptance Criteria Checklist

  • AI coach summary generated on-demand from Analytics page
  • Scheduling suggestions in Routine Builder when adding a task
  • Nudge system replaces static reminders
  • Natural language input in Routine Builder
  • Overload warning in Dashboard when weekly load exceeds threshold
  • All AI features toggleable in Profile settings
  • API costs gated behind Pro flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add smart AI-powered features to enhance weekly routine intelligence

1 participant