Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .mavis/last-run-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# GSSOC Cron Run Report

**Date**: 2026-08-05
**Repo**: ixotic27/the-leetcode-city

## PRs Created

### fix/remove-emoji-streak-notifications
- Issue: #1375 - https://github.com/Ixotic27/The-Leetcode-City/issues/1375
- PR: #1376 - https://github.com/Ixotic27/The-Leetcode-City/pull/1376

### fix/remove-emoji-achievement-notifications
- Issue: #1377 - https://github.com/Ixotic27/The-Leetcode-City/issues/1377
- PR: None -

### fix/remove-emoji-emblem-notifications
- Issue: #1378 - https://github.com/Ixotic27/The-Leetcode-City/issues/1378
- PR: None -

### fix/escape-like-wildcards-search-api
- Issue: #1379 - https://github.com/Ixotic27/The-Leetcode-City/issues/1379
- PR: None -

### fix/add-null-guard-stats-api
- Issue: #1380 - https://github.com/Ixotic27/The-Leetcode-City/issues/1380
- PR: None -

12 changes: 6 additions & 6 deletions src/lib/notification-senders/streak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { buildButton } from "../email-template";

const BASE_URL = process.env.NEXT_PUBLIC_APP_URL || "https://theleetcodecity.tech";

const MILESTONE_MESSAGES: Record<number, { emoji: string; tagline: string }> = {
7: { emoji: "&#x1F525;", tagline: "You're on fire!" },
30: { emoji: "&#x1F3C6;", tagline: "A whole month. Legendary." },
100: { emoji: "&#x1F48E;", tagline: "Triple digits. Unstoppable." },
365: { emoji: "&#x1F451;", tagline: "One full year. You're a legend." },
const MILESTONE_MESSAGES: Record<number, { badge: string; tagline: string }> = {
7: { badge: "7 DAYS", tagline: "You're on fire!" },
30: { badge: "30 DAYS", tagline: "A whole month. Legendary." },
100: { badge: "100 DAYS", tagline: "Triple digits. Unstoppable." },
365: { badge: "1 YEAR", tagline: "One full year. You're a legend." },
};

export function sendStreakMilestoneNotification(
Expand All @@ -34,7 +34,7 @@ export function sendStreakMilestoneNotification(
body: `${streak}-day streak! ${milestoneInfo.tagline}${rewardItemName ? ` Reward: ${rewardItemName}` : ""}`,
html: `
<div style="text-align: center;">
<p style="font-size: 40px; margin: 0;">${milestoneInfo.emoji}</p>
<p style="font-family: monospace; font-size: 28px; font-weight: bold; color: #ffa116; margin: 0; letter-spacing: 2px;">${milestoneInfo.badge}</p>
<p style="color: #ffa116; font-size: 24px; font-weight: bold; margin: 8px 0;">${streak}-day streak!</p>
<p style="color: #f0f0f0; font-size: 16px; margin-top: 0;">${milestoneInfo.tagline}</p>
</div>
Expand Down
Loading