Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit d99889d

Browse files
authored
site admin: add link to Cody Analytics (#60371)
1 parent 3e8a830 commit d99889d

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ All notable changes to Sourcegraph are documented in this file.
4545
- Gerrit code host connections now support an 'exclude' field that prevents repos in this list from being synced. [#59739](https://github.com/sourcegraph/sourcegraph/pull/59739)
4646
- Limit the number of active access tokens for a user. By default users are able to have 25 active access tokens. This limit can be configured using the `maxTokensPerUser` setting in the `auth.accessTokens` section of the site configuration. [#59731](https://github.com/sourcegraph/sourcegraph/pull/59731)
4747
- Add experimental support for .cody/ignore when retrieving remote context. To enable it, set `experimentalFeatures.codyContextIgnore: true` in the site configuration. [#59836](https://github.com/sourcegraph/sourcegraph/pull/59836), [#59907](https://github.com/sourcegraph/sourcegraph/pull/59907)
48+
- Site admin, link to the Cody Analytics service. [#60371](https://github.com/sourcegraph/sourcegraph/pull/60371)
4849

4950
### Changed
5051

client/web/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,7 @@ ts_project(
15201520
"src/site-admin/analytics/AnalyticsCodeInsightsPage/queries.ts",
15211521
"src/site-admin/analytics/AnalyticsCodeIntelPage/index.tsx",
15221522
"src/site-admin/analytics/AnalyticsCodeIntelPage/queries.ts",
1523+
"src/site-admin/analytics/AnalyticsCodyPage/index.tsx",
15231524
"src/site-admin/analytics/AnalyticsExtensionsPage/index.tsx",
15241525
"src/site-admin/analytics/AnalyticsExtensionsPage/queries.ts",
15251526
"src/site-admin/analytics/AnalyticsNotebooksPage/index.tsx",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react'
2+
3+
import { Card, Link, Text } from '@sourcegraph/wildcard'
4+
5+
import { AnalyticsPageTitle } from '../components/AnalyticsPageTitle'
6+
7+
export const AnalyticsCodyPage: React.FC = () => (
8+
<>
9+
<AnalyticsPageTitle>Cody</AnalyticsPageTitle>
10+
11+
<Card className="p-3">
12+
<Text>
13+
Cody analytics, including active users, completions, chat, and commands can be found at{' '}
14+
<Link to="https://cody-analytics.sourcegraph.com" target="_blank" rel="noopener">
15+
cody-analytics.sourcegraph.com
16+
</Link>
17+
.
18+
</Text>
19+
<Text>To request access, please reach out to your technical advisor.</Text>
20+
</Card>
21+
</>
22+
)

client/web/src/site-admin/routes.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const AnalyticsExtensionsPage = lazyComponent(
2626
'AnalyticsExtensionsPage'
2727
)
2828
const AnalyticsUsersPage = lazyComponent(() => import('./analytics/AnalyticsUsersPage'), 'AnalyticsUsersPage')
29+
const AnalyticsCodyPage = lazyComponent(() => import('./analytics/AnalyticsCodyPage'), 'AnalyticsCodyPage')
2930
const AnalyticsCodeInsightsPage = lazyComponent(
3031
() => import('./analytics/AnalyticsCodeInsightsPage'),
3132
'AnalyticsCodeInsightsPage'
@@ -217,6 +218,10 @@ export const otherSiteAdminRoutes: readonly SiteAdminAreaRoute[] = [
217218
path: '/analytics/users',
218219
render: () => <AnalyticsUsersPage />,
219220
},
221+
{
222+
path: '/analytics/cody',
223+
render: () => <AnalyticsCodyPage />,
224+
},
220225
{
221226
path: '/analytics/code-insights',
222227
render: () => <AnalyticsCodeInsightsPage />,

client/web/src/site-admin/sidebaritems.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ const analyticsGroup: SiteAdminSideBarGroup = {
3232
to: '/site-admin/analytics/search',
3333
condition: ({ license }) => license.isCodeSearchEnabled,
3434
},
35+
{
36+
label: 'Cody',
37+
to: '/site-admin/analytics/cody',
38+
condition: ({ license }) => license.isCodyEnabled,
39+
},
3540
{
3641
label: 'Code navigation',
3742
to: '/site-admin/analytics/code-intel',

0 commit comments

Comments
 (0)