tests for new post notifications and dashboard stats
All checks were successful
Rust / Test (push) Successful in 3m47s
Rust / Rustfmt (push) Successful in 21s
Rust / Clippy (push) Successful in 1m14s
Rust / Code coverage (push) Successful in 3m49s

This commit is contained in:
Alphonse Paix
2025-09-29 18:22:15 +02:00
parent de44564ba0
commit 22c462fba3
8 changed files with 494 additions and 23 deletions

View File

@@ -17,7 +17,7 @@
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Subscribers</p>
<p class="text-2xl font-semibold text-gray-900">{{ stats.subscribers }}</p>
<p class="text-2xl font-semibold text-gray-900" id="subscribers-count">{{ stats.subscribers }}</p>
</div>
</div>
</div>
@@ -33,7 +33,7 @@
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Posts</p>
<p class="text-2xl font-semibold text-gray-900">{{ stats.posts }}</p>
<p class="text-2xl font-semibold text-gray-900" id="posts-count">{{ stats.posts }}</p>
</div>
</div>
</div>
@@ -49,7 +49,7 @@
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Notifications</p>
<p class="text-2xl font-semibold text-gray-900">{{ stats.notifications_sent }}</p>
<p class="text-2xl font-semibold text-gray-900" id="notifications-sent">{{ stats.notifications_sent }}</p>
</div>
</div>
</div>
@@ -66,7 +66,7 @@
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Open rate</p>
<p class="text-2xl font-semibold text-gray-900">{{ stats.formatted_rate() }}</p>
<p class="text-2xl font-semibold text-gray-900" id="open-rate">{{ stats.formatted_rate() }}</p>
</div>
</div>
</div>