diff --git a/client/web-sveltekit/src/lib/icons/Cody.svelte b/client/web-sveltekit/src/lib/icons/Cody.svelte index 4117ddc65ed..6824baa8901 100644 --- a/client/web-sveltekit/src/lib/icons/Cody.svelte +++ b/client/web-sveltekit/src/lib/icons/Cody.svelte @@ -1,14 +1,14 @@ - + diff --git a/client/web-sveltekit/src/lib/navigation/MainNavigationLink.svelte b/client/web-sveltekit/src/lib/navigation/MainNavigationLink.svelte index bf26dc03f3b..557c922319d 100644 --- a/client/web-sveltekit/src/lib/navigation/MainNavigationLink.svelte +++ b/client/web-sveltekit/src/lib/navigation/MainNavigationLink.svelte @@ -35,6 +35,7 @@ } .icon { + --icon-fill-color: var(--header-icon-color); width: var(--icon-inline-size); height: var(--icon-inline-size); color: var(--header-icon-color); diff --git a/client/web-sveltekit/src/routes/search/+page.svelte b/client/web-sveltekit/src/routes/search/+page.svelte index 7f458ffe9a0..62e29eec56f 100644 --- a/client/web-sveltekit/src/routes/search/+page.svelte +++ b/client/web-sveltekit/src/routes/search/+page.svelte @@ -41,5 +41,5 @@ selectedFilters={data.queryFilters} /> {:else} - + {/if} diff --git a/client/web-sveltekit/src/routes/search/+page.ts b/client/web-sveltekit/src/routes/search/+page.ts index 15a343b4d68..7a0e06d99dc 100644 --- a/client/web-sveltekit/src/routes/search/+page.ts +++ b/client/web-sveltekit/src/routes/search/+page.ts @@ -87,6 +87,8 @@ export const load: PageLoad = async ({ parent, url, depends }) => { const cachePolicy = getCachePolicyFromURL(url) const trace = url.searchParams.get('trace') ?? undefined + const codyHref = window.context.sourcegraphDotComMode ? 'https://sourcegraph.com/cody' : '/cody' + if (hasQuery) { const parsedQuery = parseExtendedSearchURL(url) let { @@ -139,6 +141,7 @@ export const load: PageLoad = async ({ parent, url, depends }) => { const searchStream = streamManager.search(parsedQuery, options, useClientCache) return { + codyHref, searchStream, queryFilters, queryFromURL: query, @@ -152,6 +155,7 @@ export const load: PageLoad = async ({ parent, url, depends }) => { } } return { + codyHref, queryOptions: { query: '', }, diff --git a/client/web-sveltekit/src/routes/search/SearchHome.svelte b/client/web-sveltekit/src/routes/search/SearchHome.svelte index 041445222c8..bf4360bdd73 100644 --- a/client/web-sveltekit/src/routes/search/SearchHome.svelte +++ b/client/web-sveltekit/src/routes/search/SearchHome.svelte @@ -1,18 +1,21 @@
+ +

Introducing Cody: your new AI coding assistant.

+

+ Cody autocompletes single lines, or entire code blocks, in any programming language, keeping all of your + company’s codebase in mind. +

+ Explore Cody +
+
+ + + diff --git a/client/web-sveltekit/src/routes/search/cody-upsell/MultiLineCompletion.svelte b/client/web-sveltekit/src/routes/search/cody-upsell/MultiLineCompletion.svelte new file mode 100644 index 00000000000..8448500c5b1 --- /dev/null +++ b/client/web-sveltekit/src/routes/search/cody-upsell/MultiLineCompletion.svelte @@ -0,0 +1,229 @@ + + + + Cody generating a multi-line completion + {#if $isLightTheme} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {:else} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {/if} +