Skip to content

A platform for community discussion. Free, open, simple.

UX: add solid and outlined discobot icon (#42750)

Kris2f892a1375f6
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs
index 5e4284d4c8f..7b3be22b9b4 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs
@@ -427,7 +427,7 @@ export default class AiBotConversations extends Component {
<div class="ai-bot-conversations__content-wrapper">
<div class="ai-bot-conversations__title">
- {{dIcon "discobot"}}
+ {{dIcon "far-discobot"}}
{{i18n "discourse_ai.ai_bot.conversations.header"}}
</div>
<PluginOutlet
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjs
index a3fea358538..8e15a1b137c 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjs
@@ -39,7 +39,7 @@ export default class AiBotHeaderIcon extends Component {
if (this.clickShouldRouteOutOfConversations) {
return "shuffle";
}
- return "discobot";
+ return "far-discobot";
}
get clickShouldRouteOutOfConversations() {
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs b/plugins/discourse-ai/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs
index 420a26c5424..bc4d09261c7 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs
@@ -66,7 +66,7 @@ export default class AiFullPageDiscobotDiscoveries extends Component {
class="ai-search-discoveries__discoveries-title full-page-discoveries"
>
<span>
- {{dIcon "discobot"}}
+ {{dIcon "far-discobot"}}
{{i18n "discourse_ai.discobot_discoveries.main_title"}}
</span>
<AiSearchDiscoveriesTooltip />
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/connectors/search-menu-results-top/ai-discobot-discoveries.gjs b/plugins/discourse-ai/assets/javascripts/discourse/connectors/search-menu-results-top/ai-discobot-discoveries.gjs
index b9d019b584b..a1d6e9567bc 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/connectors/search-menu-results-top/ai-discobot-discoveries.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/connectors/search-menu-results-top/ai-discobot-discoveries.gjs
@@ -48,7 +48,7 @@ export default class AiDiscobotDiscoveries extends Component {
{{#if this.discobotDiscoveries.showDiscoveryTitle}}
<h3 class="ai-search-discoveries__discoveries-title">
<span>
- {{dIcon "discobot"}}
+ {{dIcon "far-discobot"}}
{{i18n "discourse_ai.discobot_discoveries.main_title"}}
</span>
diff --git a/plugins/discourse-ai/spec/system/ai_bot/header_toggle_spec.rb b/plugins/discourse-ai/spec/system/ai_bot/header_toggle_spec.rb
index 5ad6b721154..e04aa9c51f6 100644
--- a/plugins/discourse-ai/spec/system/ai_bot/header_toggle_spec.rb
+++ b/plugins/discourse-ai/spec/system/ai_bot/header_toggle_spec.rb
@@ -37,7 +37,7 @@ RSpec.describe "AI Bot - Header Toggle" do
expect(header).to have_icon_in_bot_button(icon: "shuffle")
header.click_bot_button
- expect(header).to have_icon_in_bot_button(icon: "discobot")
+ expect(header).to have_icon_in_bot_button(icon: "far-discobot")
expect(page).to have_current_path("/hot")
end
@@ -48,7 +48,7 @@ RSpec.describe "AI Bot - Header Toggle" do
expect(ai_pm_homepage).to have_homepage
header.click_bot_button
- expect(header).to have_icon_in_bot_button(icon: "discobot")
+ expect(header).to have_icon_in_bot_button(icon: "far-discobot")
expect(page).to have_current_path("/hot")
visit "/categories"
@@ -58,7 +58,7 @@ RSpec.describe "AI Bot - Header Toggle" do
expect(ai_pm_homepage).to have_homepage
header.click_bot_button
- expect(header).to have_icon_in_bot_button(icon: "discobot")
+ expect(header).to have_icon_in_bot_button(icon: "far-discobot")
expect(page).to have_current_path("/categories")
end
end
diff --git a/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rb b/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rb
index 373c71306f1..28abf14d1c6 100644
--- a/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rb
+++ b/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rb
@@ -346,7 +346,7 @@ RSpec.describe "AI Bot - Homepage" do
it "displays the shuffle icon when on homepage or bot PM" do
visit "/"
- expect(header).to have_icon_in_bot_button(icon: "discobot")
+ expect(header).to have_icon_in_bot_button(icon: "far-discobot")
header.click_bot_button
expect(header).to have_icon_in_bot_button(icon: "shuffle")
@@ -357,7 +357,7 @@ RSpec.describe "AI Bot - Homepage" do
# Go back home and assert that the icon is now discobot again
header.click_bot_button
- expect(header).to have_icon_in_bot_button(icon: "discobot")
+ expect(header).to have_icon_in_bot_button(icon: "far-discobot")
end
it "displays 'new question' button on homepage and topic page" do
@@ -436,7 +436,7 @@ RSpec.describe "AI Bot - Homepage" do
it "shows shuffle icon in the header and doesn't display sidebar back link" do
visit "/"
- expect(header).to have_icon_in_bot_button(icon: "discobot")
+ expect(header).to have_icon_in_bot_button(icon: "far-discobot")
header.click_bot_button
expect(ai_pm_homepage).to have_homepage
expect(header).to have_icon_in_bot_button(icon: "shuffle")
diff --git a/plugins/discourse-ai/svg-icons/icons-sprite.svg b/plugins/discourse-ai/svg-icons/icons-sprite.svg
index bc8afca3c1c..86ba29ebb25 100644
--- a/plugins/discourse-ai/svg-icons/icons-sprite.svg
+++ b/plugins/discourse-ai/svg-icons/icons-sprite.svg
@@ -14,7 +14,12 @@
<path d="M448 309.64V413H64V290h190c12.23 0 18.46-14.71 9.94-23.48-7.56-7.78-14.48-16.2-20.66-25.16-5.36-7.77-14.24-12.36-23.69-12.36H64V93h130c10.65 0 20.14-6.92 23.18-17.12a193.4 193.4 0 0 1 9.74-25.76c4.56-9.86-2.77-21.12-13.63-21.12H64C28.65 29 0 57.65 0 93v320c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V263.8c0-9.16-10.7-14.14-17.7-8.25a194.056 194.056 0 0 1-25.76 18.32c-12.66 7.53-20.53 21.05-20.53 35.77Z"/><path d="M247.46 122.15c-6.45 2.44-10.75 8.6-10.75 15.49s4.3 13.05 10.75 15.49l81.01 30.4 30.4 81.01c2.44 6.45 8.6 10.75 15.49 10.75s13.05-4.3 15.49-10.75l30.4-81.01 81.01-30.4c6.45-2.44 10.75-8.6 10.75-15.49s-4.3-13.05-10.75-15.49l-81.01-30.4-30.4-81.01c-2.44-6.45-8.6-10.75-15.49-10.75s-13.05 4.3-15.49 10.75l-30.4 81.01-81.01 30.4Z"/>
</symbol>
- <symbol id="discobot" viewBox="0 0 512 512">
- <path d="M175.61,443.41H26.03c-6.75,0-13.36-2.67-18.42-7.59-5.06-5.06-7.87-11.81-7.59-18.84v-164.07c.28-48.64,19.4-94.76,54.41-129.48,35.43-35.43,82.67-54.83,132.71-54.83h.56c49.77,0,96.3,19.54,131.17,55.11,23.97,24.53,40.75,55.16,48.5,88.57,5.06,21.79-6.19,44.14-26.71,53.14-14.62,6.47-69.17,27.7-170.67,37.96,4.5,11.25,16.17,23.34,46.68,29.66,29.8,6.19,64.53,4.22,87.59,2.95,9.84-.56,16.87-.98,21.79-.56,6.33.42,11.81,4.22,14.62,9.98,2.67,5.62,2.25,12.37-1.41,17.57-6.19,9-13.22,17.57-20.95,25.31-33.88,34.44-79.29,53.99-127.79,54.97h-14.76c0,.14-.14.14-.28.14h.14,0ZM35.17,408.25h154.65c34.87-.7,67.9-13.36,94.19-35.85-22.07.7-49.49.42-74.51-4.78-58.48-12.23-74.23-45.41-77.18-71.28-.7-6.47,1.12-12.79,5.2-17.85s10.12-8.15,16.59-8.72c82.81-7.31,143.26-23.62,172.22-36.27,5.06-2.25,7.87-7.73,6.61-13.07-6.33-27.13-19.82-51.88-39.36-71.84-28.12-28.68-65.8-44.57-106.14-44.57h-.56c-40.91,0-79.15,15.89-107.97,44.57-28.26,28.12-43.86,65.37-43.86,104.6v155.07c-.14,0,0,0,0,0h.14-.02Z"/><circle cx="171.11" cy="180.08" r="32.05"/><path d="M511.76,255.85c-.7-5.2-3.51-9.84-7.73-12.93s-9.42-4.5-14.62-3.66l-52.3,7.73c-5.2.7-9.84,3.51-12.93,7.73s-4.5,9.42-3.66,14.62c.98,6.61,5.2,12.23,11.39,15.04,2.53,1.12,5.34,1.69,8.01,1.69s1.97,0,2.95-.28l52.3-7.73c5.2-.7,9.84-3.51,12.93-7.73s4.5-9.42,3.66-14.62v.14h0ZM490.67,350.33l-71.98-36.41c-9.28-5.34-21.37-2.25-26.71,7.03-2.67,4.5-3.37,9.84-2.11,14.9,1.27,5.06,4.5,9.42,9.14,11.95l71.98,36.41c1.27.7,2.53,1.27,3.94,1.69,1.97.56,3.94.84,5.9.84,6.89,0,13.36-3.51,16.87-9.7,5.48-9.42,2.39-21.51-7.03-26.99v.28h0Z"/>
+ <symbol id="discobot" viewBox="-49.28 -49.28 492.81 492.79">
+ <path d="M198.79 0C90.91 0 0 86.68 0 193.69c0 2.75.06 129.9.08 180.29 0 11.19 9.09 20.26 20.28 20.25l178.44-.16c64.69 0 122-32.31 157.57-81.23 5.36-7.36-1.68-17.42-10.41-14.84-89.62 26.39-192-10.49-164.86-44.98 8.8-13.83 21.69-8.21 28.18-4.02 47.75 26.38 119.54 13.48 160.94-3.15 12.93-5.19 21.95-17.14 23.22-31.02.54-5.87.81-11.81.81-17.79C394.25 90.03 306.77 0 198.79 0m-2.48 156.74c-22.45 0-40.64-18.2-40.64-40.64s18.2-40.64 40.64-40.64 40.64 18.2 40.64 40.64-18.2 40.64-40.64 40.64"/>
+ </symbol>
+
+ <symbol id="far-discobot" viewBox="-25.47 -20.82 509.37 416.46"> <path d="M175.61 374.81H26.03c-6.75 0-13.36-2.67-18.42-7.59-5.06-5.06-7.87-11.81-7.59-18.84V184.31c.28-48.64 19.4-94.76 54.41-129.48C89.86 19.4 137.1 0 187.14 0h.56c49.77 0 96.3 19.54 131.17 55.11a187.26 187.26 0 0 1 48.5 88.57c5.06 21.79-6.19 44.14-26.71 53.14-14.62 6.47-69.17 27.7-170.67 37.96 4.5 11.25 16.17 23.34 46.68 29.66 29.8 6.19 64.53 4.22 87.59 2.95 9.84-.56 16.87-.98 21.79-.56 6.33.42 11.81 4.22 14.62 9.98 2.67 5.62 2.25 12.37-1.41 17.57-6.19 9-13.22 17.57-20.95 25.31-33.88 34.44-79.29 53.99-127.79 54.97h-14.76c0 .14-.14.14-.28.14h.14ZM35.17 339.66h154.65c34.87-.7 67.9-13.36 94.19-35.85-22.07.7-49.49.42-74.51-4.78-58.48-12.23-74.23-45.41-77.18-71.28-.7-6.47 1.12-12.79 5.2-17.85s10.12-8.15 16.59-8.72c82.81-7.31 143.26-23.62 172.22-36.27 5.06-2.25 7.87-7.73 6.61-13.07-6.33-27.13-19.82-51.88-39.36-71.84-28.12-28.68-65.8-44.57-106.14-44.57h-.56c-40.91 0-79.15 15.89-107.97 44.57-28.26 28.12-43.86 65.37-43.86 104.6v155.07c-.14 0 0 0 0 0h.14-.02Zm-17.3-155.21"/>
+ <circle cx="171.11" cy="111.49" r="32.05"/>
+ <path d="M455.63 176.01c-1.53-5.02-5.04-9.15-9.71-11.52s-10.02-2.93-15.02-1.27l-33.45 11.12c-5.02 1.53-9.15 5.04-11.52 9.71-2.37 4.66-2.93 10.02-1.27 15.02 2.03 6.37 7.1 11.24 13.66 13.02 2.68.7 5.54.81 8.18.38s1.94-.32 2.87-.75l33.45-11.12c5.02-1.53 9.15-5.04 11.52-9.71 2.37-4.66 2.93-10.02 1.27-15.02zM445.88 255.1l-55.85-16.74c-10.02-3.78-21.45 1.21-25.24 11.23-1.91 4.87-1.75 10.25.31 15.05 2.07 4.79 5.95 8.58 10.94 10.33l55.85 16.74c1.37.49 2.7.85 4.16 1.04 2.03.24 4.02.2 5.96-.12 6.8-1.11 12.62-5.61 15.09-12.28 3.9-10.18-1.09-21.61-11.27-25.51l.04.28Z"/>
</symbol>
</svg>
\ No newline at end of file