A platform for community discussion. Free, open, simple.
DEV: unsilence deprecation warning for old Font Awesome icons (#30028)
Kelv435fbb74082e
diff --git a/app/assets/javascripts/discourse-common/addon/deprecation-workflow.js b/app/assets/javascripts/discourse-common/addon/deprecation-workflow.jsindex 5782e89fc56..a9848601f7b 100644--- a/app/assets/javascripts/discourse-common/addon/deprecation-workflow.js+++ b/app/assets/javascripts/discourse-common/addon/deprecation-workflow.js@@ -4,10 +4,6 @@ const DEPRECATION_WORKFLOW = [handler: "silence",matchId: "discourse.decorate-widget.hamburger-widget-links",},- {- handler: "silence",- matchId: "discourse.fontawesome-6-upgrade",- },{handler: "silence",matchId: "discourse.post-menu-widget-overrides",diff --git a/app/assets/javascripts/discourse/app/components/about-page.gjs b/app/assets/javascripts/discourse/app/components/about-page.gjsindex 40e08008156..63abe5f27c7 100644--- a/app/assets/javascripts/discourse/app/components/about-page.gjs+++ b/app/assets/javascripts/discourse/app/components/about-page.gjs@@ -215,7 +215,7 @@ export default class AboutPage extends Component {{{#if this.currentUser.admin}}<p><LinkTo class="edit-about-page" @route="adminConfig.about">- {{dIcon "pencil-alt"}}+ {{dIcon "pencil"}}<span>{{i18n "about.edit"}}</span></LinkTo></p>diff --git a/app/assets/javascripts/discourse/app/components/post/menu/buttons/edit.gjs b/app/assets/javascripts/discourse/app/components/post/menu/buttons/edit.gjsindex c394b1683c4..69b0f1bd692 100644--- a/app/assets/javascripts/discourse/app/components/post/menu/buttons/edit.gjs+++ b/app/assets/javascripts/discourse/app/components/post/menu/buttons/edit.gjs@@ -35,7 +35,7 @@ export default class PostMenuEditButton extends Component {}}...attributes@action={{@buttonActions.editPost}}- @icon={{if @post.wiki "far-edit" "pencil-alt"}}+ @icon={{if @post.wiki "far-edit" "pencil"}}@label={{if this.showLabel "post.controls.edit_action"}}@title="post.controls.edit"/>diff --git a/app/assets/javascripts/discourse/tests/fixtures/user-fixtures.js b/app/assets/javascripts/discourse/tests/fixtures/user-fixtures.jsindex 47c9fc0c046..b180a2b9fe9 100644--- a/app/assets/javascripts/discourse/tests/fixtures/user-fixtures.js+++ b/app/assets/javascripts/discourse/tests/fixtures/user-fixtures.js@@ -34,7 +34,7 @@ export default {grant_count: 7,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -64,7 +64,7 @@ export default {grant_count: 30,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -334,7 +334,7 @@ export default {grant_count: 7,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -364,7 +364,7 @@ export default {grant_count: 30,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -2462,7 +2462,7 @@ export default {grant_count: 3,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -2758,7 +2758,7 @@ export default {grant_count: 3,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -2837,7 +2837,7 @@ export default {grant_count: 3,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -2907,7 +2907,7 @@ export default {grant_count: 3,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -3195,7 +3195,7 @@ export default {grant_count: 7,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,@@ -3225,7 +3225,7 @@ export default {grant_count: 30,allow_title: true,multiple_grant: false,- icon: "fa-user",+ icon: "user",image: null,listable: true,enabled: true,diff --git a/app/views/application/_header.html.erb b/app/views/application/_header.html.erbindex d93fca7585d..82821787ebb 100644--- a/app/views/application/_header.html.erb+++ b/app/views/application/_header.html.erb@@ -22,7 +22,7 @@<%- if can_sign_up? %><a href="<%= path "/signup"%>" class='btn btn-primary btn-small sign-up-button'><%= I18n.t('sign_up') %></a><%- end %>- <a href="<%= path "/login"%>" class='btn btn-primary btn-small login-button btn-icon-text'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>+ <a href="<%= path "/login"%>" class='btn btn-primary btn-small login-button btn-icon-text'><%= SvgSprite.raw_svg('user') %><%= I18n.t('log_in') %></a></span><%- end %></div>diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erbindex 57bd2504b03..276ad240fdb 100644--- a/app/views/exceptions/not_found.html.erb+++ b/app/views/exceptions/not_found.html.erb@@ -12,7 +12,7 @@<h1 class="title"><%= @title %></h1><%- if !@current_user %>- <a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>+ <a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('user') %><%= I18n.t('log_in') %></a><%- end %><%- if @group&.dig(:allow_membership_requests) %>diff --git a/db/fixtures/006_badges.rb b/db/fixtures/006_badges.rbindex d3488b254ba..12bf022cbf7 100644--- a/db/fixtures/006_badges.rb+++ b/db/fixtures/006_badges.rb@@ -58,7 +58,7 @@ SQLb.trigger = Badge::Trigger::TrustLevelChange# allow title for tl3 and aboveb.default_allow_title = id > Badge::Member- b.default_icon = "fa-user"+ b.default_icon = "user"b.system = trueendenddiff --git a/lib/svg_sprite.rb b/lib/svg_sprite.rbindex d878324f4a6..3c26ba54cb5 100644--- a/lib/svg_sprite.rb+++ b/lib/svg_sprite.rb@@ -523,8 +523,7 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFLnew_name = remap_from_fa5(new_name)if icon_name != new_name- # TODO: Enable message once core and official themes/plugins are updated- # Discourse.deprecate("The icon `#{icon_name}` is deprecated. Use `#{new_name}` instead.")+ Discourse.deprecate("The icon `#{icon_name}` is deprecated. Use `#{new_name}` instead.")return new_nameend