Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit e3d6dad

Browse files
authored
UX: stop rendering back to forum link (#1319)
1 parent 5bc9fdc commit e3d6dad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/javascripts/initializers/ai-conversations-sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
class AiConversationsSidebarPanel extends BaseCustomSidebarPanel {
3838
key = AI_CONVERSATIONS_PANEL;
3939
hidden = true;
40-
displayHeader = !navigationMenu.isHeaderDropdownMode;
40+
displayHeader = false; // this would add a misplaced back to forum button
4141
expandActiveSection = true;
4242
}
4343
);

spec/system/ai_bot/homepage_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@
320320
expect(ai_pm_homepage.llm_selector).to have_selected_name(claude_2_dup.display_name)
321321
end
322322

323-
it "renders back to forum link" do
323+
it "does not render back to forum link" do
324324
ai_pm_homepage.visit
325-
expect(ai_pm_homepage).to have_sidebar_back_link
325+
expect(ai_pm_homepage).to have_no_sidebar_back_link
326326
end
327327

328328
context "with hamburger menu" do

0 commit comments

Comments
 (0)