UX: stop rendering back to forum link (#1319)

This commit is contained in:
Sam 2025-05-07 09:07:39 +10:00 committed by GitHub
parent 5bc9fdc06b
commit e3d6dadc41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ export default {
class AiConversationsSidebarPanel extends BaseCustomSidebarPanel { class AiConversationsSidebarPanel extends BaseCustomSidebarPanel {
key = AI_CONVERSATIONS_PANEL; key = AI_CONVERSATIONS_PANEL;
hidden = true; hidden = true;
displayHeader = !navigationMenu.isHeaderDropdownMode; displayHeader = false; // this would add a misplaced back to forum button
expandActiveSection = true; expandActiveSection = true;
} }
); );

View File

@ -320,9 +320,9 @@ RSpec.describe "AI Bot - Homepage", type: :system do
expect(ai_pm_homepage.llm_selector).to have_selected_name(claude_2_dup.display_name) expect(ai_pm_homepage.llm_selector).to have_selected_name(claude_2_dup.display_name)
end end
it "renders back to forum link" do it "does not render back to forum link" do
ai_pm_homepage.visit ai_pm_homepage.visit
expect(ai_pm_homepage).to have_sidebar_back_link expect(ai_pm_homepage).to have_no_sidebar_back_link
end end
context "with hamburger menu" do context "with hamburger menu" do