Add habit checklist feature#6
Merged
Merged
Conversation
Detect day-of-week and time-of-day patterns in bad habit slip-up logs and send proactive AI-generated motivational push + bell notifications before predicted slip windows. Configurable per habit via slipAlertEnabled toggle. AI chat defaults slipAlertEnabled to true when creating bad habits. - Add SlipAlertEnabled property to Habit entity (Create/Update) - Add SentSlipAlert idempotency entity (1 alert/habit/week) - Add SlipPatternDetectionService (60-day lookback, day+time patterns) - Add SlipAlertSchedulerService (background, every 5 min) - Add GeminiSlipAlertMessageService for AI-generated motivational messages - Wire through API layer (commands, controller DTOs, query response) - Update AI prompt with slipAlertEnabled schema and bad habit example - Add EF migration for new column and table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add ChecklistItem value object (Text, IsChecked) stored as jsonb
- Add ChecklistItems property to Habit entity with Create/Update support
- Add dedicated PUT /api/habits/{id}/checklist endpoint for auto-save
- Reset checklist items automatically when logging recurring habits
- Include checklist data in all query DTOs (schedule, detail, list)
- Add AI chat integration: checklistItems in actions + system prompt rules
- Add EF migration for ChecklistItems column
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ChecklistItemvalue object stored as jsonb on Habit entityPUT /api/habits/{id}/checklistendpoint for lightweight auto-saveTest plan
dotnet testpasses (282 unit tests)🤖 Generated with Claude Code