Skip to content

Add habit checklist feature#6

Merged
thomasluizon merged 3 commits into
mainfrom
feature/habit-checklist
Mar 21, 2026
Merged

Add habit checklist feature#6
thomasluizon merged 3 commits into
mainfrom
feature/habit-checklist

Conversation

@thomasluizon

Copy link
Copy Markdown
Owner

Summary

  • Add first-class checklist system for habits (e.g., shopping lists, packing lists)
  • ChecklistItem value object stored as jsonb on Habit entity
  • Dedicated PUT /api/habits/{id}/checklist endpoint for lightweight auto-save
  • Auto-reset checklist items when logging recurring habits (uncheck all for next occurrence)
  • AI chat integration: Claude can create habits with checklists and understands when to use checklists vs sub-habits
  • All query DTOs (schedule, detail, list) include checklist data

Test plan

  • Create habit with checklist items -> verify items persist
  • Log recurring habit with checked items -> verify items reset to unchecked
  • AI chat: "Create a supermarket list with milk, eggs, bread" -> verify checklist created
  • dotnet test passes (282 unit tests)

🤖 Generated with Claude Code

thomasluizon and others added 3 commits March 20, 2026 19:31
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>
@thomasluizon
thomasluizon merged commit a8a50b7 into main Mar 21, 2026
1 check passed
@thomasluizon
thomasluizon deleted the feature/habit-checklist branch March 21, 2026 00:42
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.

1 participant