From 8203fd16ce3356d69b0cc51287d0a1fc25318b2d Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 16 Aug 2016 14:41:47 -0400 Subject: PLT-3647 Email Batching (#3718) * PLT-3647 Added config settings for email batching * PLT-3647 Refactored generation of email notification * PLT-3647 Added serverside code for email batching * PLT-3647 Updated settings UI to enable email batching * PLT-3647 Removed debug code * PLT-3647 Fixed 0-padding of minutes in batched notification * PLT-3647 Updated clientside UI for when email batching is disabled * Go fmt * PLT-3647 Changed email batching to be disabled by default * Updated batched email message * Added email batching toggle to system console * Changed Email Notifications > Immediate setting to a 30 second batch interval * Go fmt * Fixed link to Mattermost icon in batched email notification * Updated users to use 30 second email batching by default * Fully disabled email batching when clustering is enabled * Fixed email batching setting in the system console * Fixed casing of 'Send Email notifications' -> 'Send email notifications' * Updating UI Improvements for email batching (#3736) * Updated text for notification settings and SiteURL. * Prevented enabling email batching when SiteURL isn't set in the system console * Re-added a couple debug messages * Added warning text when clustering is enabled --- .../admin_console/configuration_settings.jsx | 2 +- .../connection_security_dropdown_setting.jsx | 12 +++--- webapp/components/admin_console/email_settings.jsx | 50 ++++++++++++++++++++++ webapp/components/admin_console/log_settings.jsx | 18 +++++--- .../webserver_mode_dropdown_setting.jsx | 12 +++--- 5 files changed, 75 insertions(+), 19 deletions(-) (limited to 'webapp/components/admin_console') diff --git a/webapp/components/admin_console/configuration_settings.jsx b/webapp/components/admin_console/configuration_settings.jsx index 6a07e31cd..1207f1f79 100644 --- a/webapp/components/admin_console/configuration_settings.jsx +++ b/webapp/components/admin_console/configuration_settings.jsx @@ -69,7 +69,7 @@ export default class ConfigurationSettings extends AdminSettings { helpText={ } value={this.state.siteURL} diff --git a/webapp/components/admin_console/connection_security_dropdown_setting.jsx b/webapp/components/admin_console/connection_security_dropdown_setting.jsx index b3e9ac31c..09768049e 100644 --- a/webapp/components/admin_console/connection_security_dropdown_setting.jsx +++ b/webapp/components/admin_console/connection_security_dropdown_setting.jsx @@ -14,13 +14,13 @@ const CONNECTION_SECURITY_HELP_TEXT = ( > - + - + - + - + - + - + + + + ); + } else if (!this.props.config.ServiceSettings.SiteURL) { + enableEmailBatchingDisabledText = ( + + + + ); + } + return ( + + } + helpText={[ + , + enableEmailBatchingDisabledText + ]} + value={this.state.enableEmailBatching && !this.props.config.ClusterSettings.Enable && this.props.config.ServiceSettings.SiteURL} + onChange={this.handleChange} + disabled={!this.state.sendEmailNotifications || this.props.config.ClusterSettings.Enable || !this.props.config.ServiceSettings.SiteURL} + /> - {'%T'} + {'%T'} + - {'%D'} + {'%D'} + - {'%d'} + {'%d'} + - {'%L'} + {'%L'} + - {'%S'} + {'%S'} + - {'%M'} + {'%M'} + - + - + - + - + - + - +