From aba7f3cf13c8f2a9c8a9ea541c1535939ee4ea54 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 26 May 2023 16:04:55 +0900 Subject: [PATCH] UX: Drop display of `short_site_description` site settings in sidebar (#21759) Why are we making this change? Currently, we are displaying the value of the `short_site_description` site setting in the sidebar only for anonymous user. However, the display of the description seems out of place in both the `sidebar` and `header dropdown` navigation menu and do not think the sidebar is the right place to display it anymore. --- .../sidebar/common/custom-section.hbs | 1 - .../app/components/sidebar/section.hbs | 6 ------ .../app/lib/sidebar/community-section.js | 8 -------- .../sidebar-anonymous-community-section-test.js | 17 +---------------- 4 files changed, 1 insertion(+), 31 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs b/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs index 6f8e3bce36a..f42bc7fd71f 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs @@ -5,7 +5,6 @@ @headerActions={{this.section.headerActions}} @headerActionsIcon={{this.section.headerActionIcon}} @class={{this.section.dragCss}} - @sectionDescription={{this.section.description}} > {{#each this.section.links as |link|}} {{#if link.shouldDisplay}} diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section.hbs b/app/assets/javascripts/discourse/app/components/sidebar/section.hbs index 570b4415196..2f3baf8ebde 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/section.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/section.hbs @@ -44,12 +44,6 @@ {{/if}} - {{#if @sectionDescription}} - - {{@sectionDescription}} - - {{/if}} - {{#if this.displaySectionContent}}