* FEATURE: Enforce mention limits for chat messages The first part of these changes adds a new setting called `max_mentions_per_chat_message`, which skips notifications when the message contains too many mentions. It also respects the `max_users_notified_per_group_mention` setting and skips notifications if expanding a group mention would exceed it. We also include a new component to display JIT warning for these limits to the user while composing a message. * Simplify ignoring/muting filter in chat_notifier * Post-send warnings for unsent warnings * Improve pluralization * Address review feedback * Fix test * Address second feedback round * Third round of feedback Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
25 lines
715 B
Handlebars
25 lines
715 B
Handlebars
{{#if this.show}}
|
|
<div class="chat-mention-warnings">
|
|
<div class="chat-mention-warning__icon">
|
|
{{d-icon "exclamation-triangle"}}
|
|
</div>
|
|
<div class="chat-mention-warning__text">
|
|
<div class="chat-mention-warning__header">
|
|
{{this.warningHeaderText}}
|
|
</div>
|
|
<ul class={{this.listStyleClass}}>
|
|
{{#if @tooManyMentions}}
|
|
<li>{{this.tooManyMentionsBody}}</li>
|
|
{{else}}
|
|
{{#if @unreachableGroupMentions}}
|
|
<li>{{this.unreachableBody}}</li>
|
|
{{/if}}
|
|
{{#if @overMembersLimitGroupMentions}}
|
|
<li>{{this.overMembersLimitBody}}</li>
|
|
{{/if}}
|
|
{{/if}}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|