Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
navbar_alerts: Improve info for users having at least 50K unreads.
Prakhar Pratyushf8f9a800e660
diff --git a/web/src/navbar_alerts.js b/web/src/navbar_alerts.jsindex 879c692c778..7832aa140ce 100644--- a/web/src/navbar_alerts.js+++ b/web/src/navbar_alerts.js@@ -172,11 +172,15 @@ export function initialize() {rendered_alert_content_html: render_desktop_notifications_alert_content(),});} else if (unread_ui.should_display_bankruptcy_banner()) {+ const old_unreads_missing = unread.old_unreads_missing;const unread_msgs_count = unread.get_unread_message_count();open({data_process: "bankruptcy",custom_class: "bankruptcy",- rendered_alert_content_html: render_bankruptcy_alert_content({unread_msgs_count}),+ rendered_alert_content_html: render_bankruptcy_alert_content({+ old_unreads_missing,+ unread_msgs_count,+ }),});} else if (check_profile_incomplete()) {open({diff --git a/web/templates/navbar_alerts/bankruptcy.hbs b/web/templates/navbar_alerts/bankruptcy.hbsindex 9a676ac05ea..a9d254d30b1 100644--- a/web/templates/navbar_alerts/bankruptcy.hbs+++ b/web/templates/navbar_alerts/bankruptcy.hbs@@ -1,9 +1,17 @@<div data-step="1">- {{#tr}}- Welcome back! You have <z-link>{unread_msgs_count}</z-link> unread messages.- Do you want to mark them all as read?- {{#*inline "z-link"}}<span class="bankruptcy_unread_count">{{> @partial-block}}</span>{{/inline}}- {{/tr}}+ {{t "Welcome back!" }}+ {{#if old_unreads_missing}}+ {{#tr}}+ You have <z-link>at least {unread_msgs_count}</z-link> unread messages.+ {{#*inline "z-link"}}<a href="/help/marking-messages-as-read" class="alert-link bankruptcy_unread_count" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}+ {{/tr}}+ {{else}}+ {{#tr}}+ You have <z-link>{unread_msgs_count}</z-link> unread messages.+ {{#*inline "z-link"}}<span class="bankruptcy_unread_count">{{> @partial-block}}</span>{{/inline}}+ {{/tr}}+ {{/if}}+ {{t "Do you want to mark them all as read?" }}<span class="buttons"><a class="alert-link accept-bankruptcy" role="button" tabindex=0>{{t "Yes, please!" }}</a>•