mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
1.4 KiB
1.4 KiB
Trials Feature Checklist
✅ Already Implemented
- 7-day trial activation -
set_trialmethod setsstatus: :trialandactive_until: 7.days.from_now - Welcome email - Sent immediately after registration
- Scheduled emails - Feature exploration (day 2), trial expires soon (day 5), trial expired (day 7)
- Trial status enum -
{ inactive: 0, active: 1, trial: 3 } - Navbar Trial Display - Show number of days left in trial at subscribe button
- Account Deletion Cleanup - User deletes account during trial, cleanup scheduled emails
- Worker to not send emails if user is deleted
❌ Missing/TODO Items
Core Requirements
- Specs - Add specs for all implemented features
- User model trial callbacks and methods
- Trial webhook job with JWT encoding
- Mailer sending job for all email types
- JWT encoding service
Manager (separate application)
- Manager Webhook - Create user in Manager service after registration
- Manager callback - Manager should daily check user statuses and once trial is expired, update user status to inactive in Dawarich
- Trial Credit - Should trial time be credited to first paid month?
- Yes, Manager after payment adds subscription duration to user's active_until
- User Reactivation - Handle user returning after trial expired