Phase 5: Weekly digest email (new this week + closing in 7 days)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
調査の方向性
Read PRD §8.12 and inspect the existing link-health cron, resource fields, profiles schema, and profile page. Then use the listed files—src/emails/weekly-digest.tsx, src/app/api/cron/weekly-digest/route.ts, src/lib/email.ts, and vercel.json—as entry points. Done means opted-in users receive the two requested sections with unsubscribe and preference controls on the scheduled weekly run.
索引モデルが issue の本文から書いたものです。
説明
Description
Implement weekly digest email as specified in PRD §8.12. This is a P2 requirement for Phase 5.
Acceptance Criteria (from PRD §8.12)
- "New this week" + "closing in 7 days" — sent via Resend or Mailvex
Current State
- No email infrastructure exists
- Link-health cron runs weekly (Monday 03:00 UTC)
- Resources have
createdAtanddeadlinefields - Supabase Auth has user emails
Implementation Plan
- Choose email provider: Resend (recommended) or Mailvex (dogfooding)
- Create email template:
- Section 1: New this week (resources created in last 7 days)
- Section 2: Closing in 7 days (deadlines within 7 days)
- Unsubscribe link
- Build email generation logic:
- Query new resources:
createdAt > now() - 7 days - Query closing deadlines:
deadline BETWEEN now() AND now() + 7 days - Render HTML email (React Email or MJML)
- Query new resources:
- Schedule sending:
- Vercel Cron (weekly, different day than link-health)
- Or Supabase pg_cron
- User preferences:
- Add
emailDigestboolean to profiles table (default true) - Allow unsubscribe in email and on profile page
- Add
Files to Create
src/emails/weekly-digest.tsx(new) - React Email templatesrc/app/api/cron/weekly-digest/route.ts(new) - Cron endpointsrc/lib/email.ts(new) - Email sending utility (Resend client)vercel.json- add weekly digest cron schedule
Email Template Structure
Subject: StudentStack Weekly — 3 new offers, 2 deadlines closing soon
┌─────────────────────────────────────────────┐
│ 🎓 StudentStack Weekly Digest │
├─────────────────────────────────────────────┤
│ 📅 New This Week (3) │
│ ┌─────────────────────────────────────┐ │
│ │ GitHub Copilot — Free Student Plan │ │
│ │ AI coding assistance • Free │ │
│ │ [Claim Offer] │ │
│ └─────────────────────────────────────┘ │
│ ... │
├─────────────────────────────────────────────┤
│ ⏰ Closing in 7 Days (2) │
│ ┌─────────────────────────────────────┐ │
│ │ Google Summer of Code 2026 │ │
│ │ Applications close Oct 15 │ │
│ │ [View Details] │ │
│ └─────────────────────────────────────┘ │
├─────────────────────────────────────────────┤
│ [Unsubscribe] • [Manage Preferences] │
└─────────────────────────────────────────────┘
Dependencies
resendnpm package@react-email/componentsorreact-emailfor templates- Vercel Cron or Supabase pg_cron for scheduling
Notes
- Only send to users who opted in (
emailDigest = true) - Batch send in chunks (Resend supports batch)
- Track open/click rates via Resend dashboard
- Consider: only send if there's actual new content
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 6
- 平均マージ
- 11時間 16分
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Your-Voldemort/StudentStack のほかの issue
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
Your-Voldemort/StudentStack#42 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Your-Voldemort/StudentStack#41 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Your-Voldemort/StudentStack#40 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Your-Voldemort/StudentStack#37 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 3〜5日 初心者へのやさしさ 68/100
Your-Voldemort/StudentStack#36 ·
メンテナーはふだん 1 日以内に返信
Your-Voldemort/StudentStack の issue をすべて見る
似ている issue
-
Bump Firebase JS SDK (12.19.0 → 13.0.0)対応中かも @SelaseKay が今日担当しました。 オープンNeeds Attention type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
invertase/react-native-firebase#9364 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 4 日以内に返信
-
e2e-failure ready-to-code
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
redhat-developer/rhdh-plugin-export-overlays#4261 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] 官网文档的图片挂了オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
area:cli bug triage:in-progress
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信