Skip to content

[FEAT] Add weekly email digest with AI productivity summary #937

Closed as not planned

Description

@Priyanshu-byte-coder

Problem Statement

Users who don't open DevTrack daily miss their weekly AI productivity summary. A weekly email digest would increase retention and keep users engaged with their coding habits without requiring them to visit the app.

Proposed Solution

  • Add opt-in setting in user settings: "Weekly email digest"
  • Every Monday at 9am UTC, generate and send a digest to opted-in users
  • Email content: AI summary, current streak, top repo, weekly trend badge
  • Use Resend or Nodemailer + a free SMTP provider

Alternatives Considered

  • Push notifications (PWA): Works but less reliable for once-a-week touchpoints
  • In-app only: Already exists, but doesn't help inactive users

Acceptance Criteria

  • User can opt in/out of weekly digest in Settings
  • Cron job or Vercel Cron triggers every Monday
  • Email renders properly in Gmail, Outlook, Apple Mail
  • Unsubscribe link in every email

Additional Context

Vercel Cron can trigger a /api/cron/weekly-digest route. Resend has a free tier (3000 emails/month) suitable for early-stage.

Activity

  1. added
    enhancement
    level:advanced
    type:feature
    needs-triage
    on May 24, 2026
  2. Subhra-Nandi commented on May 25, 2026

    @Subhra-Nandi
    Contributor

    Hi @Priyanshu-byte-coder , please assign this to me.

  3. tmdeveloper007 commented on May 25, 2026

    @tmdeveloper007

    Proposed Implementation Plan

    Here is a detailed, technically solid, step-by-step approach to solve this issue:

    1. Add a weekly_digest_enabled boolean column to the users table via a Supabase migration, and add a toggle switch in the User Settings profile dashboard UI.
    2. Create a scheduled serverless cron endpoint /api/cron/weekly-digest using Vercel Crons or a GitHub Action scheduled trigger running every Monday at 9:00 AM UTC.
    3. In the handler, verify the cron request secret, query weekly stats for opted-in users, call the Groq/AI utility to compile a concise productivity summary sentence, assemble a beautiful HTML email template using react-email, and dispatch it via the Resend API (with a functional unsubscribe link).

    I would love to work on this issue and implement the proposed solution. Could you please assign this issue to me? Thank you!

  4. Krithika1627 commented on May 26, 2026

    @Krithika1627
    Contributor

    Hi, I’d like to work on this issue under GSSoC 2026.

    My approach would be:

    • First, I’ll review the current user settings/preferences flow and add an opt-in toggle for weekly email digests so users can easily enable or disable the feature.
    • Then I’ll implement a scheduled digest flow using a cron-based endpoint (such as a Vercel Cron route) that runs every Monday and fetches the required weekly user stats like streaks, top repositories, and AI productivity summaries.
    • I’ll integrate an email provider such as Resend or Nodemailer and build a clean email template that renders properly across common email clients like Gmail, Outlook, and Apple Mail.
    • I’ll also add unsubscribe support directly inside the email to ensure users can opt out easily at any time.
    • Finally, I’ll test the full flow carefully, including opt-in/opt-out behavior, cron execution, email formatting, and failure handling to ensure weekly digests are generated and delivered reliably without affecting existing app functionality.
  5. added 7 commits that reference this issue on May 30, 2026
    1d7fce6
    99d9efd
    4a16dfa
    f016e89
    1e7e21f
    f8d248c
    372e9a5
  6. added and removed
    needs-triage
    on Jun 9, 2026
  7. added a commit that references this issue on Jun 13, 2026
    2a95055
  8. S0412-2007 commented on Jun 13, 2026

    @S0412-2007

    Hi @Priyanshu-byte-coder 👋

    I'd love to contribute to this feature! I've gone through the issue carefully and here's my implementation plan:

    Approach:

    • Add a weeklyDigest boolean field to user settings schema
    • Set up a cron job (node-cron) to trigger every Monday at 9am UTC
    • Use Resend for email delivery (free tier is sufficient)
    • Pull data: AI summary, current streak, top repo, weekly trend badge via existing APIs
    • Design a clean HTML email template

    If the current assignee becomes inactive or needs help, I'm ready to jump in. Happy to start on a draft PR for review!

  9. rudrakshtank commented on Jun 19, 2026

    @rudrakshtank
    Contributor

    Hi mentor I am a Gssoc contributor please can you assign me this issue so I can work on it.

  10. github-actions commented on Jun 19, 2026

    @github-actions

    @rudrakshtank This issue is already taken by @Subhra-Nandi. Check other open issues!

  11. Priyanshu-byte-coder commented on Jul 29, 2026

    @Priyanshu-byte-coder
    OwnerAuthor

    Closing as a duplicate of #171 ("Add weekly email digest via Resend"), which covers the same feature and was filed first. Let's track the weekly email digest work there.

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

Metadata

Metadata

Assignees

Labels

enhancementlevel:advancedtype:feature

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions