Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix num notifications in digest (#2324)
Sean Aye5added6ec510
diff --git a/rust/cloud-storage/email_formatting/src/lib.rs b/rust/cloud-storage/email_formatting/src/lib.rsindex 46e10d8d83..99cc64d1ec 100644--- a/rust/cloud-storage/email_formatting/src/lib.rs+++ b/rust/cloud-storage/email_formatting/src/lib.rs@@ -15,6 +15,7 @@ use std::time::Duration;struct DigestTemplate {notifs: Vec<NotifPreview>,num_truncated: usize,+ total_count: usize,}struct NotifPreview {@@ -77,6 +78,7 @@ impl EmailDigestNotification {let inner_html_string = DigestTemplate {notifs,num_truncated,+ total_count: input_len,}.render()?;diff --git a/rust/cloud-storage/email_formatting/templates/digest.html b/rust/cloud-storage/email_formatting/templates/digest.htmlindex 69fe92409f..49ce750da3 100644--- a/rust/cloud-storage/email_formatting/templates/digest.html+++ b/rust/cloud-storage/email_formatting/templates/digest.html@@ -71,8 +71,8 @@font-family: "Inter", sans-serif;">- You have {{ notifs.len() }} unread {% if notifs.len() == 1 %}message{%- else %}messages{% endif %}+ You have {{ total_count }} new {% if total_count == 1 %}notification{%+ else %}notifications{% endif %}</div><hrstyle="