Skip to content

Commit 3e8e7c0

Browse files
authored
Remove Copilot banner from footer (#58164)
1 parent 05bfe3b commit 3e8e7c0

File tree

5 files changed

+2
-223
lines changed

5 files changed

+2
-223
lines changed

data/ui.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ search:
6969
general_title: There was an error loading search results.
7070
ai_title: There was an error loading Copilot.
7171
description: You can still use this field to search our docs.
72-
cta:
73-
heading: Get quick answers!
74-
description: Ask Copilot your question.
75-
dismiss: Dismiss
76-
ask_copilot: Ask Copilot
7772
old_search:
7873
description: Enter a search term to find it in the GitHub Docs.
7974
placeholder: Search GitHub Docs

src/fixtures/fixtures/data/ui.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ search:
6969
general_title: There was an error loading search results.
7070
ai_title: There was an error loading Copilot.
7171
description: You can still use this field to search our docs.
72-
cta:
73-
heading: Get quick answers!
74-
description: Ask Copilot your question.
75-
dismiss: Dismiss
76-
ask_copilot: Ask Copilot
7772
old_search:
7873
description: Enter a search term to find it in the GitHub Docs.
7974
placeholder: Search GitHub Docs

src/frame/components/page-footer/SupportSection.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
}
1818
}
1919

20-
// Large is 4 columns
20+
// Large is 3 columns
2121
@media (min-width: 1280px) {
2222
.supportGrid {
23-
grid-template-columns: minmax(18rem, 1fr) repeat(3, 1fr);
23+
grid-template-columns: repeat(3, 1fr);
2424
}
2525
}

src/frame/components/page-footer/SupportSection.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { useMainContext } from '@/frame/components/context/MainContext'
77
import { useVersion } from '@/versions/components/useVersion'
88
import { useRouter } from 'next/router'
99
import { useTranslation } from '@/languages/components/useTranslation'
10-
import { AISearchCTAPopup } from '@/search/components/input/AISearchCTAPopup'
11-
import { useSearchOverlayContext } from '@/search/components/context/SearchOverlayContext'
1210

1311
import styles from './SupportSection.module.scss'
1412

@@ -17,7 +15,6 @@ export const SupportSection = () => {
1715
const { relativePath, enterpriseServerReleases } = useMainContext()
1816
const router = useRouter()
1917
const { t } = useTranslation('footer')
20-
const { setIsSearchOpen } = useSearchOverlayContext()
2118

2219
const isDeprecated =
2320
enterpriseServerReleases.isOldestReleaseDeprecated &&
@@ -29,7 +26,6 @@ export const SupportSection = () => {
2926
const showSurvey = !isDeprecated && !isSitePolicyDocs
3027
const showContribution = !isDeprecated && !isEarlyAccess && isEnglish
3128
const showSupport = true
32-
const showCopilotCTA = !isDeprecated && !isEarlyAccess && isEnglish
3329

3430
return (
3531
<section className="container-xl mt-lg-8 mt-6 px-3 px-md-6 no-print mx-auto">
@@ -42,14 +38,6 @@ export const SupportSection = () => {
4238
styles.supportGrid /* ← adds the grid rules */,
4339
)}
4440
>
45-
{showCopilotCTA && (
46-
<AISearchCTAPopup
47-
isOpen
48-
setIsSearchOpen={setIsSearchOpen}
49-
isDismissible={false}
50-
bannerType="footer"
51-
/>
52-
)}
5341
{showSurvey && <Survey />}
5442
{showContribution && <Contribution />}
5543
{showSupport && <Support />}

src/search/components/input/AISearchCTAPopup.tsx

Lines changed: 0 additions & 199 deletions
This file was deleted.

0 commit comments

Comments
 (0)