Skip to content

Commit

Permalink
Remove GOV.UK Chat promo banner
Browse files Browse the repository at this point in the history
We no longer want to render the promo now that the pilot has finished,
so this cleans up the codebase to remove the additions.
  • Loading branch information
jackbot committed Dec 24, 2024
1 parent 2a70258 commit 47afe3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
8 changes: 0 additions & 8 deletions app/views/finders/show_all_content_finder.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,6 @@

<%= render "govuk_publishing_components/components/previous_and_next_navigation", @pagination.next_and_prev_links %>
</div>
<% if ENV["GOVUK_CHAT_PROMO_ENABLED"] == "true" %>
<div class="govuk-grid-column-one-third-from-desktop">
<%= render "govuk_publishing_components/components/chat_entry", {
heading_text: "Ask GOV.UK Chat about business and tax",
description_text: "Get quick, tailored answers with GOV.UK’s experimental AI chat",
} %>
</div>
<% end %>
</div>
<% end %>
<% end %>
20 changes: 0 additions & 20 deletions spec/controllers/finders_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,26 +270,6 @@
end
end
end

context "when GOVUK_CHAT_PROMO_ENABLED is set to 'true'" do
it "shows a GOV.UK Chat promo" do
ClimateControl.modify GOVUK_CHAT_PROMO_ENABLED: "true" do
get :show, params: { slug: "search/all", keywords: "hello" }

expect(response.body).to have_selector(".gem-c-chat-entry")
end
end
end

context "when GOVUK_CHAT_PROMO_ENABLED isn't set" do
it "doesn't show a GOV.UK Chat promo" do
ClimateControl.modify GOVUK_CHAT_PROMO_ENABLED: nil do
get :show, params: { slug: "search/all", keywords: "hello" }

expect(response.body).not_to have_selector(".gem-c-chat-entry")
end
end
end
end
end

Expand Down

0 comments on commit 47afe3c

Please sign in to comment.