From c3f26f5bf9a74d4c9b38faad6dbe023fd4487369 Mon Sep 17 00:00:00 2001 From: Maria A Nunez Date: Tue, 30 Jul 2024 08:00:10 -0400 Subject: [PATCH] Rename announcement banner feature to system-wide notifications (#27759) * Rename announcement banner to system-wide notifications * Fixed snapshot --- .../src/components/admin_console/admin_definition.tsx | 10 +++++----- .../__snapshots__/admin_sidebar.test.tsx.snap | 6 +++--- webapp/channels/src/i18n/en.json | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/webapp/channels/src/components/admin_console/admin_definition.tsx b/webapp/channels/src/components/admin_console/admin_definition.tsx index ddbbcdcce2..2decbccf2b 100644 --- a/webapp/channels/src/components/admin_console/admin_definition.tsx +++ b/webapp/channels/src/components/admin_console/admin_definition.tsx @@ -2398,19 +2398,19 @@ const AdminDefinition: AdminDefinitionType = { }, announcement_banner: { url: 'site_config/announcement_banner', - title: defineMessage({id: 'admin.sidebar.announcement', defaultMessage: 'Announcement Banner'}), + title: defineMessage({id: 'admin.sidebar.announcement', defaultMessage: 'System-wide Notifications'}), isHidden: it.any( it.not(it.licensedForFeature('Announcement')), it.not(it.userHasReadPermissionOnResource(RESOURCE_KEYS.SITE.ANNOUNCEMENT_BANNER)), ), schema: { id: 'AnnouncementSettings', - name: defineMessage({id: 'admin.site.announcementBanner', defaultMessage: 'Announcement Banner'}), + name: defineMessage({id: 'admin.site.announcementBanner', defaultMessage: 'System-wide Notifications'}), settings: [ { type: 'bool', key: 'AnnouncementSettings.EnableBanner', - label: defineMessage({id: 'admin.customization.announcement.enableBannerTitle', defaultMessage: 'Enable Announcement Banner:'}), + label: defineMessage({id: 'admin.customization.announcement.enableBannerTitle', defaultMessage: 'Enable System-wide Notifications:'}), help_text: defineMessage({id: 'admin.customization.announcement.enableBannerDesc', defaultMessage: 'Enable an announcement banner across all teams.'}), isDisabled: it.not(it.userHasWritePermissionOnResource(RESOURCE_KEYS.SITE.ANNOUNCEMENT_BANNER)), }, @@ -2459,14 +2459,14 @@ const AdminDefinition: AdminDefinitionType = { announcement_banner_feature_discovery: { url: 'site_config/announcement_banner', isDiscovery: true, - title: defineMessage({id: 'admin.sidebar.announcement', defaultMessage: 'Announcement Banner'}), + title: defineMessage({id: 'admin.sidebar.announcement', defaultMessage: 'System-wide Notifications'}), isHidden: it.any( it.licensedForFeature('Announcement'), it.not(it.enterpriseReady), ), schema: { id: 'AnnouncementSettings', - name: defineMessage({id: 'admin.site.announcementBanner', defaultMessage: 'Announcement Banner'}), + name: defineMessage({id: 'admin.site.announcementBanner', defaultMessage: 'System-wide Notifications'}), settings: [ { type: 'custom', diff --git a/webapp/channels/src/components/admin_console/admin_sidebar/__snapshots__/admin_sidebar.test.tsx.snap b/webapp/channels/src/components/admin_console/admin_sidebar/__snapshots__/admin_sidebar.test.tsx.snap index 399683f4b4..b8d5071649 100644 --- a/webapp/channels/src/components/admin_console/admin_sidebar/__snapshots__/admin_sidebar.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/admin_sidebar/__snapshots__/admin_sidebar.test.tsx.snap @@ -233,7 +233,7 @@ exports[`components/AdminSidebar Plugins should match snapshot 1`] = ` } title={ } @@ -3775,7 +3775,7 @@ exports[`components/AdminSidebar should match snapshot, with license (with all f name="site_config/announcement_banner" title={ } @@ -4648,7 +4648,7 @@ exports[`components/AdminSidebar should match snapshot, with license (without an } title={ } diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 6d77fc0126..b1951430ef 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -639,7 +639,7 @@ "admin.customization.announcement.bannerTextDesc": "Text that will appear in the announcement banner.", "admin.customization.announcement.bannerTextTitle": "Banner Text:", "admin.customization.announcement.enableBannerDesc": "Enable an announcement banner across all teams.", - "admin.customization.announcement.enableBannerTitle": "Enable Announcement Banner:", + "admin.customization.announcement.enableBannerTitle": "Enable System-wide Notifications:", "admin.customization.appDownloadLinkDesc": "Add a link to a download page for the Mattermost apps. When a link is present, an option to \"Download Mattermost Apps\" will be added in the Product Menu so users can find the download page. Leave this field blank to hide the option from the Product Menu.", "admin.customization.appDownloadLinkTitle": "Mattermost Apps Download Page Link:", "admin.customization.customUrlSchemes": "Custom URL Schemes:", @@ -1835,7 +1835,7 @@ "admin.permissions.sysconsole_section_reporting_team_statistics.name": "Team Statistics", "admin.permissions.sysconsole_section_reporting.description": "Review site statistics, team statistics and server logs.", "admin.permissions.sysconsole_section_reporting.name": "Reporting", - "admin.permissions.sysconsole_section_site_announcement_banner.name": "Announcement Banner", + "admin.permissions.sysconsole_section_site_announcement_banner.name": "System-wide Notifications", "admin.permissions.sysconsole_section_site_customization.name": "Customization", "admin.permissions.sysconsole_section_site_emoji.name": "Emoji", "admin.permissions.sysconsole_section_site_file_sharing_and_downloads.name": "File Sharing and Downloads", @@ -2312,7 +2312,7 @@ "admin.sessionLengths.title": "Session Lengths", "admin.set_by_env": "This setting has been set through an environment variable. It cannot be changed through the System Console.", "admin.sidebar.about": "About", - "admin.sidebar.announcement": "Announcement Banner", + "admin.sidebar.announcement": "System-wide Notifications", "admin.sidebar.audit_logging_experimental": "Audit Logging", "admin.sidebar.authentication": "Authentication", "admin.sidebar.billing": "Billing & Account", @@ -2385,7 +2385,7 @@ "admin.sidebar.webServer": "Web Server", "admin.sidebar.workspaceOptimization": "Workspace Optimization", "admin.sidebarHeader.systemConsole": "System Console", - "admin.site.announcementBanner": "Announcement Banner", + "admin.site.announcementBanner": "System-wide Notifications", "admin.site.customization": "Customization", "admin.site.emoji": "Emoji", "admin.site.fileSharingDownloads": "File Sharing and Downloads",