Skip to content

Commit 610cda7

Browse files
committed
Unsub count
1 parent f18a89a commit 610cda7

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

RELEASE_NOTES.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
### ✨ Features
22

3-
- Unsubscribe count per campaign
4-
- Vite start URL goes to dashboard
3+
- Shows unsubscribed count on campaign page
54
- New features and improvements.
65

76
### 🐛 Bug Fixes
87

9-
- Template preview bug fixes
108
- Various bug fixes and optimizations.
119

1210
### 📚 Docs

apps/web/src/pages/dashboard/campaigns/[id]/stats.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,23 @@ export const Stats = () => {
164164
</Card>
165165
</div>
166166

167+
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
168+
<Card>
169+
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
170+
<CardTitle className="text-sm font-medium">Unsubscribes</CardTitle>
171+
<Mail className="h-4 w-4 text-muted-foreground" />
172+
</CardHeader>
173+
<CardContent>
174+
<div className="text-2xl font-bold">
175+
{campaign.campaign.unsubscribedCount?.toLocaleString() ?? 0}
176+
</div>
177+
<p className="text-xs text-muted-foreground">
178+
Total unsubscribes for this campaign
179+
</p>
180+
</CardContent>
181+
</Card>
182+
</div>
183+
167184
{/* Campaign Details Card */}
168185
<Card>
169186
<CardHeader>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.4.7",
2+
"version": "0.4.8",
33
"name": "letterspace",
44
"private": true,
55
"scripts": {

0 commit comments

Comments
 (0)